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
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || 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
644 DRUNTIME_ZLIB_SYSTEM_FALSE
645 DRUNTIME_ZLIB_SYSTEM_TRUE
646 BACKTRACE_SUPPORTS_THREADS
647 BACKTRACE_USES_MALLOC
652 DCFG_HAVE_64BIT_ATOMICS
653 DCFG_HAVE_ATOMIC_BUILTINS
654 DCFG_MINFO_BRACKETING
655 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
656 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
657 DCFG_ARM_EABI_UNWINDER
659 DRUNTIME_OS_SOLARIS_FALSE
660 DRUNTIME_OS_SOLARIS_TRUE
661 DRUNTIME_OS_MINGW_FALSE
662 DRUNTIME_OS_MINGW_TRUE
663 DRUNTIME_OS_LINUX_FALSE
664 DRUNTIME_OS_LINUX_TRUE
665 DRUNTIME_OS_OPENBSD_FALSE
666 DRUNTIME_OS_OPENBSD_TRUE
667 DRUNTIME_OS_NETBSD_FALSE
668 DRUNTIME_OS_NETBSD_TRUE
669 DRUNTIME_OS_FREEBSD_FALSE
670 DRUNTIME_OS_FREEBSD_TRUE
671 DRUNTIME_OS_DRAGONFLYBSD_FALSE
672 DRUNTIME_OS_DRAGONFLYBSD_TRUE
673 DRUNTIME_OS_DARWIN_FALSE
674 DRUNTIME_OS_DARWIN_TRUE
675 DRUNTIME_OS_ANDROID_FALSE
676 DRUNTIME_OS_ANDROID_TRUE
677 DRUNTIME_OS_AIX_FALSE
679 DRUNTIME_OS_UNIX_FALSE
680 DRUNTIME_OS_UNIX_TRUE
681 DRUNTIME_GC_ENABLE_FALSE
682 DRUNTIME_GC_ENABLE_TRUE
686 phobos_compiler_shared_flag
687 phobos_compiler_pic_flag
714 MAINTAINER_MODE_FALSE
739 INSTALL_STRIP_PROGRAM
794 program_transform_name
807 enable_option_checking
810 enable_maintainer_mode
817 with_gcc_major_version_only
824 with_target_system_zlib
827 ac_precious_vars
='build_alias
834 # Initialize some variables set by options.
836 ac_init_version
=false
837 ac_unrecognized_opts
=
839 # The variables have the same names as the options, with
840 # dashes changed to underlines.
848 program_transform_name
=s
,x
,x
,
856 # Installation directory options.
857 # These are left unexpanded so users can "make install exec_prefix=/foo"
858 # and all the variables that are supposed to be based on exec_prefix
859 # by default will actually change.
860 # Use braces instead of parens because sh, perl, etc. also accept them.
861 # (The list follows the same order as the GNU Coding Standards.)
862 bindir
='${exec_prefix}/bin'
863 sbindir
='${exec_prefix}/sbin'
864 libexecdir
='${exec_prefix}/libexec'
865 datarootdir
='${prefix}/share'
866 datadir
='${datarootdir}'
867 sysconfdir
='${prefix}/etc'
868 sharedstatedir
='${prefix}/com'
869 localstatedir
='${prefix}/var'
870 includedir
='${prefix}/include'
871 oldincludedir
='/usr/include'
872 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
873 infodir
='${datarootdir}/info'
878 libdir
='${exec_prefix}/lib'
879 localedir
='${datarootdir}/locale'
880 mandir
='${datarootdir}/man'
886 # If the previous option needs an argument, assign it.
887 if test -n "$ac_prev"; then
888 eval $ac_prev=\
$ac_option
894 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
899 # Accept the important Cygnus configure options, so we can diagnose typos.
901 case $ac_dashdash$ac_option in
905 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
907 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
910 -build |
--build |
--buil |
--bui |
--bu)
911 ac_prev
=build_alias
;;
912 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
913 build_alias
=$ac_optarg ;;
915 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
916 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
917 ac_prev
=cache_file
;;
918 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
919 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
920 cache_file
=$ac_optarg ;;
923 cache_file
=config.cache
;;
925 -datadir |
--datadir |
--datadi |
--datad)
927 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
928 datadir
=$ac_optarg ;;
930 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
931 |
--dataroo |
--dataro |
--datar)
932 ac_prev
=datarootdir
;;
933 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
934 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
935 datarootdir
=$ac_optarg ;;
937 -disable-* |
--disable-*)
938 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
941 as_fn_error $?
"invalid feature name: $ac_useropt"
942 ac_useropt_orig
=$ac_useropt
943 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944 case $ac_user_opts in
948 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
949 ac_unrecognized_sep
=', ';;
951 eval enable_
$ac_useropt=no
;;
953 -docdir |
--docdir |
--docdi |
--doc |
--do)
955 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
958 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
960 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
963 -enable-* |
--enable-*)
964 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
967 as_fn_error $?
"invalid feature name: $ac_useropt"
968 ac_useropt_orig
=$ac_useropt
969 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
974 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
975 ac_unrecognized_sep
=', ';;
977 eval enable_
$ac_useropt=\
$ac_optarg ;;
979 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
980 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
981 |
--exec |
--exe |
--ex)
982 ac_prev
=exec_prefix
;;
983 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
984 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
985 |
--exec=* |
--exe=* |
--ex=*)
986 exec_prefix
=$ac_optarg ;;
988 -gas |
--gas |
--ga |
--g)
989 # Obsolete; use --with-gas.
992 -help |
--help |
--hel |
--he |
-h)
994 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
995 ac_init_help
=recursive
;;
996 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
997 ac_init_help
=short
;;
999 -host |
--host |
--hos |
--ho)
1000 ac_prev
=host_alias
;;
1001 -host=* |
--host=* |
--hos=* |
--ho=*)
1002 host_alias
=$ac_optarg ;;
1004 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1006 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1008 htmldir
=$ac_optarg ;;
1010 -includedir |
--includedir |
--includedi |
--included |
--include \
1011 |
--includ |
--inclu |
--incl |
--inc)
1012 ac_prev
=includedir
;;
1013 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1014 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1015 includedir
=$ac_optarg ;;
1017 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1019 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1020 infodir
=$ac_optarg ;;
1022 -libdir |
--libdir |
--libdi |
--libd)
1024 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1025 libdir
=$ac_optarg ;;
1027 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1028 |
--libexe |
--libex |
--libe)
1029 ac_prev
=libexecdir
;;
1030 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1031 |
--libexe=* |
--libex=* |
--libe=*)
1032 libexecdir
=$ac_optarg ;;
1034 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1035 ac_prev
=localedir
;;
1036 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1037 localedir
=$ac_optarg ;;
1039 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1040 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1041 ac_prev
=localstatedir
;;
1042 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1043 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1044 localstatedir
=$ac_optarg ;;
1046 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1048 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1049 mandir
=$ac_optarg ;;
1051 -nfp |
--nfp |
--nf)
1052 # Obsolete; use --without-fp.
1055 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1056 |
--no-cr |
--no-c |
-n)
1059 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1060 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1063 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1064 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1065 |
--oldin |
--oldi |
--old |
--ol |
--o)
1066 ac_prev
=oldincludedir
;;
1067 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1068 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1069 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1070 oldincludedir
=$ac_optarg ;;
1072 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1074 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1075 prefix
=$ac_optarg ;;
1077 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1078 |
--program-pre |
--program-pr |
--program-p)
1079 ac_prev
=program_prefix
;;
1080 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1081 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1082 program_prefix
=$ac_optarg ;;
1084 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1085 |
--program-suf |
--program-su |
--program-s)
1086 ac_prev
=program_suffix
;;
1087 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1088 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1089 program_suffix
=$ac_optarg ;;
1091 -program-transform-name |
--program-transform-name \
1092 |
--program-transform-nam |
--program-transform-na \
1093 |
--program-transform-n |
--program-transform- \
1094 |
--program-transform |
--program-transfor \
1095 |
--program-transfo |
--program-transf \
1096 |
--program-trans |
--program-tran \
1097 |
--progr-tra |
--program-tr |
--program-t)
1098 ac_prev
=program_transform_name
;;
1099 -program-transform-name=* |
--program-transform-name=* \
1100 |
--program-transform-nam=* |
--program-transform-na=* \
1101 |
--program-transform-n=* |
--program-transform-=* \
1102 |
--program-transform=* |
--program-transfor=* \
1103 |
--program-transfo=* |
--program-transf=* \
1104 |
--program-trans=* |
--program-tran=* \
1105 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1106 program_transform_name
=$ac_optarg ;;
1108 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1110 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1111 pdfdir
=$ac_optarg ;;
1113 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1115 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1118 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1119 |
-silent |
--silent |
--silen |
--sile |
--sil)
1122 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1124 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1126 sbindir
=$ac_optarg ;;
1128 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1129 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1130 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1132 ac_prev
=sharedstatedir
;;
1133 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1134 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1135 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1137 sharedstatedir
=$ac_optarg ;;
1139 -site |
--site |
--sit)
1141 -site=* |
--site=* |
--sit=*)
1144 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1146 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1147 srcdir
=$ac_optarg ;;
1149 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1150 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1151 ac_prev
=sysconfdir
;;
1152 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1153 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1154 sysconfdir
=$ac_optarg ;;
1156 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1157 ac_prev
=target_alias
;;
1158 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1159 target_alias
=$ac_optarg ;;
1161 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1164 -version |
--version |
--versio |
--versi |
--vers |
-V)
1165 ac_init_version
=: ;;
1168 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1171 as_fn_error $?
"invalid package name: $ac_useropt"
1172 ac_useropt_orig
=$ac_useropt
1173 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1178 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1179 ac_unrecognized_sep
=', ';;
1181 eval with_
$ac_useropt=\
$ac_optarg ;;
1183 -without-* |
--without-*)
1184 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1187 as_fn_error $?
"invalid package name: $ac_useropt"
1188 ac_useropt_orig
=$ac_useropt
1189 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1194 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1195 ac_unrecognized_sep
=', ';;
1197 eval with_
$ac_useropt=no
;;
1200 # Obsolete; use --with-x.
1203 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1204 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1205 ac_prev
=x_includes
;;
1206 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1207 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1208 x_includes
=$ac_optarg ;;
1210 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1211 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1212 ac_prev
=x_libraries
;;
1213 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1214 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1215 x_libraries
=$ac_optarg ;;
1217 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1218 Try \`$0 --help' for more information"
1222 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1223 # Reject names that are not valid shell variable names.
1224 case $ac_envvar in #(
1225 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1226 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1228 eval $ac_envvar=\
$ac_optarg
1229 export $ac_envvar ;;
1232 # FIXME: should be removed in autoconf 3.0.
1233 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1234 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1235 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1236 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1242 if test -n "$ac_prev"; then
1243 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1244 as_fn_error $?
"missing argument to $ac_option"
1247 if test -n "$ac_unrecognized_opts"; then
1248 case $enable_option_checking in
1250 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1251 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1255 # Check all directory arguments for consistency.
1256 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1257 datadir sysconfdir sharedstatedir localstatedir includedir \
1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1259 libdir localedir mandir
1261 eval ac_val
=\$
$ac_var
1262 # Remove trailing slashes.
1265 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1266 eval $ac_var=\
$ac_val;;
1268 # Be sure to have absolute directory names.
1270 [\\/$
]* | ?
:[\\/]* ) continue;;
1271 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1273 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1276 # There might be people who depend on the old broken behavior: `$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1281 target
=$target_alias
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x
; then
1285 if test "x$build_alias" = x
; then
1286 cross_compiling
=maybe
1287 elif test "x$build_alias" != "x$host_alias"; then
1293 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1295 test "$silent" = yes && exec 6>/dev
/null
1298 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1299 ac_ls_di
=`ls -di .` &&
1300 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1301 as_fn_error $?
"working directory cannot be determined"
1302 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1303 as_fn_error $?
"pwd does not report name of working directory"
1306 # Find the source files, if location was not specified.
1307 if test -z "$srcdir"; then
1308 ac_srcdir_defaulted
=yes
1309 # Try the directory containing this script, then the parent directory.
1310 ac_confdir
=`$as_dirname -- "$as_myself" ||
1311 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312 X"$as_myself" : 'X\(//\)[^/]' \| \
1313 X"$as_myself" : 'X\(//\)$' \| \
1314 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315 $as_echo X"$as_myself" |
1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1338 ac_srcdir_defaulted
=no
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1342 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1344 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1346 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1348 # When building in place, set srcdir=.
1349 if test "$ac_abs_confdir" = "$ac_pwd"; then
1352 # Remove unnecessary trailing slashes from srcdir.
1353 # Double slashes in file names in object file debugging info
1354 # mess up M-x gdb in Emacs.
1356 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1358 for ac_var
in $ac_precious_vars; do
1359 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1360 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1361 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1362 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1366 # Report the --help message.
1368 if test "$ac_init_help" = "long"; then
1369 # Omit some internal or obsolete options to make the list less imposing.
1370 # This message is too long to be a string in the A/UX 3.1 sh.
1372 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1374 Usage: $0 [OPTION]... [VAR=VALUE]...
1376 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377 VAR=VALUE. See below for descriptions of some of the useful variables.
1379 Defaults for the options are specified in brackets.
1382 -h, --help display this help and exit
1383 --help=short display options specific to this package
1384 --help=recursive display the short help of all the included packages
1385 -V, --version display version information and exit
1386 -q, --quiet, --silent do not print \`checking ...' messages
1387 --cache-file=FILE cache test results in FILE [disabled]
1388 -C, --config-cache alias for \`--cache-file=config.cache'
1389 -n, --no-create do not create output files
1390 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1392 Installation directories:
1393 --prefix=PREFIX install architecture-independent files in PREFIX
1394 [$ac_default_prefix]
1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1398 By default, \`make install' will install all the files in
1399 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1400 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401 for instance \`--prefix=\$HOME'.
1403 For better control, use the options below.
1405 Fine tuning of the installation directories:
1406 --bindir=DIR user executables [EPREFIX/bin]
1407 --sbindir=DIR system admin executables [EPREFIX/sbin]
1408 --libexecdir=DIR program executables [EPREFIX/libexec]
1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1412 --libdir=DIR object code libraries [EPREFIX/lib]
1413 --includedir=DIR C header files [PREFIX/include]
1414 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1417 --infodir=DIR info documentation [DATAROOTDIR/info]
1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1419 --mandir=DIR man documentation [DATAROOTDIR/man]
1420 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1421 --htmldir=DIR html documentation [DOCDIR]
1422 --dvidir=DIR dvi documentation [DOCDIR]
1423 --pdfdir=DIR pdf documentation [DOCDIR]
1424 --psdir=DIR ps documentation [DOCDIR]
1430 --program-prefix=PREFIX prepend PREFIX to installed program names
1431 --program-suffix=SUFFIX append SUFFIX to installed program names
1432 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1435 --build=BUILD configure
for building on BUILD
[guessed
]
1436 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1437 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1441 if test -n "$ac_init_help"; then
1442 case $ac_init_help in
1443 short | recursive
) echo "Configuration of package-unused version-unused:";;
1448 --disable-option-checking ignore unrecognized
--enable/--with options
1449 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1450 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1451 --enable-multilib build many library versions
(default
)
1452 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1453 --disable-silent-rules verbose build output
(undo
: "make V=0")
1454 --enable-maintainer-mode
1455 enable make rules and dependencies not useful
(and
1456 sometimes confusing
) to the casual installer
1457 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1458 --enable-static[=PKGS
] build static libraries
[default
=yes]
1459 --enable-fast-install[=PKGS
]
1460 optimize
for fast installation
[default
=yes]
1461 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1462 --enable-werror turns on
-Werror [default
=no
]
1463 --enable-druntime-gc enable D runtime garbage collector
(default
: yes)
1464 --enable-unix enables Unix runtime
(default
: yes, for Unix
1466 --enable-thread-lib=<arg
>
1467 specify linker option
for the system thread library
1468 (default
: autodetect
)
1471 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1472 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1473 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1475 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1476 --with-gcc-major-version-only
1477 use only GCC major number
in filesystem paths
1478 --without-libatomic Do not use libatomic
in core.atomic
(default
: auto
)
1479 --without-libbacktrace Do not use libbacktrace
in core.runtime
(default
:
1481 --with-target-system-zlib
1482 use installed libz
(default
: no
)
1483 --with-cross-host=HOST configuring with a cross compiler
1485 Some influential environment variables
:
1486 CC C compiler
command
1487 CFLAGS C compiler flags
1488 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1489 nonstandard directory
<lib dir
>
1490 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1491 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1492 you have headers
in a nonstandard directory
<include dir
>
1493 CCAS assembler compiler
command (defaults to CC
)
1494 CCASFLAGS assembler compiler flags
(defaults to CFLAGS
)
1495 GDC D compiler
command
1496 GDCFLAGS D compiler flags
1499 Use these variables to override the choices made by
`configure' or to help
1500 it to find libraries and programs with nonstandard names/locations.
1502 Report bugs to the package provider.
1507 if test "$ac_init_help" = "recursive"; then
1508 # If there are subdirs, report their specific --help.
1509 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1510 test -d "$ac_dir" ||
1511 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1516 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1519 # A ".." for each directory in $ac_dir_suffix.
1520 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1521 case $ac_top_builddir_sub in
1522 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1526 ac_abs_top_builddir=$ac_pwd
1527 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1528 # for backward compatibility:
1529 ac_top_builddir=$ac_top_build_prefix
1532 .) # We are building in place.
1534 ac_top_srcdir=$ac_top_builddir_sub
1535 ac_abs_top_srcdir=$ac_pwd ;;
1536 [\\/]* | ?:[\\/]* ) # Absolute name.
1537 ac_srcdir=$srcdir$ac_dir_suffix;
1538 ac_top_srcdir=$srcdir
1539 ac_abs_top_srcdir=$srcdir ;;
1541 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1542 ac_top_srcdir=$ac_top_build_prefix$srcdir
1543 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1545 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1547 cd "$ac_dir" || { ac_status=$?; continue; }
1548 # Check for guested configure.
1549 if test -f "$ac_srcdir/configure.gnu"; then
1551 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1552 elif test -f "$ac_srcdir/configure"; then
1554 $SHELL "$ac_srcdir/configure" --help=recursive
1556 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1558 cd "$ac_pwd" || { ac_status=$?; break; }
1562 test -n "$ac_init_help" && exit $ac_status
1563 if $ac_init_version; then
1565 package-unused configure version-unused
1566 generated by GNU Autoconf 2.69
1568 Copyright (C) 2012 Free Software Foundation, Inc.
1569 This configure script is free software; the Free Software Foundation
1570 gives unlimited permission to copy, distribute and modify it.
1575 ## ------------------------ ##
1576 ## Autoconf initialization. ##
1577 ## ------------------------ ##
1579 # ac_fn_c_try_compile LINENO
1580 # --------------------------
1581 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1582 ac_fn_c_try_compile ()
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 rm -f conftest.$ac_objext
1586 if { { ac_try="$ac_compile"
1588 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1589 *) ac_try_echo
=$ac_try;;
1591 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592 $as_echo "$ac_try_echo"; } >&5
1593 (eval "$ac_compile") 2>conftest.err
1595 if test -s conftest.err
; then
1596 grep -v '^ *+' conftest.err
>conftest.er1
1597 cat conftest.er1
>&5
1598 mv -f conftest.er1 conftest.err
1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601 test $ac_status = 0; } && {
1602 test -z "$ac_c_werror_flag" ||
1603 test ! -s conftest.err
1604 } && test -s conftest.
$ac_objext; then :
1607 $as_echo "$as_me: failed program was:" >&5
1608 sed 's/^/| /' conftest.
$ac_ext >&5
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613 as_fn_set_status
$ac_retval
1615 } # ac_fn_c_try_compile
1617 # ac_fn_d_try_compile LINENO
1618 # --------------------------
1619 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1620 ac_fn_d_try_compile
()
1622 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1623 rm -f conftest.
$ac_objext
1624 if { { ac_try
="$ac_compile"
1626 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1627 *) ac_try_echo=$ac_try;;
1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630 $as_echo "$ac_try_echo"; } >&5
1631 (eval "$ac_compile") 2>conftest.err
1633 if test -s conftest.err; then
1634 grep -v '^ *+' conftest.err >conftest.er1
1635 cat conftest.er1 >&5
1636 mv -f conftest.er1 conftest.err
1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639 test $ac_status = 0; } && {
1640 test -z "$ac_d_werror_flag" ||
1641 test ! -s conftest.err
1642 } && test -s conftest.$ac_objext; then :
1645 $as_echo "$as_me: failed program was:" >&5
1646 sed 's/^/| /' conftest.$ac_ext >&5
1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651 as_fn_set_status $ac_retval
1653 } # ac_fn_d_try_compile
1655 # ac_fn_c_try_link LINENO
1656 # -----------------------
1657 # Try to link conftest.$ac_ext, and return whether this succeeded.
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 rm -f conftest.$ac_objext conftest$ac_exeext
1662 if { { ac_try="$ac_link"
1664 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1665 *) ac_try_echo
=$ac_try;;
1667 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 $as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_link") 2>conftest.err
1671 if test -s conftest.err
; then
1672 grep -v '^ *+' conftest.err
>conftest.er1
1673 cat conftest.er1
>&5
1674 mv -f conftest.er1 conftest.err
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } && {
1678 test -z "$ac_c_werror_flag" ||
1679 test ! -s conftest.err
1680 } && test -s conftest
$ac_exeext && {
1681 test "$cross_compiling" = yes ||
1682 test -x conftest
$ac_exeext
1686 $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.
$ac_ext >&5
1691 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1692 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1693 # interfere with the next link command; also delete a directory that is
1694 # left behind by Apple's compiler. We do this before executing the actions.
1695 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697 as_fn_set_status
$ac_retval
1699 } # ac_fn_c_try_link
1701 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1702 # -------------------------------------------------------
1703 # Tests whether HEADER exists and can be compiled using the include files in
1704 # INCLUDES, setting the cache variable VAR accordingly.
1705 ac_fn_c_check_header_compile
()
1707 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1709 $as_echo_n "checking for $2... " >&6; }
1710 if eval \
${$3+:} false
; then :
1711 $as_echo_n "(cached) " >&6
1713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1714 /* end confdefs.h. */
1718 if ac_fn_c_try_compile
"$LINENO"; then :
1723 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 $as_echo "$ac_res" >&6; }
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730 } # ac_fn_c_check_header_compile
1732 # ac_fn_c_try_cpp LINENO
1733 # ----------------------
1734 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1737 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1738 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1740 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1747 if test -s conftest.err; then
1748 grep -v '^ *+' conftest.err >conftest.er1
1749 cat conftest.er1 >&5
1750 mv -f conftest.er1 conftest.err
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } > conftest.i && {
1754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1755 test ! -s conftest.err
1759 $as_echo "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765 as_fn_set_status $ac_retval
1769 # ac_fn_c_try_run LINENO
1770 # ----------------------
1771 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1772 # that executables *can* be run.
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 if { { ac_try="$ac_link"
1778 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1779 *) ac_try_echo
=$ac_try;;
1781 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 $as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_link") 2>&5
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1787 { { case "(($ac_try" in
1788 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_try") 2>&5
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; }; }; then :
1799 $as_echo "$as_me: program exited with status $ac_status" >&5
1800 $as_echo "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.$ac_ext >&5
1803 ac_retval=$ac_status
1805 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807 as_fn_set_status $ac_retval
1811 # ac_fn_c_check_func LINENO FUNC VAR
1812 # ----------------------------------
1813 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1814 ac_fn_c_check_func ()
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1818 $as_echo_n "checking for $2... " >&6; }
1819 if eval \${$3+:} false; then :
1820 $as_echo_n "(cached) " >&6
1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823 /* end confdefs.h. */
1824 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1826 #define $2 innocuous_$2
1828 /* System header to define __stub macros and hopefully few prototypes,
1829 which can conflict with char $2 (); below.
1830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1831 <limits.h> exists even on freestanding compilers. */
1834 # include <limits.h>
1836 # include <assert.h>
1841 /* Override any GCC internal prototype to avoid an error.
1842 Use char because int might match the return type of a GCC
1843 builtin and then its argument prototype would still apply. */
1848 /* The GNU C library defines this for functions which it implements
1849 to always fail with ENOSYS. Some functions are actually named
1850 something starting with __ and the normal name is an alias. */
1851 #if defined __stub_$2 || defined __stub___$2
1863 if ac_fn_c_try_link "$LINENO"; then :
1868 rm -f core conftest.err conftest.$ac_objext \
1869 conftest$ac_exeext conftest.$ac_ext
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873 $as_echo "$ac_res" >&6; }
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876 } # ac_fn_c_check_func
1878 # ac_fn_d_try_link LINENO
1879 # -----------------------
1880 # Try to link conftest.$ac_ext, and return whether this succeeded.
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 rm -f conftest.$ac_objext conftest$ac_exeext
1885 if { { ac_try="$ac_link"
1887 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1888 *) ac_try_echo
=$ac_try;;
1890 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 $as_echo "$ac_try_echo"; } >&5
1892 (eval "$ac_link") 2>conftest.err
1894 if test -s conftest.err
; then
1895 grep -v '^ *+' conftest.err
>conftest.er1
1896 cat conftest.er1
>&5
1897 mv -f conftest.er1 conftest.err
1899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900 test $ac_status = 0; } && {
1901 test -z "$ac_d_werror_flag" ||
1902 test ! -s conftest.err
1903 } && test -s conftest
$ac_exeext && {
1904 test "$cross_compiling" = yes ||
1905 test -x conftest
$ac_exeext
1909 $as_echo "$as_me: failed program was:" >&5
1910 sed 's/^/| /' conftest.
$ac_ext >&5
1914 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1915 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1916 # interfere with the next link command; also delete a directory that is
1917 # left behind by Apple's compiler. We do this before executing the actions.
1918 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1920 as_fn_set_status
$ac_retval
1922 } # ac_fn_d_try_link
1924 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1925 # -------------------------------------------------------
1926 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1927 # the include files in INCLUDES and setting the cache variable VAR
1929 ac_fn_c_check_header_mongrel
()
1931 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1932 if eval \
${$3+:} false
; then :
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1934 $as_echo_n "checking for $2... " >&6; }
1935 if eval \
${$3+:} false
; then :
1936 $as_echo_n "(cached) " >&6
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940 $as_echo "$ac_res" >&6; }
1942 # Is the header compilable?
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1944 $as_echo_n "checking $2 usability... " >&6; }
1945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1950 if ac_fn_c_try_compile
"$LINENO"; then :
1951 ac_header_compiler
=yes
1953 ac_header_compiler
=no
1955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1957 $as_echo "$ac_header_compiler" >&6; }
1959 # Is the header present?
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1961 $as_echo_n "checking $2 presence... " >&6; }
1962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1966 if ac_fn_c_try_cpp
"$LINENO"; then :
1967 ac_header_preproc
=yes
1969 ac_header_preproc
=no
1971 rm -f conftest.err conftest.i conftest.
$ac_ext
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1973 $as_echo "$ac_header_preproc" >&6; }
1975 # So? What about this header?
1976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1979 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1981 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1985 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1987 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1989 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1991 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1993 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997 $as_echo_n "checking for $2... " >&6; }
1998 if eval \
${$3+:} false
; then :
1999 $as_echo_n "(cached) " >&6
2001 eval "$3=\$ac_header_compiler"
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2005 $as_echo "$ac_res" >&6; }
2007 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009 } # ac_fn_c_check_header_mongrel
2010 cat >config.log
<<_ACEOF
2011 This file contains any messages produced by compilers while
2012 running configure, to aid debugging if configure makes a mistake.
2014 It was created by package-unused $as_me version-unused, which was
2015 generated by GNU Autoconf 2.69. Invocation command line was
2027 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2028 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2029 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2030 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2031 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2033 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2034 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2036 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2037 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2038 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2039 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2040 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2041 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2042 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2046 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2050 test -z "$as_dir" && as_dir
=.
2051 $as_echo "PATH: $as_dir"
2067 # Keep a trace of the command line.
2068 # Strip out --no-create and --no-recursion so they do not pile up.
2069 # Strip out --silent because we don't want to record it for future runs.
2070 # Also quote any args containing shell meta-characters.
2071 # Make two passes to allow for proper duplicate-argument suppression.
2075 ac_must_keep_next
=false
2081 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2082 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2083 |
-silent |
--silent |
--silen |
--sile |
--sil)
2086 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2089 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2091 as_fn_append ac_configure_args1
" '$ac_arg'"
2092 if test $ac_must_keep_next = true
; then
2093 ac_must_keep_next
=false
# Got value, back to normal.
2096 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2097 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2098 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2099 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2100 case "$ac_configure_args0 " in
2101 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2104 -* ) ac_must_keep_next
=true
;;
2107 as_fn_append ac_configure_args
" '$ac_arg'"
2112 { ac_configure_args0
=; unset ac_configure_args0
;}
2113 { ac_configure_args1
=; unset ac_configure_args1
;}
2115 # When interrupted or exit'd, cleanup temporary files, and complete
2116 # config.log. We remove comments because anyway the quotes in there
2117 # would cause problems or look ugly.
2118 # WARNING: Use '\'' to represent an apostrophe within the trap.
2119 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2120 trap 'exit_status=$?
2121 # Save into config.log some information that might help in debugging.
2125 $as_echo "## ---------------- ##
2126 ## Cache variables. ##
2127 ## ---------------- ##"
2129 # The following way of writing the cache mishandles newlines in values,
2131 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2132 eval ac_val=\$$ac_var
2136 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2137 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2140 _ | IFS | as_nl) ;; #(
2141 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2142 *) { eval $ac_var=; unset $ac_var;} ;;
2147 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2148 *${as_nl}ac_space=\ *)
2150 "s/'\''/'\''\\\\'\'''\''/g;
2151 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2154 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2161 $as_echo "## ----------------- ##
2162 ## Output variables. ##
2163 ## ----------------- ##"
2165 for ac_var in $ac_subst_vars
2167 eval ac_val=\$$ac_var
2169 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2171 $as_echo "$ac_var='\''$ac_val'\''"
2175 if test -n "$ac_subst_files"; then
2176 $as_echo "## ------------------- ##
2177 ## File substitutions. ##
2178 ## ------------------- ##"
2180 for ac_var
in $ac_subst_files
2182 eval ac_val
=\$
$ac_var
2184 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2186 $as_echo "$ac_var='\''$ac_val'\''"
2191 if test -s confdefs.h; then
2192 $as_echo "## ----------- ##
2199 test "$ac_signal" != 0 &&
2200 $as_echo "$as_me: caught signal $ac_signal"
2201 $as_echo "$as_me: exit $exit_status"
2203 rm -f core *.core core.conftest.* &&
2204 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2207 for ac_signal
in 1 2 13 15; do
2208 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2212 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2213 rm -f -r conftest
* confdefs.h
2215 $as_echo "/* confdefs.h */" > confdefs.h
2217 # Predefined preprocessor variables.
2219 cat >>confdefs.h
<<_ACEOF
2220 #define PACKAGE_NAME "$PACKAGE_NAME"
2223 cat >>confdefs.h
<<_ACEOF
2224 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2227 cat >>confdefs.h
<<_ACEOF
2228 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2231 cat >>confdefs.h
<<_ACEOF
2232 #define PACKAGE_STRING "$PACKAGE_STRING"
2235 cat >>confdefs.h
<<_ACEOF
2236 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2239 cat >>confdefs.h
<<_ACEOF
2240 #define PACKAGE_URL "$PACKAGE_URL"
2244 # Let the site file select an alternate cache file if it wants to.
2245 # Prefer an explicitly selected file to automatically selected ones.
2248 if test -n "$CONFIG_SITE"; then
2249 # We do not want a PATH search for config.site.
2250 case $CONFIG_SITE in #((
2251 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2252 */*) ac_site_file1
=$CONFIG_SITE;;
2253 *) ac_site_file1
=.
/$CONFIG_SITE;;
2255 elif test "x$prefix" != xNONE
; then
2256 ac_site_file1
=$prefix/share
/config.site
2257 ac_site_file2
=$prefix/etc
/config.site
2259 ac_site_file1
=$ac_default_prefix/share
/config.site
2260 ac_site_file2
=$ac_default_prefix/etc
/config.site
2262 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2264 test "x$ac_site_file" = xNONE
&& continue
2265 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2267 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2268 sed 's/^/| /' "$ac_site_file" >&5
2270 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2272 as_fn_error $?
"failed to load site script $ac_site_file
2273 See \`config.log' for more details" "$LINENO" 5; }
2277 if test -r "$cache_file"; then
2278 # Some versions of bash will fail to source /dev/null (special files
2279 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2280 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2282 $as_echo "$as_me: loading cache $cache_file" >&6;}
2284 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2285 *) .
"./$cache_file";;
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2290 $as_echo "$as_me: creating cache $cache_file" >&6;}
2294 # Check that the precious variables saved in the cache have kept the same
2296 ac_cache_corrupted
=false
2297 for ac_var
in $ac_precious_vars; do
2298 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2299 eval ac_new_set
=\
$ac_env_${ac_var}_set
2300 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2301 eval ac_new_val
=\
$ac_env_${ac_var}_value
2302 case $ac_old_set,$ac_new_set in
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2305 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2306 ac_cache_corrupted
=: ;;
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2309 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2310 ac_cache_corrupted
=: ;;
2313 if test "x$ac_old_val" != "x$ac_new_val"; then
2314 # differences in whitespace do not lead to failure.
2315 ac_old_val_w
=`echo x $ac_old_val`
2316 ac_new_val_w
=`echo x $ac_new_val`
2317 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2319 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2320 ac_cache_corrupted
=:
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2323 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2324 eval $ac_var=\
$ac_old_val
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2327 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2329 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2332 # Pass precious variables to config.status.
2333 if test "$ac_new_set" = set; then
2335 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2336 *) ac_arg
=$ac_var=$ac_new_val ;;
2338 case " $ac_configure_args " in
2339 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2340 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2344 if $ac_cache_corrupted; then
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2348 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2349 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2351 ## -------------------- ##
2352 ## Main body of script. ##
2353 ## -------------------- ##
2356 ac_cpp
='$CPP $CPPFLAGS'
2357 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2358 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2359 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2366 ac_config_headers
="$ac_config_headers config.h"
2369 # Default to --enable-multilib
2370 # Check whether --enable-multilib was given.
2371 if test "${enable_multilib+set}" = set; then :
2372 enableval
=$enable_multilib; case "$enableval" in
2373 yes) multilib
=yes ;;
2375 *) as_fn_error $?
"bad value $enableval for multilib option" "$LINENO" 5 ;;
2382 # We may get other options which we leave undocumented:
2383 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2384 # See config-ml.in if you want the gory details.
2386 if test "$srcdir" = "."; then
2387 if test "$with_target_subdir" != "."; then
2388 multi_basedir
="$srcdir/$with_multisrctop../.."
2390 multi_basedir
="$srcdir/$with_multisrctop.."
2393 multi_basedir
="$srcdir/.."
2397 # Even if the default multilib is not a cross compilation,
2398 # it may be that some of the other multilibs are.
2399 if test $cross_compiling = no
&& test $multilib = yes \
2400 && test "x${with_multisubdir}" != x
; then
2401 cross_compiling
=maybe
2404 ac_config_commands
="$ac_config_commands default-1"
2407 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2408 if test -f "$ac_dir/install-sh"; then
2410 ac_install_sh
="$ac_aux_dir/install-sh -c"
2412 elif test -f "$ac_dir/install.sh"; then
2414 ac_install_sh
="$ac_aux_dir/install.sh -c"
2416 elif test -f "$ac_dir/shtool"; then
2418 ac_install_sh
="$ac_aux_dir/shtool install -c"
2422 if test -z "$ac_aux_dir"; then
2423 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2426 # These three variables are undocumented and unsupported,
2427 # and are intended to be withdrawn in a future Autoconf release.
2428 # They can cause serious problems if a builder's source tree is in a directory
2429 # whose full name contains unusual characters.
2430 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2431 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2432 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2435 # Make sure we can run config.sub.
2436 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2437 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2440 $as_echo_n "checking build system type... " >&6; }
2441 if ${ac_cv_build+:} false
; then :
2442 $as_echo_n "(cached) " >&6
2444 ac_build_alias
=$build_alias
2445 test "x$ac_build_alias" = x
&&
2446 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2447 test "x$ac_build_alias" = x
&&
2448 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2449 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2450 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2454 $as_echo "$ac_cv_build" >&6; }
2455 case $ac_cv_build in
2457 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2460 ac_save_IFS
=$IFS; IFS
='-'
2466 # Remember, the first character of IFS is used to create $*,
2467 # except with old shells:
2470 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2474 $as_echo_n "checking host system type... " >&6; }
2475 if ${ac_cv_host+:} false
; then :
2476 $as_echo_n "(cached) " >&6
2478 if test "x$host_alias" = x
; then
2479 ac_cv_host
=$ac_cv_build
2481 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2482 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2487 $as_echo "$ac_cv_host" >&6; }
2490 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2493 ac_save_IFS
=$IFS; IFS
='-'
2499 # Remember, the first character of IFS is used to create $*,
2500 # except with old shells:
2503 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2507 $as_echo_n "checking target system type... " >&6; }
2508 if ${ac_cv_target+:} false
; then :
2509 $as_echo_n "(cached) " >&6
2511 if test "x$target_alias" = x
; then
2512 ac_cv_target
=$ac_cv_host
2514 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2515 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2520 $as_echo "$ac_cv_target" >&6; }
2521 case $ac_cv_target in
2523 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2525 target
=$ac_cv_target
2526 ac_save_IFS
=$IFS; IFS
='-'
2532 # Remember, the first character of IFS is used to create $*,
2533 # except with old shells:
2536 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2539 # The aliases save the names the user supplied, while $host etc.
2540 # will get canonicalized.
2541 test -n "$target_alias" &&
2542 test "$program_prefix$program_suffix$program_transform_name" = \
2544 program_prefix
=${target_alias}-
2547 target_alias
=${target_alias-$target}
2550 # 1.11.1: Require that version of automake.
2551 # foreign: Don't require README, INSTALL, NEWS, etc.
2552 # no-define: Don't define PACKAGE and VERSION.
2553 # no-dependencies: Don't generate automatic dependencies.
2554 # (because it breaks when using bootstrap-lean, since some of the
2555 # headers are gone at "make install" time).
2556 # -Wall: Issue all automake warnings.
2557 # -Wno-portability: Don't warn about constructs supported by GNU make.
2558 # (because GCC requires GNU make anyhow).
2559 # -Wno-override: Overrides used in testsuite.
2560 am__api_version
='1.15'
2562 # Find a good install program. We prefer a C program (faster),
2563 # so one script is as good as another. But avoid the broken or
2564 # incompatible versions:
2565 # SysV /etc/install, /usr/sbin/install
2566 # SunOS /usr/etc/install
2567 # IRIX /sbin/install
2569 # AmigaOS /C/install, which installs bootblocks on floppy discs
2570 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2571 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2572 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2573 # OS/2's system install, which has a completely different semantic
2574 # ./install, which can be erroneously created by make from ./install.sh.
2575 # Reject install programs that cannot install multiple files.
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2577 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2578 if test -z "$INSTALL"; then
2579 if ${ac_cv_path_install+:} false
; then :
2580 $as_echo_n "(cached) " >&6
2582 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2586 test -z "$as_dir" && as_dir
=.
2587 # Account for people who put trailing slashes in PATH elements.
2588 case $as_dir/ in #((
2589 .
/ | .
// |
/[cC
]/* | \
2590 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2591 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2594 # OSF1 and SCO ODT 3.0 have their own names for install.
2595 # Don't use installbsd from OSF since it installs stuff as root
2597 for ac_prog
in ginstall scoinst
install; do
2598 for ac_exec_ext
in '' $ac_executable_extensions; do
2599 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2600 if test $ac_prog = install &&
2601 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2602 # AIX install. It has an incompatible calling convention.
2604 elif test $ac_prog = install &&
2605 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2606 # program-specific install script used by HP pwplus--don't use.
2609 rm -rf conftest.one conftest.two conftest.dir
2610 echo one
> conftest.one
2611 echo two
> conftest.two
2613 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2614 test -s conftest.one
&& test -s conftest.two
&&
2615 test -s conftest.dir
/conftest.one
&&
2616 test -s conftest.dir
/conftest.two
2618 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2631 rm -rf conftest.one conftest.two conftest.dir
2634 if test "${ac_cv_path_install+set}" = set; then
2635 INSTALL
=$ac_cv_path_install
2637 # As a last resort, use the slow shell script. Don't cache a
2638 # value for INSTALL within a source directory, because that will
2639 # break other packages using the cache if that directory is
2640 # removed, or if the value is a relative name.
2641 INSTALL
=$ac_install_sh
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2645 $as_echo "$INSTALL" >&6; }
2647 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2648 # It thinks the first close brace ends the variable substitution.
2649 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2651 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2653 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2656 $as_echo_n "checking whether build environment is sane... " >&6; }
2657 # Reject unsafe characters in $srcdir or the absolute working directory
2658 # name. Accept space and tab only in the latter.
2662 *[\\\"\
#\$\&\'\`$am_lf]*)
2663 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2666 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2667 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2670 # Do 'set' in a subshell so we don't clobber the current shell's
2671 # arguments. Must try -L first in case configure is actually a
2672 # symlink; some systems play weird games with the mod time of symlinks
2673 # (eg FreeBSD returns the mod time of the symlink's containing
2677 for am_try
in 1 2; do
2678 echo "timestamp, slept: $am_has_slept" > conftest.
file
2679 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2680 if test "$*" = "X"; then
2682 set X
`ls -t "$srcdir/configure" conftest.file`
2684 if test "$*" != "X $srcdir/configure conftest.file" \
2685 && test "$*" != "X conftest.file $srcdir/configure"; then
2687 # If neither matched, then we have a broken ls. This can happen
2688 # if, for instance, CONFIG_SHELL is bash and it inherits a
2689 # broken ls alias from the environment. This has actually
2690 # happened. Such a system could not be considered "sane".
2691 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2692 alias in your environment" "$LINENO" 5
2694 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2701 test "$2" = conftest.
file
2707 as_fn_error $?
"newly created file is older than distributed files!
2708 Check your system clock" "$LINENO" 5
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2711 $as_echo "yes" >&6; }
2712 # If we didn't sleep, we still need to ensure time stamps of config.status and
2713 # generated files are strictly newer.
2715 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2722 test "$program_prefix" != NONE
&&
2723 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2724 # Use a double $ so make ignores it.
2725 test "$program_suffix" != NONE
&&
2726 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2727 # Double any \ or $.
2728 # By default was `s,x,x', remove it if useless.
2729 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2730 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2732 # Expand $ac_aux_dir to an absolute path.
2733 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2735 if test x
"${MISSING+set}" != xset
; then
2738 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2740 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2743 # Use eval to expand $SHELL
2744 if eval "$MISSING --is-lightweight"; then
2745 am_missing_run
="$MISSING "
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2749 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2752 if test x
"${install_sh+set}" != xset
; then
2755 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2757 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2761 # Installed binaries are usually stripped using 'strip' when the user
2762 # run "make install-strip". However 'strip' might not be the right
2763 # tool to use in cross-compilation environments, therefore Automake
2764 # will honor the 'STRIP' environment variable to overrule this program.
2765 if test "$cross_compiling" != no
; then
2766 if test -n "$ac_tool_prefix"; then
2767 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2768 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2770 $as_echo_n "checking for $ac_word... " >&6; }
2771 if ${ac_cv_prog_STRIP+:} false
; then :
2772 $as_echo_n "(cached) " >&6
2774 if test -n "$STRIP"; then
2775 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2777 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2781 test -z "$as_dir" && as_dir
=.
2782 for ac_exec_ext
in '' $ac_executable_extensions; do
2783 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2784 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2794 STRIP
=$ac_cv_prog_STRIP
2795 if test -n "$STRIP"; then
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2797 $as_echo "$STRIP" >&6; }
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2800 $as_echo "no" >&6; }
2805 if test -z "$ac_cv_prog_STRIP"; then
2807 # Extract the first word of "strip", so it can be a program name with args.
2808 set dummy strip
; ac_word
=$2
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2810 $as_echo_n "checking for $ac_word... " >&6; }
2811 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
2812 $as_echo_n "(cached) " >&6
2814 if test -n "$ac_ct_STRIP"; then
2815 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2817 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2821 test -z "$as_dir" && as_dir
=.
2822 for ac_exec_ext
in '' $ac_executable_extensions; do
2823 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2824 ac_cv_prog_ac_ct_STRIP
="strip"
2825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2835 if test -n "$ac_ct_STRIP"; then
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2837 $as_echo "$ac_ct_STRIP" >&6; }
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2840 $as_echo "no" >&6; }
2843 if test "x$ac_ct_STRIP" = x
; then
2846 case $cross_compiling:$ac_tool_warned in
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2850 ac_tool_warned
=yes ;;
2855 STRIP
="$ac_cv_prog_STRIP"
2859 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2862 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2863 if test -z "$MKDIR_P"; then
2864 if ${ac_cv_path_mkdir+:} false
; then :
2865 $as_echo_n "(cached) " >&6
2867 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2868 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2871 test -z "$as_dir" && as_dir
=.
2872 for ac_prog
in mkdir gmkdir
; do
2873 for ac_exec_ext
in '' $ac_executable_extensions; do
2874 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
2875 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2876 'mkdir (GNU coreutils) '* | \
2877 'mkdir (coreutils) '* | \
2878 'mkdir (fileutils) '4.1*)
2879 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2889 test -d .
/--version && rmdir .
/--version
2890 if test "${ac_cv_path_mkdir+set}" = set; then
2891 MKDIR_P
="$ac_cv_path_mkdir -p"
2893 # As a last resort, use the slow shell script. Don't cache a
2894 # value for MKDIR_P within a source directory, because that will
2895 # break other packages using the cache if that directory is
2896 # removed, or if the value is a relative name.
2897 MKDIR_P
="$ac_install_sh -d"
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2901 $as_echo "$MKDIR_P" >&6; }
2903 for ac_prog
in gawk mawk nawk
awk
2905 # Extract the first word of "$ac_prog", so it can be a program name with args.
2906 set dummy
$ac_prog; ac_word
=$2
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2908 $as_echo_n "checking for $ac_word... " >&6; }
2909 if ${ac_cv_prog_AWK+:} false
; then :
2910 $as_echo_n "(cached) " >&6
2912 if test -n "$AWK"; then
2913 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2915 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2919 test -z "$as_dir" && as_dir
=.
2920 for ac_exec_ext
in '' $ac_executable_extensions; do
2921 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2922 ac_cv_prog_AWK
="$ac_prog"
2923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2933 if test -n "$AWK"; then
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2935 $as_echo "$AWK" >&6; }
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2938 $as_echo "no" >&6; }
2942 test -n "$AWK" && break
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2946 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2948 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2949 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
2950 $as_echo_n "(cached) " >&6
2952 cat >conftest.
make <<\_ACEOF
2955 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2957 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2958 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2960 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2962 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2966 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2968 $as_echo "yes" >&6; }
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972 $as_echo "no" >&6; }
2973 SET_MAKE
="MAKE=${MAKE-make}"
2976 rm -rf .tst
2>/dev
/null
2977 mkdir .tst
2>/dev
/null
2978 if test -d .tst
; then
2983 rmdir .tst
2>/dev
/null
2985 # Check whether --enable-silent-rules was given.
2986 if test "${enable_silent_rules+set}" = set; then :
2987 enableval
=$enable_silent_rules;
2990 case $enable_silent_rules in # (((
2991 yes) AM_DEFAULT_VERBOSITY
=0;;
2992 no
) AM_DEFAULT_VERBOSITY
=1;;
2993 *) AM_DEFAULT_VERBOSITY
=1;;
2995 am_make
=${MAKE-make}
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2997 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2998 if ${am_cv_make_support_nested_variables+:} false
; then :
2999 $as_echo_n "(cached) " >&6
3001 if $as_echo 'TRUE=$(BAR$(V))
3007 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3008 am_cv_make_support_nested_variables
=yes
3010 am_cv_make_support_nested_variables
=no
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3014 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3015 if test $am_cv_make_support_nested_variables = yes; then
3017 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3019 AM_V
=$AM_DEFAULT_VERBOSITY
3020 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3024 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3025 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3026 # is not polluted with repeated "-I."
3027 am__isrc
=' -I$(srcdir)'
3028 # test to see if srcdir already configured
3029 if test -f $srcdir/config.status
; then
3030 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3034 # test whether we have cygpath
3035 if test -z "$CYGPATH_W"; then
3036 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3037 CYGPATH_W
='cygpath -w'
3044 # Define the identity of the package.
3046 VERSION
='version-unused'
3049 # Some tools Automake needs.
3051 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3054 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3057 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3060 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3063 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3065 # For better backward compatibility. To be removed once Automake 1.9.x
3066 # dies out for good. For more background, see:
3067 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3068 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3069 mkdir_p
='$(MKDIR_P)'
3071 # We need awk for the "check" target (and possibly the TAP driver). The
3072 # system "awk" is bad on some platforms.
3073 # Always define AMTAR for backward compatibility. Yes, it's still used
3074 # in the wild :-( We should find a proper way to deprecate it ...
3078 # We'll loop over all known methods to create a tar archive until one works.
3079 _am_tools
='gnutar pax cpio none'
3081 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3088 # POSIX will say in a future version that running "rm -f" with no argument
3089 # is OK; and we want to be able to make that assumption in our Makefile
3090 # recipes. So use an aggressive probe to check that the usage we want is
3091 # actually supported "in the wild" to an acceptable degree.
3092 # See automake bug#10828.
3093 # To make any issue more visible, cause the running configure to be aborted
3094 # by default if the 'rm' program in use doesn't match our expectations; the
3095 # user can still override this though.
3096 if rm -f && rm -fr && rm -rf; then : OK
; else
3100 Your 'rm' program seems unable to run without file operands specified
3101 on the command line, even when the '-f' option is present. This is contrary
3102 to the behaviour of most rm programs out there, and not conforming with
3103 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3105 Please tell bug-automake@gnu.org about your system, including the value
3106 of your $PATH and any error possibly output before this message. This
3107 can help us improve future automake versions.
3110 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3111 echo 'Configuration will proceed anyway, since you have set the' >&2
3112 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3116 Aborting the configuration process, to ensure you take notice of the issue.
3118 You can download and install GNU coreutils to get an 'rm' implementation
3119 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3121 If you want to complete the configuration process using your problematic
3122 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3123 to "yes", and re-run configure.
3126 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3134 ac_cpp
='$CPP $CPPFLAGS'
3135 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3136 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3137 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3138 if test -n "$ac_tool_prefix"; then
3139 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3140 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142 $as_echo_n "checking for $ac_word... " >&6; }
3143 if ${ac_cv_prog_CC+:} false
; then :
3144 $as_echo_n "(cached) " >&6
3146 if test -n "$CC"; then
3147 ac_cv_prog_CC
="$CC" # Let the user override the test.
3149 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3153 test -z "$as_dir" && as_dir
=.
3154 for ac_exec_ext
in '' $ac_executable_extensions; do
3155 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3156 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3167 if test -n "$CC"; then
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3169 $as_echo "$CC" >&6; }
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 $as_echo "no" >&6; }
3177 if test -z "$ac_cv_prog_CC"; then
3179 # Extract the first word of "gcc", so it can be a program name with args.
3180 set dummy gcc
; ac_word
=$2
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3182 $as_echo_n "checking for $ac_word... " >&6; }
3183 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3184 $as_echo_n "(cached) " >&6
3186 if test -n "$ac_ct_CC"; then
3187 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3193 test -z "$as_dir" && as_dir
=.
3194 for ac_exec_ext
in '' $ac_executable_extensions; do
3195 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3196 ac_cv_prog_ac_ct_CC
="gcc"
3197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3207 if test -n "$ac_ct_CC"; then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3209 $as_echo "$ac_ct_CC" >&6; }
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3212 $as_echo "no" >&6; }
3215 if test "x$ac_ct_CC" = x
; then
3218 case $cross_compiling:$ac_tool_warned in
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3222 ac_tool_warned
=yes ;;
3230 if test -z "$CC"; then
3231 if test -n "$ac_tool_prefix"; then
3232 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3233 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3235 $as_echo_n "checking for $ac_word... " >&6; }
3236 if ${ac_cv_prog_CC+:} false
; then :
3237 $as_echo_n "(cached) " >&6
3239 if test -n "$CC"; then
3240 ac_cv_prog_CC
="$CC" # Let the user override the test.
3242 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3246 test -z "$as_dir" && as_dir
=.
3247 for ac_exec_ext
in '' $ac_executable_extensions; do
3248 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3249 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 if test -n "$CC"; then
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3262 $as_echo "$CC" >&6; }
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 $as_echo "no" >&6; }
3271 if test -z "$CC"; then
3272 # Extract the first word of "cc", so it can be a program name with args.
3273 set dummy cc
; ac_word
=$2
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3275 $as_echo_n "checking for $ac_word... " >&6; }
3276 if ${ac_cv_prog_CC+:} false
; then :
3277 $as_echo_n "(cached) " >&6
3279 if test -n "$CC"; then
3280 ac_cv_prog_CC
="$CC" # Let the user override the test.
3283 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3287 test -z "$as_dir" && as_dir
=.
3288 for ac_exec_ext
in '' $ac_executable_extensions; do
3289 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3290 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3291 ac_prog_rejected
=yes
3295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3302 if test $ac_prog_rejected = yes; then
3303 # We found a bogon in the path, so make sure we never use it.
3304 set dummy
$ac_cv_prog_CC
3306 if test $# != 0; then
3307 # We chose a different compiler from the bogus one.
3308 # However, it has the same basename, so the bogon will be chosen
3309 # first if we set CC to just the basename; use the full file name.
3311 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3317 if test -n "$CC"; then
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3319 $as_echo "$CC" >&6; }
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3322 $as_echo "no" >&6; }
3327 if test -z "$CC"; then
3328 if test -n "$ac_tool_prefix"; then
3329 for ac_prog
in cl.exe
3331 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3332 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3334 $as_echo_n "checking for $ac_word... " >&6; }
3335 if ${ac_cv_prog_CC+:} false
; then :
3336 $as_echo_n "(cached) " >&6
3338 if test -n "$CC"; then
3339 ac_cv_prog_CC
="$CC" # Let the user override the test.
3341 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3345 test -z "$as_dir" && as_dir
=.
3346 for ac_exec_ext
in '' $ac_executable_extensions; do
3347 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3348 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3359 if test -n "$CC"; then
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3361 $as_echo "$CC" >&6; }
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3364 $as_echo "no" >&6; }
3368 test -n "$CC" && break
3371 if test -z "$CC"; then
3373 for ac_prog
in cl.exe
3375 # Extract the first word of "$ac_prog", so it can be a program name with args.
3376 set dummy
$ac_prog; ac_word
=$2
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3378 $as_echo_n "checking for $ac_word... " >&6; }
3379 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3380 $as_echo_n "(cached) " >&6
3382 if test -n "$ac_ct_CC"; then
3383 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3385 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3389 test -z "$as_dir" && as_dir
=.
3390 for ac_exec_ext
in '' $ac_executable_extensions; do
3391 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3392 ac_cv_prog_ac_ct_CC
="$ac_prog"
3393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3402 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3403 if test -n "$ac_ct_CC"; then
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3405 $as_echo "$ac_ct_CC" >&6; }
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 $as_echo "no" >&6; }
3412 test -n "$ac_ct_CC" && break
3415 if test "x$ac_ct_CC" = x
; then
3418 case $cross_compiling:$ac_tool_warned in
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3422 ac_tool_warned
=yes ;;
3431 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3433 as_fn_error $?
"no acceptable C compiler found in \$PATH
3434 See \`config.log' for more details" "$LINENO" 5; }
3436 # Provide some information about the compiler.
3437 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3440 for ac_option
in --version -v -V -qversion; do
3441 { { ac_try
="$ac_compiler $ac_option >&5"
3443 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3447 $as_echo "$ac_try_echo"; } >&5
3448 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3450 if test -s conftest.err; then
3452 ... rest of stderr output deleted ...
3453 10q' conftest.err >conftest.er1
3454 cat conftest.er1 >&5
3456 rm -f conftest.er1 conftest.err
3457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3458 test $ac_status = 0; }
3461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462 /* end confdefs.h. */
3472 ac_clean_files_save=$ac_clean_files
3473 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3474 # Try to create an executable without -o first, disregard a.out.
3475 # It will help us diagnose broken compilers, and finding out an intuition
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3478 $as_echo_n "checking whether the C compiler works... " >&6; }
3479 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3481 # The possible output files:
3482 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3485 for ac_file in $ac_files
3488 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3489 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3494 if { { ac_try="$ac_link_default"
3496 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3497 *) ac_try_echo
=$ac_try;;
3499 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3500 $as_echo "$ac_try_echo"; } >&5
3501 (eval "$ac_link_default") 2>&5
3503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3504 test $ac_status = 0; }; then :
3505 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3506 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3507 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3508 # so that the user can short-circuit this test for compilers unknown to
3510 for ac_file
in $ac_files ''
3512 test -f "$ac_file" ||
continue
3514 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3517 # We found the default executable, but exeext='' is most
3521 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3523 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3525 # We set ac_cv_exeext here because the later test for it is not
3526 # safe: cross compilers may not add the suffix if given an `-o'
3527 # argument, so we may need to know it at that point already.
3528 # Even if this section looks crufty: it has the advantage of
3535 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3540 if test -z "$ac_file"; then :
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3542 $as_echo "no" >&6; }
3543 $as_echo "$as_me: failed program was:" >&5
3544 sed 's/^/| /' conftest.
$ac_ext >&5
3546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3548 as_fn_error
77 "C compiler cannot create executables
3549 See \`config.log' for more details" "$LINENO" 5; }
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3552 $as_echo "yes" >&6; }
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3555 $as_echo_n "checking for C compiler default output file name... " >&6; }
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3557 $as_echo "$ac_file" >&6; }
3558 ac_exeext
=$ac_cv_exeext
3560 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3561 ac_clean_files
=$ac_clean_files_save
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3563 $as_echo_n "checking for suffix of executables... " >&6; }
3564 if { { ac_try
="$ac_link"
3566 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3570 $as_echo "$ac_try_echo"; } >&5
3571 (eval "$ac_link") 2>&5
3573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3574 test $ac_status = 0; }; then :
3575 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3576 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3577 # work properly (i.e., refer to `conftest.exe'), while it won't with
3579 for ac_file
in conftest.exe conftest conftest.
*; do
3580 test -f "$ac_file" ||
continue
3582 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3583 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3591 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3592 See \`config.log' for more details" "$LINENO" 5; }
3594 rm -f conftest conftest
$ac_cv_exeext
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3596 $as_echo "$ac_cv_exeext" >&6; }
3598 rm -f conftest.
$ac_ext
3599 EXEEXT
=$ac_cv_exeext
3601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3602 /* end confdefs.h. */
3607 FILE *f = fopen ("conftest.out", "w");
3608 return ferror (f) || fclose (f) != 0;
3614 ac_clean_files
="$ac_clean_files conftest.out"
3615 # Check that the compiler produces executables we can run. If not, either
3616 # the compiler is broken, or we cross compile.
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3618 $as_echo_n "checking whether we are cross compiling... " >&6; }
3619 if test "$cross_compiling" != yes; then
3620 { { ac_try
="$ac_link"
3622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3623 *) ac_try_echo=$ac_try;;
3625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3626 $as_echo "$ac_try_echo"; } >&5
3627 (eval "$ac_link") 2>&5
3629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3630 test $ac_status = 0; }
3631 if { ac_try='./conftest$ac_cv_exeext'
3632 { { case "(($ac_try" in
3633 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3634 *) ac_try_echo
=$ac_try;;
3636 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3637 $as_echo "$ac_try_echo"; } >&5
3638 (eval "$ac_try") 2>&5
3640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3641 test $ac_status = 0; }; }; then
3644 if test "$cross_compiling" = maybe
; then
3647 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3649 as_fn_error $?
"cannot run C compiled programs.
3650 If you meant to cross compile, use \`--host'.
3651 See \`config.log' for more details" "$LINENO" 5; }
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3656 $as_echo "$cross_compiling" >&6; }
3658 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3659 ac_clean_files
=$ac_clean_files_save
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3661 $as_echo_n "checking for suffix of object files... " >&6; }
3662 if ${ac_cv_objext+:} false
; then :
3663 $as_echo_n "(cached) " >&6
3665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h. */
3676 rm -f conftest.o conftest.obj
3677 if { { ac_try
="$ac_compile"
3679 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3680 *) ac_try_echo=$ac_try;;
3682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3683 $as_echo "$ac_try_echo"; } >&5
3684 (eval "$ac_compile") 2>&5
3686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3687 test $ac_status = 0; }; then :
3688 for ac_file in conftest.o conftest.obj conftest.*; do
3689 test -f "$ac_file" || continue;
3691 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3692 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3697 $as_echo "$as_me: failed program was:" >&5
3698 sed 's/^/| /' conftest.$ac_ext >&5
3700 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3702 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3703 See \
`config.log' for more details" "$LINENO" 5; }
3705 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3708 $as_echo "$ac_cv_objext" >&6; }
3709 OBJEXT=$ac_cv_objext
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3712 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3713 if ${ac_cv_c_compiler_gnu+:} false; then :
3714 $as_echo_n "(cached) " >&6
3716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717 /* end confdefs.h. */
3730 if ac_fn_c_try_compile "$LINENO"; then :
3735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3736 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3740 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3741 if test $ac_compiler_gnu = yes; then
3746 ac_test_CFLAGS=${CFLAGS+set}
3747 ac_save_CFLAGS=$CFLAGS
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3749 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3750 if ${ac_cv_prog_cc_g+:} false; then :
3751 $as_echo_n "(cached) " >&6
3753 ac_save_c_werror_flag=$ac_c_werror_flag
3754 ac_c_werror_flag=yes
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3768 if ac_fn_c_try_compile "$LINENO"; then :
3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h. */
3783 if ac_fn_c_try_compile "$LINENO"; then :
3786 ac_c_werror_flag=$ac_save_c_werror_flag
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h. */
3799 if ac_fn_c_try_compile "$LINENO"; then :
3802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3807 ac_c_werror_flag=$ac_save_c_werror_flag
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3810 $as_echo "$ac_cv_prog_cc_g" >&6; }
3811 if test "$ac_test_CFLAGS" = set; then
3812 CFLAGS=$ac_save_CFLAGS
3813 elif test $ac_cv_prog_cc_g = yes; then
3814 if test "$GCC" = yes; then
3820 if test "$GCC" = yes; then
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3827 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3828 if ${ac_cv_prog_cc_c89+:} false; then :
3829 $as_echo_n "(cached) " >&6
3831 ac_cv_prog_cc_c89=no
3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h. */
3838 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3839 struct buf { int x; };
3840 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3841 static char *e (p, i)
3847 static char *f (char * (*g) (char **, int), char **p, ...)
3852 s = g (p, va_arg (v,int));
3857 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3858 function prototypes and stuff, but not '\xHH' hex character constants.
3859 These don't provoke an error unfortunately, instead are silently treated
3860 as 'x'. The following induces an error, until -std is added to get
3861 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3862 array size at least. It's necessary to write '\x00'==0 to get something
3863 that's true only with -std. */
3864 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3866 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3867 inside strings and character constants. */
3869 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3871 int test (int i, double x);
3872 struct s1 {int (*f) (int a);};
3873 struct s2 {int (*f) (double a);};
3874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3880 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3885 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3886 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3888 CC="$ac_save_CC $ac_arg"
3889 if ac_fn_c_try_compile "$LINENO"; then :
3890 ac_cv_prog_cc_c89=$ac_arg
3892 rm -f core conftest.err conftest.$ac_objext
3893 test "x$ac_cv_prog_cc_c89" != "xno" && break
3895 rm -f conftest.$ac_ext
3900 case "x$ac_cv_prog_cc_c89" in
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3903 $as_echo "none needed" >&6; } ;;
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3906 $as_echo "unsupported" >&6; } ;;
3908 CC="$CC $ac_cv_prog_cc_c89"
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3910 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3912 if test "x$ac_cv_prog_cc_c89" != xno; then :
3917 ac_cpp='$CPP $CPPFLAGS'
3918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3923 ac_cpp='$CPP $CPPFLAGS'
3924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3928 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3929 if ${am_cv_prog_cc_c_o+:} false; then :
3930 $as_echo_n "(cached) " >&6
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h. */
3943 # Make sure it works both with $CC and with simple cc.
3944 # Following AC_PROG_CC_C_O, we do the test twice because some
3945 # compilers refuse to overwrite an existing .o file with -o,
3946 # though they will create one.
3947 am_cv_prog_cc_c_o=yes
3949 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3950 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); } \
3954 && test -f conftest2.$ac_objext; then
3957 am_cv_prog_cc_c_o=no
3961 rm -f core conftest*
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3965 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3966 if test "$am_cv_prog_cc_c_o" != yes; then
3967 # Losing compiler, so override with the script.
3968 # FIXME: It is wrong to rewrite CC.
3969 # But if we don't then we get into trouble of one sort or another.
3970 # A longer-term fix would be to have automake use am__CC in this case,
3971 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3972 CC="$am_aux_dir/compile $CC"
3975 ac_cpp='$CPP $CPPFLAGS'
3976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3981 # By default we simply use the C compiler to build assembly code.
3983 test "${CCAS+set}" = set || CCAS=$CC
3984 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3989 ac_cpp='$CPP $CPPFLAGS'
3990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3993 if test -n "$ac_tool_prefix"; then
3994 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3995 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3997 $as_echo_n "checking for $ac_word... " >&6; }
3998 if ${ac_cv_prog_CC+:} false; then :
3999 $as_echo_n "(cached) " >&6
4001 if test -n "$CC"; then
4002 ac_cv_prog_CC="$CC" # Let the user override the test.
4004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008 test -z "$as_dir" && as_dir=.
4009 for ac_exec_ext in '' $ac_executable_extensions; do
4010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4011 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4022 if test -n "$CC"; then
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4024 $as_echo "$CC" >&6; }
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4027 $as_echo "no" >&6; }
4032 if test -z "$ac_cv_prog_CC"; then
4034 # Extract the first word of "gcc", so it can be a program name with args.
4035 set dummy gcc; ac_word=$2
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4037 $as_echo_n "checking for $ac_word... " >&6; }
4038 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4039 $as_echo_n "(cached) " >&6
4041 if test -n "$ac_ct_CC"; then
4042 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048 test -z "$as_dir" && as_dir=.
4049 for ac_exec_ext in '' $ac_executable_extensions; do
4050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4051 ac_cv_prog_ac_ct_CC="gcc"
4052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4061 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4062 if test -n "$ac_ct_CC"; then
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4064 $as_echo "$ac_ct_CC" >&6; }
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4067 $as_echo "no" >&6; }
4070 if test "x$ac_ct_CC" = x; then
4073 case $cross_compiling:$ac_tool_warned in
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4077 ac_tool_warned=yes ;;
4085 if test -z "$CC"; then
4086 if test -n "$ac_tool_prefix"; then
4087 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4088 set dummy ${ac_tool_prefix}cc; ac_word=$2
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4090 $as_echo_n "checking for $ac_word... " >&6; }
4091 if ${ac_cv_prog_CC+:} false; then :
4092 $as_echo_n "(cached) " >&6
4094 if test -n "$CC"; then
4095 ac_cv_prog_CC="$CC" # Let the user override the test.
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 test -z "$as_dir" && as_dir=.
4102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4104 ac_cv_prog_CC="${ac_tool_prefix}cc"
4105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4115 if test -n "$CC"; then
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4117 $as_echo "$CC" >&6; }
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120 $as_echo "no" >&6; }
4126 if test -z "$CC"; then
4127 # Extract the first word of "cc", so it can be a program name with args.
4128 set dummy cc; ac_word=$2
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4130 $as_echo_n "checking for $ac_word... " >&6; }
4131 if ${ac_cv_prog_CC+:} false; then :
4132 $as_echo_n "(cached) " >&6
4134 if test -n "$CC"; then
4135 ac_cv_prog_CC="$CC" # Let the user override the test.
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142 test -z "$as_dir" && as_dir=.
4143 for ac_exec_ext in '' $ac_executable_extensions; do
4144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4145 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4146 ac_prog_rejected=yes
4150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4157 if test $ac_prog_rejected = yes; then
4158 # We found a bogon in the path, so make sure we never use it.
4159 set dummy $ac_cv_prog_CC
4161 if test $# != 0; then
4162 # We chose a different compiler from the bogus one.
4163 # However, it has the same basename, so the bogon will be chosen
4164 # first if we set CC to just the basename; use the full file name.
4166 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4172 if test -n "$CC"; then
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4174 $as_echo "$CC" >&6; }
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4177 $as_echo "no" >&6; }
4182 if test -z "$CC"; then
4183 if test -n "$ac_tool_prefix"; then
4184 for ac_prog in cl.exe
4186 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4187 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4189 $as_echo_n "checking for $ac_word... " >&6; }
4190 if ${ac_cv_prog_CC+:} false; then :
4191 $as_echo_n "(cached) " >&6
4193 if test -n "$CC"; then
4194 ac_cv_prog_CC="$CC" # Let the user override the test.
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 test -z "$as_dir" && as_dir=.
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4203 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4214 if test -n "$CC"; then
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4216 $as_echo "$CC" >&6; }
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4219 $as_echo "no" >&6; }
4223 test -n "$CC" && break
4226 if test -z "$CC"; then
4228 for ac_prog in cl.exe
4230 # Extract the first word of "$ac_prog", so it can be a program name with args.
4231 set dummy $ac_prog; ac_word=$2
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4233 $as_echo_n "checking for $ac_word... " >&6; }
4234 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4235 $as_echo_n "(cached) " >&6
4237 if test -n "$ac_ct_CC"; then
4238 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 test -z "$as_dir" && as_dir=.
4245 for ac_exec_ext in '' $ac_executable_extensions; do
4246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4247 ac_cv_prog_ac_ct_CC="$ac_prog"
4248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4258 if test -n "$ac_ct_CC"; then
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4260 $as_echo "$ac_ct_CC" >&6; }
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4263 $as_echo "no" >&6; }
4267 test -n "$ac_ct_CC" && break
4270 if test "x$ac_ct_CC" = x; then
4273 case $cross_compiling:$ac_tool_warned in
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4277 ac_tool_warned=yes ;;
4286 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4288 as_fn_error $? "no acceptable C compiler found
in \
$PATH
4289 See \
`config.log' for more details" "$LINENO" 5; }
4291 # Provide some information about the compiler.
4292 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4295 for ac_option in --version -v -V -qversion; do
4296 { { ac_try="$ac_compiler $ac_option >&5"
4298 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4299 *) ac_try_echo
=$ac_try;;
4301 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4302 $as_echo "$ac_try_echo"; } >&5
4303 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4305 if test -s conftest.err
; then
4307 ... rest of stderr output deleted ...
4308 10q' conftest.err
>conftest.er1
4309 cat conftest.er1
>&5
4311 rm -f conftest.er1 conftest.err
4312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4313 test $ac_status = 0; }
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4317 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4318 if ${ac_cv_c_compiler_gnu+:} false
; then :
4319 $as_echo_n "(cached) " >&6
4321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4322 /* end confdefs.h. */
4335 if ac_fn_c_try_compile
"$LINENO"; then :
4340 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4341 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4345 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4346 if test $ac_compiler_gnu = yes; then
4351 ac_test_CFLAGS
=${CFLAGS+set}
4352 ac_save_CFLAGS
=$CFLAGS
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4354 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4355 if ${ac_cv_prog_cc_g+:} false
; then :
4356 $as_echo_n "(cached) " >&6
4358 ac_save_c_werror_flag
=$ac_c_werror_flag
4359 ac_c_werror_flag
=yes
4362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4363 /* end confdefs.h. */
4373 if ac_fn_c_try_compile
"$LINENO"; then :
4377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4378 /* end confdefs.h. */
4388 if ac_fn_c_try_compile
"$LINENO"; then :
4391 ac_c_werror_flag
=$ac_save_c_werror_flag
4393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4394 /* end confdefs.h. */
4404 if ac_fn_c_try_compile
"$LINENO"; then :
4407 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4409 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4412 ac_c_werror_flag
=$ac_save_c_werror_flag
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4415 $as_echo "$ac_cv_prog_cc_g" >&6; }
4416 if test "$ac_test_CFLAGS" = set; then
4417 CFLAGS
=$ac_save_CFLAGS
4418 elif test $ac_cv_prog_cc_g = yes; then
4419 if test "$GCC" = yes; then
4425 if test "$GCC" = yes; then
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4432 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4433 if ${ac_cv_prog_cc_c89+:} false
; then :
4434 $as_echo_n "(cached) " >&6
4436 ac_cv_prog_cc_c89
=no
4438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4439 /* end confdefs.h. */
4443 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4444 struct buf { int x; };
4445 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4446 static char *e (p, i)
4452 static char *f (char * (*g) (char **, int), char **p, ...)
4457 s = g (p, va_arg (v,int));
4462 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4463 function prototypes and stuff, but not '\xHH' hex character constants.
4464 These don't provoke an error unfortunately, instead are silently treated
4465 as 'x'. The following induces an error, until -std is added to get
4466 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4467 array size at least. It's necessary to write '\x00'==0 to get something
4468 that's true only with -std. */
4469 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4471 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4472 inside strings and character constants. */
4474 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4476 int test (int i, double x);
4477 struct s1 {int (*f) (int a);};
4478 struct s2 {int (*f) (double a);};
4479 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4485 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4490 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
4491 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4493 CC
="$ac_save_CC $ac_arg"
4494 if ac_fn_c_try_compile
"$LINENO"; then :
4495 ac_cv_prog_cc_c89
=$ac_arg
4497 rm -f core conftest.err conftest.
$ac_objext
4498 test "x$ac_cv_prog_cc_c89" != "xno" && break
4500 rm -f conftest.
$ac_ext
4505 case "x$ac_cv_prog_cc_c89" in
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4508 $as_echo "none needed" >&6; } ;;
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4511 $as_echo "unsupported" >&6; } ;;
4513 CC
="$CC $ac_cv_prog_cc_c89"
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4515 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4517 if test "x$ac_cv_prog_cc_c89" != xno
; then :
4522 ac_cpp
='$CPP $CPPFLAGS'
4523 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4524 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4528 ac_cpp
='$CPP $CPPFLAGS'
4529 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4530 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4531 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4533 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4534 if ${am_cv_prog_cc_c_o+:} false
; then :
4535 $as_echo_n "(cached) " >&6
4537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h. */
4548 # Make sure it works both with $CC and with simple cc.
4549 # Following AC_PROG_CC_C_O, we do the test twice because some
4550 # compilers refuse to overwrite an existing .o file with -o,
4551 # though they will create one.
4552 am_cv_prog_cc_c_o
=yes
4554 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4555 ($CC -c conftest.
$ac_ext -o conftest2.
$ac_objext) >&5 2>&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } \
4559 && test -f conftest2.
$ac_objext; then
4562 am_cv_prog_cc_c_o
=no
4566 rm -f core conftest
*
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4570 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4571 if test "$am_cv_prog_cc_c_o" != yes; then
4572 # Losing compiler, so override with the script.
4573 # FIXME: It is wrong to rewrite CC.
4574 # But if we don't then we get into trouble of one sort or another.
4575 # A longer-term fix would be to have automake use am__CC in this case,
4576 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4577 CC
="$am_aux_dir/compile $CC"
4580 ac_cpp
='$CPP $CPPFLAGS'
4581 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4582 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4583 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4587 ac_compile
='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
4588 ac_link
='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4590 if test -n "$ac_tool_prefix"; then
4591 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
4592 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4594 $as_echo_n "checking for $ac_word... " >&6; }
4595 if ${ac_cv_prog_GDC+:} false
; then :
4596 $as_echo_n "(cached) " >&6
4598 if test -n "$GDC"; then
4599 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
4601 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4605 test -z "$as_dir" && as_dir
=.
4606 for ac_exec_ext
in '' $ac_executable_extensions; do
4607 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4608 ac_cv_prog_GDC
="${ac_tool_prefix}gdc"
4609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4619 if test -n "$GDC"; then
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4621 $as_echo "$GDC" >&6; }
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4624 $as_echo "no" >&6; }
4629 if test -z "$ac_cv_prog_GDC"; then
4631 # Extract the first word of "gdc", so it can be a program name with args.
4632 set dummy gdc
; ac_word
=$2
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4634 $as_echo_n "checking for $ac_word... " >&6; }
4635 if ${ac_cv_prog_ac_ct_GDC+:} false
; then :
4636 $as_echo_n "(cached) " >&6
4638 if test -n "$ac_ct_GDC"; then
4639 ac_cv_prog_ac_ct_GDC
="$ac_ct_GDC" # Let the user override the test.
4641 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4645 test -z "$as_dir" && as_dir
=.
4646 for ac_exec_ext
in '' $ac_executable_extensions; do
4647 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4648 ac_cv_prog_ac_ct_GDC
="gdc"
4649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4658 ac_ct_GDC
=$ac_cv_prog_ac_ct_GDC
4659 if test -n "$ac_ct_GDC"; then
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
4661 $as_echo "$ac_ct_GDC" >&6; }
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664 $as_echo "no" >&6; }
4667 if test "x$ac_ct_GDC" = x
; then
4670 case $cross_compiling:$ac_tool_warned in
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4674 ac_tool_warned
=yes ;;
4679 GDC
="$ac_cv_prog_GDC"
4682 if test -z "$GDC"; then
4683 if test -n "$ac_tool_prefix"; then
4684 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
4685 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687 $as_echo_n "checking for $ac_word... " >&6; }
4688 if ${ac_cv_prog_GDC+:} false
; then :
4689 $as_echo_n "(cached) " >&6
4691 if test -n "$GDC"; then
4692 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
4694 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4698 test -z "$as_dir" && as_dir
=.
4699 for ac_exec_ext
in '' $ac_executable_extensions; do
4700 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4701 ac_cv_prog_GDC
="$ac_tool_prefix}gdc"
4702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4712 if test -n "$GDC"; then
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4714 $as_echo "$GDC" >&6; }
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4723 if test -z "$GDC"; then
4724 # Extract the first word of "gdc", so it can be a program name with args.
4725 set dummy gdc
; ac_word
=$2
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4727 $as_echo_n "checking for $ac_word... " >&6; }
4728 if ${ac_cv_prog_GDC+:} false
; then :
4729 $as_echo_n "(cached) " >&6
4731 if test -n "$GDC"; then
4732 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
4735 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4739 test -z "$as_dir" && as_dir
=.
4740 for ac_exec_ext
in '' $ac_executable_extensions; do
4741 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4742 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
4743 ac_prog_rejected
=yes
4746 ac_cv_prog_GDC
="gdc"
4747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4754 if test $ac_prog_rejected = yes; then
4755 # We found a bogon in the path, so make sure we never use it.
4756 set dummy
$ac_cv_prog_GDC
4758 if test $# != 0; then
4759 # We chose a different compiler from the bogus one.
4760 # However, it has the same basename, so the bogon will be chosen
4761 # first if we set GDC to just the basename; use the full file name.
4763 ac_cv_prog_GDC
="$as_dir/$ac_word${1+' '}$@"
4769 if test -n "$GDC"; then
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4771 $as_echo "$GDC" >&6; }
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4774 $as_echo "no" >&6; }
4781 # Provide some information about the compiler.
4782 $as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
4785 { { ac_try
="$ac_compiler --version >&5"
4787 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4788 *) ac_try_echo=$ac_try;;
4790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4791 $as_echo "$ac_try_echo"; } >&5
4792 (eval "$ac_compiler --version >&5") 2>conftest.err
4794 if test -s conftest.err; then
4796 ... rest of stderr output deleted ...
4797 10q' conftest.err >conftest.er1
4798 cat conftest.er1 >&5
4800 rm -f conftest.er1 conftest.err
4801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4802 test $ac_status = 0; }
4804 ac_cpp='$CPP $CPPFLAGS'
4805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
4811 $as_echo_n "checking for absolute libphobos source path... " >&6; }
4812 if ${phobos_cv_abs_srcdir+:} false; then :
4813 $as_echo_n "(cached) " >&6
4815 phobos_cv_abs_srcdir=`cd $srcdir && pwd`
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
4818 $as_echo "$phobos_cv_abs_srcdir" >&6; }
4819 if test -d "$phobos_cv_abs_srcdir"; then :
4822 as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
4828 gdc_save_DFLAGS=$GDCFLAGS
4829 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
4832 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
4833 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
4837 $as_echo_n "checking If $GDC can compile D sources... " >&6; }
4838 cat > conftest.$ac_ext <<_ACEOF
4842 extern(C) int main() {
4846 if ac_fn_d_try_compile "$LINENO"; then :
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4848 $as_echo "yes" >&6; }
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851 $as_echo "no" >&6; }
4852 as_fn_error $? "can't compile D sources!" "$LINENO" 5
4854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4856 ac_cpp='$CPP $CPPFLAGS'
4857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4862 GDCFLAGS=$gdc_save_DFLAGS
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4870 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4871 # Check whether --enable-maintainer-mode was given.
4872 if test "${enable_maintainer_mode+set}" = set; then :
4873 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4875 USE_MAINTAINER_MODE=no
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4879 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4880 if test $USE_MAINTAINER_MODE = yes; then
4881 MAINTAINER_MODE_TRUE=
4882 MAINTAINER_MODE_FALSE='#'
4884 MAINTAINER_MODE_TRUE='#'
4885 MAINTAINER_MODE_FALSE=
4888 MAINT=$MAINTAINER_MODE_TRUE
4891 if test -n "$ac_tool_prefix"; then
4892 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4893 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4895 $as_echo_n "checking for $ac_word... " >&6; }
4896 if ${ac_cv_prog_RANLIB+:} false; then :
4897 $as_echo_n "(cached) " >&6
4899 if test -n "$RANLIB"; then
4900 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4909 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 RANLIB=$ac_cv_prog_RANLIB
4920 if test -n "$RANLIB"; then
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4922 $as_echo "$RANLIB" >&6; }
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925 $as_echo "no" >&6; }
4930 if test -z "$ac_cv_prog_RANLIB"; then
4931 ac_ct_RANLIB=$RANLIB
4932 # Extract the first word of "ranlib", so it can be a program name with args.
4933 set dummy ranlib; ac_word=$2
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4935 $as_echo_n "checking for $ac_word... " >&6; }
4936 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4937 $as_echo_n "(cached) " >&6
4939 if test -n "$ac_ct_RANLIB"; then
4940 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946 test -z "$as_dir" && as_dir=.
4947 for ac_exec_ext in '' $ac_executable_extensions; do
4948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4949 ac_cv_prog_ac_ct_RANLIB="ranlib"
4950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4959 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4960 if test -n "$ac_ct_RANLIB"; then
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4962 $as_echo "$ac_ct_RANLIB" >&6; }
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965 $as_echo "no" >&6; }
4968 if test "x$ac_ct_RANLIB" = x; then
4971 case $cross_compiling:$ac_tool_warned in
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4975 ac_tool_warned=yes ;;
4977 RANLIB=$ac_ct_RANLIB
4980 RANLIB="$ac_cv_prog_RANLIB"
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4985 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4987 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4988 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4989 $as_echo_n "(cached) " >&6
4991 cat >conftest.make <<\_ACEOF
4994 @echo '@@@%%%=$(MAKE)=@@@%%%'
4996 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4997 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
4999 eval ac_cv_prog_make_${ac_make}_set=yes;;
5001 eval ac_cv_prog_make_${ac_make}_set=no;;
5005 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5007 $as_echo "yes" >&6; }
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5011 $as_echo "no" >&6; }
5012 SET_MAKE="MAKE=${MAKE-make}"
5016 # This should be inherited in the recursive make, but ensure it is defined.
5020 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&5
5028 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&2;} ;;
5033 macro_version='2.2.7a'
5034 macro_revision='1.3134'
5048 ltmain="$ac_aux_dir/ltmain.sh"
5050 # Backslashify metacharacters that are still active within
5051 # double-quoted strings.
5052 sed_quote_subst='s/\(["`$
\\]\
)/\\\
1/g
'
5054 # Same as above, but do not quote variable references.
5055 double_quote_subst='s
/\
(["`\\]\)/\\\1/g'
5057 # Sed substitution to delay expansion of an escaped shell variable in a
5058 # double_quote_subst'ed string.
5059 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5061 # Sed substitution to delay expansion of an escaped single quote.
5062 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5064 # Sed substitution to avoid accidental globbing in evaled expressions
5065 no_glob_subst='s/\*/\\\*/g'
5067 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5068 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5069 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print
strings" >&5
5072 $as_echo_n "checking how to print
strings...
" >&6; }
5073 # Test print first, because it will be a builtin if present.
5074 if test "X
`print -r -- -n 2>/dev/null`" = X-n && \
5075 test "X
`print -r -- $ECHO 2>/dev/null`" = "X
$ECHO"; then
5077 elif test "X
`printf %s $ECHO 2>/dev/null`" = "X
$ECHO"; then
5080 # Use this function as a fallback that always works.
5081 func_fallback_echo ()
5083 eval 'cat <<_LTECHO_EOF
5087 ECHO='func_fallback_echo'
5090 # func_echo_all arg...
5091 # Invoke $ECHO with all args, space-separated.
5098 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: printf" >&5
5099 $as_echo "printf" >&6; } ;;
5100 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: print
-r" >&5
5101 $as_echo "print
-r" >&6; } ;;
5102 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: cat" >&5
5103 $as_echo "cat" >&6; } ;;
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a
sed that does not truncate output
" >&5
5120 $as_echo_n "checking
for a
sed that does not truncate output...
" >&6; }
5121 if ${ac_cv_path_SED+:} false; then :
5122 $as_echo_n "(cached
) " >&6
5124 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5125 for ac_i in 1 2 3 4 5 6 7; do
5126 ac_script="$ac_script$as_nl$ac_script"
5128 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5129 { ac_script=; unset ac_script;}
5130 if test -z "$SED"; then
5131 ac_path_SED_found=false
5132 # Loop through the user's path and test for each of PROGNAME-LIST
5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 test -z "$as_dir" && as_dir=.
5138 for ac_prog in sed gsed; do
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5141 as_fn_executable_p "$ac_path_SED" || continue
5142 # Check for GNU ac_path_SED and select it if it is found.
5143 # Check for GNU $ac_path_SED
5144 case `"$ac_path_SED" --version 2>&1` in
5146 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5149 $as_echo_n 0123456789 >"conftest.
in"
5152 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5153 mv "conftest.tmp
" "conftest.
in"
5154 cp "conftest.
in" "conftest.
nl"
5155 $as_echo '' >> "conftest.
nl"
5156 "$ac_path_SED" -f conftest.sed < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5157 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5158 as_fn_arith $ac_count + 1 && ac_count=$as_val
5159 if test $ac_count -gt ${ac_path_SED_max-0}; then
5160 # Best one so far, save it but keep looking for a better one
5161 ac_cv_path_SED="$ac_path_SED"
5162 ac_path_SED_max=$ac_count
5164 # 10*(2^10) chars as input seems more than enough
5165 test $ac_count -gt 10 && break
5167 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5170 $ac_path_SED_found && break 3
5175 if test -z "$ac_cv_path_SED"; then
5176 as_fn_error $? "no acceptable
sed could be found
in \
$PATH" "$LINENO" 5
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_SED" >&5
5184 $as_echo "$ac_cv_path_SED" >&6; }
5185 SED="$ac_cv_path_SED"
5188 test -z "$SED" && SED=sed
5189 Xsed="$SED -e 1s
/^X
//"
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
5202 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
5203 if ${ac_cv_path_GREP+:} false; then :
5204 $as_echo_n "(cached
) " >&6
5206 if test -z "$GREP"; then
5207 ac_path_GREP_found=false
5208 # Loop through the user's path and test for each of PROGNAME-LIST
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5213 test -z "$as_dir" && as_dir=.
5214 for ac_prog in grep ggrep; do
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5217 as_fn_executable_p "$ac_path_GREP" || continue
5218 # Check for GNU ac_path_GREP and select it if it is found.
5219 # Check for GNU $ac_path_GREP
5220 case `"$ac_path_GREP" --version 2>&1` in
5222 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5225 $as_echo_n 0123456789 >"conftest.
in"
5228 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5229 mv "conftest.tmp
" "conftest.
in"
5230 cp "conftest.
in" "conftest.
nl"
5231 $as_echo 'GREP' >> "conftest.
nl"
5232 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5233 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5234 as_fn_arith $ac_count + 1 && ac_count=$as_val
5235 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5236 # Best one so far, save it but keep looking for a better one
5237 ac_cv_path_GREP="$ac_path_GREP"
5238 ac_path_GREP_max=$ac_count
5240 # 10*(2^10) chars as input seems more than enough
5241 test $ac_count -gt 10 && break
5243 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5246 $ac_path_GREP_found && break 3
5251 if test -z "$ac_cv_path_GREP"; then
5252 as_fn_error $? "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5255 ac_cv_path_GREP=$GREP
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
5260 $as_echo "$ac_cv_path_GREP" >&6; }
5261 GREP="$ac_cv_path_GREP"
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
5265 $as_echo_n "checking
for egrep...
" >&6; }
5266 if ${ac_cv_path_EGREP+:} false; then :
5267 $as_echo_n "(cached
) " >&6
5269 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5270 then ac_cv_path_EGREP="$GREP -E"
5272 if test -z "$EGREP"; then
5273 ac_path_EGREP_found=false
5274 # Loop through the user's path and test for each of PROGNAME-LIST
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5279 test -z "$as_dir" && as_dir=.
5280 for ac_prog in egrep; do
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5283 as_fn_executable_p "$ac_path_EGREP" || continue
5284 # Check for GNU ac_path_EGREP and select it if it is found.
5285 # Check for GNU $ac_path_EGREP
5286 case `"$ac_path_EGREP" --version 2>&1` in
5288 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5291 $as_echo_n 0123456789 >"conftest.
in"
5294 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5295 mv "conftest.tmp
" "conftest.
in"
5296 cp "conftest.
in" "conftest.
nl"
5297 $as_echo 'EGREP' >> "conftest.
nl"
5298 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5299 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5300 as_fn_arith $ac_count + 1 && ac_count=$as_val
5301 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5302 # Best one so far, save it but keep looking for a better one
5303 ac_cv_path_EGREP="$ac_path_EGREP"
5304 ac_path_EGREP_max=$ac_count
5306 # 10*(2^10) chars as input seems more than enough
5307 test $ac_count -gt 10 && break
5309 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5312 $ac_path_EGREP_found && break 3
5317 if test -z "$ac_cv_path_EGREP"; then
5318 as_fn_error $? "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5321 ac_cv_path_EGREP=$EGREP
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
5327 $as_echo "$ac_cv_path_EGREP" >&6; }
5328 EGREP="$ac_cv_path_EGREP"
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for fgrep
" >&5
5332 $as_echo_n "checking
for fgrep...
" >&6; }
5333 if ${ac_cv_path_FGREP+:} false; then :
5334 $as_echo_n "(cached
) " >&6
5336 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5337 then ac_cv_path_FGREP="$GREP -F"
5339 if test -z "$FGREP"; then
5340 ac_path_FGREP_found=false
5341 # Loop through the user's path and test for each of PROGNAME-LIST
5342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5346 test -z "$as_dir" && as_dir=.
5347 for ac_prog in fgrep; do
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5350 as_fn_executable_p "$ac_path_FGREP" || continue
5351 # Check for GNU ac_path_FGREP and select it if it is found.
5352 # Check for GNU $ac_path_FGREP
5353 case `"$ac_path_FGREP" --version 2>&1` in
5355 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5358 $as_echo_n 0123456789 >"conftest.
in"
5361 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5362 mv "conftest.tmp
" "conftest.
in"
5363 cp "conftest.
in" "conftest.
nl"
5364 $as_echo 'FGREP' >> "conftest.
nl"
5365 "$ac_path_FGREP" FGREP < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5366 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5367 as_fn_arith $ac_count + 1 && ac_count=$as_val
5368 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5369 # Best one so far, save it but keep looking for a better one
5370 ac_cv_path_FGREP="$ac_path_FGREP"
5371 ac_path_FGREP_max=$ac_count
5373 # 10*(2^10) chars as input seems more than enough
5374 test $ac_count -gt 10 && break
5376 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5379 $ac_path_FGREP_found && break 3
5384 if test -z "$ac_cv_path_FGREP"; then
5385 as_fn_error $? "no acceptable fgrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5388 ac_cv_path_FGREP=$FGREP
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_FGREP" >&5
5394 $as_echo "$ac_cv_path_FGREP" >&6; }
5395 FGREP="$ac_cv_path_FGREP"
5398 test -z "$GREP" && GREP=grep
5418 # Check whether --with-gnu-ld was given.
5419 if test "${with_gnu_ld+set}" = set; then :
5420 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5426 if test "$GCC" = yes; then
5427 # Check if gcc -print-prog-name=ld gives a path.
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld used by
$CC" >&5
5429 $as_echo_n "checking
for ld used by
$CC...
" >&6; }
5432 # gcc leaves a trailing carriage return which upsets mingw
5433 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5435 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5438 # Accept absolute paths.
5440 re_direlt='/[^/][^/]*/\.\./'
5441 # Canonicalize the pathname of ld
5442 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5443 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5444 ac_prog=`$ECHO $ac_prog| $SED "s
%$re_direlt%/%"`
5446 test -z "$LD" && LD="$ac_prog"
5449 # If it fails, then pretend we aren't using GCC.
5453 # If it is relative, then search for the first ld in PATH.
5457 elif test "$with_gnu_ld" = yes; then
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for GNU ld
" >&5
5459 $as_echo_n "checking
for GNU ld...
" >&6; }
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for non-GNU ld
" >&5
5462 $as_echo_n "checking
for non-GNU ld...
" >&6; }
5464 if ${lt_cv_path_LD+:} false; then :
5465 $as_echo_n "(cached
) " >&6
5467 if test -z "$LD"; then
5468 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5469 for ac_dir in $PATH; do
5471 test -z "$ac_dir" && ac_dir=.
5472 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5473 lt_cv_path_LD="$ac_dir/$ac_prog"
5474 # Check to see if the program is GNU ld. I'd rather use --version,
5475 # but apparently some variants of GNU ld only accept -v.
5476 # Break only if it was the GNU/non-GNU ld that we prefer.
5477 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5478 *GNU* | *'with BFD'*)
5479 test "$with_gnu_ld" != no && break
5482 test "$with_gnu_ld" != yes && break
5489 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5494 if test -n "$LD"; then
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
5496 $as_echo "$LD" >&6; }
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5499 $as_echo "no
" >&6; }
5501 test -z "$LD" && as_fn_error $? "no acceptable ld found
in \
$PATH" "$LINENO" 5
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if the linker
($LD) is GNU ld
" >&5
5503 $as_echo_n "checking
if the linker
($LD) is GNU ld...
" >&6; }
5504 if ${lt_cv_prog_gnu_ld+:} false; then :
5505 $as_echo_n "(cached
) " >&6
5507 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5508 case `$LD -v 2>&1 </dev/null` in
5509 *GNU* | *'with BFD'*)
5510 lt_cv_prog_gnu_ld=yes
5513 lt_cv_prog_gnu_ld=no
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_gnu_ld" >&5
5518 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5519 with_gnu_ld=$lt_cv_prog_gnu_ld
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for BSD- or MS-compatible name lister
(nm
)" >&5
5530 $as_echo_n "checking
for BSD- or MS-compatible name lister
(nm
)...
" >&6; }
5531 if ${lt_cv_path_NM+:} false; then :
5532 $as_echo_n "(cached
) " >&6
5534 if test -n "$NM"; then
5535 # Let the user override the test.
5538 lt_nm_to_check="${ac_tool_prefix}nm
"
5539 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5540 lt_nm_to_check="$lt_nm_to_check nm
"
5542 for lt_tmp_nm in $lt_nm_to_check; do
5543 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5544 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5546 test -z "$ac_dir" && ac_dir=.
5547 tmp_nm="$ac_dir/$lt_tmp_nm"
5548 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5549 # Check to see if the nm accepts a BSD-compat flag.
5550 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5551 # nm: unknown option "B
" ignored
5552 # Tru64's nm complains that /dev/null is an invalid object file
5553 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5554 */dev/null* | *'Invalid file or object type'*)
5555 lt_cv_path_NM="$tmp_nm -B"
5559 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5561 lt_cv_path_NM="$tmp_nm -p"
5565 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5566 continue # so that we can try to find one that supports BSD flags
5575 : ${lt_cv_path_NM=no}
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_NM" >&5
5579 $as_echo "$lt_cv_path_NM" >&6; }
5580 if test "$lt_cv_path_NM" != "no
"; then
5583 # Didn't find any BSD compatible name lister, look for dumpbin.
5584 if test -n "$DUMPBIN"; then :
5585 # Let the user override the test.
5587 if test -n "$ac_tool_prefix"; then
5588 for ac_prog in dumpbin "link
-dump"
5590 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5591 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5593 $as_echo_n "checking
for $ac_word...
" >&6; }
5594 if ${ac_cv_prog_DUMPBIN+:} false; then :
5595 $as_echo_n "(cached
) " >&6
5597 if test -n "$DUMPBIN"; then
5598 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5604 test -z "$as_dir" && as_dir=.
5605 for ac_exec_ext in '' $ac_executable_extensions; do
5606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5607 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5608 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5617 DUMPBIN=$ac_cv_prog_DUMPBIN
5618 if test -n "$DUMPBIN"; then
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DUMPBIN" >&5
5620 $as_echo "$DUMPBIN" >&6; }
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5623 $as_echo "no
" >&6; }
5627 test -n "$DUMPBIN" && break
5630 if test -z "$DUMPBIN"; then
5631 ac_ct_DUMPBIN=$DUMPBIN
5632 for ac_prog in dumpbin "link
-dump"
5634 # Extract the first word of "$ac_prog", so it can be a program name with args.
5635 set dummy $ac_prog; ac_word=$2
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5637 $as_echo_n "checking
for $ac_word...
" >&6; }
5638 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5639 $as_echo_n "(cached
) " >&6
5641 if test -n "$ac_ct_DUMPBIN"; then
5642 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648 test -z "$as_dir" && as_dir=.
5649 for ac_exec_ext in '' $ac_executable_extensions; do
5650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5651 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5652 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5661 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5662 if test -n "$ac_ct_DUMPBIN"; then
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DUMPBIN" >&5
5664 $as_echo "$ac_ct_DUMPBIN" >&6; }
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5667 $as_echo "no
" >&6; }
5671 test -n "$ac_ct_DUMPBIN" && break
5674 if test "x
$ac_ct_DUMPBIN" = x; then
5677 case $cross_compiling:$ac_tool_warned in
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5680 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5681 ac_tool_warned=yes ;;
5683 DUMPBIN=$ac_ct_DUMPBIN
5687 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5689 DUMPBIN="$DUMPBIN -symbols"
5697 if test "$DUMPBIN" != ":"; then
5701 test -z "$NM" && NM=nm
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister
($NM) interface
" >&5
5709 $as_echo_n "checking the name lister
($NM) interface...
" >&6; }
5710 if ${lt_cv_nm_interface+:} false; then :
5711 $as_echo_n "(cached
) " >&6
5713 lt_cv_nm_interface="BSD nm
"
5714 echo "int some_variable
= 0;" > conftest.$ac_ext
5715 (eval echo "\"\
$as_me:$LINENO: $ac_compile\"" >&5)
5716 (eval "$ac_compile" 2>conftest.err)
5717 cat conftest.err >&5
5718 (eval echo "\"\
$as_me:$LINENO: $NM \\\"conftest.
$ac_objext\\\"\"" >&5)
5719 (eval "$NM \"conftest.
$ac_objext\"" 2>conftest.err > conftest.out)
5720 cat conftest.err >&5
5721 (eval echo "\"\
$as_me:$LINENO: output
\"" >&5)
5722 cat conftest.out >&5
5723 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5724 lt_cv_nm_interface="MS dumpbin
"
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_nm_interface" >&5
5729 $as_echo "$lt_cv_nm_interface" >&6; }
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
ln -s works
" >&5
5732 $as_echo_n "checking whether
ln -s works...
" >&6; }
5734 if test "$LN_S" = "ln -s"; then
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
5736 $as_echo "yes" >&6; }
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
, using
$LN_S" >&5
5739 $as_echo "no
, using
$LN_S" >&6; }
5742 # find the maximum length of command line arguments
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of
command line arguments
" >&5
5744 $as_echo_n "checking the maximum length of
command line arguments...
" >&6; }
5745 if ${lt_cv_sys_max_cmd_len+:} false; then :
5746 $as_echo_n "(cached
) " >&6
5753 # On DJGPP, this test can blow up pretty badly due to problems in libc
5754 # (any single argument exceeding 2000 bytes causes a buffer overrun
5755 # during glob expansion). Even if it were fixed, the result of this
5756 # check would be larger than it should be.
5757 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5761 # Under GNU Hurd, this test is not required because there is
5762 # no limit to the length of command line arguments.
5763 # Libtool will interpret -1 as no limit whatsoever
5764 lt_cv_sys_max_cmd_len=-1;
5767 cygwin* | mingw* | cegcc*)
5768 # On Win9x/ME, this test blows up -- it succeeds, but takes
5769 # about 5 minutes as the teststring grows exponentially.
5770 # Worse, since 9x/ME are not pre-emptively multitasking,
5771 # you end up with a "frozen
" computer, even though with patience
5772 # the test eventually succeeds (with a max line length of 256k).
5773 # Instead, let's just punt: use the minimum linelength reported by
5774 # all of the supported platforms: 8192 (on NT/2K/XP).
5775 lt_cv_sys_max_cmd_len=8192;
5779 # On MiNT this can take a long time and run out of memory.
5780 lt_cv_sys_max_cmd_len=8192;
5784 # On AmigaOS with pdksh, this test takes hours, literally.
5785 # So we just punt and use a minimum line length of 8192.
5786 lt_cv_sys_max_cmd_len=8192;
5789 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5790 # This has been around since 386BSD, at least. Likely further.
5791 if test -x /sbin/sysctl; then
5792 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5793 elif test -x /usr/sbin/sysctl; then
5794 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5796 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5798 # And add a safety zone
5799 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5800 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5804 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5805 lt_cv_sys_max_cmd_len=196608
5809 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5810 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5811 # nice to cause kernel panics so lets avoid the loop below.
5812 # First set a reasonable default.
5813 lt_cv_sys_max_cmd_len=16384
5815 if test -x /sbin/sysconfig; then
5816 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5817 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5822 lt_cv_sys_max_cmd_len=102400
5824 sysv5* | sco5v6* | sysv4.2uw2*)
5825 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5826 if test -n "$kargmax"; then
5827 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5829 lt_cv_sys_max_cmd_len=32768
5833 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5834 if test -n "$lt_cv_sys_max_cmd_len"; then
5835 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5836 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5838 # Make teststring a little bigger before we do anything with it.
5839 # a 1K string should be a reasonable start.
5840 for i in 1 2 3 4 5 6 7 8 ; do
5841 teststring=$teststring$teststring
5843 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5844 # If test is not a shell built-in, we'll probably end up computing a
5845 # maximum length that is only half of the actual maximum length, but
5847 while { test "X
"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5848 = "X
$teststring$teststring"; } >/dev/null 2>&1 &&
5849 test $i != 17 # 1/2 MB should be enough
5852 teststring=$teststring$teststring
5854 # Only check the string length outside the loop.
5855 lt_cv_sys_max_cmd_len=`expr "X
$teststring" : ".
*" 2>&1`
5857 # Add a significant safety factor because C++ compilers can tack on
5858 # massive amounts of additional arguments before passing them to the
5859 # linker. It appears as though 1/2 is a usable value.
5860 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5867 if test -n $lt_cv_sys_max_cmd_len ; then
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sys_max_cmd_len" >&5
5869 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none
" >&5
5872 $as_echo "none
" >&6; }
5874 max_cmd_len=$lt_cv_sys_max_cmd_len
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs
" >&5
5886 $as_echo_n "checking whether the shell understands some XSI constructs...
" >&6; }
5887 # Try some XSI features
5890 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5892 && eval 'test $(( 1 + 1 )) -eq 2 \
5893 && test "${#_lt_dummy}" -eq 5' ) >/dev
/null
2>&1 \
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5896 $as_echo "$xsi_shell" >&6; }
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5900 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5902 ( foo
=bar
; set foo baz
; eval "$1+=\$2" && test "$foo" = barbaz
) \
5904 && lt_shell_append
=yes
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5906 $as_echo "$lt_shell_append" >&6; }
5909 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
5919 # test EBCDIC or ASCII
5920 case `echo X|tr X '\101'` in
5921 A
) # ASCII based system
5922 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5923 lt_SP2NL
='tr \040 \012'
5924 lt_NL2SP
='tr \015\012 \040\040'
5926 *) # EBCDIC based system
5927 lt_SP2NL
='tr \100 \n'
5928 lt_NL2SP
='tr \r\n \100\100'
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5941 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5942 if ${lt_cv_ld_reload_flag+:} false
; then :
5943 $as_echo_n "(cached) " >&6
5945 lt_cv_ld_reload_flag
='-r'
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5948 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5949 reload_flag
=$lt_cv_ld_reload_flag
5950 case $reload_flag in
5952 *) reload_flag
=" $reload_flag" ;;
5954 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5957 if test "$GCC" = yes; then
5958 reload_cmds
='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5960 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5973 if test -n "$ac_tool_prefix"; then
5974 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5975 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5977 $as_echo_n "checking for $ac_word... " >&6; }
5978 if ${ac_cv_prog_OBJDUMP+:} false
; then :
5979 $as_echo_n "(cached) " >&6
5981 if test -n "$OBJDUMP"; then
5982 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
5984 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5988 test -z "$as_dir" && as_dir
=.
5989 for ac_exec_ext
in '' $ac_executable_extensions; do
5990 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5991 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
5992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6001 OBJDUMP
=$ac_cv_prog_OBJDUMP
6002 if test -n "$OBJDUMP"; then
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6004 $as_echo "$OBJDUMP" >&6; }
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6007 $as_echo "no" >&6; }
6012 if test -z "$ac_cv_prog_OBJDUMP"; then
6013 ac_ct_OBJDUMP
=$OBJDUMP
6014 # Extract the first word of "objdump", so it can be a program name with args.
6015 set dummy objdump
; ac_word
=$2
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6017 $as_echo_n "checking for $ac_word... " >&6; }
6018 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false
; then :
6019 $as_echo_n "(cached) " >&6
6021 if test -n "$ac_ct_OBJDUMP"; then
6022 ac_cv_prog_ac_ct_OBJDUMP
="$ac_ct_OBJDUMP" # Let the user override the test.
6024 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6028 test -z "$as_dir" && as_dir
=.
6029 for ac_exec_ext
in '' $ac_executable_extensions; do
6030 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6031 ac_cv_prog_ac_ct_OBJDUMP
="objdump"
6032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6041 ac_ct_OBJDUMP
=$ac_cv_prog_ac_ct_OBJDUMP
6042 if test -n "$ac_ct_OBJDUMP"; then
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6044 $as_echo "$ac_ct_OBJDUMP" >&6; }
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6047 $as_echo "no" >&6; }
6050 if test "x$ac_ct_OBJDUMP" = x
; then
6053 case $cross_compiling:$ac_tool_warned in
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6057 ac_tool_warned
=yes ;;
6059 OBJDUMP
=$ac_ct_OBJDUMP
6062 OBJDUMP
="$ac_cv_prog_OBJDUMP"
6065 test -z "$OBJDUMP" && OBJDUMP
=objdump
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6076 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6077 if ${lt_cv_deplibs_check_method+:} false
; then :
6078 $as_echo_n "(cached) " >&6
6080 lt_cv_file_magic_cmd
='$MAGIC_CMD'
6081 lt_cv_file_magic_test_file
=
6082 lt_cv_deplibs_check_method
='unknown'
6083 # Need to set the preceding variable on all platforms that support
6084 # interlibrary dependencies.
6085 # 'none' -- dependencies not supported.
6086 # `unknown' -- same as none, but documents that we really don't know.
6087 # 'pass_all' -- all dependencies passed with no checks.
6088 # 'test_compile' -- check by making test program.
6089 # 'file_magic [[regex]]' -- check by looking for files in library path
6090 # which responds to the $file_magic_cmd with a given extended regex.
6091 # If you have `file' or equivalent on your system and you're not sure
6092 # whether `pass_all' will *always* work, you probably want this one.
6096 lt_cv_deplibs_check_method
=pass_all
6100 lt_cv_deplibs_check_method
=pass_all
6104 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6105 lt_cv_file_magic_cmd
='/usr/bin/file -L'
6106 lt_cv_file_magic_test_file
=/shlib
/libc.so
6110 # func_win32_libid is a shell function defined in ltmain.sh
6111 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6112 lt_cv_file_magic_cmd
='func_win32_libid'
6116 # Base MSYS/MinGW do not provide the 'file' command needed by
6117 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6118 # unless we find 'file', for example because we are cross-compiling.
6119 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6120 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev
/null
2>&1; then
6121 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6122 lt_cv_file_magic_cmd
='func_win32_libid'
6124 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
6125 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6130 # use the weaker test based on 'objdump'. See mingw*.
6131 lt_cv_deplibs_check_method
='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6132 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6135 darwin
* | rhapsody
*)
6136 lt_cv_deplibs_check_method
=pass_all
6139 freebsd
* | dragonfly
*)
6140 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
6143 # Not sure whether the presence of OpenBSD here was a mistake.
6144 # Let's accept both of them until this is cleared up.
6145 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6146 lt_cv_file_magic_cmd
=/usr
/bin
/file
6147 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
6151 lt_cv_deplibs_check_method
=pass_all
6156 lt_cv_deplibs_check_method
=pass_all
6160 lt_cv_deplibs_check_method
=pass_all
6163 hpux10.20
* | hpux11
*)
6164 lt_cv_file_magic_cmd
=/usr
/bin
/file
6167 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6168 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
6171 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]'
6172 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
6175 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6176 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
6182 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6183 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
6186 irix5
* | irix6
* | nonstopux
*)
6188 *-32|
*"-32 ") libmagic
=32-bit;;
6189 *-n32|
*"-n32 ") libmagic
=N32
;;
6190 *-64|
*"-64 ") libmagic
=64-bit;;
6191 *) libmagic
=never-match
;;
6193 lt_cv_deplibs_check_method
=pass_all
6196 # This must be Linux ELF.
6197 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
6198 lt_cv_deplibs_check_method
=pass_all
6202 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
6203 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6205 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6210 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6211 lt_cv_file_magic_cmd
=/usr
/bin
/file
6212 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
6216 lt_cv_deplibs_check_method
=pass_all
6220 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6221 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6223 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6227 osf3
* | osf4
* | osf5
*)
6228 lt_cv_deplibs_check_method
=pass_all
6232 lt_cv_deplibs_check_method
=pass_all
6236 lt_cv_deplibs_check_method
=pass_all
6239 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
6240 lt_cv_deplibs_check_method
=pass_all
6244 case $host_vendor in
6246 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]'
6247 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
6250 lt_cv_deplibs_check_method
=pass_all
6253 lt_cv_file_magic_cmd
='/bin/file'
6254 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6257 lt_cv_file_magic_cmd
='/bin/file'
6258 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6259 lt_cv_file_magic_test_file
=/lib
/libc.so
6262 lt_cv_deplibs_check_method
=pass_all
6265 lt_cv_deplibs_check_method
=pass_all
6271 lt_cv_deplibs_check_method
=pass_all
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6277 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6278 file_magic_cmd
=$lt_cv_file_magic_cmd
6279 deplibs_check_method
=$lt_cv_deplibs_check_method
6280 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
6293 if test -n "$ac_tool_prefix"; then
6294 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6295 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6297 $as_echo_n "checking for $ac_word... " >&6; }
6298 if ${ac_cv_prog_AR+:} false
; then :
6299 $as_echo_n "(cached) " >&6
6301 if test -n "$AR"; then
6302 ac_cv_prog_AR
="$AR" # Let the user override the test.
6304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6308 test -z "$as_dir" && as_dir
=.
6309 for ac_exec_ext
in '' $ac_executable_extensions; do
6310 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6311 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6322 if test -n "$AR"; then
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6324 $as_echo "$AR" >&6; }
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6327 $as_echo "no" >&6; }
6332 if test -z "$ac_cv_prog_AR"; then
6334 # Extract the first word of "ar", so it can be a program name with args.
6335 set dummy
ar; ac_word
=$2
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6337 $as_echo_n "checking for $ac_word... " >&6; }
6338 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
6339 $as_echo_n "(cached) " >&6
6341 if test -n "$ac_ct_AR"; then
6342 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6344 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6348 test -z "$as_dir" && as_dir
=.
6349 for ac_exec_ext
in '' $ac_executable_extensions; do
6350 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6351 ac_cv_prog_ac_ct_AR
="ar"
6352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6361 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6362 if test -n "$ac_ct_AR"; then
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6364 $as_echo "$ac_ct_AR" >&6; }
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6367 $as_echo "no" >&6; }
6370 if test "x$ac_ct_AR" = x
; then
6373 case $cross_compiling:$ac_tool_warned in
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6377 ac_tool_warned
=yes ;;
6385 test -z "$AR" && AR
=ar
6386 test -z "$AR_FLAGS" && AR_FLAGS
=cru
6398 if test -n "$ac_tool_prefix"; then
6399 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6400 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6402 $as_echo_n "checking for $ac_word... " >&6; }
6403 if ${ac_cv_prog_STRIP+:} false
; then :
6404 $as_echo_n "(cached) " >&6
6406 if test -n "$STRIP"; then
6407 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6409 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6413 test -z "$as_dir" && as_dir
=.
6414 for ac_exec_ext
in '' $ac_executable_extensions; do
6415 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6416 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6426 STRIP
=$ac_cv_prog_STRIP
6427 if test -n "$STRIP"; then
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6429 $as_echo "$STRIP" >&6; }
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6432 $as_echo "no" >&6; }
6437 if test -z "$ac_cv_prog_STRIP"; then
6439 # Extract the first word of "strip", so it can be a program name with args.
6440 set dummy strip
; ac_word
=$2
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
6444 $as_echo_n "(cached) " >&6
6446 if test -n "$ac_ct_STRIP"; then
6447 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6449 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6453 test -z "$as_dir" && as_dir
=.
6454 for ac_exec_ext
in '' $ac_executable_extensions; do
6455 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6456 ac_cv_prog_ac_ct_STRIP
="strip"
6457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6467 if test -n "$ac_ct_STRIP"; then
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6469 $as_echo "$ac_ct_STRIP" >&6; }
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 $as_echo "no" >&6; }
6475 if test "x$ac_ct_STRIP" = x
; then
6478 case $cross_compiling:$ac_tool_warned in
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6482 ac_tool_warned
=yes ;;
6487 STRIP
="$ac_cv_prog_STRIP"
6490 test -z "$STRIP" && STRIP
=:
6497 if test -n "$ac_tool_prefix"; then
6498 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6499 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6501 $as_echo_n "checking for $ac_word... " >&6; }
6502 if ${ac_cv_prog_RANLIB+:} false
; then :
6503 $as_echo_n "(cached) " >&6
6505 if test -n "$RANLIB"; then
6506 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6508 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6512 test -z "$as_dir" && as_dir
=.
6513 for ac_exec_ext
in '' $ac_executable_extensions; do
6514 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6515 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6525 RANLIB
=$ac_cv_prog_RANLIB
6526 if test -n "$RANLIB"; then
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6528 $as_echo "$RANLIB" >&6; }
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6531 $as_echo "no" >&6; }
6536 if test -z "$ac_cv_prog_RANLIB"; then
6537 ac_ct_RANLIB
=$RANLIB
6538 # Extract the first word of "ranlib", so it can be a program name with args.
6539 set dummy ranlib
; ac_word
=$2
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541 $as_echo_n "checking for $ac_word... " >&6; }
6542 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6543 $as_echo_n "(cached) " >&6
6545 if test -n "$ac_ct_RANLIB"; then
6546 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6548 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6552 test -z "$as_dir" && as_dir
=.
6553 for ac_exec_ext
in '' $ac_executable_extensions; do
6554 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6555 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6565 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6566 if test -n "$ac_ct_RANLIB"; then
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6568 $as_echo "$ac_ct_RANLIB" >&6; }
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6571 $as_echo "no" >&6; }
6574 if test "x$ac_ct_RANLIB" = x
; then
6577 case $cross_compiling:$ac_tool_warned in
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6581 ac_tool_warned
=yes ;;
6583 RANLIB
=$ac_ct_RANLIB
6586 RANLIB
="$ac_cv_prog_RANLIB"
6589 test -z "$RANLIB" && RANLIB
=:
6596 # Determine commands to create old-style static archives.
6597 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
6598 old_postinstall_cmds
='chmod 644 $oldlib'
6599 old_postuninstall_cmds
=
6601 if test -n "$RANLIB"; then
6604 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6607 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
6610 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6615 lock_old_archive_extraction
=yes ;;
6617 lock_old_archive_extraction
=no
;;
6658 # If no C compiler was specified, use CC.
6661 # If no C compiler flags were specified, use CFLAGS.
6662 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
6664 # Allow CC to be a program name with arguments.
6668 # Check for command to grab the raw symbol name followed by C symbol from nm.
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6670 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6671 if ${lt_cv_sys_global_symbol_pipe+:} false
; then :
6672 $as_echo_n "(cached) " >&6
6675 # These are sane defaults that work on at least a few old systems.
6676 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6678 # Character class describing NM global symbol codes.
6679 symcode
='[BCDEGRST]'
6681 # Regexp to match symbols that can be accessed directly from C.
6682 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
6684 # Define system-specific variables.
6689 cygwin
* | mingw
* | pw32
* | cegcc
*)
6690 symcode
='[ABCDGISTW]'
6693 if test "$host_cpu" = ia64
; then
6694 symcode
='[ABCDEGRST]'
6698 symcode
='[BCDEGRST]'
6701 symcode
='[BCDEGQRST]'
6712 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
6720 # If we're using GNU nm, then use its standard symbol codes.
6721 case `$NM -V 2>&1` in
6722 *GNU
* |
*'with BFD'*)
6723 symcode
='[ABCDGIRSTW]' ;;
6726 # Transform an extracted symbol line into a proper C declaration.
6727 # Some systems (esp. on ia64) link data and code symbols differently,
6728 # so use this general approach.
6729 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6731 # Transform an extracted symbol line into symbol name and symbol address
6732 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6733 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'"
6735 # Handle CRLF in mingw tool chain
6739 opt_cr
=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6743 # Try without a prefix underscore, then with it.
6744 for ac_symprfx
in "" "_"; do
6746 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6747 symxfrm
="\\1 $ac_symprfx\\2 \\2"
6749 # Write the raw and C identifiers.
6750 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6751 # Fake it for dumpbin and say T for any non-static function
6752 # and D for any global variable.
6753 # Also find C++ and __fastcall symbols from MSVC++,
6754 # which start with @ or ?.
6755 lt_cv_sys_global_symbol_pipe
="$AWK '"\
6756 " {last_section=section; section=\$ 3};"\
6757 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6758 " \$ 0!~/External *\|/{next};"\
6759 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6760 " {if(hide[section]) next};"\
6761 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6762 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6763 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6764 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6765 " ' prfx=^$ac_symprfx"
6767 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6770 # Check to see that the pipe works correctly.
6774 cat > conftest.
$ac_ext <<_LT_EOF
6779 void nm_test_func(void);
6780 void nm_test_func(void){}
6784 int main(){nm_test_var='a';nm_test_func();return(0);}
6787 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6788 (eval $ac_compile) 2>&5
6790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6791 test $ac_status = 0; }; then
6792 # Now try to grab the symbols.
6794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6795 (eval $NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist) 2>&5
6797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6798 test $ac_status = 0; } && test -s "$nlist"; then
6799 # Try sorting and uniquifying the output.
6800 if sort "$nlist" |
uniq > "$nlist"T
; then
6801 mv -f "$nlist"T
"$nlist"
6806 # Make sure that we snagged all the symbols we need.
6807 if $GREP ' nm_test_var$' "$nlist" >/dev
/null
; then
6808 if $GREP ' nm_test_func$' "$nlist" >/dev
/null
; then
6809 cat <<_LT_EOF > conftest.$ac_ext
6815 # Now generate the symbol file.
6816 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6818 cat <<_LT_EOF >> conftest.$ac_ext
6820 /* The mapping between symbol names and symbols. */
6825 lt__PROGRAM__LTX_preloaded_symbols[] =
6827 { "@PROGRAM@", (void *) 0 },
6829 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" |
$GREP -v main
>> conftest.
$ac_ext
6830 cat <<\_LT_EOF
>> conftest.
$ac_ext
6834 /* This works around a problem
in FreeBSD linker
*/
6835 #ifdef FREEBSD_WORKAROUND
6836 static const void
*lt_preloaded_setup
() {
6837 return lt__PROGRAM__LTX_preloaded_symbols
;
6845 # Now try linking the two files.
6846 mv conftest.
$ac_objext conftstm.
$ac_objext
6847 lt_save_LIBS
="$LIBS"
6848 lt_save_CFLAGS
="$CFLAGS"
6849 LIBS
="conftstm.$ac_objext"
6850 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6852 (eval $ac_link) 2>&5
6854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6855 test $ac_status = 0; } && test -s conftest
${ac_exeext}; then
6858 LIBS
="$lt_save_LIBS"
6859 CFLAGS
="$lt_save_CFLAGS"
6861 echo "cannot find nm_test_func in $nlist" >&5
6864 echo "cannot find nm_test_var in $nlist" >&5
6867 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6870 echo "$progname: failed program was:" >&5
6871 cat conftest.
$ac_ext >&5
6873 rm -rf conftest
* conftst
*
6875 # Do not use the global_symbol_pipe unless it works.
6876 if test "$pipe_works" = yes; then
6879 lt_cv_sys_global_symbol_pipe
=
6885 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6886 lt_cv_sys_global_symbol_to_cdecl
=
6888 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6890 $as_echo "failed" >&6; }
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6893 $as_echo "ok" >&6; }
6918 # Check whether --enable-libtool-lock was given.
6919 if test "${enable_libtool_lock+set}" = set; then :
6920 enableval
=$enable_libtool_lock;
6923 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
6925 # Some flags need to be propagated to the compiler or linker for good
6929 # Find out which ABI we are using.
6930 echo 'int i;' > conftest.
$ac_ext
6931 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6932 (eval $ac_compile) 2>&5
6934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6935 test $ac_status = 0; }; then
6936 case `/usr/bin/file conftest.$ac_objext` in
6948 # Find out which ABI we are using.
6949 echo '#line '$LINENO' "configure"' > conftest.
$ac_ext
6950 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6951 (eval $ac_compile) 2>&5
6953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6954 test $ac_status = 0; }; then
6955 if test "$lt_cv_prog_gnu_ld" = yes; then
6956 case `/usr/bin/file conftest.$ac_objext` in
6958 LD
="${LD-ld} -melf32bsmip"
6961 LD
="${LD-ld} -melf32bmipn32"
6964 LD
="${LD-ld} -melf64bmip"
6968 case `/usr/bin/file conftest.$ac_objext` in
6984 x86_64-
*kfreebsd
*-gnu|x86_64-
*linux
*|powerpc
*-*linux
*| \
6985 s390
*-*linux
*|s390
*-*tpf
*|sparc
*-*linux
*)
6986 # Find out which ABI we are using.
6987 echo 'int i;' > conftest.
$ac_ext
6988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6989 (eval $ac_compile) 2>&5
6991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6992 test $ac_status = 0; }; then
6993 case `/usr/bin/file conftest.o` in
6996 x86_64-
*kfreebsd
*-gnu)
6997 LD
="${LD-ld} -m elf_i386_fbsd"
7000 case `/usr/bin/file conftest.o` in
7002 LD
="${LD-ld} -m elf32_x86_64"
7005 LD
="${LD-ld} -m elf_i386"
7009 powerpc64le-
*linux
*)
7010 LD
="${LD-ld} -m elf32lppclinux"
7013 LD
="${LD-ld} -m elf32ppclinux"
7016 LD
="${LD-ld} -m elf_s390"
7019 LD
="${LD-ld} -m elf32_sparc"
7025 x86_64-
*kfreebsd
*-gnu)
7026 LD
="${LD-ld} -m elf_x86_64_fbsd"
7029 LD
="${LD-ld} -m elf_x86_64"
7032 LD
="${LD-ld} -m elf64lppc"
7035 LD
="${LD-ld} -m elf64ppc"
7037 s390
*-*linux
*|s390
*-*tpf
*)
7038 LD
="${LD-ld} -m elf64_s390"
7041 LD
="${LD-ld} -m elf64_sparc"
7051 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7052 SAVE_CFLAGS
="$CFLAGS"
7053 CFLAGS
="$CFLAGS -belf"
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7055 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7056 if ${lt_cv_cc_needs_belf+:} false
; then :
7057 $as_echo_n "(cached) " >&6
7060 ac_cpp
='$CPP $CPPFLAGS'
7061 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7062 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7063 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7066 /* end confdefs.h. */
7076 if ac_fn_c_try_link
"$LINENO"; then :
7077 lt_cv_cc_needs_belf
=yes
7079 lt_cv_cc_needs_belf
=no
7081 rm -f core conftest.err conftest.
$ac_objext \
7082 conftest
$ac_exeext conftest.
$ac_ext
7084 ac_cpp
='$CPP $CPPFLAGS'
7085 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7086 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7087 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7091 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7092 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
7093 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7094 CFLAGS
="$SAVE_CFLAGS"
7098 # Find out which ABI we are using.
7099 echo 'int i;' > conftest.
$ac_ext
7100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7101 (eval $ac_compile) 2>&5
7103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7104 test $ac_status = 0; }; then
7105 case `/usr/bin/file conftest.o` in
7107 case $lt_cv_prog_gnu_ld in
7108 yes*) LD
="${LD-ld} -m elf64_sparc" ;;
7110 if ${LD-ld} -64 -r -o conftest2.o conftest.o
>/dev
/null
2>&1; then
7122 need_locks
="$enable_libtool_lock"
7126 rhapsody
* | darwin
*)
7127 if test -n "$ac_tool_prefix"; then
7128 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7129 set dummy
${ac_tool_prefix}dsymutil
; ac_word
=$2
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7131 $as_echo_n "checking for $ac_word... " >&6; }
7132 if ${ac_cv_prog_DSYMUTIL+:} false
; then :
7133 $as_echo_n "(cached) " >&6
7135 if test -n "$DSYMUTIL"; then
7136 ac_cv_prog_DSYMUTIL
="$DSYMUTIL" # Let the user override the test.
7138 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7142 test -z "$as_dir" && as_dir
=.
7143 for ac_exec_ext
in '' $ac_executable_extensions; do
7144 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7145 ac_cv_prog_DSYMUTIL
="${ac_tool_prefix}dsymutil"
7146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7155 DSYMUTIL
=$ac_cv_prog_DSYMUTIL
7156 if test -n "$DSYMUTIL"; then
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7158 $as_echo "$DSYMUTIL" >&6; }
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7161 $as_echo "no" >&6; }
7166 if test -z "$ac_cv_prog_DSYMUTIL"; then
7167 ac_ct_DSYMUTIL
=$DSYMUTIL
7168 # Extract the first word of "dsymutil", so it can be a program name with args.
7169 set dummy dsymutil
; ac_word
=$2
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7171 $as_echo_n "checking for $ac_word... " >&6; }
7172 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false
; then :
7173 $as_echo_n "(cached) " >&6
7175 if test -n "$ac_ct_DSYMUTIL"; then
7176 ac_cv_prog_ac_ct_DSYMUTIL
="$ac_ct_DSYMUTIL" # Let the user override the test.
7178 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7182 test -z "$as_dir" && as_dir
=.
7183 for ac_exec_ext
in '' $ac_executable_extensions; do
7184 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7185 ac_cv_prog_ac_ct_DSYMUTIL
="dsymutil"
7186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7195 ac_ct_DSYMUTIL
=$ac_cv_prog_ac_ct_DSYMUTIL
7196 if test -n "$ac_ct_DSYMUTIL"; then
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7198 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7201 $as_echo "no" >&6; }
7204 if test "x$ac_ct_DSYMUTIL" = x
; then
7207 case $cross_compiling:$ac_tool_warned in
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7211 ac_tool_warned
=yes ;;
7213 DSYMUTIL
=$ac_ct_DSYMUTIL
7216 DSYMUTIL
="$ac_cv_prog_DSYMUTIL"
7219 if test -n "$ac_tool_prefix"; then
7220 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7221 set dummy
${ac_tool_prefix}nmedit
; ac_word
=$2
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7223 $as_echo_n "checking for $ac_word... " >&6; }
7224 if ${ac_cv_prog_NMEDIT+:} false
; then :
7225 $as_echo_n "(cached) " >&6
7227 if test -n "$NMEDIT"; then
7228 ac_cv_prog_NMEDIT
="$NMEDIT" # Let the user override the test.
7230 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7234 test -z "$as_dir" && as_dir
=.
7235 for ac_exec_ext
in '' $ac_executable_extensions; do
7236 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7237 ac_cv_prog_NMEDIT
="${ac_tool_prefix}nmedit"
7238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 NMEDIT
=$ac_cv_prog_NMEDIT
7248 if test -n "$NMEDIT"; then
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7250 $as_echo "$NMEDIT" >&6; }
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7253 $as_echo "no" >&6; }
7258 if test -z "$ac_cv_prog_NMEDIT"; then
7259 ac_ct_NMEDIT
=$NMEDIT
7260 # Extract the first word of "nmedit", so it can be a program name with args.
7261 set dummy nmedit
; ac_word
=$2
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7263 $as_echo_n "checking for $ac_word... " >&6; }
7264 if ${ac_cv_prog_ac_ct_NMEDIT+:} false
; then :
7265 $as_echo_n "(cached) " >&6
7267 if test -n "$ac_ct_NMEDIT"; then
7268 ac_cv_prog_ac_ct_NMEDIT
="$ac_ct_NMEDIT" # Let the user override the test.
7270 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7274 test -z "$as_dir" && as_dir
=.
7275 for ac_exec_ext
in '' $ac_executable_extensions; do
7276 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7277 ac_cv_prog_ac_ct_NMEDIT
="nmedit"
7278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7287 ac_ct_NMEDIT
=$ac_cv_prog_ac_ct_NMEDIT
7288 if test -n "$ac_ct_NMEDIT"; then
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7290 $as_echo "$ac_ct_NMEDIT" >&6; }
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293 $as_echo "no" >&6; }
7296 if test "x$ac_ct_NMEDIT" = x
; then
7299 case $cross_compiling:$ac_tool_warned in
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7303 ac_tool_warned
=yes ;;
7305 NMEDIT
=$ac_ct_NMEDIT
7308 NMEDIT
="$ac_cv_prog_NMEDIT"
7311 if test -n "$ac_tool_prefix"; then
7312 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7313 set dummy
${ac_tool_prefix}lipo
; ac_word
=$2
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7315 $as_echo_n "checking for $ac_word... " >&6; }
7316 if ${ac_cv_prog_LIPO+:} false
; then :
7317 $as_echo_n "(cached) " >&6
7319 if test -n "$LIPO"; then
7320 ac_cv_prog_LIPO
="$LIPO" # Let the user override the test.
7322 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7326 test -z "$as_dir" && as_dir
=.
7327 for ac_exec_ext
in '' $ac_executable_extensions; do
7328 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7329 ac_cv_prog_LIPO
="${ac_tool_prefix}lipo"
7330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 LIPO
=$ac_cv_prog_LIPO
7340 if test -n "$LIPO"; then
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7342 $as_echo "$LIPO" >&6; }
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345 $as_echo "no" >&6; }
7350 if test -z "$ac_cv_prog_LIPO"; then
7352 # Extract the first word of "lipo", so it can be a program name with args.
7353 set dummy lipo
; ac_word
=$2
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7355 $as_echo_n "checking for $ac_word... " >&6; }
7356 if ${ac_cv_prog_ac_ct_LIPO+:} false
; then :
7357 $as_echo_n "(cached) " >&6
7359 if test -n "$ac_ct_LIPO"; then
7360 ac_cv_prog_ac_ct_LIPO
="$ac_ct_LIPO" # Let the user override the test.
7362 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7366 test -z "$as_dir" && as_dir
=.
7367 for ac_exec_ext
in '' $ac_executable_extensions; do
7368 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7369 ac_cv_prog_ac_ct_LIPO
="lipo"
7370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 ac_ct_LIPO
=$ac_cv_prog_ac_ct_LIPO
7380 if test -n "$ac_ct_LIPO"; then
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7382 $as_echo "$ac_ct_LIPO" >&6; }
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385 $as_echo "no" >&6; }
7388 if test "x$ac_ct_LIPO" = x
; then
7391 case $cross_compiling:$ac_tool_warned in
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7395 ac_tool_warned
=yes ;;
7400 LIPO
="$ac_cv_prog_LIPO"
7403 if test -n "$ac_tool_prefix"; then
7404 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7405 set dummy
${ac_tool_prefix}otool
; ac_word
=$2
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407 $as_echo_n "checking for $ac_word... " >&6; }
7408 if ${ac_cv_prog_OTOOL+:} false
; then :
7409 $as_echo_n "(cached) " >&6
7411 if test -n "$OTOOL"; then
7412 ac_cv_prog_OTOOL
="$OTOOL" # Let the user override the test.
7414 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7418 test -z "$as_dir" && as_dir
=.
7419 for ac_exec_ext
in '' $ac_executable_extensions; do
7420 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7421 ac_cv_prog_OTOOL
="${ac_tool_prefix}otool"
7422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7431 OTOOL
=$ac_cv_prog_OTOOL
7432 if test -n "$OTOOL"; then
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7434 $as_echo "$OTOOL" >&6; }
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437 $as_echo "no" >&6; }
7442 if test -z "$ac_cv_prog_OTOOL"; then
7444 # Extract the first word of "otool", so it can be a program name with args.
7445 set dummy otool
; ac_word
=$2
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7447 $as_echo_n "checking for $ac_word... " >&6; }
7448 if ${ac_cv_prog_ac_ct_OTOOL+:} false
; then :
7449 $as_echo_n "(cached) " >&6
7451 if test -n "$ac_ct_OTOOL"; then
7452 ac_cv_prog_ac_ct_OTOOL
="$ac_ct_OTOOL" # Let the user override the test.
7454 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7458 test -z "$as_dir" && as_dir
=.
7459 for ac_exec_ext
in '' $ac_executable_extensions; do
7460 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7461 ac_cv_prog_ac_ct_OTOOL
="otool"
7462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7471 ac_ct_OTOOL
=$ac_cv_prog_ac_ct_OTOOL
7472 if test -n "$ac_ct_OTOOL"; then
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7474 $as_echo "$ac_ct_OTOOL" >&6; }
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7477 $as_echo "no" >&6; }
7480 if test "x$ac_ct_OTOOL" = x
; then
7483 case $cross_compiling:$ac_tool_warned in
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7487 ac_tool_warned
=yes ;;
7492 OTOOL
="$ac_cv_prog_OTOOL"
7495 if test -n "$ac_tool_prefix"; then
7496 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7497 set dummy
${ac_tool_prefix}otool64
; ac_word
=$2
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7499 $as_echo_n "checking for $ac_word... " >&6; }
7500 if ${ac_cv_prog_OTOOL64+:} false
; then :
7501 $as_echo_n "(cached) " >&6
7503 if test -n "$OTOOL64"; then
7504 ac_cv_prog_OTOOL64
="$OTOOL64" # Let the user override the test.
7506 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7510 test -z "$as_dir" && as_dir
=.
7511 for ac_exec_ext
in '' $ac_executable_extensions; do
7512 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7513 ac_cv_prog_OTOOL64
="${ac_tool_prefix}otool64"
7514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7523 OTOOL64
=$ac_cv_prog_OTOOL64
7524 if test -n "$OTOOL64"; then
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7526 $as_echo "$OTOOL64" >&6; }
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7529 $as_echo "no" >&6; }
7534 if test -z "$ac_cv_prog_OTOOL64"; then
7535 ac_ct_OTOOL64
=$OTOOL64
7536 # Extract the first word of "otool64", so it can be a program name with args.
7537 set dummy otool64
; ac_word
=$2
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7539 $as_echo_n "checking for $ac_word... " >&6; }
7540 if ${ac_cv_prog_ac_ct_OTOOL64+:} false
; then :
7541 $as_echo_n "(cached) " >&6
7543 if test -n "$ac_ct_OTOOL64"; then
7544 ac_cv_prog_ac_ct_OTOOL64
="$ac_ct_OTOOL64" # Let the user override the test.
7546 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7550 test -z "$as_dir" && as_dir
=.
7551 for ac_exec_ext
in '' $ac_executable_extensions; do
7552 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7553 ac_cv_prog_ac_ct_OTOOL64
="otool64"
7554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7563 ac_ct_OTOOL64
=$ac_cv_prog_ac_ct_OTOOL64
7564 if test -n "$ac_ct_OTOOL64"; then
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7566 $as_echo "$ac_ct_OTOOL64" >&6; }
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569 $as_echo "no" >&6; }
7572 if test "x$ac_ct_OTOOL64" = x
; then
7575 case $cross_compiling:$ac_tool_warned in
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7579 ac_tool_warned
=yes ;;
7581 OTOOL64
=$ac_ct_OTOOL64
7584 OTOOL64
="$ac_cv_prog_OTOOL64"
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7614 $as_echo_n "checking for -single_module linker flag... " >&6; }
7615 if ${lt_cv_apple_cc_single_mod+:} false
; then :
7616 $as_echo_n "(cached) " >&6
7618 lt_cv_apple_cc_single_mod
=no
7619 if test -z "${LT_MULTI_MODULE}"; then
7620 # By default we will add the -single_module flag. You can override
7621 # by either setting the environment variable LT_MULTI_MODULE
7622 # non-empty at configure time, or by adding -multi_module to the
7624 rm -rf libconftest.dylib
*
7625 echo "int foo(void){return 1;}" > conftest.c
7626 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7627 -dynamiclib -Wl,-single_module conftest.c" >&5
7628 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7629 -dynamiclib -Wl,-single_module conftest.c
2>conftest.err
7631 if test -f libconftest.dylib
&& test ! -s conftest.err
&& test $_lt_result = 0; then
7632 lt_cv_apple_cc_single_mod
=yes
7634 cat conftest.err
>&5
7636 rm -rf libconftest.dylib
*
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7641 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7643 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7644 if ${lt_cv_ld_exported_symbols_list+:} false
; then :
7645 $as_echo_n "(cached) " >&6
7647 lt_cv_ld_exported_symbols_list
=no
7648 save_LDFLAGS
=$LDFLAGS
7649 echo "_main" > conftest.sym
7650 LDFLAGS
="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7652 /* end confdefs.h. */
7662 if ac_fn_c_try_link
"$LINENO"; then :
7663 lt_cv_ld_exported_symbols_list
=yes
7665 lt_cv_ld_exported_symbols_list
=no
7667 rm -f core conftest.err conftest.
$ac_objext \
7668 conftest
$ac_exeext conftest.
$ac_ext
7669 LDFLAGS
="$save_LDFLAGS"
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7673 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7675 $as_echo_n "checking for -force_load linker flag... " >&6; }
7676 if ${lt_cv_ld_force_load+:} false
; then :
7677 $as_echo_n "(cached) " >&6
7679 lt_cv_ld_force_load
=no
7680 cat > conftest.c
<< _LT_EOF
7681 int forced_loaded() { return 2;}
7683 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7684 $LTCC $LTCFLAGS -c -o conftest.o conftest.c
2>&5
7685 echo "$AR cru libconftest.a conftest.o" >&5
7686 $AR cru libconftest.a conftest.o
2>&5
7687 cat > conftest.c
<< _LT_EOF
7688 int main() { return 0;}
7690 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7691 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
2>conftest.err
7693 if test -f conftest
&& test ! -s conftest.err
&& test $_lt_result = 0 && $GREP forced_load conftest
2>&1 >/dev
/null
; then
7694 lt_cv_ld_force_load
=yes
7696 cat conftest.err
>&5
7698 rm -f conftest.err libconftest.a conftest conftest.c
7699 rm -rf conftest.dSYM
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7703 $as_echo "$lt_cv_ld_force_load" >&6; }
7705 rhapsody
* | darwin1.
[012])
7706 _lt_dar_allow_undefined
='${wl}-undefined ${wl}suppress' ;;
7708 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7709 darwin
*) # darwin 5.x on
7710 # if running on 10.5 or later, the deployment target defaults
7711 # to the OS version, if on x86, and 10.4, the deployment
7712 # target defaults to 10.4. Don't you love it?
7713 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7714 10.0,*86*-darwin8*|
10.0,*-darwin[91]*)
7715 _lt_dar_allow_undefined
='${wl}-undefined ${wl}dynamic_lookup' ;;
7717 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7719 _lt_dar_allow_undefined
='${wl}-undefined ${wl}dynamic_lookup' ;;
7723 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7724 _lt_dar_single_mod
='$single_module'
7726 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7727 _lt_dar_export_syms
=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7729 _lt_dar_export_syms
='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7731 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7732 _lt_dsymutil
='~$DSYMUTIL $lib || :'
7740 ac_cpp
='$CPP $CPPFLAGS'
7741 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7742 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7743 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7745 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7746 # On Suns, sometimes $CPP names a directory.
7747 if test -n "$CPP" && test -d "$CPP"; then
7750 if test -z "$CPP"; then
7751 if ${ac_cv_prog_CPP+:} false
; then :
7752 $as_echo_n "(cached) " >&6
7754 # Double quotes because CPP needs to be expanded
7755 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7758 for ac_c_preproc_warn_flag
in '' yes
7760 # Use a header file that comes with gcc, so configuring glibc
7761 # with a fresh cross-compiler works.
7762 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7763 # <limits.h> exists even on freestanding compilers.
7764 # On the NeXT, cc -E runs the code through the compiler's parser,
7765 # not just through cpp. "Syntax error" is here to catch this case.
7766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7767 /* end confdefs.h. */
7769 # include <limits.h>
7771 # include <assert.h>
7775 if ac_fn_c_try_cpp
"$LINENO"; then :
7778 # Broken: fails on valid input.
7781 rm -f conftest.err conftest.i conftest.
$ac_ext
7783 # OK, works on sane cases. Now check whether nonexistent headers
7784 # can be detected and how.
7785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7786 /* end confdefs.h. */
7787 #include <ac_nonexistent.h>
7789 if ac_fn_c_try_cpp
"$LINENO"; then :
7790 # Broken: success on invalid input.
7793 # Passes both tests.
7797 rm -f conftest.err conftest.i conftest.
$ac_ext
7800 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7801 rm -f conftest.i conftest.err conftest.
$ac_ext
7802 if $ac_preproc_ok; then :
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7815 $as_echo "$CPP" >&6; }
7817 for ac_c_preproc_warn_flag
in '' yes
7819 # Use a header file that comes with gcc, so configuring glibc
7820 # with a fresh cross-compiler works.
7821 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7822 # <limits.h> exists even on freestanding compilers.
7823 # On the NeXT, cc -E runs the code through the compiler's parser,
7824 # not just through cpp. "Syntax error" is here to catch this case.
7825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7826 /* end confdefs.h. */
7828 # include <limits.h>
7830 # include <assert.h>
7834 if ac_fn_c_try_cpp
"$LINENO"; then :
7837 # Broken: fails on valid input.
7840 rm -f conftest.err conftest.i conftest.
$ac_ext
7842 # OK, works on sane cases. Now check whether nonexistent headers
7843 # can be detected and how.
7844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7845 /* end confdefs.h. */
7846 #include <ac_nonexistent.h>
7848 if ac_fn_c_try_cpp
"$LINENO"; then :
7849 # Broken: success on invalid input.
7852 # Passes both tests.
7856 rm -f conftest.err conftest.i conftest.
$ac_ext
7859 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7860 rm -f conftest.i conftest.err conftest.
$ac_ext
7861 if $ac_preproc_ok; then :
7864 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7865 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7866 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
7867 See \`config.log' for more details" "$LINENO" 5; }
7871 ac_cpp
='$CPP $CPPFLAGS'
7872 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7873 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7874 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7878 $as_echo_n "checking for ANSI C header files... " >&6; }
7879 if ${ac_cv_header_stdc+:} false
; then :
7880 $as_echo_n "(cached) " >&6
7882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7883 /* end confdefs.h. */
7897 if ac_fn_c_try_compile
"$LINENO"; then :
7898 ac_cv_header_stdc
=yes
7900 ac_cv_header_stdc
=no
7902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7904 if test $ac_cv_header_stdc = yes; then
7905 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7907 /* end confdefs.h. */
7911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7912 $EGREP "memchr" >/dev
/null
2>&1; then :
7915 ac_cv_header_stdc
=no
7921 if test $ac_cv_header_stdc = yes; then
7922 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7924 /* end confdefs.h. */
7928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7929 $EGREP "free" >/dev
/null
2>&1; then :
7932 ac_cv_header_stdc
=no
7938 if test $ac_cv_header_stdc = yes; then
7939 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7940 if test "$cross_compiling" = yes; then :
7943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7944 /* end confdefs.h. */
7947 #if ((' ' & 0x0FF) == 0x020)
7948 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7949 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7951 # define ISLOWER(c) \
7952 (('a' <= (c) && (c) <= 'i') \
7953 || ('j' <= (c) && (c) <= 'r') \
7954 || ('s' <= (c) && (c) <= 'z'))
7955 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7958 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7963 for (i = 0; i < 256; i++)
7964 if (XOR (islower (i), ISLOWER (i))
7965 || toupper (i) != TOUPPER (i))
7970 if ac_fn_c_try_run
"$LINENO"; then :
7973 ac_cv_header_stdc
=no
7975 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7976 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7982 $as_echo "$ac_cv_header_stdc" >&6; }
7983 if test $ac_cv_header_stdc = yes; then
7985 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7989 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7990 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7991 inttypes.h stdint.h unistd.h
7993 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7994 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7996 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7997 cat >>confdefs.h
<<_ACEOF
7998 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8006 for ac_header
in dlfcn.h
8008 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8010 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
8011 cat >>confdefs.h
<<_ACEOF
8012 #define HAVE_DLFCN_H 1
8032 # Check whether --enable-shared was given.
8033 if test "${enable_shared+set}" = set; then :
8034 enableval
=$enable_shared; p
=${PACKAGE-default}
8036 yes) enable_shared
=yes ;;
8037 no
) enable_shared
=no
;;
8040 # Look at the argument we got. We use all the common list separators.
8041 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8042 for pkg
in $enableval; do
8044 if test "X$pkg" = "X$p"; then
8063 # Check whether --enable-static was given.
8064 if test "${enable_static+set}" = set; then :
8065 enableval
=$enable_static; p
=${PACKAGE-default}
8067 yes) enable_static
=yes ;;
8068 no
) enable_static
=no
;;
8071 # Look at the argument we got. We use all the common list separators.
8072 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8073 for pkg
in $enableval; do
8075 if test "X$pkg" = "X$p"; then
8095 # Check whether --with-pic was given.
8096 if test "${with_pic+set}" = set; then :
8097 withval
=$with_pic; pic_mode
="$withval"
8103 test -z "$pic_mode" && pic_mode
=default
8111 # Check whether --enable-fast-install was given.
8112 if test "${enable_fast_install+set}" = set; then :
8113 enableval
=$enable_fast_install; p
=${PACKAGE-default}
8115 yes) enable_fast_install
=yes ;;
8116 no
) enable_fast_install
=no
;;
8118 enable_fast_install
=no
8119 # Look at the argument we got. We use all the common list separators.
8120 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8121 for pkg
in $enableval; do
8123 if test "X$pkg" = "X$p"; then
8124 enable_fast_install
=yes
8131 enable_fast_install
=yes
8144 # This can be used to rebuild libtool when needed
8145 LIBTOOL_DEPS
="$ltmain"
8147 # Always use our own libtool.
8148 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8175 test -z "$LN_S" && LN_S
="ln -s"
8190 if test -n "${ZSH_VERSION+set}" ; then
8191 setopt NO_GLOB_SUBST
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8195 $as_echo_n "checking for objdir... " >&6; }
8196 if ${lt_cv_objdir+:} false
; then :
8197 $as_echo_n "(cached) " >&6
8199 rm -f .libs
2>/dev
/null
8200 mkdir .libs
2>/dev
/null
8201 if test -d .libs
; then
8204 # MS-DOS does not allow filenames that begin with a dot.
8207 rmdir .libs
2>/dev
/null
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8210 $as_echo "$lt_cv_objdir" >&6; }
8211 objdir
=$lt_cv_objdir
8217 cat >>confdefs.h
<<_ACEOF
8218 #define LT_OBJDIR "$lt_cv_objdir/"
8226 # AIX sometimes has problems with the GCC collect2 program. For some
8227 # reason, if we set the COLLECT_NAMES environment variable, the problems
8228 # vanish in a puff of smoke.
8229 if test "X${COLLECT_NAMES+set}" != Xset
; then
8231 export COLLECT_NAMES
8238 can_build_shared
=yes
8240 # All known linkers require a `.a' archive for static linking (except MSVC,
8241 # which needs '.lib').
8244 with_gnu_ld
="$lt_cv_prog_gnu_ld"
8247 old_CFLAGS
="$CFLAGS"
8249 # Set sane defaults for various variables
8250 test -z "$CC" && CC
=cc
8251 test -z "$LTCC" && LTCC
=$CC
8252 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8253 test -z "$LD" && LD
=ld
8254 test -z "$ac_objext" && ac_objext
=o
8256 for cc_temp
in $compiler""; do
8258 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
8259 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
8264 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8267 # Only perform the check for file, if the check method requires it
8268 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8269 case $deplibs_check_method in
8271 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8273 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8274 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8275 $as_echo_n "(cached) " >&6
8279 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8282 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8283 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8284 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8285 for ac_dir
in $ac_dummy; do
8287 test -z "$ac_dir" && ac_dir
=.
8288 if test -f $ac_dir/${ac_tool_prefix}file; then
8289 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
8290 if test -n "$file_magic_test_file"; then
8291 case $deplibs_check_method in
8293 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8294 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8295 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8296 $EGREP "$file_magic_regex" > /dev
/null
; then
8301 *** Warning: the command libtool uses to detect shared libraries,
8302 *** $file_magic_cmd, produces output that libtool cannot recognize.
8303 *** The result is that libtool may fail to recognize shared libraries
8304 *** as such. This will affect the creation of libtool libraries that
8305 *** depend on shared libraries, but programs linked with such libtool
8306 *** libraries will work regardless of this problem. Nevertheless, you
8307 *** may want to report the problem to your system manager and/or to
8308 *** bug-libtool@gnu.org
8318 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8323 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8324 if test -n "$MAGIC_CMD"; then
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8326 $as_echo "$MAGIC_CMD" >&6; }
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8329 $as_echo "no" >&6; }
8336 if test -z "$lt_cv_path_MAGIC_CMD"; then
8337 if test -n "$ac_tool_prefix"; then
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8339 $as_echo_n "checking for file... " >&6; }
8340 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8341 $as_echo_n "(cached) " >&6
8345 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8348 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8349 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8350 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8351 for ac_dir
in $ac_dummy; do
8353 test -z "$ac_dir" && ac_dir
=.
8354 if test -f $ac_dir/file; then
8355 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
8356 if test -n "$file_magic_test_file"; then
8357 case $deplibs_check_method in
8359 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8360 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8361 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8362 $EGREP "$file_magic_regex" > /dev
/null
; then
8367 *** Warning: the command libtool uses to detect shared libraries,
8368 *** $file_magic_cmd, produces output that libtool cannot recognize.
8369 *** The result is that libtool may fail to recognize shared libraries
8370 *** as such. This will affect the creation of libtool libraries that
8371 *** depend on shared libraries, but programs linked with such libtool
8372 *** libraries will work regardless of this problem. Nevertheless, you
8373 *** may want to report the problem to your system manager and/or to
8374 *** bug-libtool@gnu.org
8384 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8389 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8390 if test -n "$MAGIC_CMD"; then
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8392 $as_echo "$MAGIC_CMD" >&6; }
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395 $as_echo "no" >&6; }
8408 # Use C for the default configuration in the libtool script
8412 ac_cpp
='$CPP $CPPFLAGS'
8413 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8414 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8415 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8418 # Source file extension for C test sources.
8421 # Object file extension for compiled C test sources.
8425 # Code to be used in simple compile tests
8426 lt_simple_compile_test_code
="int some_variable = 0;"
8428 # Code to be used in simple link tests
8429 lt_simple_link_test_code
='int main(){return(0);}'
8437 # If no C compiler was specified, use CC.
8440 # If no C compiler flags were specified, use CFLAGS.
8441 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8443 # Allow CC to be a program name with arguments.
8446 # Save the default compiler, since it gets overwritten when the other
8447 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8448 compiler_DEFAULT
=$CC
8450 # save warnings/boilerplate of simple test code
8451 ac_outfile
=conftest.
$ac_objext
8452 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8453 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8454 _lt_compiler_boilerplate
=`cat conftest.err`
8457 ac_outfile
=conftest.
$ac_objext
8458 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8459 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8460 _lt_linker_boilerplate
=`cat conftest.err`
8465 ## There is no encapsulation within the following macros, do not change
8466 ## the running order or otherwise move them around unless you know exactly
8467 ## what you are doing...
8468 if test -n "$compiler"; then
8470 lt_prog_compiler_no_builtin_flag
=
8472 if test "$GCC" = yes; then
8473 case $cc_basename in
8475 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8477 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8481 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8482 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
8483 $as_echo_n "(cached) " >&6
8485 lt_cv_prog_compiler_rtti_exceptions
=no
8486 ac_outfile
=conftest.
$ac_objext
8487 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8488 lt_compiler_flag
="-fno-rtti -fno-exceptions"
8489 # Insert the option either (1) after the last *FLAGS variable, or
8490 # (2) before a word containing "conftest.", or (3) at the end.
8491 # Note that $ac_compile itself does not contain backslashes and begins
8492 # with a dollar sign (not a hyphen), so the echo should work correctly.
8493 # The option is referenced via a variable to avoid confusing sed.
8494 lt_compile
=`echo "$ac_compile" | $SED \
8495 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8497 -e 's:$: $lt_compiler_flag:'`
8498 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8499 (eval "$lt_compile" 2>conftest.err
)
8501 cat conftest.err
>&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 if (exit $ac_status) && test -s "$ac_outfile"; then
8504 # The compiler can only warn and ignore the option if not recognized
8505 # So say no if there are warnings other than the usual output.
8506 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8507 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8508 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8509 lt_cv_prog_compiler_rtti_exceptions
=yes
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8516 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8518 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
8519 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8531 lt_prog_compiler_wl
=
8532 lt_prog_compiler_pic
=
8533 lt_prog_compiler_static
=
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8536 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8538 if test "$GCC" = yes; then
8539 lt_prog_compiler_wl
='-Wl,'
8540 lt_prog_compiler_static
='-static'
8544 # All AIX code is PIC.
8545 if test "$host_cpu" = ia64
; then
8546 # AIX 5 now supports IA64 processor
8547 lt_prog_compiler_static
='-Bstatic'
8549 lt_prog_compiler_pic
='-fPIC'
8555 # see comment about AmigaOS4 .so support
8556 lt_prog_compiler_pic
='-fPIC'
8559 # FIXME: we need at least 68020 code to build shared libraries, but
8560 # adding the `-m68020' flag to GCC prevents building anything better,
8562 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8567 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8568 # PIC is the default for these OSes.
8571 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8572 # This hack is so that the source file can tell whether it is being
8573 # built for inclusion in a dll (and should export symbols for example).
8574 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8575 # (--disable-auto-import) libraries
8576 lt_prog_compiler_pic
='-DDLL_EXPORT'
8579 darwin
* | rhapsody
*)
8580 # PIC is the default on this platform
8581 # Common symbols not allowed in MH_DYLIB files
8582 lt_prog_compiler_pic
='-fno-common'
8586 # PIC is the default for Haiku.
8587 # The "-static" flag exists, but is broken.
8588 lt_prog_compiler_static
=
8592 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8593 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8594 # sets the default TLS model and affects inlining.
8600 lt_prog_compiler_pic
='-fPIC'
8606 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8607 # Instead, we relocate shared libraries at runtime.
8611 # Just because we use GCC doesn't mean we suddenly get shared libraries
8612 # on systems that don't support them.
8613 lt_prog_compiler_can_build_shared
=no
8618 # QNX uses GNU C++, but need to define -shared option too, otherwise
8620 lt_prog_compiler_pic
='-fPIC -shared'
8624 if test -d /usr
/nec
; then
8625 lt_prog_compiler_pic
=-Kconform_pic
8630 lt_prog_compiler_pic
='-fPIC'
8634 case $cc_basename in
8635 nvcc
*) # Cuda Compiler Driver 2.2
8636 lt_prog_compiler_wl
='-Xlinker '
8637 lt_prog_compiler_pic
='-Xcompiler -fPIC'
8641 # PORTME Check for flag to pass linker flags through the system compiler.
8644 lt_prog_compiler_wl
='-Wl,'
8645 if test "$host_cpu" = ia64
; then
8646 # AIX 5 now supports IA64 processor
8647 lt_prog_compiler_static
='-Bstatic'
8649 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8653 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8654 # This hack is so that the source file can tell whether it is being
8655 # built for inclusion in a dll (and should export symbols for example).
8656 lt_prog_compiler_pic
='-DDLL_EXPORT'
8659 hpux9
* | hpux10
* | hpux11
*)
8660 lt_prog_compiler_wl
='-Wl,'
8661 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8668 lt_prog_compiler_pic
='+Z'
8671 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8672 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8675 irix5
* | irix6
* | nonstopux
*)
8676 lt_prog_compiler_wl
='-Wl,'
8677 # PIC (with -KPIC) is the default.
8678 lt_prog_compiler_static
='-non_shared'
8681 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8682 case $cc_basename in
8683 # old Intel for x86_64 which still supported -KPIC.
8685 lt_prog_compiler_wl
='-Wl,'
8686 lt_prog_compiler_pic
='-KPIC'
8687 lt_prog_compiler_static
='-static'
8689 # icc used to be incompatible with GCC.
8690 # ICC 10 doesn't accept -KPIC any more.
8692 lt_prog_compiler_wl
='-Wl,'
8693 lt_prog_compiler_pic
='-fPIC'
8694 lt_prog_compiler_static
='-static'
8696 # Lahey Fortran 8.1.
8698 lt_prog_compiler_wl
='-Wl,'
8699 lt_prog_compiler_pic
='--shared'
8700 lt_prog_compiler_static
='--static'
8702 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8703 # Portland Group compilers (*not* the Pentium gcc compiler,
8704 # which looks to be a dead project)
8705 lt_prog_compiler_wl
='-Wl,'
8706 lt_prog_compiler_pic
='-fpic'
8707 lt_prog_compiler_static
='-Bstatic'
8710 lt_prog_compiler_wl
='-Wl,'
8711 # All Alpha code is PIC.
8712 lt_prog_compiler_static
='-non_shared'
8714 xl
* | bgxl
* | bgf
* | mpixl
*)
8715 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8716 lt_prog_compiler_wl
='-Wl,'
8717 lt_prog_compiler_pic
='-qpic'
8718 lt_prog_compiler_static
='-qstaticlink'
8721 case `$CC -V 2>&1 | sed 5q` in
8722 *Sun\ F
* |
*Sun
*Fortran
*)
8723 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8724 lt_prog_compiler_pic
='-KPIC'
8725 lt_prog_compiler_static
='-Bstatic'
8726 lt_prog_compiler_wl
=''
8730 lt_prog_compiler_pic
='-KPIC'
8731 lt_prog_compiler_static
='-Bstatic'
8732 lt_prog_compiler_wl
='-Wl,'
8740 lt_prog_compiler_pic
='-KPIC'
8741 lt_prog_compiler_static
='-Bstatic'
8745 # QNX uses GNU C++, but need to define -shared option too, otherwise
8747 lt_prog_compiler_pic
='-fPIC -shared'
8750 osf3
* | osf4
* | osf5
*)
8751 lt_prog_compiler_wl
='-Wl,'
8752 # All OSF/1 code is PIC.
8753 lt_prog_compiler_static
='-non_shared'
8757 lt_prog_compiler_static
='-non_shared'
8761 lt_prog_compiler_pic
='-KPIC'
8762 lt_prog_compiler_static
='-Bstatic'
8763 case $cc_basename in
8765 lt_prog_compiler_wl
='-Qoption ld ';;
8767 lt_prog_compiler_wl
='-Wl,';;
8772 lt_prog_compiler_wl
='-Qoption ld '
8773 lt_prog_compiler_pic
='-PIC'
8774 lt_prog_compiler_static
='-Bstatic'
8777 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8778 lt_prog_compiler_wl
='-Wl,'
8779 lt_prog_compiler_pic
='-KPIC'
8780 lt_prog_compiler_static
='-Bstatic'
8784 if test -d /usr
/nec
;then
8785 lt_prog_compiler_pic
='-Kconform_pic'
8786 lt_prog_compiler_static
='-Bstatic'
8790 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8791 lt_prog_compiler_wl
='-Wl,'
8792 lt_prog_compiler_pic
='-KPIC'
8793 lt_prog_compiler_static
='-Bstatic'
8797 lt_prog_compiler_wl
='-Wl,'
8798 lt_prog_compiler_can_build_shared
=no
8802 lt_prog_compiler_pic
='-pic'
8803 lt_prog_compiler_static
='-Bstatic'
8807 lt_prog_compiler_can_build_shared
=no
8813 # For platforms which do not support PIC, -DPIC is meaningless:
8815 lt_prog_compiler_pic
=
8818 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8822 $as_echo "$lt_prog_compiler_pic" >&6; }
8830 # Check to make sure the PIC flag actually works.
8832 if test -n "$lt_prog_compiler_pic"; then
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8834 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8835 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
8836 $as_echo_n "(cached) " >&6
8838 lt_cv_prog_compiler_pic_works
=no
8839 ac_outfile
=conftest.
$ac_objext
8840 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8841 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8842 # Insert the option either (1) after the last *FLAGS variable, or
8843 # (2) before a word containing "conftest.", or (3) at the end.
8844 # Note that $ac_compile itself does not contain backslashes and begins
8845 # with a dollar sign (not a hyphen), so the echo should work correctly.
8846 # The option is referenced via a variable to avoid confusing sed.
8847 lt_compile
=`echo "$ac_compile" | $SED \
8848 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8849 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8850 -e 's:$: $lt_compiler_flag:'`
8851 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8852 (eval "$lt_compile" 2>conftest.err
)
8854 cat conftest.err
>&5
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 if (exit $ac_status) && test -s "$ac_outfile"; then
8857 # The compiler can only warn and ignore the option if not recognized
8858 # So say no if there are warnings other than the usual output.
8859 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8860 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8861 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8862 lt_cv_prog_compiler_pic_works
=yes
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8869 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8871 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8872 case $lt_prog_compiler_pic in
8874 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8877 lt_prog_compiler_pic
=
8878 lt_prog_compiler_can_build_shared
=no
8889 # Check to make sure the static flag actually works.
8891 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8893 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8894 if ${lt_cv_prog_compiler_static_works+:} false
; then :
8895 $as_echo_n "(cached) " >&6
8897 lt_cv_prog_compiler_static_works
=no
8898 save_LDFLAGS
="$LDFLAGS"
8899 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8900 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8901 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8902 # The linker can only warn and ignore the option if not recognized
8903 # So say no if there are warnings
8904 if test -s conftest.err
; then
8905 # Append any errors to the config.log.
8906 cat conftest.err
1>&5
8907 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
8908 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8909 if diff conftest.exp conftest.er2
>/dev
/null
; then
8910 lt_cv_prog_compiler_static_works
=yes
8913 lt_cv_prog_compiler_static_works
=yes
8917 LDFLAGS
="$save_LDFLAGS"
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8921 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8923 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8926 lt_prog_compiler_static
=
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8936 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8937 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8938 $as_echo_n "(cached) " >&6
8940 lt_cv_prog_compiler_c_o
=no
8941 $RM -r conftest
2>/dev
/null
8945 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8947 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8948 # Insert the option either (1) after the last *FLAGS variable, or
8949 # (2) before a word containing "conftest.", or (3) at the end.
8950 # Note that $ac_compile itself does not contain backslashes and begins
8951 # with a dollar sign (not a hyphen), so the echo should work correctly.
8952 lt_compile
=`echo "$ac_compile" | $SED \
8953 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8954 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8955 -e 's:$: $lt_compiler_flag:'`
8956 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8957 (eval "$lt_compile" 2>out
/conftest.err
)
8959 cat out
/conftest.err
>&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8963 # The compiler can only warn and ignore the option if not recognized
8964 # So say no if there are warnings
8965 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8966 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8967 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8968 lt_cv_prog_compiler_c_o
=yes
8973 # SGI C++ compiler will create directory out/ii_files/ for
8974 # template instantiation
8975 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8976 $RM out
/* && rmdir out
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8983 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8991 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8992 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8993 $as_echo_n "(cached) " >&6
8995 lt_cv_prog_compiler_c_o
=no
8996 $RM -r conftest
2>/dev
/null
9000 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9002 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9003 # Insert the option either (1) after the last *FLAGS variable, or
9004 # (2) before a word containing "conftest.", or (3) at the end.
9005 # Note that $ac_compile itself does not contain backslashes and begins
9006 # with a dollar sign (not a hyphen), so the echo should work correctly.
9007 lt_compile
=`echo "$ac_compile" | $SED \
9008 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9009 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9010 -e 's:$: $lt_compiler_flag:'`
9011 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9012 (eval "$lt_compile" 2>out
/conftest.err
)
9014 cat out
/conftest.err
>&5
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9018 # The compiler can only warn and ignore the option if not recognized
9019 # So say no if there are warnings
9020 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9021 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9022 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9023 lt_cv_prog_compiler_c_o
=yes
9028 # SGI C++ compiler will create directory out/ii_files/ for
9029 # template instantiation
9030 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9031 $RM out
/* && rmdir out
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9038 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9043 hard_links
="nottested"
9044 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
9045 # do not overwrite the value of need_locks provided by the user
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9047 $as_echo_n "checking if we can lock with hard links... " >&6; }
9050 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9052 ln conftest.a conftest.b
2>&5 || hard_links
=no
9053 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9055 $as_echo "$hard_links" >&6; }
9056 if test "$hard_links" = no
; then
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9058 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9071 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9074 allow_undefined_flag
=
9075 always_export_symbols
=no
9077 archive_expsym_cmds
=
9078 compiler_needs_object
=no
9079 enable_shared_with_static_runtimes
=no
9080 export_dynamic_flag_spec
=
9081 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9082 hardcode_automatic
=no
9084 hardcode_direct_absolute
=no
9085 hardcode_libdir_flag_spec
=
9086 hardcode_libdir_flag_spec_ld
=
9087 hardcode_libdir_separator
=
9089 hardcode_shlibpath_var
=unsupported
9091 link_all_deplibs
=unknown
9094 old_archive_from_new_cmds
=
9095 old_archive_from_expsyms_cmds
=
9096 thread_safe_flag_spec
=
9097 whole_archive_flag_spec
=
9098 # include_expsyms should be a list of space-separated symbols to be *always*
9099 # included in the symbol list
9101 # exclude_expsyms can be an extended regexp of symbols to exclude
9102 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9103 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9104 # as well as any symbol that contains `d'.
9105 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9106 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9107 # platforms (ab)use it in PIC code, but their linkers get confused if
9108 # the symbol is explicitly referenced. Since portable code cannot
9109 # rely on this symbol name, it's probably fine to never include it in
9110 # preloaded symbol tables.
9111 # Exclude shared library initialization/finalization symbols.
9112 extract_expsyms_cmds
=
9115 cygwin
* | mingw
* | pw32
* | cegcc
*)
9116 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9117 # When not using gcc, we currently assume that we are using
9118 # Microsoft Visual C++.
9119 if test "$GCC" != yes; then
9124 # we just hope/assume this is gcc and not c89 (= MSVC++)
9134 # On some targets, GNU ld is compatible enough with the native linker
9135 # that we're better off using the native interface for both.
9136 lt_use_gnu_ld_interface
=no
9137 if test "$with_gnu_ld" = yes; then
9140 # The AIX port of GNU ld has always aspired to compatibility
9141 # with the native linker. However, as the warning in the GNU ld
9142 # block says, versions before 2.19.5* couldn't really create working
9143 # shared libraries, regardless of the interface used.
9144 case `$LD -v 2>&1` in
9145 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
9146 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
9147 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
9149 lt_use_gnu_ld_interface
=yes
9154 lt_use_gnu_ld_interface
=yes
9159 if test "$lt_use_gnu_ld_interface" = yes; then
9160 # If archive_cmds runs LD, not CC, wlarc should be empty
9163 # Set some defaults for GNU ld with shared library support. These
9164 # are reset later if shared libraries are not supported. Putting them
9165 # here allows them to be overridden if necessary.
9166 runpath_var
=LD_RUN_PATH
9167 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9168 export_dynamic_flag_spec
='${wl}--export-dynamic'
9169 # ancient GNU ld didn't support --whole-archive et. al.
9170 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
9171 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9173 whole_archive_flag_spec
=
9175 supports_anon_versioning
=no
9176 case `$LD -v 2>&1` in
9177 *GNU\ gold
*) supports_anon_versioning
=yes ;;
9178 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
9179 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9180 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9181 *\
2.11.
*) ;; # other 2.11 versions
9182 *) supports_anon_versioning
=yes ;;
9185 # See if GNU ld supports shared libraries.
9188 # On AIX/PPC, the GNU linker is very broken
9189 if test "$host_cpu" != ia64
; then
9193 *** Warning: the GNU linker, at least up to release 2.19, is reported
9194 *** to be unable to reliably create shared libraries on AIX.
9195 *** Therefore, libtool is disabling shared libraries support. If you
9196 *** really care for shared libraries, you may want to install binutils
9197 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9198 *** You will then need to restart the configuration process.
9207 # see comment about AmigaOS4 .so support
9208 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9209 archive_expsym_cmds
=''
9212 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)'
9213 hardcode_libdir_flag_spec
='-L$libdir'
9214 hardcode_minus_L
=yes
9220 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9221 allow_undefined_flag
=unsupported
9222 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9223 # support --undefined. This deserves some investigation. FIXME
9224 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9230 cygwin
* | mingw
* | pw32
* | cegcc
*)
9231 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9232 # as there is no search path for DLLs.
9233 hardcode_libdir_flag_spec
='-L$libdir'
9234 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9235 allow_undefined_flag
=unsupported
9236 always_export_symbols
=no
9237 enable_shared_with_static_runtimes
=yes
9238 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9240 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9241 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9242 # If the export-symbols file already is a .def file (1st line
9243 # is EXPORTS), use it as is; otherwise, prepend...
9244 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9245 cp $export_symbols $output_objdir/$soname.def;
9247 echo EXPORTS > $output_objdir/$soname.def;
9248 cat $export_symbols >> $output_objdir/$soname.def;
9250 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9257 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9258 link_all_deplibs
=yes
9263 hardcode_shlibpath_var
=no
9264 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9265 export_dynamic_flag_spec
='${wl}-E'
9266 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9267 # Instead, shared libraries are loaded at an image base (0x10000000 by
9268 # default) and relocated if they conflict, which is a slow very memory
9269 # consuming and fragmenting process. To avoid this, we pick a random,
9270 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9271 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9272 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9273 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'
9276 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9278 if test "$host_os" = linux-dietlibc
; then
9279 case $cc_basename in
9280 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9283 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9284 && test "$tmp_diet" = no
9286 tmp_addflag
=' $pic_flag'
9287 tmp_sharedflag
='-shared'
9288 case $cc_basename,$host_cpu in
9289 pgcc
*) # Portland Group C compiler
9290 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'
9291 tmp_addflag
=' $pic_flag'
9293 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9294 # Portland Group f77 and f90 compilers
9295 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'
9296 tmp_addflag
=' $pic_flag -Mnomain' ;;
9297 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9298 tmp_addflag
=' -i_dynamic' ;;
9299 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9300 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9301 ifc
* | ifort
*) # Intel Fortran compiler
9302 tmp_addflag
=' -nofor_main' ;;
9303 lf95
*) # Lahey Fortran 8.1
9304 whole_archive_flag_spec
=
9305 tmp_sharedflag
='--shared' ;;
9306 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9307 tmp_sharedflag
='-qmkshrobj'
9309 nvcc
*) # Cuda Compiler Driver 2.2
9310 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'
9311 compiler_needs_object
=yes
9314 case `$CC -V 2>&1 | sed 5q` in
9315 *Sun\ C
*) # Sun C 5.9
9316 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'
9317 compiler_needs_object
=yes
9318 tmp_sharedflag
='-G' ;;
9319 *Sun\ F
*) # Sun Fortran 8.3
9320 tmp_sharedflag
='-G' ;;
9322 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9324 if test "x$supports_anon_versioning" = xyes
; then
9325 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9326 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9327 echo "local: *; };" >> $output_objdir/$libname.ver~
9328 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9331 case $cc_basename in
9332 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9333 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9334 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9335 hardcode_libdir_flag_spec
=
9336 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9337 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9338 if test "x$supports_anon_versioning" = xyes
; then
9339 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9340 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9341 echo "local: *; };" >> $output_objdir/$libname.ver~
9342 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9352 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9353 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9356 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9357 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9362 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9366 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9367 *** create shared libraries on Solaris systems. Therefore, libtool
9368 *** is disabling shared libraries support. We urge you to upgrade GNU
9369 *** binutils to release 2.9.1 or newer. Another option is to modify
9370 *** your PATH or compiler configuration so that the native linker is
9371 *** used, and then restart.
9374 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9375 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9376 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9382 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9383 case `$LD -v 2>&1` in
9384 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9388 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9389 *** reliably create shared libraries on SCO systems. Therefore, libtool
9390 *** is disabling shared libraries support. We urge you to upgrade GNU
9391 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9392 *** your PATH or compiler configuration so that the native linker is
9393 *** used, and then restart.
9398 # For security reasons, it is highly recommended that you always
9399 # use absolute paths for naming shared libraries, and exclude the
9400 # DT_RUNPATH tag from executables and libraries. But doing so
9401 # requires that you compile everything twice, which is a pain.
9402 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9403 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9404 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9405 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9414 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9417 hardcode_shlibpath_var
=no
9421 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9422 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9423 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9430 if test "$ld_shlibs" = no
; then
9432 hardcode_libdir_flag_spec
=
9433 export_dynamic_flag_spec
=
9434 whole_archive_flag_spec
=
9437 # PORTME fill in a description of your system's linker (not GNU ld)
9440 allow_undefined_flag
=unsupported
9441 always_export_symbols
=yes
9442 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'
9443 # Note: this linker hardcodes the directories in LIBPATH if there
9444 # are no directories specified by -L.
9445 hardcode_minus_L
=yes
9446 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9447 # Neither direct hardcoding nor static linking is supported with a
9449 hardcode_direct
=unsupported
9454 if test "$host_cpu" = ia64
; then
9455 # On IA64, the linker does run time linking by default, so we don't
9456 # have to do anything special.
9457 aix_use_runtimelinking
=no
9458 exp_sym_flag
='-Bexport'
9461 # If we're using GNU nm, then we don't want the "-C" option.
9462 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9463 # Also, AIX nm treats weak defined symbols like other global
9464 # defined symbols, whereas GNU nm marks them as "W".
9465 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9466 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'
9468 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'
9470 aix_use_runtimelinking
=no
9472 # Test if we are trying to use run time linking or normal
9473 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9474 # need to do runtime linking.
9475 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9476 for ld_flag
in $LDFLAGS; do
9477 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9478 aix_use_runtimelinking
=yes
9485 exp_sym_flag
='-bexport'
9486 no_entry_flag
='-bnoentry'
9489 # When large executables or shared objects are built, AIX ld can
9490 # have problems creating the table of contents. If linking a library
9491 # or program results in "error TOC overflow" add -mminimal-toc to
9492 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9493 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9497 hardcode_direct_absolute
=yes
9498 hardcode_libdir_separator
=':'
9499 link_all_deplibs
=yes
9500 file_list_spec
='${wl}-f,'
9502 if test "$GCC" = yes; then
9503 case $host_os in aix4.
[012]|aix4.
[012].
*)
9504 # We only want to do this on AIX 4.2 and lower, the check
9505 # below for broken collect2 doesn't work under 4.3+
9506 collect2name
=`${CC} -print-prog-name=collect2`
9507 if test -f "$collect2name" &&
9508 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9510 # We have reworked collect2
9513 # We have old collect2
9514 hardcode_direct
=unsupported
9515 # It fails to find uninstalled libraries when the uninstalled
9516 # path is not listed in the libpath. Setting hardcode_minus_L
9517 # to unsupported forces relinking
9518 hardcode_minus_L
=yes
9519 hardcode_libdir_flag_spec
='-L$libdir'
9520 hardcode_libdir_separator
=
9524 shared_flag
='-shared'
9525 if test "$aix_use_runtimelinking" = yes; then
9526 shared_flag
="$shared_flag "'${wl}-G'
9530 if test "$host_cpu" = ia64
; then
9531 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9532 # chokes on -Wl,-G. The following line is correct:
9535 if test "$aix_use_runtimelinking" = yes; then
9536 shared_flag
='${wl}-G'
9538 shared_flag
='${wl}-bM:SRE'
9543 export_dynamic_flag_spec
='${wl}-bexpall'
9544 # It seems that -bexpall does not export symbols beginning with
9545 # underscore (_), so it is better to generate a list of symbols to export.
9546 always_export_symbols
=yes
9547 if test "$aix_use_runtimelinking" = yes; then
9548 # Warning - without using the other runtime loading flags (-brtl),
9549 # -berok will link without error, but may produce a broken library.
9550 allow_undefined_flag
='-berok'
9551 # Determine the default libpath from the value encoded in an
9553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9554 /* end confdefs.h. */
9564 if ac_fn_c_try_link
"$LINENO"; then :
9566 lt_aix_libpath_sed
='
9567 /Import File Strings/,/^$/ {
9573 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9574 # Check for a 64-bit object if we didn't find anything.
9575 if test -z "$aix_libpath"; then
9576 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9579 rm -f core conftest.err conftest.
$ac_objext \
9580 conftest
$ac_exeext conftest.
$ac_ext
9581 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9583 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9584 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"
9586 if test "$host_cpu" = ia64
; then
9587 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9588 allow_undefined_flag
="-z nodefs"
9589 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"
9591 # Determine the default libpath from the value encoded in an
9593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9594 /* end confdefs.h. */
9604 if ac_fn_c_try_link
"$LINENO"; then :
9606 lt_aix_libpath_sed
='
9607 /Import File Strings/,/^$/ {
9613 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9614 # Check for a 64-bit object if we didn't find anything.
9615 if test -z "$aix_libpath"; then
9616 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9619 rm -f core conftest.err conftest.
$ac_objext \
9620 conftest
$ac_exeext conftest.
$ac_ext
9621 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9623 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9624 # Warning - without using the other run time loading flags,
9625 # -berok will link without error, but may produce a broken library.
9626 no_undefined_flag
=' ${wl}-bernotok'
9627 allow_undefined_flag
=' ${wl}-berok'
9628 if test "$with_gnu_ld" = yes; then
9629 # We only use this code for GNU lds that support --whole-archive.
9630 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9632 # Exported symbols can be pulled into shared objects from archives
9633 whole_archive_flag_spec
='$convenience'
9635 archive_cmds_need_lc
=yes
9636 # This is similar to how AIX traditionally builds its shared libraries.
9637 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'
9645 # see comment about AmigaOS4 .so support
9646 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9647 archive_expsym_cmds
=''
9650 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)'
9651 hardcode_libdir_flag_spec
='-L$libdir'
9652 hardcode_minus_L
=yes
9658 export_dynamic_flag_spec
=-rdynamic
9661 cygwin
* | mingw
* | pw32
* | cegcc
*)
9662 # When not using gcc, we currently assume that we are using
9663 # Microsoft Visual C++.
9664 # hardcode_libdir_flag_spec is actually meaningless, as there is
9665 # no search path for DLLs.
9666 hardcode_libdir_flag_spec
=' '
9667 allow_undefined_flag
=unsupported
9668 # Tell ltmain to make .lib files, not .a files.
9670 # Tell ltmain to make .dll files, not .so files.
9672 # FIXME: Setting linknames here is a bad hack.
9673 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9674 # The linker will automatically build a .lib file if we build a DLL.
9675 old_archive_from_new_cmds
='true'
9676 # FIXME: Should let the user specify the lib program.
9677 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9678 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9679 enable_shared_with_static_runtimes
=yes
9682 darwin
* | rhapsody
*)
9685 archive_cmds_need_lc
=no
9687 hardcode_automatic
=yes
9688 hardcode_shlibpath_var
=unsupported
9689 if test "$lt_cv_ld_force_load" = "yes"; then
9690 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\"`'
9692 whole_archive_flag_spec
=''
9694 link_all_deplibs
=yes
9695 allow_undefined_flag
="$_lt_dar_allow_undefined"
9696 case $cc_basename in
9697 ifort
*) _lt_dar_can_shared
=yes ;;
9698 *) _lt_dar_can_shared
=$GCC ;;
9700 if test "$_lt_dar_can_shared" = "yes"; then
9701 output_verbose_link_cmd
=func_echo_all
9702 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9703 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9704 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}"
9705 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}"
9714 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9715 hardcode_libdir_flag_spec
='-L$libdir'
9716 hardcode_shlibpath_var
=no
9719 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9720 # support. Future versions do this automatically, but an explicit c++rt0.o
9721 # does not break anything, and helps significantly (at the cost of a little
9724 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9725 hardcode_libdir_flag_spec
='-R$libdir'
9727 hardcode_shlibpath_var
=no
9730 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9732 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9734 hardcode_minus_L
=yes
9735 hardcode_shlibpath_var
=no
9738 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9739 freebsd
* | dragonfly
*)
9740 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9741 hardcode_libdir_flag_spec
='-R$libdir'
9743 hardcode_shlibpath_var
=no
9747 if test "$GCC" = yes; then
9748 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'
9750 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'
9752 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9753 hardcode_libdir_separator
=:
9756 # hardcode_minus_L: Not really in the search PATH,
9757 # but as the default location of the library.
9758 hardcode_minus_L
=yes
9759 export_dynamic_flag_spec
='${wl}-E'
9763 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9764 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9766 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9768 if test "$with_gnu_ld" = no
; then
9769 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9770 hardcode_libdir_flag_spec_ld
='+b $libdir'
9771 hardcode_libdir_separator
=:
9773 hardcode_direct_absolute
=yes
9774 export_dynamic_flag_spec
='${wl}-E'
9775 # hardcode_minus_L: Not really in the search PATH,
9776 # but as the default location of the library.
9777 hardcode_minus_L
=yes
9782 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9785 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9788 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9791 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9797 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9800 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9804 # Older versions of the 11.00 compiler do not understand -b yet
9805 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9807 $as_echo_n "checking if $CC understands -b... " >&6; }
9808 if ${lt_cv_prog_compiler__b+:} false
; then :
9809 $as_echo_n "(cached) " >&6
9811 lt_cv_prog_compiler__b
=no
9812 save_LDFLAGS
="$LDFLAGS"
9813 LDFLAGS
="$LDFLAGS -b"
9814 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9815 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9816 # The linker can only warn and ignore the option if not recognized
9817 # So say no if there are warnings
9818 if test -s conftest.err
; then
9819 # Append any errors to the config.log.
9820 cat conftest.err
1>&5
9821 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9822 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9823 if diff conftest.exp conftest.er2
>/dev
/null
; then
9824 lt_cv_prog_compiler__b
=yes
9827 lt_cv_prog_compiler__b
=yes
9831 LDFLAGS
="$save_LDFLAGS"
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9835 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9837 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9838 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9840 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9846 if test "$with_gnu_ld" = no
; then
9847 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9848 hardcode_libdir_separator
=:
9853 hardcode_shlibpath_var
=no
9857 hardcode_direct_absolute
=yes
9858 export_dynamic_flag_spec
='${wl}-E'
9860 # hardcode_minus_L: Not really in the search PATH,
9861 # but as the default location of the library.
9862 hardcode_minus_L
=yes
9868 irix5
* | irix6
* | nonstopux
*)
9869 if test "$GCC" = yes; then
9870 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'
9871 # Try to use the -exported_symbol ld option, if it does not
9872 # work, assume that -exports_file does not work either and
9873 # implicitly export all symbols.
9874 save_LDFLAGS
="$LDFLAGS"
9875 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9877 /* end confdefs.h. */
9880 if ac_fn_c_try_link
"$LINENO"; then :
9881 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'
9884 rm -f core conftest.err conftest.
$ac_objext \
9885 conftest
$ac_exeext conftest.
$ac_ext
9886 LDFLAGS
="$save_LDFLAGS"
9888 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'
9889 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'
9891 archive_cmds_need_lc
='no'
9892 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9893 hardcode_libdir_separator
=:
9895 link_all_deplibs
=yes
9899 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9900 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9902 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9904 hardcode_libdir_flag_spec
='-R$libdir'
9906 hardcode_shlibpath_var
=no
9910 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9912 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9913 hardcode_libdir_separator
=:
9914 hardcode_shlibpath_var
=no
9921 if test -f /usr
/libexec
/ld.so
; then
9923 hardcode_shlibpath_var
=no
9924 hardcode_direct_absolute
=yes
9925 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9926 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9927 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9928 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9929 export_dynamic_flag_spec
='${wl}-E'
9932 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9933 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9934 hardcode_libdir_flag_spec
='-R$libdir'
9937 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9938 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9948 hardcode_libdir_flag_spec
='-L$libdir'
9949 hardcode_minus_L
=yes
9950 allow_undefined_flag
=unsupported
9951 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'
9952 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9956 if test "$GCC" = yes; then
9957 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9958 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'
9960 allow_undefined_flag
=' -expect_unresolved \*'
9961 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'
9963 archive_cmds_need_lc
='no'
9964 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9965 hardcode_libdir_separator
=:
9968 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9969 if test "$GCC" = yes; then
9970 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9971 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'
9972 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9974 allow_undefined_flag
=' -expect_unresolved \*'
9975 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'
9976 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~
9977 $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'
9979 # Both c and cxx compiler support -rpath directly
9980 hardcode_libdir_flag_spec
='-rpath $libdir'
9982 archive_cmds_need_lc
='no'
9983 hardcode_libdir_separator
=:
9987 no_undefined_flag
=' -z defs'
9988 if test "$GCC" = yes; then
9990 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9991 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9992 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9994 case `$CC -V 2>&1` in
9997 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9998 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9999 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10003 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10004 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10005 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10009 hardcode_libdir_flag_spec
='-R$libdir'
10010 hardcode_shlibpath_var
=no
10012 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10014 # The compiler driver will combine and reorder linker options,
10015 # but understands `-z linker_flag'. GCC discards it without `$wl',
10016 # but is careful enough not to reorder.
10017 # Supported since Solaris 2.6 (maybe 2.5.1?)
10018 if test "$GCC" = yes; then
10019 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10021 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10025 link_all_deplibs
=yes
10029 if test "x$host_vendor" = xsequent
; then
10030 # Use $CC to link under sequent, because it throws in some extra .o
10031 # files that make .init and .fini sections work.
10032 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10034 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10036 hardcode_libdir_flag_spec
='-L$libdir'
10037 hardcode_direct
=yes
10038 hardcode_minus_L
=yes
10039 hardcode_shlibpath_var
=no
10043 case $host_vendor in
10045 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10046 hardcode_direct
=yes # is this really true???
10049 ## LD is ld it makes a PLAMLIB
10050 ## CC just makes a GrossModule.
10051 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10052 reload_cmds
='$CC -r -o $output$reload_objs'
10056 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10057 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10060 runpath_var
='LD_RUN_PATH'
10061 hardcode_shlibpath_var
=no
10065 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10066 hardcode_shlibpath_var
=no
10067 export_dynamic_flag_spec
='-Bexport'
10071 if test -d /usr
/nec
; then
10072 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10073 hardcode_shlibpath_var
=no
10074 runpath_var
=LD_RUN_PATH
10075 hardcode_runpath_var
=yes
10080 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10081 no_undefined_flag
='${wl}-z,text'
10082 archive_cmds_need_lc
=no
10083 hardcode_shlibpath_var
=no
10084 runpath_var
='LD_RUN_PATH'
10086 if test "$GCC" = yes; then
10087 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10088 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10090 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10091 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10095 sysv5
* | sco3.2v5
* | sco5v6
*)
10096 # Note: We can NOT use -z defs as we might desire, because we do not
10097 # link with -lc, and that would cause any symbols used from libc to
10098 # always be unresolved, which means just about no library would
10099 # ever link correctly. If we're not using GNU ld we use -z text
10100 # though, which does catch some bad symbols but isn't as heavy-handed
10102 no_undefined_flag
='${wl}-z,text'
10103 allow_undefined_flag
='${wl}-z,nodefs'
10104 archive_cmds_need_lc
=no
10105 hardcode_shlibpath_var
=no
10106 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10107 hardcode_libdir_separator
=':'
10108 link_all_deplibs
=yes
10109 export_dynamic_flag_spec
='${wl}-Bexport'
10110 runpath_var
='LD_RUN_PATH'
10112 if test "$GCC" = yes; then
10113 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10114 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10116 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10117 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10122 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10123 hardcode_libdir_flag_spec
='-L$libdir'
10124 hardcode_shlibpath_var
=no
10132 if test x
$host_vendor = xsni
; then
10134 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10135 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10142 $as_echo "$ld_shlibs" >&6; }
10143 test "$ld_shlibs" = no
&& can_build_shared
=no
10145 with_gnu_ld
=$with_gnu_ld
10162 # Do we need to explicitly link libc?
10164 case "x$archive_cmds_need_lc" in
10166 # Assume -lc should be added
10167 archive_cmds_need_lc
=yes
10169 if test "$enable_shared" = yes && test "$GCC" = yes; then
10170 case $archive_cmds in
10172 # FIXME: we may have to deal with multi-command sequences.
10175 # Test whether the compiler implicitly links with -lc since on some
10176 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10177 # to ld, don't add -lc before -lgcc.
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10179 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10180 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10181 $as_echo_n "(cached) " >&6
10184 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10187 (eval $ac_compile) 2>&5
10189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10190 test $ac_status = 0; } 2>conftest.err
; then
10193 libobjs
=conftest.
$ac_objext
10195 wl
=$lt_prog_compiler_wl
10196 pic_flag
=$lt_prog_compiler_pic
10202 lt_save_allow_undefined_flag
=$allow_undefined_flag
10203 allow_undefined_flag
=
10204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10205 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10208 test $ac_status = 0; }
10210 lt_cv_archive_cmds_need_lc
=no
10212 lt_cv_archive_cmds_need_lc
=yes
10214 allow_undefined_flag
=$lt_save_allow_undefined_flag
10216 cat conftest.err
1>&5
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10222 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10223 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10387 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10389 if test "$GCC" = yes; then
10391 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10392 *) lt_awk_arg
="/^libraries:/" ;;
10395 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10396 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10398 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10399 case $lt_search_path_spec in
10401 # if the path contains ";" then we assume it to be the separator
10402 # otherwise default to the standard path separator (i.e. ":") - it is
10403 # assumed that no part of a normal pathname contains ";" but that should
10404 # okay in the real world where ";" in dirpaths is itself problematic.
10405 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10408 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10411 # Ok, now we have the path, separated by spaces, we can step through it
10412 # and add multilib dir if necessary.
10413 lt_tmp_lt_search_path_spec
=
10414 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10415 for lt_sys_path
in $lt_search_path_spec; do
10416 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10417 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10419 test -d "$lt_sys_path" && \
10420 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10423 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10424 BEGIN {RS=" "; FS="/|\n";} {
10427 for (lt_i = NF; lt_i > 0; lt_i--) {
10428 if ($lt_i != "" && $lt_i != ".") {
10429 if ($lt_i == "..") {
10432 if (lt_count == 0) {
10433 lt_foo="/" $lt_i lt_foo;
10440 if (lt_foo != "") { lt_freq[lt_foo]++; }
10441 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10443 # AWK program above erroneously prepends '/' to C:/dos/paths
10446 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10447 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10449 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10451 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10453 library_names_spec
=
10454 libname_spec
='lib$name'
10458 postuninstall_cmds
=
10462 shlibpath_overrides_runpath
=unknown
10464 dynamic_linker
="$host_os ld.so"
10465 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10466 need_lib_prefix
=unknown
10467 hardcode_into_libs
=no
10469 # when you set need_version to no, make sure it does not cause -set_version
10470 # flags to be left without arguments
10471 need_version
=unknown
10476 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10477 shlibpath_var
=LIBPATH
10479 # AIX 3 has no versioning support, so we append a major version to the name.
10480 soname_spec
='${libname}${release}${shared_ext}$major'
10487 hardcode_into_libs
=yes
10488 if test "$host_cpu" = ia64
; then
10489 # AIX 5 supports IA64
10490 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10491 shlibpath_var
=LD_LIBRARY_PATH
10493 # With GCC up to 2.95.x, collect2 would create an import file
10494 # for dependence libraries. The import file would start with
10495 # the line `#! .'. This would cause the generated library to
10496 # depend on `.', always an invalid library. This was fixed in
10497 # development snapshots of GCC prior to 3.0.
10499 aix4 | aix4.
[01] | aix4.
[01].
*)
10500 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10502 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10505 can_build_shared
=no
10509 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10510 # soname into executable. Probably we can add versioning support to
10511 # collect2, so additional links can be useful in future.
10512 if test "$aix_use_runtimelinking" = yes; then
10513 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10514 # instead of lib<name>.a to let people know that these are not
10515 # typical AIX shared libraries.
10516 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10518 # We preserve .a as extension for shared libraries through AIX4.2
10519 # and later when we are not doing run time linking.
10520 library_names_spec
='${libname}${release}.a $libname.a'
10521 soname_spec
='${libname}${release}${shared_ext}$major'
10523 shlibpath_var
=LIBPATH
10530 # Since July 2007 AmigaOS4 officially supports .so libraries.
10531 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10532 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10535 library_names_spec
='$libname.ixlibrary $libname.a'
10536 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10537 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'
10543 library_names_spec
='${libname}${shared_ext}'
10544 dynamic_linker
="$host_os ld.so"
10545 shlibpath_var
=LIBRARY_PATH
10551 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10552 soname_spec
='${libname}${release}${shared_ext}$major'
10553 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10554 shlibpath_var
=LD_LIBRARY_PATH
10555 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10556 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10557 # the default ld.so.conf also contains /usr/contrib/lib and
10558 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10559 # libtool to hard-code these into programs
10562 cygwin
* | mingw
* | pw32
* | cegcc
*)
10563 version_type
=windows
10568 case $GCC,$host_os in
10569 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10570 library_names_spec
='$libname.dll.a'
10571 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10572 postinstall_cmds
='base_file=`basename \${file}`~
10573 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10574 dldir=$destdir/`dirname \$dlpath`~
10575 test -d \$dldir || mkdir -p \$dldir~
10576 $install_prog $dir/$dlname \$dldir/$dlname~
10577 chmod a+x \$dldir/$dlname~
10578 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10579 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10581 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10582 dlpath=$dir/\$dldll~
10584 shlibpath_overrides_runpath
=yes
10588 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10589 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10591 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10594 # MinGW DLLs use traditional 'lib' prefix
10595 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10598 # pw32 DLLs use 'pw' prefix rather than 'lib'
10599 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10605 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10608 dynamic_linker
='Win32 ld.exe'
10609 # FIXME: first we should search . and the directory the executable is in
10613 darwin
* | rhapsody
*)
10614 dynamic_linker
="$host_os dyld"
10615 version_type
=darwin
10618 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10619 soname_spec
='${libname}${release}${major}$shared_ext'
10620 shlibpath_overrides_runpath
=yes
10621 shlibpath_var
=DYLD_LIBRARY_PATH
10622 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10624 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10625 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10632 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10633 soname_spec
='${libname}${release}${shared_ext}$major'
10634 shlibpath_var
=LD_LIBRARY_PATH
10637 freebsd
* | dragonfly
*)
10638 # DragonFly does not have aout. When/if they implement a new
10639 # versioning mechanism, adjust this.
10640 if test -x /usr
/bin
/objformat
; then
10641 objformat
=`/usr/bin/objformat`
10644 freebsd
[23].
*) objformat
=aout
;;
10645 *) objformat
=elf
;;
10648 version_type
=freebsd-
$objformat
10649 case $version_type in
10651 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10656 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10660 shlibpath_var
=LD_LIBRARY_PATH
10663 shlibpath_overrides_runpath
=yes
10665 freebsd3.
[01]* | freebsdelf3.
[01]*)
10666 shlibpath_overrides_runpath
=yes
10667 hardcode_into_libs
=yes
10669 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10670 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10671 shlibpath_overrides_runpath
=no
10672 hardcode_into_libs
=yes
10674 *) # from 4.6 on, and DragonFly
10675 shlibpath_overrides_runpath
=yes
10676 hardcode_into_libs
=yes
10685 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10686 soname_spec
='${libname}${release}${shared_ext}$major'
10687 shlibpath_var
=LD_LIBRARY_PATH
10688 hardcode_into_libs
=yes
10695 dynamic_linker
="$host_os runtime_loader"
10696 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10697 soname_spec
='${libname}${release}${shared_ext}$major'
10698 shlibpath_var
=LIBRARY_PATH
10699 shlibpath_overrides_runpath
=yes
10700 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10701 hardcode_into_libs
=yes
10704 hpux9
* | hpux10
* | hpux11
*)
10705 # Give a soname corresponding to the major version so that dld.sl refuses to
10706 # link against other versions.
10713 hardcode_into_libs
=yes
10714 dynamic_linker
="$host_os dld.so"
10715 shlibpath_var
=LD_LIBRARY_PATH
10716 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10717 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10718 soname_spec
='${libname}${release}${shared_ext}$major'
10719 if test "X$HPUX_IA64_MODE" = X32
; then
10720 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10722 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10724 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10728 hardcode_into_libs
=yes
10729 dynamic_linker
="$host_os dld.sl"
10730 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10731 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10732 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10733 soname_spec
='${libname}${release}${shared_ext}$major'
10734 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10735 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10739 dynamic_linker
="$host_os dld.sl"
10740 shlibpath_var
=SHLIB_PATH
10741 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10742 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10743 soname_spec
='${libname}${release}${shared_ext}$major'
10746 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10747 postinstall_cmds
='chmod 555 $lib'
10748 # or fails outright, so override atomically:
10749 install_override_mode
=555
10756 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10757 soname_spec
='${libname}${release}${shared_ext}$major'
10758 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10759 shlibpath_var
=LD_LIBRARY_PATH
10760 shlibpath_overrides_runpath
=no
10761 hardcode_into_libs
=yes
10764 irix5
* | irix6
* | nonstopux
*)
10766 nonstopux
*) version_type
=nonstopux
;;
10768 if test "$lt_cv_prog_gnu_ld" = yes; then
10776 soname_spec
='${libname}${release}${shared_ext}$major'
10777 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10779 irix5
* | nonstopux
*)
10780 libsuff
= shlibsuff
=
10783 case $LD in # libtool.m4 will add one of these switches to LD
10784 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10785 libsuff
= shlibsuff
= libmagic
=32-bit;;
10786 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10787 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10788 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10789 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10790 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10794 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10795 shlibpath_overrides_runpath
=no
10796 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10797 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10798 hardcode_into_libs
=yes
10801 # No shared lib support for Linux oldld, aout, or coff.
10802 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10806 # This must be Linux ELF.
10807 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
10811 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10812 soname_spec
='${libname}${release}${shared_ext}$major'
10813 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10814 shlibpath_var
=LD_LIBRARY_PATH
10815 shlibpath_overrides_runpath
=no
10817 # Some binutils ld are patched to set DT_RUNPATH
10818 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
10819 $as_echo_n "(cached) " >&6
10821 lt_cv_shlibpath_overrides_runpath
=no
10822 save_LDFLAGS
=$LDFLAGS
10823 save_libdir
=$libdir
10824 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10825 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10827 /* end confdefs.h. */
10837 if ac_fn_c_try_link
"$LINENO"; then :
10838 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10839 lt_cv_shlibpath_overrides_runpath
=yes
10842 rm -f core conftest.err conftest.
$ac_objext \
10843 conftest
$ac_exeext conftest.
$ac_ext
10844 LDFLAGS
=$save_LDFLAGS
10845 libdir
=$save_libdir
10849 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10851 # This implies no fast_install, which is unacceptable.
10852 # Some rework will be needed to allow for fast_install
10853 # before this can be enabled.
10854 hardcode_into_libs
=yes
10856 # Append ld.so.conf contents to the search path
10857 if test -f /etc
/ld.so.conf
; then
10858 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' ' '`
10859 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10862 # We used to test for /lib/ld.so.1 and disable shared libraries on
10863 # powerpc, because MkLinux only supported shared libraries with the
10864 # GNU dynamic linker. Since this was broken with cross compilers,
10865 # most powerpc-linux boxes support dynamic linking these days and
10866 # people can always --disable-shared, the test was removed, and we
10867 # assume the GNU/Linux dynamic linker is in use.
10868 dynamic_linker
='GNU/Linux ld.so'
10875 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10876 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10877 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10878 dynamic_linker
='NetBSD (a.out) ld.so'
10880 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10881 soname_spec
='${libname}${release}${shared_ext}$major'
10882 dynamic_linker
='NetBSD ld.elf_so'
10884 shlibpath_var
=LD_LIBRARY_PATH
10885 shlibpath_overrides_runpath
=yes
10886 hardcode_into_libs
=yes
10891 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10892 shlibpath_var
=LD_LIBRARY_PATH
10893 shlibpath_overrides_runpath
=yes
10900 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10901 soname_spec
='${libname}${release}${shared_ext}$major'
10902 shlibpath_var
=LD_LIBRARY_PATH
10903 shlibpath_overrides_runpath
=no
10904 hardcode_into_libs
=yes
10905 dynamic_linker
='ldqnx.so'
10910 sys_lib_dlsearch_path_spec
="/usr/lib"
10912 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10914 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10915 *) need_version
=no
;;
10917 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10918 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10919 shlibpath_var
=LD_LIBRARY_PATH
10920 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10922 openbsd2.
[89] | openbsd2.
[89].
*)
10923 shlibpath_overrides_runpath
=no
10926 shlibpath_overrides_runpath
=yes
10930 shlibpath_overrides_runpath
=yes
10935 libname_spec
='$name'
10938 library_names_spec
='$libname${shared_ext} $libname.a'
10939 dynamic_linker
='OS/2 ld.exe'
10940 shlibpath_var
=LIBPATH
10943 osf3
* | osf4
* | osf5
*)
10947 soname_spec
='${libname}${release}${shared_ext}$major'
10948 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10949 shlibpath_var
=LD_LIBRARY_PATH
10950 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10951 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10962 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10963 soname_spec
='${libname}${release}${shared_ext}$major'
10964 shlibpath_var
=LD_LIBRARY_PATH
10965 shlibpath_overrides_runpath
=yes
10966 hardcode_into_libs
=yes
10967 # ldd complains unless libraries are executable
10968 postinstall_cmds
='chmod +x $lib'
10973 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10974 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10975 shlibpath_var
=LD_LIBRARY_PATH
10976 shlibpath_overrides_runpath
=yes
10977 if test "$with_gnu_ld" = yes; then
10985 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10986 soname_spec
='${libname}${release}${shared_ext}$major'
10987 shlibpath_var
=LD_LIBRARY_PATH
10988 case $host_vendor in
10990 shlibpath_overrides_runpath
=no
10992 runpath_var
=LD_RUN_PATH
11000 shlibpath_overrides_runpath
=no
11001 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11007 if test -d /usr
/nec
;then
11009 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11010 soname_spec
='$libname${shared_ext}.$major'
11011 shlibpath_var
=LD_LIBRARY_PATH
11015 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11016 version_type
=freebsd-elf
11019 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11020 soname_spec
='${libname}${release}${shared_ext}$major'
11021 shlibpath_var
=LD_LIBRARY_PATH
11022 shlibpath_overrides_runpath
=yes
11023 hardcode_into_libs
=yes
11024 if test "$with_gnu_ld" = yes; then
11025 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11027 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11030 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11034 sys_lib_dlsearch_path_spec
='/usr/lib'
11038 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11042 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11043 shlibpath_var
=LD_LIBRARY_PATH
11044 shlibpath_overrides_runpath
=no
11045 hardcode_into_libs
=yes
11050 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11051 soname_spec
='${libname}${release}${shared_ext}$major'
11052 shlibpath_var
=LD_LIBRARY_PATH
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11060 $as_echo "$dynamic_linker" >&6; }
11061 test "$dynamic_linker" = no
&& can_build_shared
=no
11063 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11064 if test "$GCC" = yes; then
11065 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11068 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11069 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11071 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11072 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11167 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11169 if test -n "$hardcode_libdir_flag_spec" ||
11170 test -n "$runpath_var" ||
11171 test "X$hardcode_automatic" = "Xyes" ; then
11173 # We can hardcode non-existent directories.
11174 if test "$hardcode_direct" != no
&&
11175 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11176 # have to relink, otherwise we might link with an installed library
11177 # when we should be linking with a yet-to-be-installed one
11178 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11179 test "$hardcode_minus_L" != no
; then
11180 # Linking always hardcodes the temporary library directory.
11181 hardcode_action
=relink
11183 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11184 hardcode_action
=immediate
11187 # We cannot hardcode anything, or else we can only hardcode existing
11189 hardcode_action
=unsupported
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11192 $as_echo "$hardcode_action" >&6; }
11194 if test "$hardcode_action" = relink ||
11195 test "$inherit_rpath" = yes; then
11196 # Fast installation is not supported
11197 enable_fast_install
=no
11198 elif test "$shlibpath_overrides_runpath" = yes ||
11199 test "$enable_shared" = no
; then
11200 # Fast installation is not necessary
11201 enable_fast_install
=needless
11209 if test "x$enable_dlopen" != xyes
; then
11210 enable_dlopen
=unknown
11211 enable_dlopen_self
=unknown
11212 enable_dlopen_self_static
=unknown
11219 lt_cv_dlopen
="load_add_on"
11221 lt_cv_dlopen_self
=yes
11224 mingw
* | pw32
* | cegcc
*)
11225 lt_cv_dlopen
="LoadLibrary"
11230 lt_cv_dlopen
="dlopen"
11235 # if libdl is installed we need to link against it
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11237 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11238 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11239 $as_echo_n "(cached) " >&6
11241 ac_check_lib_save_LIBS
=$LIBS
11243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11244 /* end confdefs.h. */
11246 /* Override any GCC internal prototype to avoid an error.
11247 Use char because int might match the return type of a GCC
11248 builtin and then its argument prototype would still apply. */
11261 if ac_fn_c_try_link
"$LINENO"; then :
11262 ac_cv_lib_dl_dlopen
=yes
11264 ac_cv_lib_dl_dlopen
=no
11266 rm -f core conftest.err conftest.
$ac_objext \
11267 conftest
$ac_exeext conftest.
$ac_ext
11268 LIBS
=$ac_check_lib_save_LIBS
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11271 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11272 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11273 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11276 lt_cv_dlopen
="dyld"
11278 lt_cv_dlopen_self
=yes
11285 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11286 if test "x$ac_cv_func_shl_load" = xyes
; then :
11287 lt_cv_dlopen
="shl_load"
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11290 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11291 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11292 $as_echo_n "(cached) " >&6
11294 ac_check_lib_save_LIBS
=$LIBS
11296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11297 /* end confdefs.h. */
11299 /* Override any GCC internal prototype to avoid an error.
11300 Use char because int might match the return type of a GCC
11301 builtin and then its argument prototype would still apply. */
11309 return shl_load ();
11314 if ac_fn_c_try_link
"$LINENO"; then :
11315 ac_cv_lib_dld_shl_load
=yes
11317 ac_cv_lib_dld_shl_load
=no
11319 rm -f core conftest.err conftest.
$ac_objext \
11320 conftest
$ac_exeext conftest.
$ac_ext
11321 LIBS
=$ac_check_lib_save_LIBS
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11324 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11325 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11326 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11328 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11329 if test "x$ac_cv_func_dlopen" = xyes
; then :
11330 lt_cv_dlopen
="dlopen"
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11333 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11334 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11335 $as_echo_n "(cached) " >&6
11337 ac_check_lib_save_LIBS
=$LIBS
11339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11340 /* end confdefs.h. */
11342 /* Override any GCC internal prototype to avoid an error.
11343 Use char because int might match the return type of a GCC
11344 builtin and then its argument prototype would still apply. */
11357 if ac_fn_c_try_link
"$LINENO"; then :
11358 ac_cv_lib_dl_dlopen
=yes
11360 ac_cv_lib_dl_dlopen
=no
11362 rm -f core conftest.err conftest.
$ac_objext \
11363 conftest
$ac_exeext conftest.
$ac_ext
11364 LIBS
=$ac_check_lib_save_LIBS
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11367 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11368 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11369 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11372 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11373 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11374 $as_echo_n "(cached) " >&6
11376 ac_check_lib_save_LIBS
=$LIBS
11377 LIBS
="-lsvld $LIBS"
11378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11379 /* end confdefs.h. */
11381 /* Override any GCC internal prototype to avoid an error.
11382 Use char because int might match the return type of a GCC
11383 builtin and then its argument prototype would still apply. */
11396 if ac_fn_c_try_link
"$LINENO"; then :
11397 ac_cv_lib_svld_dlopen
=yes
11399 ac_cv_lib_svld_dlopen
=no
11401 rm -f core conftest.err conftest.
$ac_objext \
11402 conftest
$ac_exeext conftest.
$ac_ext
11403 LIBS
=$ac_check_lib_save_LIBS
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11406 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11407 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11408 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11411 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11412 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11413 $as_echo_n "(cached) " >&6
11415 ac_check_lib_save_LIBS
=$LIBS
11417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11418 /* end confdefs.h. */
11420 /* Override any GCC internal prototype to avoid an error.
11421 Use char because int might match the return type of a GCC
11422 builtin and then its argument prototype would still apply. */
11430 return dld_link ();
11435 if ac_fn_c_try_link
"$LINENO"; then :
11436 ac_cv_lib_dld_dld_link
=yes
11438 ac_cv_lib_dld_dld_link
=no
11440 rm -f core conftest.err conftest.
$ac_objext \
11441 conftest
$ac_exeext conftest.
$ac_ext
11442 LIBS
=$ac_check_lib_save_LIBS
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11445 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11446 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11447 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11468 if test "x$lt_cv_dlopen" != xno
; then
11474 case $lt_cv_dlopen in
11476 save_CPPFLAGS
="$CPPFLAGS"
11477 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11479 save_LDFLAGS
="$LDFLAGS"
11480 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11483 LIBS
="$lt_cv_dlopen_libs $LIBS"
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11486 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11487 if ${lt_cv_dlopen_self+:} false
; then :
11488 $as_echo_n "(cached) " >&6
11490 if test "$cross_compiling" = yes; then :
11491 lt_cv_dlopen_self
=cross
11493 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11494 lt_status
=$lt_dlunknown
11495 cat > conftest.
$ac_ext <<_LT_EOF
11496 #line 11496 "configure"
11497 #include "confdefs.h"
11506 # define LT_DLGLOBAL RTLD_GLOBAL
11509 # define LT_DLGLOBAL DL_GLOBAL
11511 # define LT_DLGLOBAL 0
11515 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11516 find out it does not work in some platform. */
11517 #ifndef LT_DLLAZY_OR_NOW
11519 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11522 # define LT_DLLAZY_OR_NOW DL_LAZY
11525 # define LT_DLLAZY_OR_NOW RTLD_NOW
11528 # define LT_DLLAZY_OR_NOW DL_NOW
11530 # define LT_DLLAZY_OR_NOW 0
11537 /* When -fvisbility=hidden is used, assume the code has been annotated
11538 correspondingly for the symbols needed. */
11539 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11540 void fnord () __attribute__((visibility("default")));
11543 void fnord () { int i=42; }
11546 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11547 int status = $lt_dlunknown;
11551 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11554 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11555 else puts (dlerror ());
11557 /* dlclose (self); */
11565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11566 (eval $ac_link) 2>&5
11568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11569 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11570 (.
/conftest
; exit; ) >&5 2>/dev
/null
11572 case x
$lt_status in
11573 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11574 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11575 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11578 # compilation failed
11579 lt_cv_dlopen_self
=no
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11587 $as_echo "$lt_cv_dlopen_self" >&6; }
11589 if test "x$lt_cv_dlopen_self" = xyes
; then
11590 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11592 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11593 if ${lt_cv_dlopen_self_static+:} false
; then :
11594 $as_echo_n "(cached) " >&6
11596 if test "$cross_compiling" = yes; then :
11597 lt_cv_dlopen_self_static
=cross
11599 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11600 lt_status
=$lt_dlunknown
11601 cat > conftest.
$ac_ext <<_LT_EOF
11602 #line 11602 "configure"
11603 #include "confdefs.h"
11612 # define LT_DLGLOBAL RTLD_GLOBAL
11615 # define LT_DLGLOBAL DL_GLOBAL
11617 # define LT_DLGLOBAL 0
11621 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11622 find out it does not work in some platform. */
11623 #ifndef LT_DLLAZY_OR_NOW
11625 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11628 # define LT_DLLAZY_OR_NOW DL_LAZY
11631 # define LT_DLLAZY_OR_NOW RTLD_NOW
11634 # define LT_DLLAZY_OR_NOW DL_NOW
11636 # define LT_DLLAZY_OR_NOW 0
11643 /* When -fvisbility=hidden is used, assume the code has been annotated
11644 correspondingly for the symbols needed. */
11645 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11646 void fnord () __attribute__((visibility("default")));
11649 void fnord () { int i=42; }
11652 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11653 int status = $lt_dlunknown;
11657 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11660 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11661 else puts (dlerror ());
11663 /* dlclose (self); */
11671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11672 (eval $ac_link) 2>&5
11674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11675 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11676 (.
/conftest
; exit; ) >&5 2>/dev
/null
11678 case x
$lt_status in
11679 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11680 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11681 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11684 # compilation failed
11685 lt_cv_dlopen_self_static
=no
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11693 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11696 CPPFLAGS
="$save_CPPFLAGS"
11697 LDFLAGS
="$save_LDFLAGS"
11702 case $lt_cv_dlopen_self in
11703 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11704 *) enable_dlopen_self
=unknown
;;
11707 case $lt_cv_dlopen_self_static in
11708 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11709 *) enable_dlopen_self_static
=unknown
;;
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11732 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11733 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11734 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11735 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11737 $as_echo "yes" >&6; }
11739 # FIXME - insert some real tests, host_os isn't really good enough
11742 if test -n "$STRIP" ; then
11743 striplib
="$STRIP -x"
11744 old_striplib
="$STRIP -S"
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11746 $as_echo "yes" >&6; }
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11749 $as_echo "no" >&6; }
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11754 $as_echo "no" >&6; }
11770 # Report which library types will actually be built
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11772 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11774 $as_echo "$can_build_shared" >&6; }
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11777 $as_echo_n "checking whether to build shared libraries... " >&6; }
11778 test "$can_build_shared" = "no" && enable_shared
=no
11780 # On AIX, shared libraries and static libraries use the same namespace, and
11781 # are all built from PIC.
11784 test "$enable_shared" = yes && enable_static
=no
11785 if test -n "$RANLIB"; then
11786 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11787 postinstall_cmds
='$RANLIB $lib'
11792 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11793 test "$enable_shared" = yes && enable_static
=no
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11798 $as_echo "$enable_shared" >&6; }
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11801 $as_echo_n "checking whether to build static libraries... " >&6; }
11802 # Make sure either enable_shared or enable_static is yes.
11803 test "$enable_shared" = yes || enable_static
=yes
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11805 $as_echo "$enable_static" >&6; }
11812 ac_cpp
='$CPP $CPPFLAGS'
11813 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11814 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11815 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11831 ac_config_commands
="$ac_config_commands libtool"
11836 # Only expand once:
11842 gdc_save_DFLAGS
=$GDCFLAGS
11843 GDCFLAGS
="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
11846 # Source file extension for D test sources.
11849 # Object file extension for compiled D test sources.
11853 # Code to be used in simple compile tests
11854 lt_simple_compile_test_code
="module mod; extern(C) int main() { return 0; }"
11856 # Code to be used in simple link tests
11857 lt_simple_link_test_code
='module mod; extern(C) int main() { return 0; }'
11859 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11866 # If no C compiler was specified, use CC.
11869 # If no C compiler flags were specified, use CFLAGS.
11870 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
11872 # Allow CC to be a program name with arguments.
11876 # save warnings/boilerplate of simple test code
11877 ac_outfile
=conftest.
$ac_objext
11878 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
11879 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
11880 _lt_compiler_boilerplate
=`cat conftest.err`
11883 ac_outfile
=conftest.
$ac_objext
11884 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
11885 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
11886 _lt_linker_boilerplate
=`cat conftest.err`
11890 # Allow CC to be a program name with arguments.
11892 lt_save_CFLAGS
=$CFLAGS
11893 lt_save_DFLAGS
=$GDCFLAGS
11897 # Need to specify location for object.d
11898 GDCFLAGS
="-nophoboslib $GDCFLAGS"
11903 for cc_temp
in $compiler""; do
11905 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
11906 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
11911 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11914 # GDC did not exist at the time GCC didn't implicitly link libc in.
11915 archive_cmds_need_lc_D
=no
11917 old_archive_cmds_D
=$old_archive_cmds
11918 reload_flag_D
=$reload_flag
11919 reload_cmds_D
=$reload_cmds
11922 ## There is no encapsulation within the following macros, do not change
11923 ## the running order or otherwise move them around unless you know exactly
11924 ## what you are doing...
11925 if test -n "$compiler"; then
11927 lt_prog_compiler_no_builtin_flag_D
=
11929 if test "$GCC" = yes; then
11930 case $cc_basename in
11932 lt_prog_compiler_no_builtin_flag_D
=' -Xcompiler -fno-builtin' ;;
11934 lt_prog_compiler_no_builtin_flag_D
=' -fno-builtin' ;;
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11938 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11939 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
11940 $as_echo_n "(cached) " >&6
11942 lt_cv_prog_compiler_rtti_exceptions
=no
11943 ac_outfile
=conftest.
$ac_objext
11944 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
11945 lt_compiler_flag
="-fno-rtti -fno-exceptions"
11946 # Insert the option either (1) after the last *FLAGS variable, or
11947 # (2) before a word containing "conftest.", or (3) at the end.
11948 # Note that $ac_compile itself does not contain backslashes and begins
11949 # with a dollar sign (not a hyphen), so the echo should work correctly.
11950 # The option is referenced via a variable to avoid confusing sed.
11951 lt_compile
=`echo "$ac_compile" | $SED \
11952 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11953 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11954 -e 's:$: $lt_compiler_flag:'`
11955 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11956 (eval "$lt_compile" 2>conftest.err
)
11958 cat conftest.err
>&5
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 if (exit $ac_status) && test -s "$ac_outfile"; then
11961 # The compiler can only warn and ignore the option if not recognized
11962 # So say no if there are warnings other than the usual output.
11963 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
11964 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
11965 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
11966 lt_cv_prog_compiler_rtti_exceptions
=yes
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11973 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11975 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
11976 lt_prog_compiler_no_builtin_flag_D
="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
11985 lt_prog_compiler_wl_D
=
11986 lt_prog_compiler_pic_D
=
11987 lt_prog_compiler_static_D
=
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11990 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11992 if test "$GCC" = yes; then
11993 lt_prog_compiler_wl_D
='-Wl,'
11994 lt_prog_compiler_static_D
='-static'
11998 # All AIX code is PIC.
11999 if test "$host_cpu" = ia64
; then
12000 # AIX 5 now supports IA64 processor
12001 lt_prog_compiler_static_D
='-Bstatic'
12003 lt_prog_compiler_pic_D
='-fPIC'
12009 # see comment about AmigaOS4 .so support
12010 lt_prog_compiler_pic_D
='-fPIC'
12013 # FIXME: we need at least 68020 code to build shared libraries, but
12014 # adding the `-m68020' flag to GCC prevents building anything better,
12016 lt_prog_compiler_pic_D
='-m68020 -resident32 -malways-restore-a4'
12021 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12022 # PIC is the default for these OSes.
12025 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12026 # This hack is so that the source file can tell whether it is being
12027 # built for inclusion in a dll (and should export symbols for example).
12028 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12029 # (--disable-auto-import) libraries
12030 lt_prog_compiler_pic_D
='-DDLL_EXPORT'
12033 darwin
* | rhapsody
*)
12034 # PIC is the default on this platform
12035 # Common symbols not allowed in MH_DYLIB files
12036 lt_prog_compiler_pic_D
='-fno-common'
12040 # PIC is the default for Haiku.
12041 # The "-static" flag exists, but is broken.
12042 lt_prog_compiler_static_D
=
12046 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12047 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12048 # sets the default TLS model and affects inlining.
12054 lt_prog_compiler_pic_D
='-fPIC'
12060 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12061 # Instead, we relocate shared libraries at runtime.
12065 # Just because we use GCC doesn't mean we suddenly get shared libraries
12066 # on systems that don't support them.
12067 lt_prog_compiler_can_build_shared_D
=no
12072 # QNX uses GNU C++, but need to define -shared option too, otherwise
12073 # it will coredump.
12074 lt_prog_compiler_pic_D
='-fPIC -shared'
12078 if test -d /usr
/nec
; then
12079 lt_prog_compiler_pic_D
=-Kconform_pic
12084 lt_prog_compiler_pic_D
='-fPIC'
12088 case $cc_basename in
12089 nvcc
*) # Cuda Compiler Driver 2.2
12090 lt_prog_compiler_wl_D
='-Xlinker '
12091 lt_prog_compiler_pic_D
='-Xcompiler -fPIC'
12095 # PORTME Check for flag to pass linker flags through the system compiler.
12098 lt_prog_compiler_wl_D
='-Wl,'
12099 if test "$host_cpu" = ia64
; then
12100 # AIX 5 now supports IA64 processor
12101 lt_prog_compiler_static_D
='-Bstatic'
12103 lt_prog_compiler_static_D
='-bnso -bI:/lib/syscalls.exp'
12107 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12108 # This hack is so that the source file can tell whether it is being
12109 # built for inclusion in a dll (and should export symbols for example).
12110 lt_prog_compiler_pic_D
='-DDLL_EXPORT'
12113 hpux9
* | hpux10
* | hpux11
*)
12114 lt_prog_compiler_wl_D
='-Wl,'
12115 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12116 # not for PA HP-UX.
12122 lt_prog_compiler_pic_D
='+Z'
12125 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12126 lt_prog_compiler_static_D
='${wl}-a ${wl}archive'
12129 irix5
* | irix6
* | nonstopux
*)
12130 lt_prog_compiler_wl_D
='-Wl,'
12131 # PIC (with -KPIC) is the default.
12132 lt_prog_compiler_static_D
='-non_shared'
12135 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12136 case $cc_basename in
12137 # old Intel for x86_64 which still supported -KPIC.
12139 lt_prog_compiler_wl_D
='-Wl,'
12140 lt_prog_compiler_pic_D
='-KPIC'
12141 lt_prog_compiler_static_D
='-static'
12143 # icc used to be incompatible with GCC.
12144 # ICC 10 doesn't accept -KPIC any more.
12146 lt_prog_compiler_wl_D
='-Wl,'
12147 lt_prog_compiler_pic_D
='-fPIC'
12148 lt_prog_compiler_static_D
='-static'
12150 # Lahey Fortran 8.1.
12152 lt_prog_compiler_wl_D
='-Wl,'
12153 lt_prog_compiler_pic_D
='--shared'
12154 lt_prog_compiler_static_D
='--static'
12156 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12157 # Portland Group compilers (*not* the Pentium gcc compiler,
12158 # which looks to be a dead project)
12159 lt_prog_compiler_wl_D
='-Wl,'
12160 lt_prog_compiler_pic_D
='-fpic'
12161 lt_prog_compiler_static_D
='-Bstatic'
12164 lt_prog_compiler_wl_D
='-Wl,'
12165 # All Alpha code is PIC.
12166 lt_prog_compiler_static_D
='-non_shared'
12168 xl
* | bgxl
* | bgf
* | mpixl
*)
12169 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12170 lt_prog_compiler_wl_D
='-Wl,'
12171 lt_prog_compiler_pic_D
='-qpic'
12172 lt_prog_compiler_static_D
='-qstaticlink'
12175 case `$CC -V 2>&1 | sed 5q` in
12176 *Sun\ F
* |
*Sun
*Fortran
*)
12177 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12178 lt_prog_compiler_pic_D
='-KPIC'
12179 lt_prog_compiler_static_D
='-Bstatic'
12180 lt_prog_compiler_wl_D
=''
12184 lt_prog_compiler_pic_D
='-KPIC'
12185 lt_prog_compiler_static_D
='-Bstatic'
12186 lt_prog_compiler_wl_D
='-Wl,'
12194 lt_prog_compiler_pic_D
='-KPIC'
12195 lt_prog_compiler_static_D
='-Bstatic'
12199 # QNX uses GNU C++, but need to define -shared option too, otherwise
12200 # it will coredump.
12201 lt_prog_compiler_pic_D
='-fPIC -shared'
12204 osf3
* | osf4
* | osf5
*)
12205 lt_prog_compiler_wl_D
='-Wl,'
12206 # All OSF/1 code is PIC.
12207 lt_prog_compiler_static_D
='-non_shared'
12211 lt_prog_compiler_static_D
='-non_shared'
12215 lt_prog_compiler_pic_D
='-KPIC'
12216 lt_prog_compiler_static_D
='-Bstatic'
12217 case $cc_basename in
12218 f77
* | f90
* | f95
*)
12219 lt_prog_compiler_wl_D
='-Qoption ld ';;
12221 lt_prog_compiler_wl_D
='-Wl,';;
12226 lt_prog_compiler_wl_D
='-Qoption ld '
12227 lt_prog_compiler_pic_D
='-PIC'
12228 lt_prog_compiler_static_D
='-Bstatic'
12231 sysv4 | sysv4.2uw2
* | sysv4.3
*)
12232 lt_prog_compiler_wl_D
='-Wl,'
12233 lt_prog_compiler_pic_D
='-KPIC'
12234 lt_prog_compiler_static_D
='-Bstatic'
12238 if test -d /usr
/nec
;then
12239 lt_prog_compiler_pic_D
='-Kconform_pic'
12240 lt_prog_compiler_static_D
='-Bstatic'
12244 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12245 lt_prog_compiler_wl_D
='-Wl,'
12246 lt_prog_compiler_pic_D
='-KPIC'
12247 lt_prog_compiler_static_D
='-Bstatic'
12251 lt_prog_compiler_wl_D
='-Wl,'
12252 lt_prog_compiler_can_build_shared_D
=no
12256 lt_prog_compiler_pic_D
='-pic'
12257 lt_prog_compiler_static_D
='-Bstatic'
12261 lt_prog_compiler_can_build_shared_D
=no
12267 # For platforms which do not support PIC, -DPIC is meaningless:
12269 lt_prog_compiler_pic_D
=
12272 lt_prog_compiler_pic_D
="$lt_prog_compiler_pic_D"
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12276 $as_echo "$lt_prog_compiler_pic_D" >&6; }
12281 # Check to make sure the PIC flag actually works.
12283 if test -n "$lt_prog_compiler_pic_D"; then
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12285 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
12286 if ${lt_cv_prog_compiler_pic_works_D+:} false
; then :
12287 $as_echo_n "(cached) " >&6
12289 lt_cv_prog_compiler_pic_works_D
=no
12290 ac_outfile
=conftest.
$ac_objext
12291 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12292 lt_compiler_flag
="$lt_prog_compiler_pic_D"
12293 # Insert the option either (1) after the last *FLAGS variable, or
12294 # (2) before a word containing "conftest.", or (3) at the end.
12295 # Note that $ac_compile itself does not contain backslashes and begins
12296 # with a dollar sign (not a hyphen), so the echo should work correctly.
12297 # The option is referenced via a variable to avoid confusing sed.
12298 lt_compile
=`echo "$ac_compile" | $SED \
12299 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12300 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12301 -e 's:$: $lt_compiler_flag:'`
12302 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12303 (eval "$lt_compile" 2>conftest.err
)
12305 cat conftest.err
>&5
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 if (exit $ac_status) && test -s "$ac_outfile"; then
12308 # The compiler can only warn and ignore the option if not recognized
12309 # So say no if there are warnings other than the usual output.
12310 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
12311 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12312 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12313 lt_cv_prog_compiler_pic_works_D
=yes
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12320 $as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12322 if test x
"$lt_cv_prog_compiler_pic_works_D" = xyes
; then
12323 case $lt_prog_compiler_pic_D in
12325 *) lt_prog_compiler_pic_D
=" $lt_prog_compiler_pic_D" ;;
12328 lt_prog_compiler_pic_D
=
12329 lt_prog_compiler_can_build_shared_D
=no
12337 # Check to make sure the static flag actually works.
12339 wl
=$lt_prog_compiler_wl_D eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_D\"
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12341 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12342 if ${lt_cv_prog_compiler_static_works_D+:} false
; then :
12343 $as_echo_n "(cached) " >&6
12345 lt_cv_prog_compiler_static_works_D
=no
12346 save_LDFLAGS
="$LDFLAGS"
12347 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12348 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12349 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12350 # The linker can only warn and ignore the option if not recognized
12351 # So say no if there are warnings
12352 if test -s conftest.err
; then
12353 # Append any errors to the config.log.
12354 cat conftest.err
1>&5
12355 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
12356 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12357 if diff conftest.exp conftest.er2
>/dev
/null
; then
12358 lt_cv_prog_compiler_static_works_D
=yes
12361 lt_cv_prog_compiler_static_works_D
=yes
12365 LDFLAGS
="$save_LDFLAGS"
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12369 $as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12371 if test x
"$lt_cv_prog_compiler_static_works_D" = xyes
; then
12374 lt_prog_compiler_static_D
=
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12381 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12382 if ${lt_cv_prog_compiler_c_o_D+:} false
; then :
12383 $as_echo_n "(cached) " >&6
12385 lt_cv_prog_compiler_c_o_D
=no
12386 $RM -r conftest
2>/dev
/null
12390 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12392 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12393 # Insert the option either (1) after the last *FLAGS variable, or
12394 # (2) before a word containing "conftest.", or (3) at the end.
12395 # Note that $ac_compile itself does not contain backslashes and begins
12396 # with a dollar sign (not a hyphen), so the echo should work correctly.
12397 lt_compile
=`echo "$ac_compile" | $SED \
12398 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12399 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12400 -e 's:$: $lt_compiler_flag:'`
12401 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12402 (eval "$lt_compile" 2>out
/conftest.err
)
12404 cat out
/conftest.err
>&5
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12408 # The compiler can only warn and ignore the option if not recognized
12409 # So say no if there are warnings
12410 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12411 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12412 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12413 lt_cv_prog_compiler_c_o_D
=yes
12418 # SGI C++ compiler will create directory out/ii_files/ for
12419 # template instantiation
12420 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12421 $RM out
/* && rmdir out
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12428 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12433 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12434 if ${lt_cv_prog_compiler_c_o_D+:} false
; then :
12435 $as_echo_n "(cached) " >&6
12437 lt_cv_prog_compiler_c_o_D
=no
12438 $RM -r conftest
2>/dev
/null
12442 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12444 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12445 # Insert the option either (1) after the last *FLAGS variable, or
12446 # (2) before a word containing "conftest.", or (3) at the end.
12447 # Note that $ac_compile itself does not contain backslashes and begins
12448 # with a dollar sign (not a hyphen), so the echo should work correctly.
12449 lt_compile
=`echo "$ac_compile" | $SED \
12450 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12451 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12452 -e 's:$: $lt_compiler_flag:'`
12453 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12454 (eval "$lt_compile" 2>out
/conftest.err
)
12456 cat out
/conftest.err
>&5
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12460 # The compiler can only warn and ignore the option if not recognized
12461 # So say no if there are warnings
12462 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12463 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12464 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12465 lt_cv_prog_compiler_c_o_D
=yes
12470 # SGI C++ compiler will create directory out/ii_files/ for
12471 # template instantiation
12472 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12473 $RM out
/* && rmdir out
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12480 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12485 hard_links
="nottested"
12486 if test "$lt_cv_prog_compiler_c_o_D" = no
&& test "$need_locks" != no
; then
12487 # do not overwrite the value of need_locks provided by the user
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12489 $as_echo_n "checking if we can lock with hard links... " >&6; }
12492 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12494 ln conftest.a conftest.b
2>&5 || hard_links
=no
12495 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12497 $as_echo "$hard_links" >&6; }
12498 if test "$hard_links" = no
; then
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12500 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12510 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12513 allow_undefined_flag_D
=
12514 always_export_symbols_D
=no
12516 archive_expsym_cmds_D
=
12517 compiler_needs_object_D
=no
12518 enable_shared_with_static_runtimes_D
=no
12519 export_dynamic_flag_spec_D
=
12520 export_symbols_cmds_D
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12521 hardcode_automatic_D
=no
12522 hardcode_direct_D
=no
12523 hardcode_direct_absolute_D
=no
12524 hardcode_libdir_flag_spec_D
=
12525 hardcode_libdir_flag_spec_ld_D
=
12526 hardcode_libdir_separator_D
=
12527 hardcode_minus_L_D
=no
12528 hardcode_shlibpath_var_D
=unsupported
12530 link_all_deplibs_D
=unknown
12532 module_expsym_cmds_D
=
12533 old_archive_from_new_cmds_D
=
12534 old_archive_from_expsyms_cmds_D
=
12535 thread_safe_flag_spec_D
=
12536 whole_archive_flag_spec_D
=
12537 # include_expsyms should be a list of space-separated symbols to be *always*
12538 # included in the symbol list
12540 # exclude_expsyms can be an extended regexp of symbols to exclude
12541 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12542 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12543 # as well as any symbol that contains `d'.
12544 exclude_expsyms_D
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12545 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12546 # platforms (ab)use it in PIC code, but their linkers get confused if
12547 # the symbol is explicitly referenced. Since portable code cannot
12548 # rely on this symbol name, it's probably fine to never include it in
12549 # preloaded symbol tables.
12550 # Exclude shared library initialization/finalization symbols.
12551 extract_expsyms_cmds
=
12554 cygwin
* | mingw
* | pw32
* | cegcc
*)
12555 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12556 # When not using gcc, we currently assume that we are using
12557 # Microsoft Visual C++.
12558 if test "$GCC" != yes; then
12563 # we just hope/assume this is gcc and not c89 (= MSVC++)
12573 # On some targets, GNU ld is compatible enough with the native linker
12574 # that we're better off using the native interface for both.
12575 lt_use_gnu_ld_interface
=no
12576 if test "$with_gnu_ld" = yes; then
12579 # The AIX port of GNU ld has always aspired to compatibility
12580 # with the native linker. However, as the warning in the GNU ld
12581 # block says, versions before 2.19.5* couldn't really create working
12582 # shared libraries, regardless of the interface used.
12583 case `$LD -v 2>&1` in
12584 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
12585 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
12586 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
12588 lt_use_gnu_ld_interface
=yes
12593 lt_use_gnu_ld_interface
=yes
12598 if test "$lt_use_gnu_ld_interface" = yes; then
12599 # If archive_cmds runs LD, not CC, wlarc should be empty
12602 # Set some defaults for GNU ld with shared library support. These
12603 # are reset later if shared libraries are not supported. Putting them
12604 # here allows them to be overridden if necessary.
12605 runpath_var
=LD_RUN_PATH
12606 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
12607 export_dynamic_flag_spec_D
='${wl}--export-dynamic'
12608 # ancient GNU ld didn't support --whole-archive et. al.
12609 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
12610 whole_archive_flag_spec_D
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12612 whole_archive_flag_spec_D
=
12614 supports_anon_versioning
=no
12615 case `$LD -v 2>&1` in
12616 *GNU\ gold
*) supports_anon_versioning
=yes ;;
12617 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
12618 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
12619 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
12620 *\
2.11.
*) ;; # other 2.11 versions
12621 *) supports_anon_versioning
=yes ;;
12624 # See if GNU ld supports shared libraries.
12627 # On AIX/PPC, the GNU linker is very broken
12628 if test "$host_cpu" != ia64
; then
12632 *** Warning: the GNU linker, at least up to release 2.19, is reported
12633 *** to be unable to reliably create shared libraries on AIX.
12634 *** Therefore, libtool is disabling shared libraries support. If you
12635 *** really care for shared libraries, you may want to install binutils
12636 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12637 *** You will then need to restart the configuration process.
12646 # see comment about AmigaOS4 .so support
12647 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12648 archive_expsym_cmds_D
=''
12651 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)'
12652 hardcode_libdir_flag_spec_D
='-L$libdir'
12653 hardcode_minus_L_D
=yes
12659 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12660 allow_undefined_flag_D
=unsupported
12661 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12662 # support --undefined. This deserves some investigation. FIXME
12663 archive_cmds_D
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12669 cygwin
* | mingw
* | pw32
* | cegcc
*)
12670 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12671 # as there is no search path for DLLs.
12672 hardcode_libdir_flag_spec_D
='-L$libdir'
12673 export_dynamic_flag_spec_D
='${wl}--export-all-symbols'
12674 allow_undefined_flag_D
=unsupported
12675 always_export_symbols_D
=no
12676 enable_shared_with_static_runtimes_D
=yes
12677 export_symbols_cmds_D
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12679 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
12680 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12681 # If the export-symbols file already is a .def file (1st line
12682 # is EXPORTS), use it as is; otherwise, prepend...
12683 archive_expsym_cmds_D
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12684 cp $export_symbols $output_objdir/$soname.def;
12686 echo EXPORTS > $output_objdir/$soname.def;
12687 cat $export_symbols >> $output_objdir/$soname.def;
12689 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12696 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12697 link_all_deplibs_D
=yes
12701 hardcode_direct_D
=no
12702 hardcode_shlibpath_var_D
=no
12703 hardcode_libdir_flag_spec_D
='${wl}-rpath,$libdir'
12704 export_dynamic_flag_spec_D
='${wl}-E'
12705 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12706 # Instead, shared libraries are loaded at an image base (0x10000000 by
12707 # default) and relocated if they conflict, which is a slow very memory
12708 # consuming and fragmenting process. To avoid this, we pick a random,
12709 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12710 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12711 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'
12712 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'
12715 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12717 if test "$host_os" = linux-dietlibc
; then
12718 case $cc_basename in
12719 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
12722 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
12723 && test "$tmp_diet" = no
12725 tmp_addflag
=' $pic_flag'
12726 tmp_sharedflag
='-shared'
12727 case $cc_basename,$host_cpu in
12728 pgcc
*) # Portland Group C compiler
12729 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'
12730 tmp_addflag
=' $pic_flag'
12732 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12733 # Portland Group f77 and f90 compilers
12734 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'
12735 tmp_addflag
=' $pic_flag -Mnomain' ;;
12736 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
12737 tmp_addflag
=' -i_dynamic' ;;
12738 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
12739 tmp_addflag
=' -i_dynamic -nofor_main' ;;
12740 ifc
* | ifort
*) # Intel Fortran compiler
12741 tmp_addflag
=' -nofor_main' ;;
12742 lf95
*) # Lahey Fortran 8.1
12743 whole_archive_flag_spec_D
=
12744 tmp_sharedflag
='--shared' ;;
12745 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12746 tmp_sharedflag
='-qmkshrobj'
12748 nvcc
*) # Cuda Compiler Driver 2.2
12749 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'
12750 compiler_needs_object_D
=yes
12753 case `$CC -V 2>&1 | sed 5q` in
12754 *Sun\ C
*) # Sun C 5.9
12755 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'
12756 compiler_needs_object_D
=yes
12757 tmp_sharedflag
='-G' ;;
12758 *Sun\ F
*) # Sun Fortran 8.3
12759 tmp_sharedflag
='-G' ;;
12761 archive_cmds_D
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12763 if test "x$supports_anon_versioning" = xyes
; then
12764 archive_expsym_cmds_D
='echo "{ global:" > $output_objdir/$libname.ver~
12765 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12766 echo "local: *; };" >> $output_objdir/$libname.ver~
12767 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12770 case $cc_basename in
12771 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
12772 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12773 whole_archive_flag_spec_D
='--whole-archive$convenience --no-whole-archive'
12774 hardcode_libdir_flag_spec_D
=
12775 hardcode_libdir_flag_spec_ld_D
='-rpath $libdir'
12776 archive_cmds_D
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12777 if test "x$supports_anon_versioning" = xyes
; then
12778 archive_expsym_cmds_D
='echo "{ global:" > $output_objdir/$libname.ver~
12779 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12780 echo "local: *; };" >> $output_objdir/$libname.ver~
12781 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12791 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
12792 archive_cmds_D
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12795 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12796 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12801 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
12805 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12806 *** create shared libraries on Solaris systems. Therefore, libtool
12807 *** is disabling shared libraries support. We urge you to upgrade GNU
12808 *** binutils to release 2.9.1 or newer. Another option is to modify
12809 *** your PATH or compiler configuration so that the native linker is
12810 *** used, and then restart.
12813 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12814 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12815 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12821 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
12822 case `$LD -v 2>&1` in
12823 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
12827 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12828 *** reliably create shared libraries on SCO systems. Therefore, libtool
12829 *** is disabling shared libraries support. We urge you to upgrade GNU
12830 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12831 *** your PATH or compiler configuration so that the native linker is
12832 *** used, and then restart.
12837 # For security reasons, it is highly recommended that you always
12838 # use absolute paths for naming shared libraries, and exclude the
12839 # DT_RUNPATH tag from executables and libraries. But doing so
12840 # requires that you compile everything twice, which is a pain.
12841 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12842 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
12843 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12844 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12853 archive_cmds_D
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12855 hardcode_direct_D
=yes
12856 hardcode_shlibpath_var_D
=no
12860 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12861 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12862 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12869 if test "$ld_shlibs_D" = no
; then
12871 hardcode_libdir_flag_spec_D
=
12872 export_dynamic_flag_spec_D
=
12873 whole_archive_flag_spec_D
=
12876 # PORTME fill in a description of your system's linker (not GNU ld)
12879 allow_undefined_flag_D
=unsupported
12880 always_export_symbols_D
=yes
12881 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'
12882 # Note: this linker hardcodes the directories in LIBPATH if there
12883 # are no directories specified by -L.
12884 hardcode_minus_L_D
=yes
12885 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12886 # Neither direct hardcoding nor static linking is supported with a
12888 hardcode_direct_D
=unsupported
12893 if test "$host_cpu" = ia64
; then
12894 # On IA64, the linker does run time linking by default, so we don't
12895 # have to do anything special.
12896 aix_use_runtimelinking
=no
12897 exp_sym_flag
='-Bexport'
12900 # If we're using GNU nm, then we don't want the "-C" option.
12901 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12902 # Also, AIX nm treats weak defined symbols like other global
12903 # defined symbols, whereas GNU nm marks them as "W".
12904 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
12905 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'
12907 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'
12909 aix_use_runtimelinking
=no
12911 # Test if we are trying to use run time linking or normal
12912 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12913 # need to do runtime linking.
12914 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
12915 for ld_flag
in $LDFLAGS; do
12916 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
12917 aix_use_runtimelinking
=yes
12924 exp_sym_flag
='-bexport'
12925 no_entry_flag
='-bnoentry'
12928 # When large executables or shared objects are built, AIX ld can
12929 # have problems creating the table of contents. If linking a library
12930 # or program results in "error TOC overflow" add -mminimal-toc to
12931 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12932 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12935 hardcode_direct_D
=yes
12936 hardcode_direct_absolute_D
=yes
12937 hardcode_libdir_separator_D
=':'
12938 link_all_deplibs_D
=yes
12939 file_list_spec_D
='${wl}-f,'
12941 if test "$GCC" = yes; then
12942 case $host_os in aix4.
[012]|aix4.
[012].
*)
12943 # We only want to do this on AIX 4.2 and lower, the check
12944 # below for broken collect2 doesn't work under 4.3+
12945 collect2name
=`${CC} -print-prog-name=collect2`
12946 if test -f "$collect2name" &&
12947 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
12949 # We have reworked collect2
12952 # We have old collect2
12953 hardcode_direct_D
=unsupported
12954 # It fails to find uninstalled libraries when the uninstalled
12955 # path is not listed in the libpath. Setting hardcode_minus_L
12956 # to unsupported forces relinking
12957 hardcode_minus_L_D
=yes
12958 hardcode_libdir_flag_spec_D
='-L$libdir'
12959 hardcode_libdir_separator_D
=
12963 shared_flag
='-shared'
12964 if test "$aix_use_runtimelinking" = yes; then
12965 shared_flag
="$shared_flag "'${wl}-G'
12969 if test "$host_cpu" = ia64
; then
12970 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12971 # chokes on -Wl,-G. The following line is correct:
12974 if test "$aix_use_runtimelinking" = yes; then
12975 shared_flag
='${wl}-G'
12977 shared_flag
='${wl}-bM:SRE'
12982 export_dynamic_flag_spec_D
='${wl}-bexpall'
12983 # It seems that -bexpall does not export symbols beginning with
12984 # underscore (_), so it is better to generate a list of symbols to export.
12985 always_export_symbols_D
=yes
12986 if test "$aix_use_runtimelinking" = yes; then
12987 # Warning - without using the other runtime loading flags (-brtl),
12988 # -berok will link without error, but may produce a broken library.
12989 allow_undefined_flag_D
='-berok'
12990 # Determine the default libpath from the value encoded in an
12991 # empty executable.
12992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12993 /* end confdefs.h. */
13003 if ac_fn_c_try_link
"$LINENO"; then :
13005 lt_aix_libpath_sed
='
13006 /Import File Strings/,/^$/ {
13012 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13013 # Check for a 64-bit object if we didn't find anything.
13014 if test -z "$aix_libpath"; then
13015 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13018 rm -f core conftest.err conftest.
$ac_objext \
13019 conftest
$ac_exeext conftest.
$ac_ext
13020 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13022 hardcode_libdir_flag_spec_D
='${wl}-blibpath:$libdir:'"$aix_libpath"
13023 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"
13025 if test "$host_cpu" = ia64
; then
13026 hardcode_libdir_flag_spec_D
='${wl}-R $libdir:/usr/lib:/lib'
13027 allow_undefined_flag_D
="-z nodefs"
13028 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"
13030 # Determine the default libpath from the value encoded in an
13031 # empty executable.
13032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13033 /* end confdefs.h. */
13043 if ac_fn_c_try_link
"$LINENO"; then :
13045 lt_aix_libpath_sed
='
13046 /Import File Strings/,/^$/ {
13052 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13053 # Check for a 64-bit object if we didn't find anything.
13054 if test -z "$aix_libpath"; then
13055 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13058 rm -f core conftest.err conftest.
$ac_objext \
13059 conftest
$ac_exeext conftest.
$ac_ext
13060 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13062 hardcode_libdir_flag_spec_D
='${wl}-blibpath:$libdir:'"$aix_libpath"
13063 # Warning - without using the other run time loading flags,
13064 # -berok will link without error, but may produce a broken library.
13065 no_undefined_flag_D
=' ${wl}-bernotok'
13066 allow_undefined_flag_D
=' ${wl}-berok'
13067 if test "$with_gnu_ld" = yes; then
13068 # We only use this code for GNU lds that support --whole-archive.
13069 whole_archive_flag_spec_D
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13071 # Exported symbols can be pulled into shared objects from archives
13072 whole_archive_flag_spec_D
='$convenience'
13074 archive_cmds_need_lc_D
=yes
13075 # This is similar to how AIX traditionally builds its shared libraries.
13076 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'
13084 # see comment about AmigaOS4 .so support
13085 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13086 archive_expsym_cmds_D
=''
13089 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)'
13090 hardcode_libdir_flag_spec_D
='-L$libdir'
13091 hardcode_minus_L_D
=yes
13097 export_dynamic_flag_spec_D
=-rdynamic
13100 cygwin
* | mingw
* | pw32
* | cegcc
*)
13101 # When not using gcc, we currently assume that we are using
13102 # Microsoft Visual C++.
13103 # hardcode_libdir_flag_spec is actually meaningless, as there is
13104 # no search path for DLLs.
13105 hardcode_libdir_flag_spec_D
=' '
13106 allow_undefined_flag_D
=unsupported
13107 # Tell ltmain to make .lib files, not .a files.
13109 # Tell ltmain to make .dll files, not .so files.
13111 # FIXME: Setting linknames here is a bad hack.
13112 archive_cmds_D
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13113 # The linker will automatically build a .lib file if we build a DLL.
13114 old_archive_from_new_cmds_D
='true'
13115 # FIXME: Should let the user specify the lib program.
13116 old_archive_cmds_D
='lib -OUT:$oldlib$oldobjs$old_deplibs'
13117 fix_srcfile_path_D
='`cygpath -w "$srcfile"`'
13118 enable_shared_with_static_runtimes_D
=yes
13121 darwin
* | rhapsody
*)
13124 archive_cmds_need_lc_D
=no
13125 hardcode_direct_D
=no
13126 hardcode_automatic_D
=yes
13127 hardcode_shlibpath_var_D
=unsupported
13128 if test "$lt_cv_ld_force_load" = "yes"; then
13129 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\"`'
13131 whole_archive_flag_spec_D
=''
13133 link_all_deplibs_D
=yes
13134 allow_undefined_flag_D
="$_lt_dar_allow_undefined"
13135 case $cc_basename in
13136 ifort
*) _lt_dar_can_shared
=yes ;;
13137 *) _lt_dar_can_shared
=$GCC ;;
13139 if test "$_lt_dar_can_shared" = "yes"; then
13140 output_verbose_link_cmd
=func_echo_all
13141 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}"
13142 module_cmds_D
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13143 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}"
13144 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}"
13153 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13154 hardcode_libdir_flag_spec_D
='-L$libdir'
13155 hardcode_shlibpath_var_D
=no
13158 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13159 # support. Future versions do this automatically, but an explicit c++rt0.o
13160 # does not break anything, and helps significantly (at the cost of a little
13163 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13164 hardcode_libdir_flag_spec_D
='-R$libdir'
13165 hardcode_direct_D
=yes
13166 hardcode_shlibpath_var_D
=no
13169 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13171 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13172 hardcode_direct_D
=yes
13173 hardcode_minus_L_D
=yes
13174 hardcode_shlibpath_var_D
=no
13177 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13178 freebsd
* | dragonfly
*)
13179 archive_cmds_D
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13180 hardcode_libdir_flag_spec_D
='-R$libdir'
13181 hardcode_direct_D
=yes
13182 hardcode_shlibpath_var_D
=no
13186 if test "$GCC" = yes; then
13187 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'
13189 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'
13191 hardcode_libdir_flag_spec_D
='${wl}+b ${wl}$libdir'
13192 hardcode_libdir_separator_D
=:
13193 hardcode_direct_D
=yes
13195 # hardcode_minus_L: Not really in the search PATH,
13196 # but as the default location of the library.
13197 hardcode_minus_L_D
=yes
13198 export_dynamic_flag_spec_D
='${wl}-E'
13202 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13203 archive_cmds_D
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13205 archive_cmds_D
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13207 if test "$with_gnu_ld" = no
; then
13208 hardcode_libdir_flag_spec_D
='${wl}+b ${wl}$libdir'
13209 hardcode_libdir_flag_spec_ld_D
='+b $libdir'
13210 hardcode_libdir_separator_D
=:
13211 hardcode_direct_D
=yes
13212 hardcode_direct_absolute_D
=yes
13213 export_dynamic_flag_spec_D
='${wl}-E'
13214 # hardcode_minus_L: Not really in the search PATH,
13215 # but as the default location of the library.
13216 hardcode_minus_L_D
=yes
13221 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13224 archive_cmds_D
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13227 archive_cmds_D
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13230 archive_cmds_D
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13236 archive_cmds_D
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13239 archive_cmds_D
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13242 archive_cmds_D
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13246 if test "$with_gnu_ld" = no
; then
13247 hardcode_libdir_flag_spec_D
='${wl}+b ${wl}$libdir'
13248 hardcode_libdir_separator_D
=:
13252 hardcode_direct_D
=no
13253 hardcode_shlibpath_var_D
=no
13256 hardcode_direct_D
=yes
13257 hardcode_direct_absolute_D
=yes
13258 export_dynamic_flag_spec_D
='${wl}-E'
13260 # hardcode_minus_L: Not really in the search PATH,
13261 # but as the default location of the library.
13262 hardcode_minus_L_D
=yes
13268 irix5
* | irix6
* | nonstopux
*)
13269 if test "$GCC" = yes; then
13270 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'
13271 # Try to use the -exported_symbol ld option, if it does not
13272 # work, assume that -exports_file does not work either and
13273 # implicitly export all symbols.
13274 save_LDFLAGS
="$LDFLAGS"
13275 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h. */
13280 if ac_fn_c_try_link
"$LINENO"; then :
13281 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'
13284 rm -f core conftest.err conftest.
$ac_objext \
13285 conftest
$ac_exeext conftest.
$ac_ext
13286 LDFLAGS
="$save_LDFLAGS"
13288 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'
13289 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'
13291 archive_cmds_need_lc_D
='no'
13292 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13293 hardcode_libdir_separator_D
=:
13294 inherit_rpath_D
=yes
13295 link_all_deplibs_D
=yes
13299 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13300 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13302 archive_cmds_D
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13304 hardcode_libdir_flag_spec_D
='-R$libdir'
13305 hardcode_direct_D
=yes
13306 hardcode_shlibpath_var_D
=no
13310 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13311 hardcode_direct_D
=yes
13312 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13313 hardcode_libdir_separator_D
=:
13314 hardcode_shlibpath_var_D
=no
13321 if test -f /usr
/libexec
/ld.so
; then
13322 hardcode_direct_D
=yes
13323 hardcode_shlibpath_var_D
=no
13324 hardcode_direct_absolute_D
=yes
13325 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13326 archive_cmds_D
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13327 archive_expsym_cmds_D
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13328 hardcode_libdir_flag_spec_D
='${wl}-rpath,$libdir'
13329 export_dynamic_flag_spec_D
='${wl}-E'
13332 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
13333 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13334 hardcode_libdir_flag_spec_D
='-R$libdir'
13337 archive_cmds_D
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13338 hardcode_libdir_flag_spec_D
='${wl}-rpath,$libdir'
13348 hardcode_libdir_flag_spec_D
='-L$libdir'
13349 hardcode_minus_L_D
=yes
13350 allow_undefined_flag_D
=unsupported
13351 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'
13352 old_archive_from_new_cmds_D
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13356 if test "$GCC" = yes; then
13357 allow_undefined_flag_D
=' ${wl}-expect_unresolved ${wl}\*'
13358 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'
13360 allow_undefined_flag_D
=' -expect_unresolved \*'
13361 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'
13363 archive_cmds_need_lc_D
='no'
13364 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13365 hardcode_libdir_separator_D
=:
13368 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
13369 if test "$GCC" = yes; then
13370 allow_undefined_flag_D
=' ${wl}-expect_unresolved ${wl}\*'
13371 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'
13372 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13374 allow_undefined_flag_D
=' -expect_unresolved \*'
13375 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'
13376 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~
13377 $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'
13379 # Both c and cxx compiler support -rpath directly
13380 hardcode_libdir_flag_spec_D
='-rpath $libdir'
13382 archive_cmds_need_lc_D
='no'
13383 hardcode_libdir_separator_D
=:
13387 no_undefined_flag_D
=' -z defs'
13388 if test "$GCC" = yes; then
13390 archive_cmds_D
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13391 archive_expsym_cmds_D
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13392 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13394 case `$CC -V 2>&1` in
13397 archive_cmds_D
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13398 archive_expsym_cmds_D
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13399 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13403 archive_cmds_D
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13404 archive_expsym_cmds_D
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13405 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13409 hardcode_libdir_flag_spec_D
='-R$libdir'
13410 hardcode_shlibpath_var_D
=no
13412 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13414 # The compiler driver will combine and reorder linker options,
13415 # but understands `-z linker_flag'. GCC discards it without `$wl',
13416 # but is careful enough not to reorder.
13417 # Supported since Solaris 2.6 (maybe 2.5.1?)
13418 if test "$GCC" = yes; then
13419 whole_archive_flag_spec_D
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13421 whole_archive_flag_spec_D
='-z allextract$convenience -z defaultextract'
13425 link_all_deplibs_D
=yes
13429 if test "x$host_vendor" = xsequent
; then
13430 # Use $CC to link under sequent, because it throws in some extra .o
13431 # files that make .init and .fini sections work.
13432 archive_cmds_D
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13434 archive_cmds_D
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13436 hardcode_libdir_flag_spec_D
='-L$libdir'
13437 hardcode_direct_D
=yes
13438 hardcode_minus_L_D
=yes
13439 hardcode_shlibpath_var_D
=no
13443 case $host_vendor in
13445 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13446 hardcode_direct_D
=yes # is this really true???
13449 ## LD is ld it makes a PLAMLIB
13450 ## CC just makes a GrossModule.
13451 archive_cmds_D
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13452 reload_cmds_D
='$CC -r -o $output$reload_objs'
13453 hardcode_direct_D
=no
13456 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13457 hardcode_direct_D
=no
#Motorola manual says yes, but my tests say they lie
13460 runpath_var
='LD_RUN_PATH'
13461 hardcode_shlibpath_var_D
=no
13465 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13466 hardcode_shlibpath_var_D
=no
13467 export_dynamic_flag_spec_D
='-Bexport'
13471 if test -d /usr
/nec
; then
13472 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13473 hardcode_shlibpath_var_D
=no
13474 runpath_var
=LD_RUN_PATH
13475 hardcode_runpath_var
=yes
13480 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13481 no_undefined_flag_D
='${wl}-z,text'
13482 archive_cmds_need_lc_D
=no
13483 hardcode_shlibpath_var_D
=no
13484 runpath_var
='LD_RUN_PATH'
13486 if test "$GCC" = yes; then
13487 archive_cmds_D
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13488 archive_expsym_cmds_D
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13490 archive_cmds_D
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13491 archive_expsym_cmds_D
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13495 sysv5
* | sco3.2v5
* | sco5v6
*)
13496 # Note: We can NOT use -z defs as we might desire, because we do not
13497 # link with -lc, and that would cause any symbols used from libc to
13498 # always be unresolved, which means just about no library would
13499 # ever link correctly. If we're not using GNU ld we use -z text
13500 # though, which does catch some bad symbols but isn't as heavy-handed
13502 no_undefined_flag_D
='${wl}-z,text'
13503 allow_undefined_flag_D
='${wl}-z,nodefs'
13504 archive_cmds_need_lc_D
=no
13505 hardcode_shlibpath_var_D
=no
13506 hardcode_libdir_flag_spec_D
='${wl}-R,$libdir'
13507 hardcode_libdir_separator_D
=':'
13508 link_all_deplibs_D
=yes
13509 export_dynamic_flag_spec_D
='${wl}-Bexport'
13510 runpath_var
='LD_RUN_PATH'
13512 if test "$GCC" = yes; then
13513 archive_cmds_D
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13514 archive_expsym_cmds_D
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13516 archive_cmds_D
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13517 archive_expsym_cmds_D
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13522 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13523 hardcode_libdir_flag_spec_D
='-L$libdir'
13524 hardcode_shlibpath_var_D
=no
13532 if test x
$host_vendor = xsni
; then
13534 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13535 export_dynamic_flag_spec_D
='${wl}-Blargedynsym'
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13542 $as_echo "$ld_shlibs_D" >&6; }
13543 test "$ld_shlibs_D" = no
&& can_build_shared
=no
13545 with_gnu_ld_D
=$with_gnu_ld
13553 # Do we need to explicitly link libc?
13555 case "x$archive_cmds_need_lc_D" in
13557 # Assume -lc should be added
13558 archive_cmds_need_lc_D
=yes
13560 if test "$enable_shared" = yes && test "$GCC" = yes; then
13561 case $archive_cmds_D in
13563 # FIXME: we may have to deal with multi-command sequences.
13566 # Test whether the compiler implicitly links with -lc since on some
13567 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13568 # to ld, don't add -lc before -lgcc.
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13570 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13571 if ${lt_cv_archive_cmds_need_lc_D+:} false
; then :
13572 $as_echo_n "(cached) " >&6
13575 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13578 (eval $ac_compile) 2>&5
13580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13581 test $ac_status = 0; } 2>conftest.err
; then
13584 libobjs
=conftest.
$ac_objext
13586 wl
=$lt_prog_compiler_wl_D
13587 pic_flag
=$lt_prog_compiler_pic_D
13593 lt_save_allow_undefined_flag
=$allow_undefined_flag_D
13594 allow_undefined_flag_D
=
13595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13596 (eval $archive_cmds_D 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13599 test $ac_status = 0; }
13601 lt_cv_archive_cmds_need_lc_D
=no
13603 lt_cv_archive_cmds_need_lc_D
=yes
13605 allow_undefined_flag_D
=$lt_save_allow_undefined_flag
13607 cat conftest.err
1>&5
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13613 $as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13614 archive_cmds_need_lc_D
=$lt_cv_archive_cmds_need_lc_D
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13685 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13687 if test -n "$hardcode_libdir_flag_spec_D" ||
13688 test -n "$runpath_var_D" ||
13689 test "X$hardcode_automatic_D" = "Xyes" ; then
13691 # We can hardcode non-existent directories.
13692 if test "$hardcode_direct_D" != no
&&
13693 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13694 # have to relink, otherwise we might link with an installed library
13695 # when we should be linking with a yet-to-be-installed one
13696 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13697 test "$hardcode_minus_L_D" != no
; then
13698 # Linking always hardcodes the temporary library directory.
13699 hardcode_action_D
=relink
13701 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13702 hardcode_action_D
=immediate
13705 # We cannot hardcode anything, or else we can only hardcode existing
13707 hardcode_action_D
=unsupported
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13710 $as_echo "$hardcode_action_D" >&6; }
13712 if test "$hardcode_action_D" = relink ||
13713 test "$inherit_rpath_D" = yes; then
13714 # Fast installation is not supported
13715 enable_fast_install
=no
13716 elif test "$shlibpath_overrides_runpath" = yes ||
13717 test "$enable_shared" = no
; then
13718 # Fast installation is not necessary
13719 enable_fast_install
=needless
13731 ac_cpp
='$CPP $CPPFLAGS'
13732 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13733 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13734 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13739 CFLAGS
=$lt_save_CFLAGS
13740 GDCFLAGS
=$lt_save_DFLAGS
13742 GDCFLAGS
=$gdc_save_DFLAGS
13744 if test "$enable_shared" = "yes"; then
13745 ENABLE_SHARED_TRUE
=
13746 ENABLE_SHARED_FALSE
='#'
13748 ENABLE_SHARED_TRUE
='#'
13749 ENABLE_SHARED_FALSE
=
13752 if test "$enable_static" = "yes"; then
13753 ENABLE_STATIC_TRUE
=
13754 ENABLE_STATIC_FALSE
='#'
13756 ENABLE_STATIC_TRUE
='#'
13757 ENABLE_STATIC_FALSE
=
13761 # libtool variables for Phobos shared and position-independent compiles.
13763 # Use phobos_compiler_shared_flag to designate the compile-time flags for
13764 # creating shared objects. Default: -fversion=Shared.
13766 # Use phobos_compiler_pic_flag to designate the compile-time flags for
13767 # creating position-independent objects. This varies with the target
13768 # hardware and operating system, but is often: -fPIC.
13770 # The distinction between pic and shared compilation flags is not present in
13771 # libtool, and so we make it here. How it is handled is that in shared
13772 # compilations the `lt_prog_compiler_pic_D' variable is used to instead
13773 # ensure that conditional compilation of shared runtime code is compiled in.
13774 # The original PIC flags are then used in the compilation of every object.
13776 # Why are objects destined for libgphobos.a compiled with -fPIC?
13777 # Because -fPIC is not harmful to use for objects destined for static
13778 # libraries. In addition, using -fPIC will allow the use of static
13779 # libgphobos.a in the creation of other D shared libraries.
13780 if test "$enable_shared" = yes; then
13781 phobos_compiler_pic_flag
="$lt_prog_compiler_pic_D"
13782 phobos_compiler_shared_flag
="-fversion=Shared"
13784 phobos_compiler_pic_flag
=
13785 phobos_compiler_shared_flag
=
13790 # Override the libtool's pic_flag and pic_mode.
13791 # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
13792 # NB: this impacts --with-pic and --without-pic.
13793 lt_prog_compiler_pic_D
="$phobos_compiler_shared_flag"
13796 # Determine what GCC version number to use in filesystem paths.
13798 get_gcc_base_ver
="cat"
13800 # Check whether --with-gcc-major-version-only was given.
13801 if test "${with_gcc_major_version_only+set}" = set; then :
13802 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
13803 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
13811 # libphobos/libdruntime specific options and feature detection
13813 # These need to be absolute paths, yet at the same time need to
13814 # canonicalize only relative paths, because then amd will not unmount
13815 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
13816 libphobos_builddir
=`${PWDCMD-pwd}`
13818 \\/$
* | ?
:\\/*) libphobos_srcdir
=${srcdir} ;;
13819 *) libphobos_srcdir
=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
13825 if test ${multilib} = yes; then
13826 multilib_arg
="--enable-multilib"
13832 # Check whether --enable-werror was given.
13833 if test "${enable_werror+set}" = set; then :
13834 enableval
=$enable_werror;
13838 if test "x$enable_werror" = "xyes"; then
13839 WERROR_FLAG
="-Werror"
13843 # Check whether --enable-druntime-gc was given.
13844 if test "${enable_druntime_gc+set}" = set; then :
13845 enableval
=$enable_druntime_gc; enable_druntime_gc
=no
13847 enable_druntime_gc
=yes
13851 if test "$enable_druntime_gc" = "yes"; then
13852 DRUNTIME_GC_ENABLE_TRUE
=
13853 DRUNTIME_GC_ENABLE_FALSE
='#'
13855 DRUNTIME_GC_ENABLE_TRUE
='#'
13856 DRUNTIME_GC_ENABLE_FALSE
=
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
13862 $as_echo_n "checking for target OS... " >&6; }
13863 if ${druntime_cv_target_os+:} false
; then :
13864 $as_echo_n "(cached) " >&6
13866 druntime_cv_target_os
=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
13869 $as_echo "$druntime_cv_target_os" >&6; }
13870 if test -z "$druntime_cv_target_os"; then :
13871 as_fn_error $?
"can't detect target OS" "$LINENO" 5
13876 # Check whether --enable-unix was given.
13877 if test "${enable_unix+set}" = set; then :
13878 enableval
=$enable_unix; :
13884 case "$druntime_cv_target_os" in
13885 aix
*|
*bsd
*|cygwin
*|darwin
*|gnu
*|linux
*|skyos
*|
*solaris
*|sysv
*) d_have_unix
=1 ;;
13887 if test -n "$d_have_unix" && test "$enable_unix" = auto
; then
13890 if test "$enable_unix" = "yes"; then
13891 DRUNTIME_OS_UNIX_TRUE
=
13892 DRUNTIME_OS_UNIX_FALSE
='#'
13894 DRUNTIME_OS_UNIX_TRUE
='#'
13895 DRUNTIME_OS_UNIX_FALSE
=
13902 druntime_target_os_parsed
=""
13903 case "$druntime_cv_target_os" in
13904 aix
*) druntime_target_os_parsed
="aix"
13907 druntime_target_os_parsed
="android"
13909 darwin
*) druntime_target_os_parsed
="darwin"
13912 druntime_target_os_parsed
="dragonflybsd"
13914 freebsd
*|k
*bsd
*-gnu)
13915 druntime_target_os_parsed
="freebsd"
13918 druntime_target_os_parsed
="openbsd"
13921 druntime_target_os_parsed
="netbsd"
13923 linux
*) druntime_target_os_parsed
="linux"
13925 mingw
*) druntime_target_os_parsed
="mingw"
13927 *solaris
*) druntime_target_os_parsed
="solaris"
13929 if test "$druntime_target_os_parsed" = "aix"; then
13930 DRUNTIME_OS_AIX_TRUE
=
13931 DRUNTIME_OS_AIX_FALSE
='#'
13933 DRUNTIME_OS_AIX_TRUE
='#'
13934 DRUNTIME_OS_AIX_FALSE
=
13937 if test "$druntime_target_os_parsed" = "android"; then
13938 DRUNTIME_OS_ANDROID_TRUE
=
13939 DRUNTIME_OS_ANDROID_FALSE
='#'
13941 DRUNTIME_OS_ANDROID_TRUE
='#'
13942 DRUNTIME_OS_ANDROID_FALSE
=
13945 if test "$druntime_target_os_parsed" = "darwin"; then
13946 DRUNTIME_OS_DARWIN_TRUE
=
13947 DRUNTIME_OS_DARWIN_FALSE
='#'
13949 DRUNTIME_OS_DARWIN_TRUE
='#'
13950 DRUNTIME_OS_DARWIN_FALSE
=
13953 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
13954 DRUNTIME_OS_DRAGONFLYBSD_TRUE
=
13955 DRUNTIME_OS_DRAGONFLYBSD_FALSE
='#'
13957 DRUNTIME_OS_DRAGONFLYBSD_TRUE
='#'
13958 DRUNTIME_OS_DRAGONFLYBSD_FALSE
=
13961 if test "$druntime_target_os_parsed" = "freebsd"; then
13962 DRUNTIME_OS_FREEBSD_TRUE
=
13963 DRUNTIME_OS_FREEBSD_FALSE
='#'
13965 DRUNTIME_OS_FREEBSD_TRUE
='#'
13966 DRUNTIME_OS_FREEBSD_FALSE
=
13969 if test "$druntime_target_os_parsed" = "netbsd"; then
13970 DRUNTIME_OS_NETBSD_TRUE
=
13971 DRUNTIME_OS_NETBSD_FALSE
='#'
13973 DRUNTIME_OS_NETBSD_TRUE
='#'
13974 DRUNTIME_OS_NETBSD_FALSE
=
13977 if test "$druntime_target_os_parsed" = "openbsd"; then
13978 DRUNTIME_OS_OPENBSD_TRUE
=
13979 DRUNTIME_OS_OPENBSD_FALSE
='#'
13981 DRUNTIME_OS_OPENBSD_TRUE
='#'
13982 DRUNTIME_OS_OPENBSD_FALSE
=
13985 if test "$druntime_target_os_parsed" = "linux"; then
13986 DRUNTIME_OS_LINUX_TRUE
=
13987 DRUNTIME_OS_LINUX_FALSE
='#'
13989 DRUNTIME_OS_LINUX_TRUE
='#'
13990 DRUNTIME_OS_LINUX_FALSE
=
13993 if test "$druntime_target_os_parsed" = "mingw"; then
13994 DRUNTIME_OS_MINGW_TRUE
=
13995 DRUNTIME_OS_MINGW_FALSE
='#'
13997 DRUNTIME_OS_MINGW_TRUE
='#'
13998 DRUNTIME_OS_MINGW_FALSE
=
14001 if test "$druntime_target_os_parsed" = "solaris"; then
14002 DRUNTIME_OS_SOLARIS_TRUE
=
14003 DRUNTIME_OS_SOLARIS_FALSE
='#'
14005 DRUNTIME_OS_SOLARIS_TRUE
='#'
14006 DRUNTIME_OS_SOLARIS_FALSE
=
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14013 $as_echo_n "checking for thread model used by GDC... " >&6; }
14014 d_thread_model
=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14016 $as_echo "$d_thread_model" >&6; }
14018 # Map from thread model to thread interface.
14020 case $d_thread_model in
14021 aix
) DCFG_THREAD_MODEL
="Posix" ;;
14022 lynx
) DCFG_THREAD_MODEL
="Posix" ;;
14023 posix
) DCFG_THREAD_MODEL
="Posix" ;;
14024 single
) DCFG_THREAD_MODEL
="Single" ;;
14025 win32
) DCFG_THREAD_MODEL
="Win32" ;;
14026 # TODO: These targets need porting.
14027 dce|mipssde|rtems|tpf|vxworks
)
14028 DCFG_THREAD_MODEL
="Single" ;;
14029 *) as_fn_error
"Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14036 ac_cpp
='$CPP $CPPFLAGS'
14037 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14038 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14039 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14042 $as_echo_n "checking for ARM unwinder... " >&6; }
14043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14044 /* end confdefs.h. */
14045 #include <unwind.h>
14050 #if __ARM_EABI_UNWINDER__
14058 if ac_fn_c_try_compile
"$LINENO"; then :
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14060 $as_echo "no" >&6; }
14061 DCFG_ARM_EABI_UNWINDER
=false
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14064 $as_echo "yes" >&6; }
14065 DCFG_ARM_EABI_UNWINDER
=true
14067 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14069 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14070 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
=
14071 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
='#'
14073 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
='#'
14074 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
=
14078 ac_cpp
='$CPP $CPPFLAGS'
14079 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14080 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14081 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14086 ac_cpp
='$CPP $CPPFLAGS'
14087 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14088 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14089 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14092 $as_echo_n "checking for minfo section bracketing... " >&6; }
14093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14094 /* end confdefs.h. */
14096 void* module_info_ptr __attribute__((section ("minfo")));
14097 extern void* __start_minfo __attribute__((visibility ("hidden")));
14098 extern void* __stop_minfo __attribute__((visibility ("hidden")));
14102 // Never run, just to prevent compiler from optimizing access
14103 return &__start_minfo == &__stop_minfo;
14107 if ac_fn_c_try_link
"$LINENO"; then :
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14109 $as_echo "yes" >&6; }
14110 DCFG_MINFO_BRACKETING
=true
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14113 $as_echo "no" >&6; }
14114 DCFG_MINFO_BRACKETING
=false
14116 rm -f core conftest.err conftest.
$ac_objext \
14117 conftest
$ac_exeext conftest.
$ac_ext
14120 ac_cpp
='$CPP $CPPFLAGS'
14121 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14122 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14123 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14129 gdc_save_DFLAGS
=$GDCFLAGS
14130 GDCFLAGS
="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14133 ac_compile
='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14134 ac_link
='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14135 ac_compiler_gnu
=yes
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14138 $as_echo_n "checking for library containing malloc... " >&6; }
14139 if ${ac_cv_search_malloc+:} false
; then :
14140 $as_echo_n "(cached) " >&6
14142 ac_func_search_save_LIBS
=$LIBS
14143 cat > conftest.
$ac_ext <<_ACEOF
14145 extern(C) int malloc();
14147 extern(C) int main() {
14148 malloc(); return 0;
14151 for ac_lib
in '' c
; do
14152 if test -z "$ac_lib"; then
14153 ac_res
="none required"
14156 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14158 if ac_fn_d_try_link
"$LINENO"; then :
14159 ac_cv_search_malloc
=$ac_res
14161 rm -f core conftest.err conftest.
$ac_objext \
14163 if ${ac_cv_search_malloc+:} false
; then :
14167 if ${ac_cv_search_malloc+:} false
; then :
14170 ac_cv_search_malloc
=no
14172 rm conftest.
$ac_ext
14173 LIBS
=$ac_func_search_save_LIBS
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14176 $as_echo "$ac_cv_search_malloc" >&6; }
14177 ac_res
=$ac_cv_search_malloc
14178 if test "$ac_res" != no
; then :
14179 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14184 enable_thread_lib
=yes
14185 # Check whether --enable-thread-lib was given.
14186 if test "${enable_thread_lib+set}" = set; then :
14187 enableval
=$enable_thread_lib;
14191 if test "x$enable_thread_lib" = "xyes"; then :
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14194 $as_echo_n "checking for library containing pthread_create... " >&6; }
14195 if ${ac_cv_search_pthread_create+:} false
; then :
14196 $as_echo_n "(cached) " >&6
14198 ac_func_search_save_LIBS
=$LIBS
14199 cat > conftest.
$ac_ext <<_ACEOF
14201 extern(C) int pthread_create();
14203 extern(C) int main() {
14204 pthread_create(); return 0;
14207 for ac_lib
in '' pthread
; do
14208 if test -z "$ac_lib"; then
14209 ac_res
="none required"
14212 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14214 if ac_fn_d_try_link
"$LINENO"; then :
14215 ac_cv_search_pthread_create
=$ac_res
14217 rm -f core conftest.err conftest.
$ac_objext \
14219 if ${ac_cv_search_pthread_create+:} false
; then :
14223 if ${ac_cv_search_pthread_create+:} false
; then :
14226 ac_cv_search_pthread_create
=no
14228 rm conftest.
$ac_ext
14229 LIBS
=$ac_func_search_save_LIBS
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14232 $as_echo "$ac_cv_search_pthread_create" >&6; }
14233 ac_res
=$ac_cv_search_pthread_create
14234 if test "$ac_res" != no
; then :
14235 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14242 if test "x$enable_thread_lib" = "xno"; then :
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread library" >&5
14245 $as_echo_n "checking for thread library... " >&6; }
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14247 $as_echo "disabled" >&6; }
14251 as_ac_Lib
=`$as_echo "ac_cv_lib_$enable_thread_lib''_pthread_create" | $as_tr_sh`
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -l$enable_thread_lib" >&5
14253 $as_echo_n "checking for pthread_create in -l$enable_thread_lib... " >&6; }
14254 if eval \
${$as_ac_Lib+:} false
; then :
14255 $as_echo_n "(cached) " >&6
14257 ac_check_lib_save_LIBS
=$LIBS
14258 LIBS
="-l$enable_thread_lib $LIBS"
14259 cat > conftest.
$ac_ext <<_ACEOF
14261 extern(C) int pthread_create();
14263 extern(C) int main() {
14264 pthread_create(); return 0;
14267 if ac_fn_d_try_link
"$LINENO"; then :
14268 eval "$as_ac_Lib=yes"
14270 eval "$as_ac_Lib=no"
14272 rm -f core conftest.err conftest.
$ac_objext \
14273 conftest
$ac_exeext conftest.
$ac_ext
14274 LIBS
=$ac_check_lib_save_LIBS
14276 eval ac_res
=\$
$as_ac_Lib
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14278 $as_echo "$ac_res" >&6; }
14279 if eval test \"x\$
"$as_ac_Lib"\" = x
"yes"; then :
14280 cat >>confdefs.h
<<_ACEOF
14281 #define `$as_echo "HAVE_LIB$enable_thread_lib" | $as_tr_cpp` 1
14284 LIBS
="-l$enable_thread_lib $LIBS"
14288 as_fn_error $?
"Thread library not found" "$LINENO" 5
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14298 $as_echo_n "checking for library containing cosf... " >&6; }
14299 if ${ac_cv_search_cosf+:} false
; then :
14300 $as_echo_n "(cached) " >&6
14302 ac_func_search_save_LIBS
=$LIBS
14303 cat > conftest.
$ac_ext <<_ACEOF
14305 extern(C) int cosf();
14307 extern(C) int main() {
14311 for ac_lib
in '' m
; do
14312 if test -z "$ac_lib"; then
14313 ac_res
="none required"
14316 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14318 if ac_fn_d_try_link
"$LINENO"; then :
14319 ac_cv_search_cosf
=$ac_res
14321 rm -f core conftest.err conftest.
$ac_objext \
14323 if ${ac_cv_search_cosf+:} false
; then :
14327 if ${ac_cv_search_cosf+:} false
; then :
14330 ac_cv_search_cosf
=no
14332 rm conftest.
$ac_ext
14333 LIBS
=$ac_func_search_save_LIBS
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14336 $as_echo "$ac_cv_search_cosf" >&6; }
14337 ac_res
=$ac_cv_search_cosf
14338 if test "$ac_res" != no
; then :
14339 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14344 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14345 if ${ac_cv_search_clock_gettime+:} false
; then :
14346 $as_echo_n "(cached) " >&6
14348 ac_func_search_save_LIBS
=$LIBS
14349 cat > conftest.
$ac_ext <<_ACEOF
14351 extern(C) int clock_gettime();
14353 extern(C) int main() {
14354 clock_gettime(); return 0;
14357 for ac_lib
in '' rt
; do
14358 if test -z "$ac_lib"; then
14359 ac_res
="none required"
14362 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14364 if ac_fn_d_try_link
"$LINENO"; then :
14365 ac_cv_search_clock_gettime
=$ac_res
14367 rm -f core conftest.err conftest.
$ac_objext \
14369 if ${ac_cv_search_clock_gettime+:} false
; then :
14373 if ${ac_cv_search_clock_gettime+:} false
; then :
14376 ac_cv_search_clock_gettime
=no
14378 rm conftest.
$ac_ext
14379 LIBS
=$ac_func_search_save_LIBS
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14382 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14383 ac_res
=$ac_cv_search_clock_gettime
14384 if test "$ac_res" != no
; then :
14385 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14390 # This checks to see if the host supports the compiler-generated builtins
14391 # for atomic operations for various integral sizes. Note, this is intended
14392 # to be an all-or-nothing switch, so all the atomic operations that are
14393 # used should be checked.
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14395 $as_echo_n "checking for atomic builtins for byte... " >&6; }
14396 if ${druntime_cv_atomic_byte+:} false
; then :
14397 $as_echo_n "(cached) " >&6
14400 cat > conftest.
$ac_ext <<_ACEOF
14402 import gcc.builtins;
14404 extern(C) int main() {
14408 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14409 __atomic_load_1(&c1, 5);
14410 __atomic_store_1(&c1, c2, 5);
14415 if ac_fn_d_try_link
"$LINENO"; then :
14416 druntime_cv_atomic_byte
=yes
14418 druntime_cv_atomic_byte
=no
14420 rm -f core conftest.err conftest.
$ac_objext \
14421 conftest
$ac_exeext conftest.
$ac_ext
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14426 $as_echo "$druntime_cv_atomic_byte" >&6; }
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14429 $as_echo_n "checking for atomic builtins for short... " >&6; }
14430 if ${druntime_cv_atomic_short+:} false
; then :
14431 $as_echo_n "(cached) " >&6
14434 cat > conftest.
$ac_ext <<_ACEOF
14436 import gcc.builtins;
14438 extern(C) int main() {
14442 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14443 __atomic_load_2(&c1, 5);
14444 __atomic_store_2(&c1, c2, 5);
14449 if ac_fn_d_try_link
"$LINENO"; then :
14450 druntime_cv_atomic_short
=yes
14452 druntime_cv_atomic_short
=no
14454 rm -f core conftest.err conftest.
$ac_objext \
14455 conftest
$ac_exeext conftest.
$ac_ext
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14460 $as_echo "$druntime_cv_atomic_short" >&6; }
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14463 $as_echo_n "checking for atomic builtins for int... " >&6; }
14464 if ${druntime_cv_atomic_int+:} false
; then :
14465 $as_echo_n "(cached) " >&6
14468 cat > conftest.
$ac_ext <<_ACEOF
14470 import gcc.builtins;
14472 extern(C) int main() {
14476 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14477 __atomic_load_4(&c1, 5);
14478 __atomic_store_4(&c1, c2, 5);
14483 if ac_fn_d_try_link
"$LINENO"; then :
14484 druntime_cv_atomic_int
=yes
14486 druntime_cv_atomic_int
=no
14488 rm -f core conftest.err conftest.
$ac_objext \
14489 conftest
$ac_exeext conftest.
$ac_ext
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14494 $as_echo "$druntime_cv_atomic_int" >&6; }
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14497 $as_echo_n "checking for atomic builtins for long... " >&6; }
14498 if ${druntime_cv_atomic_long+:} false
; then :
14499 $as_echo_n "(cached) " >&6
14502 cat > conftest.
$ac_ext <<_ACEOF
14504 import gcc.builtins;
14506 extern(C) int main() {
14510 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14511 __atomic_load_8(&c1, 5);
14512 __atomic_store_8(&c1, c2, 5);
14517 if ac_fn_d_try_link
"$LINENO"; then :
14518 druntime_cv_atomic_long
=yes
14520 druntime_cv_atomic_long
=no
14522 rm -f core conftest.err conftest.
$ac_objext \
14523 conftest
$ac_exeext conftest.
$ac_ext
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14528 $as_echo "$druntime_cv_atomic_long" >&6; }
14530 # Have atomic builtin support if all but the long test above passes.
14531 DCFG_HAVE_ATOMIC_BUILTINS
=false
14532 if test "$druntime_cv_atomic_byte" = yes \
14533 && test "$druntime_cv_atomic_short" = yes \
14534 && test "$druntime_cv_atomic_int" = yes; then \
14535 DCFG_HAVE_ATOMIC_BUILTINS
=true
14538 # Have 64-bit atomic support if the long test above passes.
14539 DCFG_HAVE_64BIT_ATOMICS
=false
14540 if test "$druntime_cv_atomic_long" = yes; then
14541 DCFG_HAVE_64BIT_ATOMICS
=true
14548 ac_cpp
='$CPP $CPPFLAGS'
14549 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14550 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14551 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14554 GDCFLAGS
=$gdc_save_DFLAGS
14559 # Check whether --with-libatomic was given.
14560 if test "${with_libatomic+set}" = set; then :
14561 withval
=$with_libatomic;
14565 DCFG_HAVE_LIBATOMIC
=false
14567 if test "x$with_libatomic" != "xno"; then :
14569 DCFG_HAVE_LIBATOMIC
=true
14570 LIBATOMIC
=..
/..
/libatomic
/libatomic_convenience.la
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14575 $as_echo_n "checking for libatomic... " >&6; }
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14577 $as_echo "disabled" >&6; }
14586 ac_cpp
='$CPP $CPPFLAGS'
14587 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14588 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14589 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14591 BACKTRACE_SUPPORTED
=false
14592 BACKTRACE_USES_MALLOC
=false
14593 BACKTRACE_SUPPORTS_THREADS
=false
14597 # Check whether --with-libbacktrace was given.
14598 if test "${with_libbacktrace+set}" = set; then :
14599 withval
=$with_libbacktrace;
14603 if test "x$with_libbacktrace" != "xno"; then :
14605 LIBBACKTRACE
=..
/..
/libbacktrace
/libbacktrace.la
14607 gdc_save_CPPFLAGS
=$CPPFLAGS
14608 CPPFLAGS
+=" -I../libbacktrace "
14610 ac_fn_c_check_header_mongrel
"$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
14611 if test "x$ac_cv_header_backtrace_supported_h" = xyes
; then :
14612 have_libbacktrace_h
=true
14614 have_libbacktrace_h
=false
14619 if $have_libbacktrace_h; then
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14621 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14623 /* end confdefs.h. */
14625 #include <backtrace-supported.h>
14626 #if BACKTRACE_SUPPORTED
14627 FOUND_LIBBACKTRACE_RESULT_GDC
14631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14632 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev
/null
2>&1; then :
14633 BACKTRACE_SUPPORTED
=true
14635 BACKTRACE_SUPPORTED
=false
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14640 $as_echo "$BACKTRACE_SUPPORTED" >&6; }
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14643 $as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14645 /* end confdefs.h. */
14647 #include <backtrace-supported.h>
14648 #if BACKTRACE_USES_MALLOC
14649 FOUND_LIBBACKTRACE_RESULT_GDC
14653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14654 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev
/null
2>&1; then :
14655 BACKTRACE_USES_MALLOC
=true
14657 BACKTRACE_USES_MALLOC
=false
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14662 $as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14665 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14667 /* end confdefs.h. */
14669 #include <backtrace-supported.h>
14670 #if BACKTRACE_SUPPORTS_THREADS
14671 FOUND_LIBBACKTRACE_RESULT_GDC
14675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14676 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev
/null
2>&1; then :
14677 BACKTRACE_SUPPORTS_THREADS
=true
14679 BACKTRACE_SUPPORTS_THREADS
=false
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14684 $as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14686 CPPFLAGS
=$gdc_save_CPPFLAGS
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14691 $as_echo_n "checking for libbacktrace... " >&6; }
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14693 $as_echo "disabled" >&6; }
14702 ac_cpp
='$CPP $CPPFLAGS'
14703 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14704 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14705 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14709 # Libtool has already checked this, so re-use the inferred dlopen lib.
14710 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
14712 LIBS
="$LIBS $lt_cv_dlopen_libs"
14718 # Check whether --with-target-system-zlib was given.
14719 if test "${with_target_system_zlib+set}" = set; then :
14720 withval
=$with_target_system_zlib;
14725 if test "x$with_target_system_zlib" = "xyes"; then :
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
14728 $as_echo_n "checking for deflate in -lz... " >&6; }
14729 if ${ac_cv_lib_z_deflate+:} false
; then :
14730 $as_echo_n "(cached) " >&6
14732 ac_check_lib_save_LIBS
=$LIBS
14734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14735 /* end confdefs.h. */
14737 /* Override any GCC internal prototype to avoid an error.
14738 Use char because int might match the return type of a GCC
14739 builtin and then its argument prototype would still apply. */
14752 if ac_fn_c_try_link
"$LINENO"; then :
14753 ac_cv_lib_z_deflate
=yes
14755 ac_cv_lib_z_deflate
=no
14757 rm -f core conftest.err conftest.
$ac_objext \
14758 conftest
$ac_exeext conftest.
$ac_ext
14759 LIBS
=$ac_check_lib_save_LIBS
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
14762 $as_echo "$ac_cv_lib_z_deflate" >&6; }
14763 if test "x$ac_cv_lib_z_deflate" = xyes
; then :
14769 as_fn_error $?
"System zlib not found" "$LINENO" 5
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
14777 $as_echo_n "checking for zlib... " >&6; }
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14779 $as_echo "just compiled" >&6; }
14783 if test "$with_target_system_zlib" = yes; then
14784 DRUNTIME_ZLIB_SYSTEM_TRUE
=
14785 DRUNTIME_ZLIB_SYSTEM_FALSE
='#'
14787 DRUNTIME_ZLIB_SYSTEM_TRUE
='#'
14788 DRUNTIME_ZLIB_SYSTEM_FALSE
=
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
14796 $as_echo_n "checking D GCC version... " >&6; }
14797 gcc_version
=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
14799 $as_echo "$gcc_version" >&6; }
14803 # Check whether --with-cross-host was given.
14804 if test "${with_cross_host+set}" = set; then :
14805 withval
=$with_cross_host;
14812 version_specific_libs
=no
14814 # Version-specific runtime libs processing.
14815 if test $version_specific_libs = yes; then
14816 toolexecdir
='${libdir}/gcc/${host_alias}'
14817 toolexeclibdir
='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
14819 # Calculate toolexecdir, toolexeclibdir
14820 # Install a library built with a cross compiler in tooldir, not libdir.
14821 if test -n "$with_cross_host" && test x
"$with_cross_host" != x
"no"; then
14822 toolexecdir
='${exec_prefix}/${host_alias}'
14823 toolexeclibdir
='${toolexecdir}/lib'
14825 toolexecdir
='${libdir}/gcc/${host_alias}'
14826 toolexeclibdir
='${libdir}'
14828 multi_os_directory
=`$GDC -print-multi-os-directory`
14829 case $multi_os_directory in
14830 .
) ;; # Avoid trailing /.
14831 *) toolexeclibdir
=${toolexeclibdir}/${multi_os_directory} ;;
14837 # Default case for install directory for D sources files.
14838 gdc_include_dir
='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
14842 # Add dependencies for libgphobos.spec file
14843 SPEC_PHOBOS_DEPS
="$LIBS"
14846 # Libdruntime / phobos soname version
14847 DRUNTIME_SOVERSION
="76:2:0"
14848 PHOBOS_SOVERSION
="76:2:0"
14852 # Set default flags (after DRUNTIME_WERROR!)
14853 if test -z "$GDCFLAGS"; then
14854 GDCFLAGS
="-Wall $WERROR_FLAG -g -frelease -O2"
14858 if test -z "$GDCFLAGSX"; then
14859 GDCFLAGSX
="-Wall $WERROR_FLAG -g -fno-release -funittest"
14863 # Sanity check for the cross-compilation case:
14864 ac_fn_c_check_header_mongrel
"$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
14865 if test "x$ac_cv_header_stdio_h" = xyes
; then :
14868 as_fn_error $?
"cannot find stdio.h." "$LINENO" 5
14873 ac_config_files
="$ac_config_files Makefile src/Makefile libdruntime/Makefile testsuite/Makefile"
14876 ac_config_files
="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
14878 ac_config_files
="$ac_config_files src/libgphobos.spec"
14880 ac_config_files
="$ac_config_files testsuite/testsuite_flags"
14883 # We need multilib support, but only if configuring for the target.
14884 ac_config_commands
="$ac_config_commands default"
14887 cat >confcache
<<\_ACEOF
14888 # This file is a shell script that caches the results of configure
14889 # tests run on this system so they can be shared between configure
14890 # scripts and configure runs, see configure's option --config-cache.
14891 # It is not useful on other systems. If it contains results you don't
14892 # want to keep, you may remove or edit it.
14894 # config.status only pays attention to the cache file if you give it
14895 # the --recheck option to rerun configure.
14897 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14898 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14899 # following values.
14903 # The following way of writing the cache mishandles newlines in values,
14904 # but we know of no workaround that is simple, portable, and efficient.
14905 # So, we kill variables containing newlines.
14906 # Ultrix sh set writes to stderr and can't be redirected directly,
14907 # and sets the high bit in the cache file unless we assign to the vars.
14909 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14910 eval ac_val
=\$
$ac_var
14914 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14915 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14918 _ | IFS | as_nl
) ;; #(
14919 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
14920 *) { eval $ac_var=; unset $ac_var;} ;;
14926 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14927 *${as_nl}ac_space
=\
*)
14928 # `set' does not quote correctly, so add quotes: double-quote
14929 # substitution turns \\\\ into \\, and sed turns \\ into \.
14932 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14935 # `set' quotes correctly as required by POSIX, so do not add quotes.
14936 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14945 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14947 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14949 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
14950 if test -w "$cache_file"; then
14951 if test "x$cache_file" != "x/dev/null"; then
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14953 $as_echo "$as_me: updating cache $cache_file" >&6;}
14954 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
14955 cat confcache
>"$cache_file"
14957 case $cache_file in #(
14959 mv -f confcache
"$cache_file"$$
&&
14960 mv -f "$cache_file"$$
"$cache_file" ;; #(
14962 mv -f confcache
"$cache_file" ;;
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14968 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14973 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14974 # Let make expand exec_prefix.
14975 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14977 DEFS
=-DHAVE_CONFIG_H
14982 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
14983 # 1. Remove the extension, and $U if already installed.
14984 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
14985 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
14986 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14987 # will be set to the directory where LIBOBJS objects are built.
14988 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14989 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
14991 LIBOBJS
=$ac_libobjs
14993 LTLIBOBJS
=$ac_ltlibobjs
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14997 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14998 if test -n "$am_sleep_pid"; then
14999 # Hide warnings about reused PIDs.
15000 wait $am_sleep_pid 2>/dev
/null
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15003 $as_echo "done" >&6; }
15004 if test -n "$EXEEXT"; then
15006 am__EXEEXT_FALSE
='#'
15008 am__EXEEXT_TRUE
='#'
15012 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15013 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
15014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15016 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
15017 as_fn_error $?
"conditional \"ENABLE_SHARED\" was never defined.
15018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15020 if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
15021 as_fn_error $?
"conditional \"ENABLE_STATIC\" was never defined.
15022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15024 if test -z "${DRUNTIME_GC_ENABLE_TRUE}" && test -z "${DRUNTIME_GC_ENABLE_FALSE}"; then
15025 as_fn_error $?
"conditional \"DRUNTIME_GC_ENABLE\" was never defined.
15026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15028 if test -z "${DRUNTIME_OS_UNIX_TRUE}" && test -z "${DRUNTIME_OS_UNIX_FALSE}"; then
15029 as_fn_error $?
"conditional \"DRUNTIME_OS_UNIX\" was never defined.
15030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15032 if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
15033 as_fn_error $?
"conditional \"DRUNTIME_OS_AIX\" was never defined.
15034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15036 if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
15037 as_fn_error $?
"conditional \"DRUNTIME_OS_ANDROID\" was never defined.
15038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15040 if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
15041 as_fn_error $?
"conditional \"DRUNTIME_OS_DARWIN\" was never defined.
15042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15044 if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
15045 as_fn_error $?
"conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
15046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15048 if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
15049 as_fn_error $?
"conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
15050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15052 if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
15053 as_fn_error $?
"conditional \"DRUNTIME_OS_NETBSD\" was never defined.
15054 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15056 if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
15057 as_fn_error $?
"conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
15058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15060 if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
15061 as_fn_error $?
"conditional \"DRUNTIME_OS_LINUX\" was never defined.
15062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15064 if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
15065 as_fn_error $?
"conditional \"DRUNTIME_OS_MINGW\" was never defined.
15066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15068 if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
15069 as_fn_error $?
"conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
15070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15072 if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
15073 as_fn_error $?
"conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
15074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15076 if test -z "${DRUNTIME_ZLIB_SYSTEM_TRUE}" && test -z "${DRUNTIME_ZLIB_SYSTEM_FALSE}"; then
15077 as_fn_error $?
"conditional \"DRUNTIME_ZLIB_SYSTEM\" was never defined.
15078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15081 : "${CONFIG_STATUS=./config.status}"
15083 ac_clean_files_save
=$ac_clean_files
15084 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15086 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15088 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15090 # Generated by $as_me.
15091 # Run this file to recreate the current configuration.
15092 # Compiler output produced by configure, useful for debugging
15093 # configure, is in config.log if it exists.
15096 ac_cs_recheck=false
15099 SHELL=\${CONFIG_SHELL-$SHELL}
15102 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15103 ## -------------------- ##
15104 ## M4sh Initialization. ##
15105 ## -------------------- ##
15107 # Be more Bourne compatible
15108 DUALCASE
=1; export DUALCASE
# for MKS sh
15109 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15112 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15113 # is contrary to our usage. Disable this feature.
15114 alias -g '${1+"$@"}'='"$@"'
15115 setopt NO_GLOB_SUBST
15117 case `(set -o) 2>/dev/null` in #(
15129 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15130 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15131 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15132 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15133 # Prefer a ksh shell builtin over an external printf program on Solaris,
15134 # but without wasting forks for bash or zsh.
15135 if test -z "$BASH_VERSION$ZSH_VERSION" \
15136 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15137 as_echo='print
-r --'
15138 as_echo_n='print
-rn --'
15139 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15140 as_echo='printf %s
\n'
15141 as_echo_n='printf %s
'
15143 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15144 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15145 as_echo_n='/usr
/ucb
/echo -n'
15147 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15148 as_echo_n_body='eval
15152 expr "X$arg" : "X\\(.*\\)$as_nl";
15153 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15155 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15157 export as_echo_n_body
15158 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15160 export as_echo_body
15161 as_echo='sh
-c $as_echo_body as_echo
'
15164 # The user is always right.
15165 if test "${PATH_SEPARATOR+set}" != set; then
15167 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15168 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15175 # We need space, tab and new line, in precisely that order. Quoting is
15176 # there to prevent editors from complaining about space-tab.
15177 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15178 # splitting by setting IFS to empty value.)
15181 # Find who we are. Look in the path if we contain no directory separator.
15184 *[\\/]* ) as_myself=$0 ;;
15185 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15186 for as_dir in $PATH
15189 test -z "$as_dir" && as_dir=.
15190 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15196 # We did not find ourselves, most probably we were run as `sh COMMAND'
15197 # in which case we are not to be found in the path.
15198 if test "x$as_myself" = x
; then
15201 if test ! -f "$as_myself"; then
15202 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15206 # Unset variables that we do not need and which cause bugs (e.g. in
15207 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15208 # suppresses any "Segmentation fault" message there. '((' could
15209 # trigger a bug in pdksh 5.2.14.
15210 for as_var
in BASH_ENV ENV MAIL MAILPATH
15211 do eval test x\
${$as_var+set} = xset \
15212 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15225 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15228 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15229 # ----------------------------------------
15230 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15231 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15232 # script with STATUS, using 1 if that was 0.
15235 as_status
=$1; test $as_status -eq 0 && as_status
=1
15237 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15238 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15240 $as_echo "$as_me: error: $2" >&2
15241 as_fn_exit
$as_status
15245 # as_fn_set_status STATUS
15246 # -----------------------
15247 # Set $? to STATUS, without forking.
15248 as_fn_set_status
()
15251 } # as_fn_set_status
15253 # as_fn_exit STATUS
15254 # -----------------
15255 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15259 as_fn_set_status
$1
15265 # Portably unset VAR.
15268 { eval $1=; unset $1;}
15270 as_unset
=as_fn_unset
15271 # as_fn_append VAR VALUE
15272 # ----------------------
15273 # Append the text in VALUE to the end of the definition contained in VAR. Take
15274 # advantage of any shell optimizations that allow amortized linear growth over
15275 # repeated appends, instead of the typical quadratic growth present in naive
15277 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15278 eval 'as_fn_append ()
15289 # as_fn_arith ARG...
15290 # ------------------
15291 # Perform arithmetic evaluation on the ARGs, and store the result in the
15292 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15293 # must be portable across $(()) and expr.
15294 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15295 eval 'as_fn_arith ()
15302 as_val
=`expr "$@" || test $? -eq 1`
15307 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15308 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15314 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15315 as_basename
=basename
15320 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15326 as_me
=`$as_basename -- "$0" ||
15327 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15328 X"$0" : 'X\(//\)$' \| \
15329 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15331 sed '/^.*\/\([^/][^/]*\)\/*$/{
15345 # Avoid depending upon Character Ranges.
15346 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15347 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15348 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15349 as_cr_digits
='0123456789'
15350 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15352 ECHO_C
= ECHO_N
= ECHO_T
=
15353 case `echo -n x` in #(((((
15355 case `echo 'xy\c'` in
15356 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15358 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15365 rm -f conf$$ conf$$.exe conf$$.
file
15366 if test -d conf$$.dir
; then
15367 rm -f conf$$.dir
/conf$$.
file
15370 mkdir conf$$.dir
2>/dev
/null
15372 if (echo >conf$$.
file) 2>/dev
/null
; then
15373 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15375 # ... but there are two gotchas:
15376 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15377 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15378 # In both cases, we have to default to `cp -pR'.
15379 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15381 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15389 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15390 rmdir conf$$.dir
2>/dev
/null
15395 # Create "$as_dir" as a directory, including parents if necessary.
15400 -*) as_dir
=.
/$as_dir;;
15402 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15406 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15407 *) as_qdir
=$as_dir;;
15409 as_dirs
="'$as_qdir' $as_dirs"
15410 as_dir
=`$as_dirname -- "$as_dir" ||
15411 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15412 X"$as_dir" : 'X\(//\)[^/]' \| \
15413 X"$as_dir" : 'X\(//\)$' \| \
15414 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15415 $as_echo X"$as_dir" |
15416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15420 /^X\(\/\/\)[^/].*/{
15433 test -d "$as_dir" && break
15435 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15436 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15440 if mkdir
-p .
2>/dev
/null
; then
15441 as_mkdir_p
='mkdir -p "$as_dir"'
15443 test -d .
/-p && rmdir .
/-p
15448 # as_fn_executable_p FILE
15449 # -----------------------
15450 # Test if FILE is an executable regular file.
15451 as_fn_executable_p
()
15453 test -f "$1" && test -x "$1"
15454 } # as_fn_executable_p
15455 as_test_x
='test -x'
15456 as_executable_p
=as_fn_executable_p
15458 # Sed expression to map a string onto a valid CPP name.
15459 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15461 # Sed expression to map a string onto a valid variable name.
15462 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15466 ## ----------------------------------- ##
15467 ## Main body of $CONFIG_STATUS script. ##
15468 ## ----------------------------------- ##
15470 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15473 # Save the log message, to keep $0 and so on meaningful, and to
15474 # report actual input values of CONFIG_FILES etc. instead of their
15475 # values after options handling.
15477 This file was extended by package-unused $as_me version-unused, which was
15478 generated by GNU Autoconf 2.69. Invocation command line was
15480 CONFIG_FILES = $CONFIG_FILES
15481 CONFIG_HEADERS = $CONFIG_HEADERS
15482 CONFIG_LINKS = $CONFIG_LINKS
15483 CONFIG_COMMANDS = $CONFIG_COMMANDS
15486 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15491 case $ac_config_files in *"
15492 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15495 case $ac_config_headers in *"
15496 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15501 # Files that config.status was made for.
15502 config_files="$ac_config_files"
15503 config_headers="$ac_config_headers"
15504 config_commands="$ac_config_commands"
15508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15510 \`$as_me' instantiates files and other configuration actions
15511 from templates according to the current configuration. Unless the files
15512 and actions are specified as TAGs, all are instantiated by default.
15514 Usage: $0 [OPTION]... [TAG]...
15516 -h, --help print this help, then exit
15517 -V, --version print version number and configuration settings, then exit
15518 --config print configuration, then exit
15519 -q, --quiet, --silent
15520 do not print progress messages
15521 -d, --debug don't remove temporary files
15522 --recheck update $as_me by reconfiguring in the same conditions
15523 --file=FILE[:TEMPLATE]
15524 instantiate the configuration file FILE
15525 --header=FILE[:TEMPLATE]
15526 instantiate the configuration header FILE
15528 Configuration files:
15531 Configuration headers:
15534 Configuration commands:
15537 Report bugs to the package provider."
15540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15541 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15543 package-unused config.status version-unused
15544 configured by $0, generated by GNU Autoconf 2.69,
15545 with options \\"\$ac_cs_config\\"
15547 Copyright (C) 2012 Free Software Foundation, Inc.
15548 This config.status script is free software; the Free Software Foundation
15549 gives unlimited permission to copy, distribute and modify it."
15556 test -n "\$AWK" || AWK=awk
15559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15560 # The default lists apply if the user does not specify any file.
15566 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15567 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15571 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15583 # Handling of the options.
15584 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15586 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15587 $as_echo "$ac_cs_version"; exit ;;
15588 --config |
--confi |
--conf |
--con |
--co |
--c )
15589 $as_echo "$ac_cs_config"; exit ;;
15590 --debug |
--debu |
--deb |
--de |
--d |
-d )
15592 --file |
--fil |
--fi |
--f )
15595 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15596 '') as_fn_error $?
"missing file argument" ;;
15598 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15599 ac_need_defaults
=false
;;
15600 --header |
--heade |
--head |
--hea )
15603 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15605 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15606 ac_need_defaults
=false
;;
15608 # Conflict between --help and --header
15609 as_fn_error $?
"ambiguous option: \`$1'
15610 Try \`$0 --help' for more information.";;
15611 --help |
--hel |
-h )
15612 $as_echo "$ac_cs_usage"; exit ;;
15613 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15614 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15617 # This is an error.
15618 -*) as_fn_error $?
"unrecognized option: \`$1'
15619 Try \`$0 --help' for more information." ;;
15621 *) as_fn_append ac_config_targets
" $1"
15622 ac_need_defaults
=false
;;
15628 ac_configure_extra_args
=
15630 if $ac_cs_silent; then
15632 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15637 if \$ac_cs_recheck; then
15638 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15640 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15641 CONFIG_SHELL='$SHELL'
15642 export CONFIG_SHELL
15647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15651 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15652 ## Running $as_me. ##
15658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15666 with_multisubdir="$with_multisubdir"
15667 with_multisrctop="$with_multisrctop"
15668 with_target_subdir="$with_target_subdir"
15669 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15670 multi_basedir="$multi_basedir"
15671 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15674 GFORTRAN="$GFORTRAN"
15678 # The HP-UX ksh and POSIX shell print the target directory to stdout
15679 # if CDPATH is set.
15680 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15682 sed_quote_subst='$sed_quote_subst'
15683 double_quote_subst='$double_quote_subst'
15684 delay_variable_subst='$delay_variable_subst'
15685 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15686 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15687 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15688 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15689 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15690 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15691 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15692 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15693 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15694 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15695 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15696 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15697 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15698 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15699 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15700 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15701 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15702 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15703 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15704 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15705 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15706 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15707 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15708 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15709 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15710 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15711 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15712 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15713 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15714 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15715 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15716 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15717 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15718 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15719 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15720 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15721 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15722 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15723 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15724 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15725 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15726 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15727 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15728 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15729 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15730 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15731 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15732 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15733 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"`'
15734 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15735 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15736 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15737 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15738 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15739 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15740 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15741 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15742 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15743 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15744 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15745 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15746 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15747 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15748 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15749 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15750 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15751 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15752 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15753 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15754 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15755 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15756 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15757 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15758 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15759 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15760 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15761 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15762 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15763 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15764 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15765 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15766 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15767 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15768 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15769 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15770 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15771 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15772 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15773 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15774 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15775 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15776 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15777 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15778 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15779 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15780 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15781 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15782 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15783 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15784 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15785 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15786 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15787 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15788 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15789 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15790 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15791 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15792 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15793 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15794 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15795 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15796 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15797 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15798 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15799 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15800 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15801 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15802 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15803 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15804 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15805 LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
15806 reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
15807 reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
15808 old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
15809 compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
15810 GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
15811 lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
15812 lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
15813 lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
15814 lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
15815 lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
15816 archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
15817 enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
15818 export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
15819 whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
15820 compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
15821 old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
15822 old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
15823 archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
15824 archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
15825 module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
15826 module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
15827 with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
15828 allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
15829 no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
15830 hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
15831 hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
15832 hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
15833 hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
15834 hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
15835 hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
15836 hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
15837 hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
15838 inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
15839 link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
15840 fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
15841 always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
15842 export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
15843 exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
15844 include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
15845 prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
15846 file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
15847 hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
15850 LTCFLAGS='$LTCFLAGS'
15851 compiler='$compiler_DEFAULT'
15853 # A function that is used when there is no print builtin or printf.
15854 func_fallback_echo ()
15856 eval 'cat <<_LTECHO_EOF
15861 # Quote evaled strings.
15875 deplibs_check_method \
15884 lt_cv_sys_global_symbol_pipe \
15885 lt_cv_sys_global_symbol_to_cdecl \
15886 lt_cv_sys_global_symbol_to_c_name_address \
15887 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15888 lt_prog_compiler_no_builtin_flag \
15889 lt_prog_compiler_wl \
15890 lt_prog_compiler_pic \
15891 lt_prog_compiler_static \
15892 lt_cv_prog_compiler_c_o \
15900 export_dynamic_flag_spec \
15901 whole_archive_flag_spec \
15902 compiler_needs_object \
15904 allow_undefined_flag \
15905 no_undefined_flag \
15906 hardcode_libdir_flag_spec \
15907 hardcode_libdir_flag_spec_ld \
15908 hardcode_libdir_separator \
15913 variables_saved_for_relink \
15915 library_names_spec \
15917 install_override_mode \
15924 lt_prog_compiler_no_builtin_flag_D \
15925 lt_prog_compiler_wl_D \
15926 lt_prog_compiler_pic_D \
15927 lt_prog_compiler_static_D \
15928 lt_cv_prog_compiler_c_o_D \
15929 export_dynamic_flag_spec_D \
15930 whole_archive_flag_spec_D \
15931 compiler_needs_object_D \
15933 allow_undefined_flag_D \
15934 no_undefined_flag_D \
15935 hardcode_libdir_flag_spec_D \
15936 hardcode_libdir_flag_spec_ld_D \
15937 hardcode_libdir_separator_D \
15938 fix_srcfile_path_D \
15939 exclude_expsyms_D \
15940 include_expsyms_D \
15941 file_list_spec_D; do
15942 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15943 *[\\\\\\\`\\"\\\$]*)
15944 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15947 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15952 # Double-quote double-evaled strings.
15953 for var in reload_cmds \
15954 old_postinstall_cmds \
15955 old_postuninstall_cmds \
15957 extract_expsyms_cmds \
15958 old_archive_from_new_cmds \
15959 old_archive_from_expsyms_cmds \
15961 archive_expsym_cmds \
15963 module_expsym_cmds \
15964 export_symbols_cmds \
15967 postuninstall_cmds \
15969 sys_lib_search_path_spec \
15970 sys_lib_dlsearch_path_spec \
15972 old_archive_cmds_D \
15973 old_archive_from_new_cmds_D \
15974 old_archive_from_expsyms_cmds_D \
15976 archive_expsym_cmds_D \
15978 module_expsym_cmds_D \
15979 export_symbols_cmds_D \
15981 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15982 *[\\\\\\\`\\"\\\$]*)
15983 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15986 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15991 ac_aux_dir='$ac_aux_dir'
15992 xsi_shell='$xsi_shell'
15993 lt_shell_append='$lt_shell_append'
15995 # See if we are running on zsh, and set the options which allow our
15996 # commands through without removal of \ escapes INIT.
15997 if test -n "\${ZSH_VERSION+set}" ; then
15998 setopt NO_GLOB_SUBST
16004 TIMESTAMP='$TIMESTAMP'
16013 # Variables needed in config.status (file generation) which aren't already
16014 # passed by autoconf.
16020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16022 # Handling of arguments.
16023 for ac_config_target
in $ac_config_targets
16025 case $ac_config_target in
16026 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
16027 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
16028 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
16029 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16030 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
16031 "libdruntime/Makefile") CONFIG_FILES
="$CONFIG_FILES libdruntime/Makefile" ;;
16032 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
16033 "libdruntime/gcc/config.d") CONFIG_FILES
="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16034 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES
="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16035 "src/libgphobos.spec") CONFIG_FILES
="$CONFIG_FILES src/libgphobos.spec" ;;
16036 "testsuite/testsuite_flags") CONFIG_FILES
="$CONFIG_FILES testsuite/testsuite_flags" ;;
16037 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
16039 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16044 # If the user did not use the arguments to specify the items to instantiate,
16045 # then the envvar interface is used. Set only those that are not.
16046 # We use the long form for the default assignment because of an extremely
16047 # bizarre bug on SunOS 4.1.3.
16048 if $ac_need_defaults; then
16049 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16050 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16051 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16054 # Have a temporary directory for convenience. Make it in the build tree
16055 # simply because there is no reason against having it here, and in addition,
16056 # creating and moving files from /tmp can sometimes cause problems.
16057 # Hook for its removal unless debugging.
16058 # Note that there is a small window in which the directory will not be cleaned:
16059 # after its creation but before its name has been assigned to `$tmp'.
16063 trap 'exit_status=$?
16064 : "${ac_tmp:=$tmp}"
16065 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16067 trap 'as_fn_exit 1' 1 2 13 15
16069 # Create a (secure) tmp directory for tmp files.
16072 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16076 tmp
=.
/conf$$
-$RANDOM
16077 (umask 077 && mkdir
"$tmp")
16078 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
16081 # Set up the scripts for CONFIG_FILES section.
16082 # No need to generate them if there are no CONFIG_FILES.
16083 # This happens for instance with `./config.status config.h'.
16084 if test -n "$CONFIG_FILES"; then
16087 ac_cr
=`echo X | tr X '\015'`
16088 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16089 # But we know of no other shell where ac_cr would be empty at this
16090 # point, so we can use a bashism as a fallback.
16091 if test "x$ac_cr" = x
; then
16092 eval ac_cr
=\$
\'\\r
\'
16094 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16095 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16098 ac_cs_awk_cr
=$ac_cr
16101 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16106 echo "cat >conf$$subs.awk <<_ACEOF" &&
16107 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16109 } >conf$$subs.sh ||
16110 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16111 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16113 for ac_last_try in false false false false false :; do
16114 . ./conf$$subs.sh ||
16115 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16117 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16118 if test $ac_delim_n = $ac_delim_num; then
16120 elif $ac_last_try; then
16121 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16123 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16126 rm -f conf$$subs.sh
16128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16129 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
16133 s/^/S["/; s
/!.
*/"]=/
16143 s/\(.\{148\}\)..*/\1/
16145 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16150 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16157 s/\(.\{148\}\)..*/\1/
16159 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16163 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16168 ' <conf$$subs.awk | sed '
16173 ' >>$CONFIG_STATUS || ac_write_fail=1
16174 rm -f conf$$subs.awk
16175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16177 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
16178 for (key in S) S_is_set[key] = 1
16184 nfields = split(line, field, "@
")
16186 len = length(field[1])
16187 for (i = 2; i < nfields; i++) {
16189 keylen = length(key)
16190 if (S_is_set[key]) {
16192 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16193 len += length(value) + length(field[++i])
16204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16205 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16206 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16209 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
16210 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
16213 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16214 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
16215 # trailing colons and then remove the whole line if VPATH becomes empty
16216 # (actually we leave an empty line to preserve line numbers).
16217 if test "x
$srcdir" = x.; then
16218 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16237 fi # test -n "$CONFIG_FILES"
16239 # Set up the scripts for CONFIG_HEADERS section.
16240 # No need to generate them if there are no CONFIG_HEADERS.
16241 # This happens for instance with `./config.status Makefile'.
16242 if test -n "$CONFIG_HEADERS"; then
16243 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
16247 # Transform confdefs.h into an awk script `defines.awk', embedded as
16248 # here-document in config.status, that substitutes the proper values into
16249 # config.h.in to produce config.h.
16251 # Create a delimiter string that does not exist in confdefs.h, to ease
16252 # handling of long lines.
16254 for ac_last_try in false false :; do
16255 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
16256 if test -z "$ac_tt"; then
16258 elif $ac_last_try; then
16259 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
16261 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16265 # For the awk script, D is an array of macro values keyed by name,
16266 # likewise P contains macro parameters if any. Preserve backslash
16267 # newline sequences.
16269 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16271 s/.\{148\}/&'"$ac_delim"'/g
16274 s/^[ ]*#[ ]*define[ ][ ]*/ /
16281 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16283 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16287 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16288 D["\
1"]=" \
3\\\\\\n
"\\/p
16290 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16295 s/.\{148\}/&'"$ac_delim"'/g
16300 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16303 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16305 ' <confdefs.h | sed '
16306 s/'"$ac_delim"'/"\\\
16307 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16310 for (key in D) D_is_set[key] = 1
16313 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16315 split(line, arg, " ")
16316 if (arg[1] == "#") {
16320 defundef
= substr
(arg
[1], 2)
16323 split(mac1
, mac2
, "(") #)
16325 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16326 if (D_is_set
[macro
]) {
16327 # Preserve the white space surrounding the "#".
16328 print prefix
"define", macro P
[macro
] D
[macro
]
16331 # Replace #undef with comments. This is necessary, for example,
16332 # in the case of _POSIX_SOURCE, which is predefined and required
16333 # on some systems where configure will not decide to define it.
16334 if (defundef
== "undef") {
16335 print
"/*", prefix defundef
, macro
, "*/"
16343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16344 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
16345 fi # test -n "$CONFIG_HEADERS"
16348 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16353 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16355 case $ac_mode$ac_tag in
16357 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16358 :[FH
]-) ac_tag
=-:-;;
16359 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16376 -) ac_f
="$ac_tmp/stdin";;
16377 *) # Look for the file first in the build tree, then in the source tree
16378 # (if the path is not absolute). The absolute path cannot be DOS-style,
16379 # because $ac_f cannot contain `:'.
16383 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16385 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16387 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16388 as_fn_append ac_file_inputs
" '$ac_f'"
16391 # Let's still pretend it is `configure' which instantiates (i.e., don't
16392 # use $as_me), people would be surprised to read:
16393 # /* config.h. Generated by config.status. */
16394 configure_input
='Generated from '`
16395 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16397 if test x
"$ac_file" != x-
; then
16398 configure_input
="$ac_file. $configure_input"
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16400 $as_echo "$as_me: creating $ac_file" >&6;}
16402 # Neutralize special characters interpreted by sed in replacement strings.
16403 case $configure_input in #(
16404 *\
&* |
*\|
* |
*\\* )
16405 ac_sed_conf_input
=`$as_echo "$configure_input" |
16406 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16407 *) ac_sed_conf_input
=$configure_input;;
16411 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
16412 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
16417 ac_dir
=`$as_dirname -- "$ac_file" ||
16418 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16419 X"$ac_file" : 'X\(//\)[^/]' \| \
16420 X"$ac_file" : 'X\(//\)$' \| \
16421 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16422 $as_echo X"$ac_file" |
16423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16427 /^X\(\/\/\)[^/].*/{
16440 as_dir
="$ac_dir"; as_fn_mkdir_p
16444 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16446 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16447 # A ".." for each directory in $ac_dir_suffix.
16448 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16449 case $ac_top_builddir_sub in
16450 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16451 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16454 ac_abs_top_builddir
=$ac_pwd
16455 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16456 # for backward compatibility:
16457 ac_top_builddir
=$ac_top_build_prefix
16460 .
) # We are building in place.
16462 ac_top_srcdir
=$ac_top_builddir_sub
16463 ac_abs_top_srcdir
=$ac_pwd ;;
16464 [\\/]* | ?
:[\\/]* ) # Absolute name.
16465 ac_srcdir
=$srcdir$ac_dir_suffix;
16466 ac_top_srcdir
=$srcdir
16467 ac_abs_top_srcdir
=$srcdir ;;
16468 *) # Relative name.
16469 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16470 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16471 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16473 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16483 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16484 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
16486 ac_MKDIR_P
=$MKDIR_P
16488 [\\/$
]* | ?
:[\\/]* ) ;;
16489 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
16493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16494 # If the template does not know about datarootdir, expand it.
16495 # FIXME: This hack should be removed a few years after 2.60.
16496 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16507 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16508 *datarootdir
*) ac_datarootdir_seen
=yes;;
16509 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16511 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16514 ac_datarootdir_hack='
16515 s&@datadir@&$datadir&g
16516 s&@docdir@&$docdir&g
16517 s&@infodir@&$infodir&g
16518 s&@localedir@&$localedir&g
16519 s&@mandir@&$mandir&g
16520 s&\\\${datarootdir}&$datarootdir&g' ;;
16524 # Neutralize VPATH when `$srcdir' = `.'.
16525 # Shell code in configure.ac might set extrasub.
16526 # FIXME: do we really want to maintain this feature?
16527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16528 ac_sed_extra="$ac_vpsub
16531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16533 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16534 s|@configure_input@|
$ac_sed_conf_input|
;t t
16535 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16536 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16537 s
&@srcdir@
&$ac_srcdir&;t t
16538 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16539 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16540 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16541 s
&@builddir@
&$ac_builddir&;t t
16542 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16543 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16544 s
&@INSTALL@
&$ac_INSTALL&;t t
16545 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
16546 $ac_datarootdir_hack
16548 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
16549 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
16551 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16552 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
16553 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16554 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16556 which seems to be undefined. Please make sure it is defined" >&5
16557 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16558 which seems to be undefined. Please make sure it is defined" >&2;}
16560 rm -f "$ac_tmp/stdin"
16562 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16563 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16565 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16571 if test x"$ac_file" != x-; then
16573 $as_echo "/* $configure_input */" \
16574 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16575 } >"$ac_tmp/config.h" \
16576 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16577 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16579 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16582 mv "$ac_tmp/config.h" "$ac_file" \
16583 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16586 $as_echo "/* $configure_input */" \
16587 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16588 || as_fn_error $? "could not create -" "$LINENO" 5
16590 # Compute "$ac_file"'s index
in $config_headers.
16593 for _am_header
in $config_headers :; do
16594 case $_am_header in
16595 $_am_arg |
$_am_arg:* )
16598 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
16601 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16602 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16603 X"$_am_arg" : 'X\(//\)[^/]' \| \
16604 X"$_am_arg" : 'X\(//\)$' \| \
16605 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16606 $as_echo X"$_am_arg" |
16607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16611 /^X\(\/\/\)[^/].*/{
16623 s/.*/./; q'`/stamp-h
$_am_stamp_count
16626 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16627 $as_echo "$as_me: executing $ac_file commands" >&6;}
16632 case $ac_file$ac_mode in
16634 # Only add multilib support code if we just rebuilt the top-level
16636 case " $CONFIG_FILES " in
16638 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
16643 # See if we are running on zsh, and set the options which allow our
16644 # commands through without removal of \ escapes.
16645 if test -n "${ZSH_VERSION+set}" ; then
16646 setopt NO_GLOB_SUBST
16649 cfgfile
="${ofile}T"
16650 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16653 cat <<_LT_EOF >> "$cfgfile"
16656 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16657 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16658 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16659 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16661 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16662 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16663 # Written by Gordon Matzigkeit, 1996
16665 # This file is part of GNU Libtool.
16667 # GNU Libtool is free software; you can redistribute it and/or
16668 # modify it under the terms of the GNU General Public License as
16669 # published by the Free Software Foundation; either version 2 of
16670 # the License, or (at your option) any later version.
16672 # As a special exception to the GNU General Public License,
16673 # if you distribute this file as part of a program or library that
16674 # is built using GNU Libtool, you may include this file under the
16675 # same distribution terms that you use for the rest of that program.
16677 # GNU Libtool is distributed in the hope that it will be useful,
16678 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16679 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16680 # GNU General Public License for more details.
16682 # You should have received a copy of the GNU General Public License
16683 # along with GNU Libtool; see the file COPYING. If not, a copy
16684 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16685 # obtained by writing to the Free Software Foundation, Inc.,
16686 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16689 # The names of the tagged configurations supported by this script.
16690 available_tags="D "
16692 # ### BEGIN LIBTOOL CONFIG
16694 # Which release of libtool.m4 was used?
16695 macro_version=$macro_version
16696 macro_revision=$macro_revision
16698 # Whether or not to build shared libraries.
16699 build_libtool_libs=$enable_shared
16701 # Whether or not to build static libraries.
16702 build_old_libs=$enable_static
16704 # What type of objects to build.
16707 # Whether or not to optimize for fast installation.
16708 fast_install=$enable_fast_install
16710 # Shell to use when invoking shell scripts.
16713 # An echo program that protects backslashes.
16717 host_alias=$host_alias
16721 # The build system.
16722 build_alias=$build_alias
16726 # A sed program that does not truncate output.
16729 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16730 Xsed="\$SED -e 1s/^X//"
16732 # A grep program that handles long lines.
16738 # A literal string matcher.
16741 # A BSD- or MS-compatible name lister.
16744 # Whether we need soft or hard links.
16747 # What is the maximum length of a command?
16748 max_cmd_len=$max_cmd_len
16750 # Object file suffix (normally "o").
16753 # Executable file suffix (normally "").
16756 # whether the shell understands "unset".
16759 # turn spaces into newlines.
16762 # turn newlines into spaces.
16765 # An object symbol dumper.
16766 OBJDUMP=$lt_OBJDUMP
16768 # Method to check whether dependent libraries are shared objects.
16769 deplibs_check_method=$lt_deplibs_check_method
16771 # Command to use when deplibs_check_method == "file_magic".
16772 file_magic_cmd=$lt_file_magic_cmd
16776 AR_FLAGS=$lt_AR_FLAGS
16778 # A symbol stripping program.
16781 # Commands used to install an old-style archive.
16783 old_postinstall_cmds=$lt_old_postinstall_cmds
16784 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16786 # Whether to use a lock for old archive extraction.
16787 lock_old_archive_extraction=$lock_old_archive_extraction
16792 # LTCC compiler flags.
16793 LTCFLAGS=$lt_CFLAGS
16795 # Take the output of nm and produce a listing of raw symbols and C names.
16796 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16798 # Transform the output of nm in a proper C declaration.
16799 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16801 # Transform the output of nm in a C name address pair.
16802 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16804 # Transform the output of nm in a C name address pair when lib prefix is needed.
16805 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16807 # The name of the directory that contains temporary libtool files.
16810 # Used to examine libraries when file_magic_cmd begins with "file".
16811 MAGIC_CMD=$MAGIC_CMD
16813 # Must we lock files when doing compilation?
16814 need_locks=$lt_need_locks
16816 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16817 DSYMUTIL=$lt_DSYMUTIL
16819 # Tool to change global to local symbols on Mac OS X.
16822 # Tool to manipulate fat objects and archives on Mac OS X.
16825 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16828 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16829 OTOOL64=$lt_OTOOL64
16831 # Old archive suffix (normally "a").
16834 # Shared library suffix (normally ".so").
16835 shrext_cmds=$lt_shrext_cmds
16837 # The commands to extract the exported symbol list from a shared archive.
16838 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16840 # Variables whose values should be saved in libtool wrapper scripts and
16841 # restored at link time.
16842 variables_saved_for_relink=$lt_variables_saved_for_relink
16844 # Do we need the "lib" prefix for modules?
16845 need_lib_prefix=$need_lib_prefix
16847 # Do we need a version for libraries?
16848 need_version=$need_version
16850 # Library versioning type.
16851 version_type=$version_type
16853 # Shared library runtime path variable.
16854 runpath_var=$runpath_var
16856 # Shared library path variable.
16857 shlibpath_var=$shlibpath_var
16859 # Is shlibpath searched before the hard-coded library search path?
16860 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16862 # Format of library name prefix.
16863 libname_spec=$lt_libname_spec
16865 # List of archive names. First name is the real one, the rest are links.
16866 # The last name is the one that the linker finds with -lNAME
16867 library_names_spec=$lt_library_names_spec
16869 # The coded name of the library, if different from the real name.
16870 soname_spec=$lt_soname_spec
16872 # Permission mode override for installation of shared libraries.
16873 install_override_mode=$lt_install_override_mode
16875 # Command to use after installation of a shared archive.
16876 postinstall_cmds=$lt_postinstall_cmds
16878 # Command to use after uninstallation of a shared archive.
16879 postuninstall_cmds=$lt_postuninstall_cmds
16881 # Commands used to finish a libtool library installation in a directory.
16882 finish_cmds=$lt_finish_cmds
16884 # As "finish_cmds", except a single script fragment to be evaled but
16886 finish_eval=$lt_finish_eval
16888 # Whether we should hardcode library paths into libraries.
16889 hardcode_into_libs=$hardcode_into_libs
16891 # Compile-time system search path for libraries.
16892 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16894 # Run-time system search path for libraries.
16895 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16897 # Whether dlopen is supported.
16898 dlopen_support=$enable_dlopen
16900 # Whether dlopen of programs is supported.
16901 dlopen_self=$enable_dlopen_self
16903 # Whether dlopen of statically linked programs is supported.
16904 dlopen_self_static=$enable_dlopen_self_static
16906 # Commands to strip libraries.
16907 old_striplib=$lt_old_striplib
16908 striplib=$lt_striplib
16911 # The linker used to build libraries.
16914 # How to create reloadable object files.
16915 reload_flag=$lt_reload_flag
16916 reload_cmds=$lt_reload_cmds
16918 # Commands used to build an old-style archive.
16919 old_archive_cmds=$lt_old_archive_cmds
16921 # A language specific compiler.
16924 # Is the compiler the GNU compiler?
16927 # Compiler flag to turn off builtin functions.
16928 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16930 # How to pass a linker flag through the compiler.
16931 wl=$lt_lt_prog_compiler_wl
16933 # Additional compiler flags for building library objects.
16934 pic_flag=$lt_lt_prog_compiler_pic
16936 # Compiler flag to prevent dynamic linking.
16937 link_static_flag=$lt_lt_prog_compiler_static
16939 # Does compiler simultaneously support -c and -o options?
16940 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16942 # Whether or not to add -lc for building shared libraries.
16943 build_libtool_need_lc=$archive_cmds_need_lc
16945 # Whether or not to disallow shared libs when runtime libs are static.
16946 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16948 # Compiler flag to allow reflexive dlopens.
16949 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16951 # Compiler flag to generate shared objects directly from archives.
16952 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16954 # Whether the compiler copes with passing no objects directly.
16955 compiler_needs_object=$lt_compiler_needs_object
16957 # Create an old-style archive from a shared archive.
16958 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16960 # Create a temporary old-style archive to link instead of a shared archive.
16961 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16963 # Commands used to build a shared archive.
16964 archive_cmds=$lt_archive_cmds
16965 archive_expsym_cmds=$lt_archive_expsym_cmds
16967 # Commands used to build a loadable module if different from building
16968 # a shared archive.
16969 module_cmds=$lt_module_cmds
16970 module_expsym_cmds=$lt_module_expsym_cmds
16972 # Whether we are building with GNU ld or not.
16973 with_gnu_ld=$lt_with_gnu_ld
16975 # Flag that allows shared libraries with undefined symbols to be built.
16976 allow_undefined_flag=$lt_allow_undefined_flag
16978 # Flag that enforces no undefined symbols.
16979 no_undefined_flag=$lt_no_undefined_flag
16981 # Flag to hardcode \$libdir into a binary during linking.
16982 # This must work even if \$libdir does not exist
16983 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16985 # If ld is used when linking, flag to hardcode \$libdir into a binary
16986 # during linking. This must work even if \$libdir does not exist.
16987 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16989 # Whether we need a single "-rpath" flag with a separated argument.
16990 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16992 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16993 # DIR into the resulting binary.
16994 hardcode_direct=$hardcode_direct
16996 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16997 # DIR into the resulting binary and the resulting library dependency is
16998 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16999 # library is relocated.
17000 hardcode_direct_absolute=$hardcode_direct_absolute
17002 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17003 # into the resulting binary.
17004 hardcode_minus_L=$hardcode_minus_L
17006 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17007 # into the resulting binary.
17008 hardcode_shlibpath_var=$hardcode_shlibpath_var
17010 # Set to "yes" if building a shared library automatically hardcodes DIR
17011 # into the library and all subsequent libraries and executables linked
17013 hardcode_automatic=$hardcode_automatic
17015 # Set to yes if linker adds runtime paths of dependent libraries
17016 # to runtime path list.
17017 inherit_rpath=$inherit_rpath
17019 # Whether libtool must link a program against all its dependency libraries.
17020 link_all_deplibs=$link_all_deplibs
17022 # Fix the shell variable \$srcfile for the compiler.
17023 fix_srcfile_path=$lt_fix_srcfile_path
17025 # Set to "yes" if exported symbols are required.
17026 always_export_symbols=$always_export_symbols
17028 # The commands to list exported symbols.
17029 export_symbols_cmds=$lt_export_symbols_cmds
17031 # Symbols that should not be listed in the preloaded symbols.
17032 exclude_expsyms=$lt_exclude_expsyms
17034 # Symbols that must always be exported.
17035 include_expsyms=$lt_include_expsyms
17037 # Commands necessary for linking programs (against libraries) with templates.
17038 prelink_cmds=$lt_prelink_cmds
17040 # Specify filename containing input files.
17041 file_list_spec=$lt_file_list_spec
17043 # How to hardcode a shared library path into an executable.
17044 hardcode_action=$hardcode_action
17046 # ### END LIBTOOL CONFIG
17052 cat <<\_LT_EOF
>> "$cfgfile"
17053 # AIX sometimes has problems with the GCC collect2 program. For some
17054 # reason, if we set the COLLECT_NAMES environment variable, the problems
17055 # vanish in a puff of smoke.
17056 if test "X${COLLECT_NAMES+set}" != Xset
; then
17058 export COLLECT_NAMES
17065 ltmain
="$ac_aux_dir/ltmain.sh"
17068 # We use sed instead of cat because bash on DJGPP gets confused if
17069 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17070 # text mode, it properly converts lines to CR/LF. This bash problem
17071 # is reportedly fixed, but why not run on old versions too?
17072 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17073 ||
(rm -f "$cfgfile"; exit 1)
17077 cat << \_LT_EOF
>> "$cfgfile"
17079 # func_dirname file append nondir_replacement
17080 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17081 # otherwise set result to NONDIR_REPLACEMENT.
17085 */*) func_dirname_result
="${1%/*}${2}" ;;
17086 * ) func_dirname_result
="${3}" ;;
17090 # func_basename file
17093 func_basename_result
="${1##*/}"
17096 # func_dirname_and_basename file append nondir_replacement
17097 # perform func_basename and func_dirname in a single function
17099 # dirname: Compute the dirname of FILE. If nonempty,
17100 # add APPEND to the result, otherwise set result
17101 # to NONDIR_REPLACEMENT.
17102 # value returned in "$func_dirname_result"
17103 # basename: Compute filename of FILE.
17104 # value retuned in "$func_basename_result"
17105 # Implementation must be kept synchronized with func_dirname
17106 # and func_basename. For efficiency, we do not delegate to
17107 # those functions but instead duplicate the functionality here.
17108 func_dirname_and_basename
()
17111 */*) func_dirname_result
="${1%/*}${2}" ;;
17112 * ) func_dirname_result
="${3}" ;;
17114 func_basename_result
="${1##*/}"
17117 # func_stripname prefix suffix name
17118 # strip PREFIX and SUFFIX off of NAME.
17119 # PREFIX and SUFFIX must not contain globbing or regex special
17120 # characters, hashes, percent signs, but SUFFIX may contain a leading
17121 # dot (in which case that matches only a dot).
17124 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17125 # positional parameters, so assign one to ordinary parameter first.
17126 func_stripname_result
=${3}
17127 func_stripname_result
=${func_stripname_result#"${1}"}
17128 func_stripname_result
=${func_stripname_result%"${2}"}
17134 func_opt_split_opt
=${1%%=*}
17135 func_opt_split_arg
=${1#*=}
17142 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
17143 *) func_lo2o_result
=${1} ;;
17147 # func_xform libobj-or-source
17150 func_xform_result
=${1%.*}.lo
17153 # func_arith arithmetic-term...
17156 func_arith_result
=$
(( $
* ))
17160 # STRING may not start with a hyphen.
17163 func_len_result
=${#1}
17168 *) # Bourne compatible functions.
17169 cat << \_LT_EOF
>> "$cfgfile"
17171 # func_dirname file append nondir_replacement
17172 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17173 # otherwise set result to NONDIR_REPLACEMENT.
17176 # Extract subdirectory from the argument.
17177 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
17178 if test "X$func_dirname_result" = "X${1}"; then
17179 func_dirname_result
="${3}"
17181 func_dirname_result
="$func_dirname_result${2}"
17185 # func_basename file
17188 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
17192 # func_stripname prefix suffix name
17193 # strip PREFIX and SUFFIX off of NAME.
17194 # PREFIX and SUFFIX must not contain globbing or regex special
17195 # characters, hashes, percent signs, but SUFFIX may contain a leading
17196 # dot (in which case that matches only a dot).
17197 # func_strip_suffix prefix name
17201 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17202 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17207 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
17208 my_sed_long_arg
='1s/^-[^=]*=//'
17213 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17214 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17220 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
17223 # func_xform libobj-or-source
17226 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17229 # func_arith arithmetic-term...
17232 func_arith_result
=`expr "$@"`
17236 # STRING may not start with a hyphen.
17239 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17245 case $lt_shell_append in
17247 cat << \_LT_EOF
>> "$cfgfile"
17249 # func_append var value
17250 # Append VALUE to the end of shell variable VAR.
17258 cat << \_LT_EOF
>> "$cfgfile"
17260 # func_append var value
17261 # Append VALUE to the end of shell variable VAR.
17272 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17273 ||
(rm -f "$cfgfile"; exit 1)
17275 mv -f "$cfgfile" "$ofile" ||
17276 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17280 cat <<_LT_EOF >> "$ofile"
17282 # ### BEGIN LIBTOOL TAG CONFIG: D
17284 # The linker used to build libraries.
17287 # How to create reloadable object files.
17288 reload_flag=$lt_reload_flag_D
17289 reload_cmds=$lt_reload_cmds_D
17291 # Commands used to build an old-style archive.
17292 old_archive_cmds=$lt_old_archive_cmds_D
17294 # A language specific compiler.
17297 # Is the compiler the GNU compiler?
17300 # Compiler flag to turn off builtin functions.
17301 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
17303 # How to pass a linker flag through the compiler.
17304 wl=$lt_lt_prog_compiler_wl_D
17306 # Additional compiler flags for building library objects.
17307 pic_flag=$lt_lt_prog_compiler_pic_D
17309 # Compiler flag to prevent dynamic linking.
17310 link_static_flag=$lt_lt_prog_compiler_static_D
17312 # Does compiler simultaneously support -c and -o options?
17313 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
17315 # Whether or not to add -lc for building shared libraries.
17316 build_libtool_need_lc=$archive_cmds_need_lc_D
17318 # Whether or not to disallow shared libs when runtime libs are static.
17319 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
17321 # Compiler flag to allow reflexive dlopens.
17322 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
17324 # Compiler flag to generate shared objects directly from archives.
17325 whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
17327 # Whether the compiler copes with passing no objects directly.
17328 compiler_needs_object=$lt_compiler_needs_object_D
17330 # Create an old-style archive from a shared archive.
17331 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
17333 # Create a temporary old-style archive to link instead of a shared archive.
17334 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
17336 # Commands used to build a shared archive.
17337 archive_cmds=$lt_archive_cmds_D
17338 archive_expsym_cmds=$lt_archive_expsym_cmds_D
17340 # Commands used to build a loadable module if different from building
17341 # a shared archive.
17342 module_cmds=$lt_module_cmds_D
17343 module_expsym_cmds=$lt_module_expsym_cmds_D
17345 # Whether we are building with GNU ld or not.
17346 with_gnu_ld=$lt_with_gnu_ld_D
17348 # Flag that allows shared libraries with undefined symbols to be built.
17349 allow_undefined_flag=$lt_allow_undefined_flag_D
17351 # Flag that enforces no undefined symbols.
17352 no_undefined_flag=$lt_no_undefined_flag_D
17354 # Flag to hardcode \$libdir into a binary during linking.
17355 # This must work even if \$libdir does not exist
17356 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
17358 # If ld is used when linking, flag to hardcode \$libdir into a binary
17359 # during linking. This must work even if \$libdir does not exist.
17360 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
17362 # Whether we need a single "-rpath" flag with a separated argument.
17363 hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
17365 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17366 # DIR into the resulting binary.
17367 hardcode_direct=$hardcode_direct_D
17369 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17370 # DIR into the resulting binary and the resulting library dependency is
17371 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17372 # library is relocated.
17373 hardcode_direct_absolute=$hardcode_direct_absolute_D
17375 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17376 # into the resulting binary.
17377 hardcode_minus_L=$hardcode_minus_L_D
17379 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17380 # into the resulting binary.
17381 hardcode_shlibpath_var=$hardcode_shlibpath_var_D
17383 # Set to "yes" if building a shared library automatically hardcodes DIR
17384 # into the library and all subsequent libraries and executables linked
17386 hardcode_automatic=$hardcode_automatic_D
17388 # Set to yes if linker adds runtime paths of dependent libraries
17389 # to runtime path list.
17390 inherit_rpath=$inherit_rpath_D
17392 # Whether libtool must link a program against all its dependency libraries.
17393 link_all_deplibs=$link_all_deplibs_D
17395 # Fix the shell variable \$srcfile for the compiler.
17396 fix_srcfile_path=$lt_fix_srcfile_path_D
17398 # Set to "yes" if exported symbols are required.
17399 always_export_symbols=$always_export_symbols_D
17401 # The commands to list exported symbols.
17402 export_symbols_cmds=$lt_export_symbols_cmds_D
17404 # Symbols that should not be listed in the preloaded symbols.
17405 exclude_expsyms=$lt_exclude_expsyms_D
17407 # Symbols that must always be exported.
17408 include_expsyms=$lt_include_expsyms_D
17410 # Commands necessary for linking programs (against libraries) with templates.
17411 prelink_cmds=$lt_prelink_cmds_D
17413 # Specify filename containing input files.
17414 file_list_spec=$lt_file_list_spec_D
17416 # How to hardcode a shared library path into an executable.
17417 hardcode_action=$hardcode_action_D
17419 # ### END LIBTOOL TAG CONFIG: D
17423 "testsuite/testsuite_flags":F
) chmod +x testsuite
/testsuite_flags
;;
17424 "default":C
) if test -n "$CONFIG_FILES"; then
17425 if test -n "${with_target_subdir}"; then
17426 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
17427 # that multilib installs will end up installed in the correct place.
17428 # The testsuite needs it for multilib-aware ABI baseline files.
17429 # To work around this not being passed down from config-ml.in ->
17430 # srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
17431 # append it here. Only modify Makefiles that have just been created.
17433 # Also, get rid of this simulated-VPATH thing that automake does.
17434 cat > vpsed
<< \_EOF
17435 s
!`test -f '$<' || echo '$(srcdir)/'`!!
17437 for i
in $SUBDIRS; do
17438 case $CONFIG_FILES in
17440 #echo "Adding MULTISUBDIR to $i/Makefile"
17441 sed -f vpsed
$i/Makefile
> tmp
17442 grep '^MULTISUBDIR =' Makefile
>> tmp
17458 ac_clean_files
=$ac_clean_files_save
17460 test $ac_write_fail = 0 ||
17461 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
17464 # configure is writing to config.log, and then calls config.status.
17465 # config.status does its own redirection, appending to config.log.
17466 # Unfortunately, on DOS this fails, as config.log is still kept open
17467 # by configure, so config.status won't be able to write to it; its
17468 # output is simply discarded. So we exec the FD to /dev/null,
17469 # effectively closing config.log, so it can be properly (re)opened and
17470 # appended to by config.status. When coming back to configure, we
17471 # need to make the FD available again.
17472 if test "$no_create" != yes; then
17474 ac_config_status_args
=
17475 test "$silent" = yes &&
17476 ac_config_status_args
="$ac_config_status_args --quiet"
17478 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17480 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17481 # would make configure fail if this is the last instruction.
17482 $ac_cs_success || as_fn_exit
1
17484 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17486 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}