2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for package-unused version-unused.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
246 if test "x$CONFIG_SHELL" != x; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 *v*x* | *x*v* ) as_opts=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir=./$as_dir;;
329 test -d "$as_dir" || eval $as_mkdir_p || {
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
406 as_val=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status=$1; test $as_status -eq 0 && as_status=1
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 elif ln conf$$.file conf$$ 2>/dev/null; then
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
551 test -d ./-p && rmdir ./-p
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix=/usr/local
580 ac_config_libobj_dir=.
587 # Identity of this package.
588 PACKAGE_NAME='package-unused'
589 PACKAGE_TARNAME='libphobos'
590 PACKAGE_VERSION='version-unused'
591 PACKAGE_STRING='package-unused version-unused'
595 ac_unique_file="libdruntime/gcc/attribute.d"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
632 ac_subst_vars='am__EXEEXT_FALSE
641 ENABLE_LIBPHOBOS_FALSE
642 ENABLE_LIBPHOBOS_TRUE
644 libphobos_toolexeclibdir
645 libphobos_toolexecdir
648 BACKTRACE_SUPPORTS_THREADS
649 BACKTRACE_USES_MALLOC
654 DCFG_HAVE_64BIT_ATOMICS
655 DCFG_HAVE_ATOMIC_BUILTINS
659 DRUNTIME_OS_MINFO_BRACKETING_FALSE
660 DRUNTIME_OS_MINFO_BRACKETING_TRUE
661 DCFG_MINFO_BRACKETING
662 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
663 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
664 DCFG_ARM_EABI_UNWINDER
666 DRUNTIME_OS_POSIX_FALSE
667 DRUNTIME_OS_POSIX_TRUE
668 DRUNTIME_OS_SOLARIS_FALSE
669 DRUNTIME_OS_SOLARIS_TRUE
670 DRUNTIME_OS_MINGW_FALSE
671 DRUNTIME_OS_MINGW_TRUE
672 DRUNTIME_OS_LINUX_FALSE
673 DRUNTIME_OS_LINUX_TRUE
674 DRUNTIME_OS_OPENBSD_FALSE
675 DRUNTIME_OS_OPENBSD_TRUE
676 DRUNTIME_OS_NETBSD_FALSE
677 DRUNTIME_OS_NETBSD_TRUE
678 DRUNTIME_OS_FREEBSD_FALSE
679 DRUNTIME_OS_FREEBSD_TRUE
680 DRUNTIME_OS_DRAGONFLYBSD_FALSE
681 DRUNTIME_OS_DRAGONFLYBSD_TRUE
682 DRUNTIME_OS_DARWIN_FALSE
683 DRUNTIME_OS_DARWIN_TRUE
684 DRUNTIME_OS_ANDROID_FALSE
685 DRUNTIME_OS_ANDROID_TRUE
686 DRUNTIME_OS_AIX_FALSE
688 DRUNTIME_CPU_S390_FALSE
689 DRUNTIME_CPU_S390_TRUE
690 DRUNTIME_CPU_SYSTEMZ_FALSE
691 DRUNTIME_CPU_SYSTEMZ_TRUE
692 DRUNTIME_CPU_X86_FALSE
693 DRUNTIME_CPU_X86_TRUE
694 DRUNTIME_CPU_POWERPC64_FALSE
695 DRUNTIME_CPU_POWERPC64_TRUE
696 DRUNTIME_CPU_POWERPC_FALSE
697 DRUNTIME_CPU_POWERPC_TRUE
698 DRUNTIME_CPU_MIPS_FALSE
699 DRUNTIME_CPU_MIPS_TRUE
700 DRUNTIME_CPU_ARM_FALSE
701 DRUNTIME_CPU_ARM_TRUE
702 DRUNTIME_CPU_AARCH64_FALSE
703 DRUNTIME_CPU_AARCH64_TRUE
707 phobos_compiler_shared_flag
708 phobos_compiler_pic_flag
728 MAINTAINER_MODE_FALSE
746 INSTALL_STRIP_PROGRAM
811 program_transform_name
822 ac_subst_files='DRTSTUFF_SPEC'
824 enable_option_checking
827 enable_maintainer_mode
834 with_gcc_major_version_only
838 with_target_system_zlib
840 enable_version_specific_runtime_libs
843 enable_libphobos_checking
845 ac_precious_vars='build_alias
856 # Initialize some variables set by options.
858 ac_init_version=false
859 ac_unrecognized_opts=
861 # The variables have the same names as the options, with
862 # dashes changed to underlines.
870 program_transform_name=s,x,x,
878 # Installation directory options.
879 # These are left unexpanded so users can "make install exec_prefix=/foo"
880 # and all the variables that are supposed to be based on exec_prefix
881 # by default will actually change.
882 # Use braces instead of parens because sh, perl, etc. also accept them.
883 # (The list follows the same order as the GNU Coding Standards.)
884 bindir='${exec_prefix}/bin'
885 sbindir='${exec_prefix}/sbin'
886 libexecdir='${exec_prefix}/libexec'
887 datarootdir='${prefix}/share'
888 datadir='${datarootdir}'
889 sysconfdir='${prefix}/etc'
890 sharedstatedir='${prefix}/com'
891 localstatedir='${prefix}/var'
892 includedir='${prefix}/include'
893 oldincludedir='/usr/include'
894 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
895 infodir='${datarootdir}/info'
900 libdir='${exec_prefix}/lib'
901 localedir='${datarootdir}/locale'
902 mandir='${datarootdir}/man'
908 # If the previous option needs an argument, assign it.
909 if test -n "$ac_prev"; then
910 eval $ac_prev=\$ac_option
916 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921 # Accept the important Cygnus configure options, so we can diagnose typos.
923 case $ac_dashdash$ac_option in
927 -bindir | --bindir | --bindi | --bind | --bin | --bi)
929 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
932 -build | --build | --buil | --bui | --bu)
933 ac_prev=build_alias ;;
934 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
935 build_alias=$ac_optarg ;;
937 -cache-file | --cache-file | --cache-fil | --cache-fi \
938 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
939 ac_prev=cache_file ;;
940 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
941 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
942 cache_file=$ac_optarg ;;
945 cache_file=config.cache ;;
947 -datadir | --datadir | --datadi | --datad)
949 -datadir=* | --datadir=* | --datadi=* | --datad=*)
950 datadir=$ac_optarg ;;
952 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
953 | --dataroo | --dataro | --datar)
954 ac_prev=datarootdir ;;
955 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
956 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
957 datarootdir=$ac_optarg ;;
959 -disable-* | --disable-*)
960 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
961 # Reject names that are not valid shell variable names.
962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963 as_fn_error $? "invalid feature name: $ac_useropt"
964 ac_useropt_orig=$ac_useropt
965 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
971 ac_unrecognized_sep=', ';;
973 eval enable_$ac_useropt=no ;;
975 -docdir | --docdir | --docdi | --doc | --do)
977 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
980 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
982 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
985 -enable-* | --enable-*)
986 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
987 # Reject names that are not valid shell variable names.
988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989 as_fn_error $? "invalid feature name: $ac_useropt"
990 ac_useropt_orig=$ac_useropt
991 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992 case $ac_user_opts in
996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
997 ac_unrecognized_sep=', ';;
999 eval enable_$ac_useropt=\$ac_optarg ;;
1001 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1002 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1003 | --exec | --exe | --ex)
1004 ac_prev=exec_prefix ;;
1005 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1006 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1007 | --exec=* | --exe=* | --ex=*)
1008 exec_prefix=$ac_optarg ;;
1010 -gas | --gas | --ga | --g)
1011 # Obsolete; use --with-gas.
1014 -help | --help | --hel | --he | -h)
1015 ac_init_help=long ;;
1016 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1017 ac_init_help=recursive ;;
1018 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1019 ac_init_help=short ;;
1021 -host | --host | --hos | --ho)
1022 ac_prev=host_alias ;;
1023 -host=* | --host=* | --hos=* | --ho=*)
1024 host_alias=$ac_optarg ;;
1026 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1028 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1030 htmldir=$ac_optarg ;;
1032 -includedir | --includedir | --includedi | --included | --include \
1033 | --includ | --inclu | --incl | --inc)
1034 ac_prev=includedir ;;
1035 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1036 | --includ=* | --inclu=* | --incl=* | --inc=*)
1037 includedir=$ac_optarg ;;
1039 -infodir | --infodir | --infodi | --infod | --info | --inf)
1041 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1042 infodir=$ac_optarg ;;
1044 -libdir | --libdir | --libdi | --libd)
1046 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1047 libdir=$ac_optarg ;;
1049 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1050 | --libexe | --libex | --libe)
1051 ac_prev=libexecdir ;;
1052 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1053 | --libexe=* | --libex=* | --libe=*)
1054 libexecdir=$ac_optarg ;;
1056 -localedir | --localedir | --localedi | --localed | --locale)
1057 ac_prev=localedir ;;
1058 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1059 localedir=$ac_optarg ;;
1061 -localstatedir | --localstatedir | --localstatedi | --localstated \
1062 | --localstate | --localstat | --localsta | --localst | --locals)
1063 ac_prev=localstatedir ;;
1064 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1065 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1066 localstatedir=$ac_optarg ;;
1068 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1070 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1071 mandir=$ac_optarg ;;
1073 -nfp | --nfp | --nf)
1074 # Obsolete; use --without-fp.
1077 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1078 | --no-cr | --no-c | -n)
1081 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1082 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1085 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1086 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1087 | --oldin | --oldi | --old | --ol | --o)
1088 ac_prev=oldincludedir ;;
1089 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1090 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1091 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1092 oldincludedir=$ac_optarg ;;
1094 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1096 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1097 prefix=$ac_optarg ;;
1099 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1100 | --program-pre | --program-pr | --program-p)
1101 ac_prev=program_prefix ;;
1102 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1103 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1104 program_prefix=$ac_optarg ;;
1106 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1107 | --program-suf | --program-su | --program-s)
1108 ac_prev=program_suffix ;;
1109 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1110 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1111 program_suffix=$ac_optarg ;;
1113 -program-transform-name | --program-transform-name \
1114 | --program-transform-nam | --program-transform-na \
1115 | --program-transform-n | --program-transform- \
1116 | --program-transform | --program-transfor \
1117 | --program-transfo | --program-transf \
1118 | --program-trans | --program-tran \
1119 | --progr-tra | --program-tr | --program-t)
1120 ac_prev=program_transform_name ;;
1121 -program-transform-name=* | --program-transform-name=* \
1122 | --program-transform-nam=* | --program-transform-na=* \
1123 | --program-transform-n=* | --program-transform-=* \
1124 | --program-transform=* | --program-transfor=* \
1125 | --program-transfo=* | --program-transf=* \
1126 | --program-trans=* | --program-tran=* \
1127 | --progr-tra=* | --program-tr=* | --program-t=*)
1128 program_transform_name=$ac_optarg ;;
1130 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1132 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1133 pdfdir=$ac_optarg ;;
1135 -psdir | --psdir | --psdi | --psd | --ps)
1137 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1141 | -silent | --silent | --silen | --sile | --sil)
1144 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1146 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1148 sbindir=$ac_optarg ;;
1150 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1151 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1152 | --sharedst | --shareds | --shared | --share | --shar \
1154 ac_prev=sharedstatedir ;;
1155 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1156 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1157 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1159 sharedstatedir=$ac_optarg ;;
1161 -site | --site | --sit)
1163 -site=* | --site=* | --sit=*)
1166 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1168 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1169 srcdir=$ac_optarg ;;
1171 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1172 | --syscon | --sysco | --sysc | --sys | --sy)
1173 ac_prev=sysconfdir ;;
1174 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1175 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1176 sysconfdir=$ac_optarg ;;
1178 -target | --target | --targe | --targ | --tar | --ta | --t)
1179 ac_prev=target_alias ;;
1180 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1181 target_alias=$ac_optarg ;;
1183 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1186 -version | --version | --versio | --versi | --vers | -V)
1187 ac_init_version=: ;;
1190 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193 as_fn_error $? "invalid package name: $ac_useropt"
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1203 eval with_$ac_useropt=\$ac_optarg ;;
1205 -without-* | --without-*)
1206 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1207 # Reject names that are not valid shell variable names.
1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1209 as_fn_error $? "invalid package name: $ac_useropt"
1210 ac_useropt_orig=$ac_useropt
1211 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212 case $ac_user_opts in
1216 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1217 ac_unrecognized_sep=', ';;
1219 eval with_$ac_useropt=no ;;
1222 # Obsolete; use --with-x.
1225 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1226 | --x-incl | --x-inc | --x-in | --x-i)
1227 ac_prev=x_includes ;;
1228 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1229 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1230 x_includes=$ac_optarg ;;
1232 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1233 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1234 ac_prev=x_libraries ;;
1235 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1236 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1237 x_libraries=$ac_optarg ;;
1239 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1240 Try \`$0 --help' for more information"
1244 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1245 # Reject names that are not valid shell variable names.
1246 case $ac_envvar in #(
1247 '' | [0-9]* | *[!_$as_cr_alnum]* )
1248 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1250 eval $ac_envvar=\$ac_optarg
1251 export $ac_envvar ;;
1254 # FIXME: should be removed in autoconf 3.0.
1255 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1256 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1257 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1258 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1264 if test -n "$ac_prev"; then
1265 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1266 as_fn_error $? "missing argument to $ac_option"
1269 if test -n "$ac_unrecognized_opts"; then
1270 case $enable_option_checking in
1272 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1273 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1277 # Check all directory arguments for consistency.
1278 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1279 datadir sysconfdir sharedstatedir localstatedir includedir \
1280 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1281 libdir localedir mandir
1283 eval ac_val=\$$ac_var
1284 # Remove trailing slashes.
1287 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1288 eval $ac_var=\$ac_val;;
1290 # Be sure to have absolute directory names.
1292 [\\/$]* | ?:[\\/]* ) continue;;
1293 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1295 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1298 # There might be people who depend on the old broken behavior: `$host'
1299 # used to hold the argument of --host etc.
1300 # FIXME: To remove some day.
1303 target=$target_alias
1305 # FIXME: To remove some day.
1306 if test "x$host_alias" != x; then
1307 if test "x$build_alias" = x; then
1308 cross_compiling=maybe
1309 elif test "x$build_alias" != "x$host_alias"; then
1315 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1317 test "$silent" = yes && exec 6>/dev/null
1320 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1321 ac_ls_di=`ls -di .` &&
1322 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1323 as_fn_error $? "working directory cannot be determined"
1324 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325 as_fn_error $? "pwd does not report name of working directory"
1328 # Find the source files, if location was not specified.
1329 if test -z "$srcdir"; then
1330 ac_srcdir_defaulted=yes
1331 # Try the directory containing this script, then the parent directory.
1332 ac_confdir=`$as_dirname -- "$as_myself" ||
1333 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334 X"$as_myself" : 'X\(//\)[^/]' \| \
1335 X"$as_myself" : 'X\(//\)$' \| \
1336 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1337 $as_echo X"$as_myself" |
1338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1360 ac_srcdir_defaulted=no
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1363 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1364 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1366 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1370 # When building in place, set srcdir=.
1371 if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 # Remove unnecessary trailing slashes from srcdir.
1375 # Double slashes in file names in object file debugging info
1376 # mess up M-x gdb in Emacs.
1378 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380 for ac_var in $ac_precious_vars; do
1381 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_env_${ac_var}_value=\$${ac_var}
1383 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 # Report the --help message.
1390 if test "$ac_init_help" = "long"; then
1391 # Omit some internal or obsolete options to make the list less imposing.
1392 # This message is too long to be a string in the A/UX 3.1 sh.
1394 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1396 Usage: $0 [OPTION]... [VAR=VALUE]...
1398 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399 VAR=VALUE. See below for descriptions of some of the useful variables.
1401 Defaults for the options are specified in brackets.
1404 -h, --help display this help and exit
1405 --help=short display options specific to this package
1406 --help=recursive display the short help of all the included packages
1407 -V, --version display version information and exit
1408 -q, --quiet, --silent do not print \`checking ...' messages
1409 --cache-file=FILE cache test results in FILE [disabled]
1410 -C, --config-cache alias for \`--cache-file=config.cache'
1411 -n, --no-create do not create output files
1412 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1414 Installation directories:
1415 --prefix=PREFIX install architecture-independent files in PREFIX
1416 [$ac_default_prefix]
1417 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 By default, \`make install' will install all the files in
1421 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1422 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423 for instance \`--prefix=\$HOME'.
1425 For better control, use the options below.
1427 Fine tuning of the installation directories:
1428 --bindir=DIR user executables [EPREFIX/bin]
1429 --sbindir=DIR system admin executables [EPREFIX/sbin]
1430 --libexecdir=DIR program executables [EPREFIX/libexec]
1431 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1432 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1433 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1434 --libdir=DIR object code libraries [EPREFIX/lib]
1435 --includedir=DIR C header files [PREFIX/include]
1436 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1439 --infodir=DIR info documentation [DATAROOTDIR/info]
1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1441 --mandir=DIR man documentation [DATAROOTDIR/man]
1442 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1443 --htmldir=DIR html documentation [DOCDIR]
1444 --dvidir=DIR dvi documentation [DOCDIR]
1445 --pdfdir=DIR pdf documentation [DOCDIR]
1446 --psdir=DIR ps documentation [DOCDIR]
1452 --program-prefix=PREFIX prepend PREFIX to installed program names
1453 --program-suffix=SUFFIX append SUFFIX to installed program names
1454 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1457 --build=BUILD configure for building on BUILD [guessed]
1458 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1459 --target=TARGET configure for building compilers for TARGET [HOST]
1463 if test -n "$ac_init_help"; then
1464 case $ac_init_help in
1465 short | recursive ) echo "Configuration of package-unused version-unused:";;
1470 --disable-option-checking ignore unrecognized --enable/--with options
1471 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1472 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1473 --enable-multilib build many library versions (default)
1474 --enable-silent-rules less verbose build output (undo: "make V=1")
1475 --disable-silent-rules verbose build output (undo: "make V=0")
1476 --enable-maintainer-mode
1477 enable make rules and dependencies not useful (and
1478 sometimes confusing) to the casual installer
1479 --enable-shared[=PKGS] build shared libraries [default=yes]
1480 --enable-static[=PKGS] build static libraries [default=yes]
1481 --enable-fast-install[=PKGS]
1482 optimize for fast installation [default=yes]
1483 --disable-libtool-lock avoid locking (might break parallel builds)
1484 --enable-werror turns on -Werror [default=no]
1485 --enable-version-specific-runtime-libs
1486 Specify that runtime libraries should be installed
1487 in a compiler-specific directory
1488 --enable-libphobos Enable libphobos
1489 --enable-libphobos-checking[=LIST]
1490 enable expensive run-time checks. With LIST, enable
1491 only specific categories of checks. Categories are:
1492 yes,no,all,none,release. Flags are: assert or other
1496 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1497 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1498 --with-pic try to use only PIC/non-PIC objects [default=use
1500 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1501 --with-gcc-major-version-only
1502 use only GCC major number in filesystem paths
1503 --without-libatomic Do not use libatomic in core.atomic (default: auto)
1504 --without-libbacktrace Do not use libbacktrace in core.runtime (default:
1506 --with-target-system-zlib={yes,no,auto}
1507 use installed libz (default: no)
1508 --with-cross-host=HOST configuring with a cross compiler
1509 --with-toolexeclibdir=DIR
1510 install libraries built with a cross compiler within
1513 Some influential environment variables:
1514 CC C compiler command
1515 CFLAGS C compiler flags
1516 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1517 nonstandard directory <lib dir>
1518 LIBS libraries to pass to the linker, e.g. -l<library>
1519 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1520 you have headers in a nonstandard directory <include dir>
1522 CCAS assembler compiler command (defaults to CC)
1523 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1524 GDC D compiler command
1525 GDCFLAGS D compiler flags
1527 Use these variables to override the choices made by `configure' or to help
1528 it to find libraries and programs with nonstandard names/locations.
1530 Report bugs to the package provider.
1535 if test "$ac_init_help" = "recursive"; then
1536 # If there are subdirs, report their specific --help.
1537 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1538 test -d "$ac_dir" ||
1539 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1544 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1547 # A ".." for each directory in $ac_dir_suffix.
1548 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1549 case $ac_top_builddir_sub in
1550 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1554 ac_abs_top_builddir=$ac_pwd
1555 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1556 # for backward compatibility:
1557 ac_top_builddir=$ac_top_build_prefix
1560 .) # We are building in place.
1562 ac_top_srcdir=$ac_top_builddir_sub
1563 ac_abs_top_srcdir=$ac_pwd ;;
1564 [\\/]* | ?:[\\/]* ) # Absolute name.
1565 ac_srcdir=$srcdir$ac_dir_suffix;
1566 ac_top_srcdir=$srcdir
1567 ac_abs_top_srcdir=$srcdir ;;
1569 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1570 ac_top_srcdir=$ac_top_build_prefix$srcdir
1571 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1573 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1575 cd "$ac_dir" || { ac_status=$?; continue; }
1576 # Check for guested configure.
1577 if test -f "$ac_srcdir/configure.gnu"; then
1579 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1580 elif test -f "$ac_srcdir/configure"; then
1582 $SHELL "$ac_srcdir/configure" --help=recursive
1584 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1586 cd "$ac_pwd" || { ac_status=$?; break; }
1590 test -n "$ac_init_help" && exit $ac_status
1591 if $ac_init_version; then
1593 package-unused configure version-unused
1594 generated by GNU Autoconf 2.69
1596 Copyright (C) 2012 Free Software Foundation, Inc.
1597 This configure script is free software; the Free Software Foundation
1598 gives unlimited permission to copy, distribute and modify it.
1603 ## ------------------------ ##
1604 ## Autoconf initialization. ##
1605 ## ------------------------ ##
1607 # ac_fn_c_try_compile LINENO
1608 # --------------------------
1609 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1610 ac_fn_c_try_compile ()
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 rm -f conftest.$ac_objext
1614 if { { ac_try="$ac_compile"
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_compile") 2>conftest.err
1623 if test -s conftest.err; then
1624 grep -v '^ *+' conftest.err >conftest.er1
1625 cat conftest.er1 >&5
1626 mv -f conftest.er1 conftest.err
1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; } && {
1630 test -z "$ac_c_werror_flag" ||
1631 test ! -s conftest.err
1632 } && test -s conftest.$ac_objext; then :
1635 $as_echo "$as_me: failed program was:" >&5
1636 sed 's/^/| /' conftest.$ac_ext >&5
1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641 as_fn_set_status $ac_retval
1643 } # ac_fn_c_try_compile
1645 # ac_fn_c_try_cpp LINENO
1646 # ----------------------
1647 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 if { { ac_try="$ac_cpp conftest.$ac_ext"
1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654 *) ac_try_echo=$ac_try;;
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1660 if test -s conftest.err; then
1661 grep -v '^ *+' conftest.err >conftest.er1
1662 cat conftest.er1 >&5
1663 mv -f conftest.er1 conftest.err
1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; } > conftest.i && {
1667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1668 test ! -s conftest.err
1672 $as_echo "$as_me: failed program was:" >&5
1673 sed 's/^/| /' conftest.$ac_ext >&5
1677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678 as_fn_set_status $ac_retval
1682 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1683 # -------------------------------------------------------
1684 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1685 # the include files in INCLUDES and setting the cache variable VAR
1687 ac_fn_c_check_header_mongrel ()
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 if eval \${$3+:} false; then :
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1692 $as_echo_n "checking for $2... " >&6; }
1693 if eval \${$3+:} false; then :
1694 $as_echo_n "(cached) " >&6
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1698 $as_echo "$ac_res" >&6; }
1700 # Is the header compilable?
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1702 $as_echo_n "checking $2 usability... " >&6; }
1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704 /* end confdefs.h. */
1708 if ac_fn_c_try_compile "$LINENO"; then :
1709 ac_header_compiler=yes
1711 ac_header_compiler=no
1713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1715 $as_echo "$ac_header_compiler" >&6; }
1717 # Is the header present?
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1719 $as_echo_n "checking $2 presence... " >&6; }
1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721 /* end confdefs.h. */
1724 if ac_fn_c_try_cpp "$LINENO"; then :
1725 ac_header_preproc=yes
1727 ac_header_preproc=no
1729 rm -f conftest.err conftest.i conftest.$ac_ext
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1731 $as_echo "$ac_header_preproc" >&6; }
1733 # So? What about this header?
1734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1737 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1739 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1743 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1745 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1747 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1749 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1751 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755 $as_echo_n "checking for $2... " >&6; }
1756 if eval \${$3+:} false; then :
1757 $as_echo_n "(cached) " >&6
1759 eval "$3=\$ac_header_compiler"
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763 $as_echo "$ac_res" >&6; }
1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767 } # ac_fn_c_check_header_mongrel
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_header_compile LINENO HEADER VAR INCLUDES
1812 # -------------------------------------------------------
1813 # Tests whether HEADER exists and can be compiled using the include files in
1814 # INCLUDES, setting the cache variable VAR accordingly.
1815 ac_fn_c_check_header_compile ()
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819 $as_echo_n "checking for $2... " >&6; }
1820 if eval \${$3+:} false; then :
1821 $as_echo_n "(cached) " >&6
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h. */
1828 if ac_fn_c_try_compile "$LINENO"; then :
1833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837 $as_echo "$ac_res" >&6; }
1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840 } # ac_fn_c_check_header_compile
1842 # ac_fn_d_try_compile LINENO
1843 # --------------------------
1844 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1845 ac_fn_d_try_compile ()
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 rm -f conftest.$ac_objext
1849 if { { ac_try="$ac_compile"
1851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852 *) ac_try_echo=$ac_try;;
1854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855 $as_echo "$ac_try_echo"; } >&5
1856 (eval "$ac_compile") 2>conftest.err
1858 if test -s conftest.err; then
1859 grep -v '^ *+' conftest.err >conftest.er1
1860 cat conftest.er1 >&5
1861 mv -f conftest.er1 conftest.err
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; } && {
1865 test -z "$ac_d_werror_flag" ||
1866 test ! -s conftest.err
1867 } && test -s conftest.$ac_objext; then :
1870 $as_echo "$as_me: failed program was:" >&5
1871 sed 's/^/| /' conftest.$ac_ext >&5
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876 as_fn_set_status $ac_retval
1878 } # ac_fn_d_try_compile
1880 # ac_fn_c_try_link LINENO
1881 # -----------------------
1882 # Try to link conftest.$ac_ext, and return whether this succeeded.
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 rm -f conftest.$ac_objext conftest$ac_exeext
1887 if { { ac_try="$ac_link"
1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890 *) ac_try_echo=$ac_try;;
1892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 $as_echo "$ac_try_echo"; } >&5
1894 (eval "$ac_link") 2>conftest.err
1896 if test -s conftest.err; then
1897 grep -v '^ *+' conftest.err >conftest.er1
1898 cat conftest.er1 >&5
1899 mv -f conftest.er1 conftest.err
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; } && {
1903 test -z "$ac_c_werror_flag" ||
1904 test ! -s conftest.err
1905 } && test -s conftest$ac_exeext && {
1906 test "$cross_compiling" = yes ||
1907 test -x conftest$ac_exeext
1911 $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1916 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1917 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1918 # interfere with the next link command; also delete a directory that is
1919 # left behind by Apple's compiler. We do this before executing the actions.
1920 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922 as_fn_set_status $ac_retval
1924 } # ac_fn_c_try_link
1926 # ac_fn_c_check_func LINENO FUNC VAR
1927 # ----------------------------------
1928 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1929 ac_fn_c_check_func ()
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1933 $as_echo_n "checking for $2... " >&6; }
1934 if eval \${$3+:} false; then :
1935 $as_echo_n "(cached) " >&6
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1939 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1941 #define $2 innocuous_$2
1943 /* System header to define __stub macros and hopefully few prototypes,
1944 which can conflict with char $2 (); below.
1945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1946 <limits.h> exists even on freestanding compilers. */
1949 # include <limits.h>
1951 # include <assert.h>
1956 /* Override any GCC internal prototype to avoid an error.
1957 Use char because int might match the return type of a GCC
1958 builtin and then its argument prototype would still apply. */
1963 /* The GNU C library defines this for functions which it implements
1964 to always fail with ENOSYS. Some functions are actually named
1965 something starting with __ and the normal name is an alias. */
1966 #if defined __stub_$2 || defined __stub___$2
1978 if ac_fn_c_try_link "$LINENO"; then :
1983 rm -f core conftest.err conftest.$ac_objext \
1984 conftest$ac_exeext conftest.$ac_ext
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1988 $as_echo "$ac_res" >&6; }
1989 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1991 } # ac_fn_c_check_func
1993 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1994 # ----------------------------------------------------
1995 # Tries to find if the field MEMBER exists in type AGGR, after including
1996 # INCLUDES, setting cache variable VAR accordingly.
1997 ac_fn_c_check_member ()
1999 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2001 $as_echo_n "checking for $2.$3... " >&6; }
2002 if eval \${$4+:} false; then :
2003 $as_echo_n "(cached) " >&6
2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h. */
2018 if ac_fn_c_try_compile "$LINENO"; then :
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2028 if (sizeof ac_aggr.$3)
2034 if ac_fn_c_try_compile "$LINENO"; then :
2039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2045 $as_echo "$ac_res" >&6; }
2046 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2048 } # ac_fn_c_check_member
2050 # ac_fn_d_try_link LINENO
2051 # -----------------------
2052 # Try to link conftest.$ac_ext, and return whether this succeeded.
2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056 rm -f conftest.$ac_objext conftest$ac_exeext
2057 if { { ac_try="$ac_link"
2059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2060 *) ac_try_echo=$ac_try;;
2062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2063 $as_echo "$ac_try_echo"; } >&5
2064 (eval "$ac_link") 2>conftest.err
2066 if test -s conftest.err; then
2067 grep -v '^ *+' conftest.err >conftest.er1
2068 cat conftest.er1 >&5
2069 mv -f conftest.er1 conftest.err
2071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2072 test $ac_status = 0; } && {
2073 test -z "$ac_d_werror_flag" ||
2074 test ! -s conftest.err
2075 } && test -s conftest$ac_exeext && {
2076 test "$cross_compiling" = yes ||
2077 test -x conftest$ac_exeext
2081 $as_echo "$as_me: failed program was:" >&5
2082 sed 's/^/| /' conftest.$ac_ext >&5
2086 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2087 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2088 # interfere with the next link command; also delete a directory that is
2089 # left behind by Apple's compiler. We do this before executing the actions.
2090 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2091 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2092 as_fn_set_status $ac_retval
2094 } # ac_fn_d_try_link
2095 cat >config.log <<_ACEOF
2096 This file contains any messages produced by compilers while
2097 running configure, to aid debugging if configure makes a mistake.
2099 It was created by package-unused $as_me version-unused, which was
2100 generated by GNU Autoconf 2.69. Invocation command line was
2112 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2113 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2114 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2115 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2116 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2118 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2119 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2121 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2122 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2123 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2124 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2125 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2126 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2127 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135 test -z "$as_dir" && as_dir=.
2136 $as_echo "PATH: $as_dir"
2152 # Keep a trace of the command line.
2153 # Strip out --no-create and --no-recursion so they do not pile up.
2154 # Strip out --silent because we don't want to record it for future runs.
2155 # Also quote any args containing shell meta-characters.
2156 # Make two passes to allow for proper duplicate-argument suppression.
2160 ac_must_keep_next=false
2166 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2167 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2168 | -silent | --silent | --silen | --sile | --sil)
2171 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2174 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2176 as_fn_append ac_configure_args1 " '$ac_arg'"
2177 if test $ac_must_keep_next = true; then
2178 ac_must_keep_next=false # Got value, back to normal.
2181 *=* | --config-cache | -C | -disable-* | --disable-* \
2182 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2183 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2184 | -with-* | --with-* | -without-* | --without-* | --x)
2185 case "$ac_configure_args0 " in
2186 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2189 -* ) ac_must_keep_next=true ;;
2192 as_fn_append ac_configure_args " '$ac_arg'"
2197 { ac_configure_args0=; unset ac_configure_args0;}
2198 { ac_configure_args1=; unset ac_configure_args1;}
2200 # When interrupted or exit'd, cleanup temporary files, and complete
2201 # config.log. We remove comments because anyway the quotes in there
2202 # would cause problems or look ugly.
2203 # WARNING: Use '\'' to represent an apostrophe within the trap.
2204 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2205 trap 'exit_status=$?
2206 # Save into config.log some information that might help in debugging.
2210 $as_echo "## ---------------- ##
2211 ## Cache variables. ##
2212 ## ---------------- ##"
2214 # The following way of writing the cache mishandles newlines in values,
2216 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2217 eval ac_val=\$$ac_var
2221 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2222 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2225 _ | IFS | as_nl) ;; #(
2226 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2227 *) { eval $ac_var=; unset $ac_var;} ;;
2232 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2233 *${as_nl}ac_space=\ *)
2235 "s/'\''/'\''\\\\'\'''\''/g;
2236 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2239 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2246 $as_echo "## ----------------- ##
2247 ## Output variables. ##
2248 ## ----------------- ##"
2250 for ac_var in $ac_subst_vars
2252 eval ac_val=\$$ac_var
2254 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2256 $as_echo "$ac_var='\''$ac_val'\''"
2260 if test -n "$ac_subst_files"; then
2261 $as_echo "## ------------------- ##
2262 ## File substitutions. ##
2263 ## ------------------- ##"
2265 for ac_var in $ac_subst_files
2267 eval ac_val=\$$ac_var
2269 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2271 $as_echo "$ac_var='\''$ac_val'\''"
2276 if test -s confdefs.h; then
2277 $as_echo "## ----------- ##
2284 test "$ac_signal" != 0 &&
2285 $as_echo "$as_me: caught signal $ac_signal"
2286 $as_echo "$as_me: exit $exit_status"
2288 rm -f core *.core core.conftest.* &&
2289 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2292 for ac_signal in 1 2 13 15; do
2293 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2297 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2298 rm -f -r conftest* confdefs.h
2300 $as_echo "/* confdefs.h */" > confdefs.h
2302 # Predefined preprocessor variables.
2304 cat >>confdefs.h <<_ACEOF
2305 #define PACKAGE_NAME "$PACKAGE_NAME"
2308 cat >>confdefs.h <<_ACEOF
2309 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2312 cat >>confdefs.h <<_ACEOF
2313 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2316 cat >>confdefs.h <<_ACEOF
2317 #define PACKAGE_STRING "$PACKAGE_STRING"
2320 cat >>confdefs.h <<_ACEOF
2321 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2324 cat >>confdefs.h <<_ACEOF
2325 #define PACKAGE_URL "$PACKAGE_URL"
2329 # Let the site file select an alternate cache file if it wants to.
2330 # Prefer an explicitly selected file to automatically selected ones.
2333 if test -n "$CONFIG_SITE"; then
2334 # We do not want a PATH search for config.site.
2335 case $CONFIG_SITE in #((
2336 -*) ac_site_file1=./$CONFIG_SITE;;
2337 */*) ac_site_file1=$CONFIG_SITE;;
2338 *) ac_site_file1=./$CONFIG_SITE;;
2340 elif test "x$prefix" != xNONE; then
2341 ac_site_file1=$prefix/share/config.site
2342 ac_site_file2=$prefix/etc/config.site
2344 ac_site_file1=$ac_default_prefix/share/config.site
2345 ac_site_file2=$ac_default_prefix/etc/config.site
2347 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2349 test "x$ac_site_file" = xNONE && continue
2350 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2352 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2353 sed 's/^/| /' "$ac_site_file" >&5
2355 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2357 as_fn_error $? "failed to load site script $ac_site_file
2358 See \`config.log' for more details" "$LINENO" 5; }
2362 if test -r "$cache_file"; then
2363 # Some versions of bash will fail to source /dev/null (special files
2364 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2365 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2367 $as_echo "$as_me: loading cache $cache_file" >&6;}
2369 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2370 *) . "./$cache_file";;
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2375 $as_echo "$as_me: creating cache $cache_file" >&6;}
2379 # Check that the precious variables saved in the cache have kept the same
2381 ac_cache_corrupted=false
2382 for ac_var in $ac_precious_vars; do
2383 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2384 eval ac_new_set=\$ac_env_${ac_var}_set
2385 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2386 eval ac_new_val=\$ac_env_${ac_var}_value
2387 case $ac_old_set,$ac_new_set in
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2390 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2391 ac_cache_corrupted=: ;;
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2394 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2395 ac_cache_corrupted=: ;;
2398 if test "x$ac_old_val" != "x$ac_new_val"; then
2399 # differences in whitespace do not lead to failure.
2400 ac_old_val_w=`echo x $ac_old_val`
2401 ac_new_val_w=`echo x $ac_new_val`
2402 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2404 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2405 ac_cache_corrupted=:
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2408 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2409 eval $ac_var=\$ac_old_val
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2412 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2414 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2417 # Pass precious variables to config.status.
2418 if test "$ac_new_set" = set; then
2420 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2421 *) ac_arg=$ac_var=$ac_new_val ;;
2423 case " $ac_configure_args " in
2424 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2425 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2429 if $ac_cache_corrupted; then
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2433 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2434 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2436 ## -------------------- ##
2437 ## Main body of script. ##
2438 ## -------------------- ##
2441 ac_cpp='$CPP $CPPFLAGS'
2442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2451 ac_config_headers="$ac_config_headers config.h"
2454 # Default to --enable-multilib
2455 # Check whether --enable-multilib was given.
2456 if test "${enable_multilib+set}" = set; then :
2457 enableval=$enable_multilib; case "$enableval" in
2458 yes) multilib=yes ;;
2460 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2467 # We may get other options which we leave undocumented:
2468 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2469 # See config-ml.in if you want the gory details.
2471 if test "$srcdir" = "."; then
2472 if test "$with_target_subdir" != "."; then
2473 multi_basedir="$srcdir/$with_multisrctop../.."
2475 multi_basedir="$srcdir/$with_multisrctop.."
2478 multi_basedir="$srcdir/.."
2482 # Even if the default multilib is not a cross compilation,
2483 # it may be that some of the other multilibs are.
2484 if test $cross_compiling = no && test $multilib = yes \
2485 && test "x${with_multisubdir}" != x ; then
2486 cross_compiling=maybe
2489 ac_config_commands="$ac_config_commands default-1"
2492 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2493 if test -f "$ac_dir/install-sh"; then
2495 ac_install_sh="$ac_aux_dir/install-sh -c"
2497 elif test -f "$ac_dir/install.sh"; then
2499 ac_install_sh="$ac_aux_dir/install.sh -c"
2501 elif test -f "$ac_dir/shtool"; then
2503 ac_install_sh="$ac_aux_dir/shtool install -c"
2507 if test -z "$ac_aux_dir"; then
2508 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2511 # These three variables are undocumented and unsupported,
2512 # and are intended to be withdrawn in a future Autoconf release.
2513 # They can cause serious problems if a builder's source tree is in a directory
2514 # whose full name contains unusual characters.
2515 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2516 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2517 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2520 # Make sure we can run config.sub.
2521 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2522 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2525 $as_echo_n "checking build system type... " >&6; }
2526 if ${ac_cv_build+:} false; then :
2527 $as_echo_n "(cached) " >&6
2529 ac_build_alias=$build_alias
2530 test "x$ac_build_alias" = x &&
2531 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2532 test "x$ac_build_alias" = x &&
2533 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2534 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2535 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2539 $as_echo "$ac_cv_build" >&6; }
2540 case $ac_cv_build in
2542 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2545 ac_save_IFS=$IFS; IFS='-'
2551 # Remember, the first character of IFS is used to create $*,
2552 # except with old shells:
2555 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2559 $as_echo_n "checking host system type... " >&6; }
2560 if ${ac_cv_host+:} false; then :
2561 $as_echo_n "(cached) " >&6
2563 if test "x$host_alias" = x; then
2564 ac_cv_host=$ac_cv_build
2566 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2567 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2572 $as_echo "$ac_cv_host" >&6; }
2575 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2578 ac_save_IFS=$IFS; IFS='-'
2584 # Remember, the first character of IFS is used to create $*,
2585 # except with old shells:
2588 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2592 $as_echo_n "checking target system type... " >&6; }
2593 if ${ac_cv_target+:} false; then :
2594 $as_echo_n "(cached) " >&6
2596 if test "x$target_alias" = x; then
2597 ac_cv_target=$ac_cv_host
2599 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2600 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2605 $as_echo "$ac_cv_target" >&6; }
2606 case $ac_cv_target in
2608 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2610 target=$ac_cv_target
2611 ac_save_IFS=$IFS; IFS='-'
2617 # Remember, the first character of IFS is used to create $*,
2618 # except with old shells:
2621 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2624 # The aliases save the names the user supplied, while $host etc.
2625 # will get canonicalized.
2626 test -n "$target_alias" &&
2627 test "$program_prefix$program_suffix$program_transform_name" = \
2629 program_prefix=${target_alias}-
2631 # Expand $ac_aux_dir to an absolute path.
2632 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2635 ac_cpp='$CPP $CPPFLAGS'
2636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2639 if test -n "$ac_tool_prefix"; then
2640 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2641 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2643 $as_echo_n "checking for $ac_word... " >&6; }
2644 if ${ac_cv_prog_CC+:} false; then :
2645 $as_echo_n "(cached) " >&6
2647 if test -n "$CC"; then
2648 ac_cv_prog_CC="$CC" # Let the user override the test.
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 test -z "$as_dir" && as_dir=.
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2657 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 if test -n "$CC"; then
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2670 $as_echo "$CC" >&6; }
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2673 $as_echo "no" >&6; }
2678 if test -z "$ac_cv_prog_CC"; then
2680 # Extract the first word of "gcc", so it can be a program name with args.
2681 set dummy gcc; ac_word=$2
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2683 $as_echo_n "checking for $ac_word... " >&6; }
2684 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2685 $as_echo_n "(cached) " >&6
2687 if test -n "$ac_ct_CC"; then
2688 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2697 ac_cv_prog_ac_ct_CC="gcc"
2698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2707 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2708 if test -n "$ac_ct_CC"; then
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2710 $as_echo "$ac_ct_CC" >&6; }
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2713 $as_echo "no" >&6; }
2716 if test "x$ac_ct_CC" = x; then
2719 case $cross_compiling:$ac_tool_warned in
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2723 ac_tool_warned=yes ;;
2731 if test -z "$CC"; then
2732 if test -n "$ac_tool_prefix"; then
2733 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2734 set dummy ${ac_tool_prefix}cc; ac_word=$2
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2736 $as_echo_n "checking for $ac_word... " >&6; }
2737 if ${ac_cv_prog_CC+:} false; then :
2738 $as_echo_n "(cached) " >&6
2740 if test -n "$CC"; then
2741 ac_cv_prog_CC="$CC" # Let the user override the test.
2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 test -z "$as_dir" && as_dir=.
2748 for ac_exec_ext in '' $ac_executable_extensions; do
2749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2750 ac_cv_prog_CC="${ac_tool_prefix}cc"
2751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2761 if test -n "$CC"; then
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2763 $as_echo "$CC" >&6; }
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2766 $as_echo "no" >&6; }
2772 if test -z "$CC"; then
2773 # Extract the first word of "cc", so it can be a program name with args.
2774 set dummy cc; ac_word=$2
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2776 $as_echo_n "checking for $ac_word... " >&6; }
2777 if ${ac_cv_prog_CC+:} false; then :
2778 $as_echo_n "(cached) " >&6
2780 if test -n "$CC"; then
2781 ac_cv_prog_CC="$CC" # Let the user override the test.
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2792 ac_prog_rejected=yes
2796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 if test $ac_prog_rejected = yes; then
2804 # We found a bogon in the path, so make sure we never use it.
2805 set dummy $ac_cv_prog_CC
2807 if test $# != 0; then
2808 # We chose a different compiler from the bogus one.
2809 # However, it has the same basename, so the bogon will be chosen
2810 # first if we set CC to just the basename; use the full file name.
2812 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2818 if test -n "$CC"; then
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2820 $as_echo "$CC" >&6; }
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823 $as_echo "no" >&6; }
2828 if test -z "$CC"; then
2829 if test -n "$ac_tool_prefix"; then
2830 for ac_prog in cl.exe
2832 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2833 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2835 $as_echo_n "checking for $ac_word... " >&6; }
2836 if ${ac_cv_prog_CC+:} false; then :
2837 $as_echo_n "(cached) " >&6
2839 if test -n "$CC"; then
2840 ac_cv_prog_CC="$CC" # Let the user override the test.
2842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 test -z "$as_dir" && as_dir=.
2847 for ac_exec_ext in '' $ac_executable_extensions; do
2848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2849 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2860 if test -n "$CC"; then
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2862 $as_echo "$CC" >&6; }
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2865 $as_echo "no" >&6; }
2869 test -n "$CC" && break
2872 if test -z "$CC"; then
2874 for ac_prog in cl.exe
2876 # Extract the first word of "$ac_prog", so it can be a program name with args.
2877 set dummy $ac_prog; ac_word=$2
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879 $as_echo_n "checking for $ac_word... " >&6; }
2880 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2881 $as_echo_n "(cached) " >&6
2883 if test -n "$ac_ct_CC"; then
2884 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 test -z "$as_dir" && as_dir=.
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2893 ac_cv_prog_ac_ct_CC="$ac_prog"
2894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2904 if test -n "$ac_ct_CC"; then
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2906 $as_echo "$ac_ct_CC" >&6; }
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909 $as_echo "no" >&6; }
2913 test -n "$ac_ct_CC" && break
2916 if test "x$ac_ct_CC" = x; then
2919 case $cross_compiling:$ac_tool_warned in
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2923 ac_tool_warned=yes ;;
2932 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2934 as_fn_error $? "no acceptable C compiler found in \$PATH
2935 See \`config.log' for more details" "$LINENO" 5; }
2937 # Provide some information about the compiler.
2938 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2941 for ac_option in --version -v -V -qversion; do
2942 { { ac_try="$ac_compiler $ac_option >&5"
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2948 $as_echo "$ac_try_echo"; } >&5
2949 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2951 if test -s conftest.err; then
2953 ... rest of stderr output deleted ...
2954 10q' conftest.err >conftest.er1
2955 cat conftest.er1 >&5
2957 rm -f conftest.er1 conftest.err
2958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2959 test $ac_status = 0; }
2962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2963 /* end confdefs.h. */
2973 ac_clean_files_save=$ac_clean_files
2974 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2975 # Try to create an executable without -o first, disregard a.out.
2976 # It will help us diagnose broken compilers, and finding out an intuition
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2979 $as_echo_n "checking whether the C compiler works... " >&6; }
2980 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2982 # The possible output files:
2983 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2986 for ac_file in $ac_files
2989 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2990 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2995 if { { ac_try="$ac_link_default"
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
3000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3001 $as_echo "$ac_try_echo"; } >&5
3002 (eval "$ac_link_default") 2>&5
3004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3005 test $ac_status = 0; }; then :
3006 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3007 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3008 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3009 # so that the user can short-circuit this test for compilers unknown to
3011 for ac_file in $ac_files ''
3013 test -f "$ac_file" || continue
3015 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3018 # We found the default executable, but exeext='' is most
3022 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3024 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3026 # We set ac_cv_exeext here because the later test for it is not
3027 # safe: cross compilers may not add the suffix if given an `-o'
3028 # argument, so we may need to know it at that point already.
3029 # Even if this section looks crufty: it has the advantage of
3036 test "$ac_cv_exeext" = no && ac_cv_exeext=
3041 if test -z "$ac_file"; then :
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3043 $as_echo "no" >&6; }
3044 $as_echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3049 as_fn_error 77 "C compiler cannot create executables
3050 See \`config.log' for more details" "$LINENO" 5; }
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3053 $as_echo "yes" >&6; }
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3056 $as_echo_n "checking for C compiler default output file name... " >&6; }
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3058 $as_echo "$ac_file" >&6; }
3059 ac_exeext=$ac_cv_exeext
3061 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3062 ac_clean_files=$ac_clean_files_save
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3064 $as_echo_n "checking for suffix of executables... " >&6; }
3065 if { { ac_try="$ac_link"
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3071 $as_echo "$ac_try_echo"; } >&5
3072 (eval "$ac_link") 2>&5
3074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3075 test $ac_status = 0; }; then :
3076 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3077 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3078 # work properly (i.e., refer to `conftest.exe'), while it won't with
3080 for ac_file in conftest.exe conftest conftest.*; do
3081 test -f "$ac_file" || continue
3083 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3084 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3090 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3092 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3093 See \`config.log' for more details" "$LINENO" 5; }
3095 rm -f conftest conftest$ac_cv_exeext
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3097 $as_echo "$ac_cv_exeext" >&6; }
3099 rm -f conftest.$ac_ext
3100 EXEEXT=$ac_cv_exeext
3102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3103 /* end confdefs.h. */
3108 FILE *f = fopen ("conftest.out", "w");
3109 return ferror (f) || fclose (f) != 0;
3115 ac_clean_files="$ac_clean_files conftest.out"
3116 # Check that the compiler produces executables we can run. If not, either
3117 # the compiler is broken, or we cross compile.
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3119 $as_echo_n "checking whether we are cross compiling... " >&6; }
3120 if test "$cross_compiling" != yes; then
3121 { { ac_try="$ac_link"
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3127 $as_echo "$ac_try_echo"; } >&5
3128 (eval "$ac_link") 2>&5
3130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3131 test $ac_status = 0; }
3132 if { ac_try='./conftest$ac_cv_exeext'
3133 { { case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3137 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3138 $as_echo "$ac_try_echo"; } >&5
3139 (eval "$ac_try") 2>&5
3141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3142 test $ac_status = 0; }; }; then
3145 if test "$cross_compiling" = maybe; then
3148 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3150 as_fn_error $? "cannot run C compiled programs.
3151 If you meant to cross compile, use \`--host'.
3152 See \`config.log' for more details" "$LINENO" 5; }
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3157 $as_echo "$cross_compiling" >&6; }
3159 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3160 ac_clean_files=$ac_clean_files_save
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3162 $as_echo_n "checking for suffix of object files... " >&6; }
3163 if ${ac_cv_objext+:} false; then :
3164 $as_echo_n "(cached) " >&6
3166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3167 /* end confdefs.h. */
3177 rm -f conftest.o conftest.obj
3178 if { { ac_try="$ac_compile"
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3184 $as_echo "$ac_try_echo"; } >&5
3185 (eval "$ac_compile") 2>&5
3187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3188 test $ac_status = 0; }; then :
3189 for ac_file in conftest.o conftest.obj conftest.*; do
3190 test -f "$ac_file" || continue;
3192 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3193 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3198 $as_echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.$ac_ext >&5
3201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3203 as_fn_error $? "cannot compute suffix of object files: cannot compile
3204 See \`config.log' for more details" "$LINENO" 5; }
3206 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3209 $as_echo "$ac_cv_objext" >&6; }
3210 OBJEXT=$ac_cv_objext
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3213 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3214 if ${ac_cv_c_compiler_gnu+:} false; then :
3215 $as_echo_n "(cached) " >&6
3217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3218 /* end confdefs.h. */
3231 if ac_fn_c_try_compile "$LINENO"; then :
3236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3237 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3241 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3242 if test $ac_compiler_gnu = yes; then
3247 ac_test_CFLAGS=${CFLAGS+set}
3248 ac_save_CFLAGS=$CFLAGS
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3250 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3251 if ${ac_cv_prog_cc_g+:} false; then :
3252 $as_echo_n "(cached) " >&6
3254 ac_save_c_werror_flag=$ac_c_werror_flag
3255 ac_c_werror_flag=yes
3258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3259 /* end confdefs.h. */
3269 if ac_fn_c_try_compile "$LINENO"; then :
3273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3274 /* end confdefs.h. */
3284 if ac_fn_c_try_compile "$LINENO"; then :
3287 ac_c_werror_flag=$ac_save_c_werror_flag
3289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290 /* end confdefs.h. */
3300 if ac_fn_c_try_compile "$LINENO"; then :
3303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3308 ac_c_werror_flag=$ac_save_c_werror_flag
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3311 $as_echo "$ac_cv_prog_cc_g" >&6; }
3312 if test "$ac_test_CFLAGS" = set; then
3313 CFLAGS=$ac_save_CFLAGS
3314 elif test $ac_cv_prog_cc_g = yes; then
3315 if test "$GCC" = yes; then
3321 if test "$GCC" = yes; then
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3328 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3329 if ${ac_cv_prog_cc_c89+:} false; then :
3330 $as_echo_n "(cached) " >&6
3332 ac_cv_prog_cc_c89=no
3334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3335 /* end confdefs.h. */
3339 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3340 struct buf { int x; };
3341 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3342 static char *e (p, i)
3348 static char *f (char * (*g) (char **, int), char **p, ...)
3353 s = g (p, va_arg (v,int));
3358 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3359 function prototypes and stuff, but not '\xHH' hex character constants.
3360 These don't provoke an error unfortunately, instead are silently treated
3361 as 'x'. The following induces an error, until -std is added to get
3362 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3363 array size at least. It's necessary to write '\x00'==0 to get something
3364 that's true only with -std. */
3365 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3367 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3368 inside strings and character constants. */
3370 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3372 int test (int i, double x);
3373 struct s1 {int (*f) (int a);};
3374 struct s2 {int (*f) (double a);};
3375 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3381 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3386 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3387 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3389 CC="$ac_save_CC $ac_arg"
3390 if ac_fn_c_try_compile "$LINENO"; then :
3391 ac_cv_prog_cc_c89=$ac_arg
3393 rm -f core conftest.err conftest.$ac_objext
3394 test "x$ac_cv_prog_cc_c89" != "xno" && break
3396 rm -f conftest.$ac_ext
3401 case "x$ac_cv_prog_cc_c89" in
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3404 $as_echo "none needed" >&6; } ;;
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3407 $as_echo "unsupported" >&6; } ;;
3409 CC="$CC $ac_cv_prog_cc_c89"
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3411 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3413 if test "x$ac_cv_prog_cc_c89" != xno; then :
3418 ac_cpp='$CPP $CPPFLAGS'
3419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3424 ac_cpp='$CPP $CPPFLAGS'
3425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3429 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3430 if ${am_cv_prog_cc_c_o+:} false; then :
3431 $as_echo_n "(cached) " >&6
3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434 /* end confdefs.h. */
3444 # Make sure it works both with $CC and with simple cc.
3445 # Following AC_PROG_CC_C_O, we do the test twice because some
3446 # compilers refuse to overwrite an existing .o file with -o,
3447 # though they will create one.
3448 am_cv_prog_cc_c_o=yes
3450 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3451 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } \
3455 && test -f conftest2.$ac_objext; then
3458 am_cv_prog_cc_c_o=no
3462 rm -f core conftest*
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3466 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3467 if test "$am_cv_prog_cc_c_o" != yes; then
3468 # Losing compiler, so override with the script.
3469 # FIXME: It is wrong to rewrite CC.
3470 # But if we don't then we get into trouble of one sort or another.
3471 # A longer-term fix would be to have automake use am__CC in this case,
3472 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3473 CC="$am_aux_dir/compile $CC"
3476 ac_cpp='$CPP $CPPFLAGS'
3477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3484 ac_cpp='$CPP $CPPFLAGS'
3485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3489 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3490 # On Suns, sometimes $CPP names a directory.
3491 if test -n "$CPP" && test -d "$CPP"; then
3494 if test -z "$CPP"; then
3495 if ${ac_cv_prog_CPP+:} false; then :
3496 $as_echo_n "(cached) " >&6
3498 # Double quotes because CPP needs to be expanded
3499 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3502 for ac_c_preproc_warn_flag in '' yes
3504 # Use a header file that comes with gcc, so configuring glibc
3505 # with a fresh cross-compiler works.
3506 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3507 # <limits.h> exists even on freestanding compilers.
3508 # On the NeXT, cc -E runs the code through the compiler's parser,
3509 # not just through cpp. "Syntax error" is here to catch this case.
3510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3511 /* end confdefs.h. */
3513 # include <limits.h>
3515 # include <assert.h>
3519 if ac_fn_c_try_cpp "$LINENO"; then :
3522 # Broken: fails on valid input.
3525 rm -f conftest.err conftest.i conftest.$ac_ext
3527 # OK, works on sane cases. Now check whether nonexistent headers
3528 # can be detected and how.
3529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530 /* end confdefs.h. */
3531 #include <ac_nonexistent.h>
3533 if ac_fn_c_try_cpp "$LINENO"; then :
3534 # Broken: success on invalid input.
3537 # Passes both tests.
3541 rm -f conftest.err conftest.i conftest.$ac_ext
3544 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3545 rm -f conftest.i conftest.err conftest.$ac_ext
3546 if $ac_preproc_ok; then :
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3559 $as_echo "$CPP" >&6; }
3561 for ac_c_preproc_warn_flag in '' yes
3563 # Use a header file that comes with gcc, so configuring glibc
3564 # with a fresh cross-compiler works.
3565 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3566 # <limits.h> exists even on freestanding compilers.
3567 # On the NeXT, cc -E runs the code through the compiler's parser,
3568 # not just through cpp. "Syntax error" is here to catch this case.
3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570 /* end confdefs.h. */
3572 # include <limits.h>
3574 # include <assert.h>
3578 if ac_fn_c_try_cpp "$LINENO"; then :
3581 # Broken: fails on valid input.
3584 rm -f conftest.err conftest.i conftest.$ac_ext
3586 # OK, works on sane cases. Now check whether nonexistent headers
3587 # can be detected and how.
3588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589 /* end confdefs.h. */
3590 #include <ac_nonexistent.h>
3592 if ac_fn_c_try_cpp "$LINENO"; then :
3593 # Broken: success on invalid input.
3596 # Passes both tests.
3600 rm -f conftest.err conftest.i conftest.$ac_ext
3603 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3604 rm -f conftest.i conftest.err conftest.$ac_ext
3605 if $ac_preproc_ok; then :
3608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3610 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3611 See \`config.log' for more details" "$LINENO" 5; }
3615 ac_cpp='$CPP $CPPFLAGS'
3616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3622 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3623 if ${ac_cv_path_GREP+:} false; then :
3624 $as_echo_n "(cached) " >&6
3626 if test -z "$GREP"; then
3627 ac_path_GREP_found=false
3628 # Loop through the user's path and test for each of PROGNAME-LIST
3629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3633 test -z "$as_dir" && as_dir=.
3634 for ac_prog in grep ggrep; do
3635 for ac_exec_ext in '' $ac_executable_extensions; do
3636 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3637 as_fn_executable_p "$ac_path_GREP" || continue
3638 # Check for GNU ac_path_GREP and select it if it is found.
3639 # Check for GNU $ac_path_GREP
3640 case `"$ac_path_GREP" --version 2>&1` in
3642 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3645 $as_echo_n 0123456789 >"conftest.in"
3648 cat "conftest.in" "conftest.in" >"conftest.tmp"
3649 mv "conftest.tmp" "conftest.in"
3650 cp "conftest.in" "conftest.nl"
3651 $as_echo 'GREP' >> "conftest.nl"
3652 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3653 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3654 as_fn_arith $ac_count + 1 && ac_count=$as_val
3655 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3656 # Best one so far, save it but keep looking for a better one
3657 ac_cv_path_GREP="$ac_path_GREP"
3658 ac_path_GREP_max=$ac_count
3660 # 10*(2^10) chars as input seems more than enough
3661 test $ac_count -gt 10 && break
3663 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3666 $ac_path_GREP_found && break 3
3671 if test -z "$ac_cv_path_GREP"; then
3672 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3675 ac_cv_path_GREP=$GREP
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3680 $as_echo "$ac_cv_path_GREP" >&6; }
3681 GREP="$ac_cv_path_GREP"
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3685 $as_echo_n "checking for egrep... " >&6; }
3686 if ${ac_cv_path_EGREP+:} false; then :
3687 $as_echo_n "(cached) " >&6
3689 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3690 then ac_cv_path_EGREP="$GREP -E"
3692 if test -z "$EGREP"; then
3693 ac_path_EGREP_found=false
3694 # Loop through the user's path and test for each of PROGNAME-LIST
3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3699 test -z "$as_dir" && as_dir=.
3700 for ac_prog in egrep; do
3701 for ac_exec_ext in '' $ac_executable_extensions; do
3702 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3703 as_fn_executable_p "$ac_path_EGREP" || continue
3704 # Check for GNU ac_path_EGREP and select it if it is found.
3705 # Check for GNU $ac_path_EGREP
3706 case `"$ac_path_EGREP" --version 2>&1` in
3708 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3711 $as_echo_n 0123456789 >"conftest.in"
3714 cat "conftest.in" "conftest.in" >"conftest.tmp"
3715 mv "conftest.tmp" "conftest.in"
3716 cp "conftest.in" "conftest.nl"
3717 $as_echo 'EGREP' >> "conftest.nl"
3718 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3719 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3720 as_fn_arith $ac_count + 1 && ac_count=$as_val
3721 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3722 # Best one so far, save it but keep looking for a better one
3723 ac_cv_path_EGREP="$ac_path_EGREP"
3724 ac_path_EGREP_max=$ac_count
3726 # 10*(2^10) chars as input seems more than enough
3727 test $ac_count -gt 10 && break
3729 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3732 $ac_path_EGREP_found && break 3
3737 if test -z "$ac_cv_path_EGREP"; then
3738 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3741 ac_cv_path_EGREP=$EGREP
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3747 $as_echo "$ac_cv_path_EGREP" >&6; }
3748 EGREP="$ac_cv_path_EGREP"
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3752 $as_echo_n "checking for ANSI C header files... " >&6; }
3753 if ${ac_cv_header_stdc+:} false; then :
3754 $as_echo_n "(cached) " >&6
3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h. */
3771 if ac_fn_c_try_compile "$LINENO"; then :
3772 ac_cv_header_stdc=yes
3774 ac_cv_header_stdc=no
3776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3778 if test $ac_cv_header_stdc = yes; then
3779 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3786 $EGREP "memchr" >/dev/null 2>&1; then :
3789 ac_cv_header_stdc=no
3795 if test $ac_cv_header_stdc = yes; then
3796 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798 /* end confdefs.h. */
3802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3803 $EGREP "free" >/dev/null 2>&1; then :
3806 ac_cv_header_stdc=no
3812 if test $ac_cv_header_stdc = yes; then
3813 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3814 if test "$cross_compiling" = yes; then :
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h. */
3821 #if ((' ' & 0x0FF) == 0x020)
3822 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3823 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3825 # define ISLOWER(c) \
3826 (('a' <= (c) && (c) <= 'i') \
3827 || ('j' <= (c) && (c) <= 'r') \
3828 || ('s' <= (c) && (c) <= 'z'))
3829 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3832 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3837 for (i = 0; i < 256; i++)
3838 if (XOR (islower (i), ISLOWER (i))
3839 || toupper (i) != TOUPPER (i))
3844 if ac_fn_c_try_run "$LINENO"; then :
3847 ac_cv_header_stdc=no
3849 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3850 conftest.$ac_objext conftest.beam conftest.$ac_ext
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3856 $as_echo "$ac_cv_header_stdc" >&6; }
3857 if test $ac_cv_header_stdc = yes; then
3859 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3863 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3864 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3865 inttypes.h stdint.h unistd.h
3867 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3868 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3870 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3871 cat >>confdefs.h <<_ACEOF
3872 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3881 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3882 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3889 if test "$MINIX" = yes; then
3891 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3894 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3897 $as_echo "#define _MINIX 1" >>confdefs.h
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3903 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3904 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3905 $as_echo_n "(cached) " >&6
3907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h. */
3910 # define __EXTENSIONS__ 1
3911 $ac_includes_default
3920 if ac_fn_c_try_compile "$LINENO"; then :
3921 ac_cv_safe_to_define___extensions__=yes
3923 ac_cv_safe_to_define___extensions__=no
3925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3928 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3929 test $ac_cv_safe_to_define___extensions__ = yes &&
3930 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3932 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3934 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3936 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3938 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3942 target_alias=${target_alias-$target}
3945 # 1.11.1: Require that version of automake.
3946 # foreign: Don't require README, INSTALL, NEWS, etc.
3947 # no-define: Don't define PACKAGE and VERSION.
3948 # no-dependencies: Don't generate automatic dependencies.
3949 # (because it breaks when using bootstrap-lean, since some of the
3950 # headers are gone at "make install" time).
3951 # subdir-objects: Build objects in sub-directories.
3952 # -Wall: Issue all automake warnings.
3953 # -Wno-portability: Don't warn about constructs supported by GNU make.
3954 # (because GCC requires GNU make anyhow).
3955 # -Wno-override: Overrides used in testsuite.
3956 am__api_version='1.15'
3958 # Find a good install program. We prefer a C program (faster),
3959 # so one script is as good as another. But avoid the broken or
3960 # incompatible versions:
3961 # SysV /etc/install, /usr/sbin/install
3962 # SunOS /usr/etc/install
3963 # IRIX /sbin/install
3965 # AmigaOS /C/install, which installs bootblocks on floppy discs
3966 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3967 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3968 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3969 # OS/2's system install, which has a completely different semantic
3970 # ./install, which can be erroneously created by make from ./install.sh.
3971 # Reject install programs that cannot install multiple files.
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3973 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3974 if test -z "$INSTALL"; then
3975 if ${ac_cv_path_install+:} false; then :
3976 $as_echo_n "(cached) " >&6
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982 test -z "$as_dir" && as_dir=.
3983 # Account for people who put trailing slashes in PATH elements.
3984 case $as_dir/ in #((
3985 ./ | .// | /[cC]/* | \
3986 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3987 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3990 # OSF1 and SCO ODT 3.0 have their own names for install.
3991 # Don't use installbsd from OSF since it installs stuff as root
3993 for ac_prog in ginstall scoinst install; do
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3996 if test $ac_prog = install &&
3997 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3998 # AIX install. It has an incompatible calling convention.
4000 elif test $ac_prog = install &&
4001 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4002 # program-specific install script used by HP pwplus--don't use.
4005 rm -rf conftest.one conftest.two conftest.dir
4006 echo one > conftest.one
4007 echo two > conftest.two
4009 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4010 test -s conftest.one && test -s conftest.two &&
4011 test -s conftest.dir/conftest.one &&
4012 test -s conftest.dir/conftest.two
4014 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4027 rm -rf conftest.one conftest.two conftest.dir
4030 if test "${ac_cv_path_install+set}" = set; then
4031 INSTALL=$ac_cv_path_install
4033 # As a last resort, use the slow shell script. Don't cache a
4034 # value for INSTALL within a source directory, because that will
4035 # break other packages using the cache if that directory is
4036 # removed, or if the value is a relative name.
4037 INSTALL=$ac_install_sh
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4041 $as_echo "$INSTALL" >&6; }
4043 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4044 # It thinks the first close brace ends the variable substitution.
4045 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4047 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4049 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4052 $as_echo_n "checking whether build environment is sane... " >&6; }
4053 # Reject unsafe characters in $srcdir or the absolute working directory
4054 # name. Accept space and tab only in the latter.
4058 *[\\\"\#\$\&\'\`$am_lf]*)
4059 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4062 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4063 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4066 # Do 'set' in a subshell so we don't clobber the current shell's
4067 # arguments. Must try -L first in case configure is actually a
4068 # symlink; some systems play weird games with the mod time of symlinks
4069 # (eg FreeBSD returns the mod time of the symlink's containing
4073 for am_try in 1 2; do
4074 echo "timestamp, slept: $am_has_slept" > conftest.file
4075 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4076 if test "$*" = "X"; then
4078 set X `ls -t "$srcdir/configure" conftest.file`
4080 if test "$*" != "X $srcdir/configure conftest.file" \
4081 && test "$*" != "X conftest.file $srcdir/configure"; then
4083 # If neither matched, then we have a broken ls. This can happen
4084 # if, for instance, CONFIG_SHELL is bash and it inherits a
4085 # broken ls alias from the environment. This has actually
4086 # happened. Such a system could not be considered "sane".
4087 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4088 alias in your environment" "$LINENO" 5
4090 if test "$2" = conftest.file || test $am_try -eq 2; then
4097 test "$2" = conftest.file
4103 as_fn_error $? "newly created file is older than distributed files!
4104 Check your system clock" "$LINENO" 5
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4107 $as_echo "yes" >&6; }
4108 # If we didn't sleep, we still need to ensure time stamps of config.status and
4109 # generated files are strictly newer.
4111 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4118 test "$program_prefix" != NONE &&
4119 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4120 # Use a double $ so make ignores it.
4121 test "$program_suffix" != NONE &&
4122 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4123 # Double any \ or $.
4124 # By default was `s,x,x', remove it if useless.
4125 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4126 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4128 if test x"${MISSING+set}" != xset; then
4131 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4133 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4136 # Use eval to expand $SHELL
4137 if eval "$MISSING --is-lightweight"; then
4138 am_missing_run="$MISSING "
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4142 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4145 if test x"${install_sh+set}" != xset; then
4148 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4150 install_sh="\${SHELL} $am_aux_dir/install-sh"
4154 # Installed binaries are usually stripped using 'strip' when the user
4155 # run "make install-strip". However 'strip' might not be the right
4156 # tool to use in cross-compilation environments, therefore Automake
4157 # will honor the 'STRIP' environment variable to overrule this program.
4158 if test "$cross_compiling" != no; then
4159 if test -n "$ac_tool_prefix"; then
4160 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4161 set dummy ${ac_tool_prefix}strip; ac_word=$2
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4163 $as_echo_n "checking for $ac_word... " >&6; }
4164 if ${ac_cv_prog_STRIP+:} false; then :
4165 $as_echo_n "(cached) " >&6
4167 if test -n "$STRIP"; then
4168 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 test -z "$as_dir" && as_dir=.
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4177 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4187 STRIP=$ac_cv_prog_STRIP
4188 if test -n "$STRIP"; then
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4190 $as_echo "$STRIP" >&6; }
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4193 $as_echo "no" >&6; }
4198 if test -z "$ac_cv_prog_STRIP"; then
4200 # Extract the first word of "strip", so it can be a program name with args.
4201 set dummy strip; ac_word=$2
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4203 $as_echo_n "checking for $ac_word... " >&6; }
4204 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4205 $as_echo_n "(cached) " >&6
4207 if test -n "$ac_ct_STRIP"; then
4208 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 test -z "$as_dir" && as_dir=.
4215 for ac_exec_ext in '' $ac_executable_extensions; do
4216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4217 ac_cv_prog_ac_ct_STRIP="strip"
4218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4227 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4228 if test -n "$ac_ct_STRIP"; then
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4230 $as_echo "$ac_ct_STRIP" >&6; }
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4233 $as_echo "no" >&6; }
4236 if test "x$ac_ct_STRIP" = x; then
4239 case $cross_compiling:$ac_tool_warned in
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4243 ac_tool_warned=yes ;;
4248 STRIP="$ac_cv_prog_STRIP"
4252 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4255 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4256 if test -z "$MKDIR_P"; then
4257 if ${ac_cv_path_mkdir+:} false; then :
4258 $as_echo_n "(cached) " >&6
4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4264 test -z "$as_dir" && as_dir=.
4265 for ac_prog in mkdir gmkdir; do
4266 for ac_exec_ext in '' $ac_executable_extensions; do
4267 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4268 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4269 'mkdir (GNU coreutils) '* | \
4270 'mkdir (coreutils) '* | \
4271 'mkdir (fileutils) '4.1*)
4272 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4282 test -d ./--version && rmdir ./--version
4283 if test "${ac_cv_path_mkdir+set}" = set; then
4284 MKDIR_P="$ac_cv_path_mkdir -p"
4286 # As a last resort, use the slow shell script. Don't cache a
4287 # value for MKDIR_P within a source directory, because that will
4288 # break other packages using the cache if that directory is
4289 # removed, or if the value is a relative name.
4290 MKDIR_P="$ac_install_sh -d"
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4294 $as_echo "$MKDIR_P" >&6; }
4296 for ac_prog in gawk mawk nawk awk
4298 # Extract the first word of "$ac_prog", so it can be a program name with args.
4299 set dummy $ac_prog; ac_word=$2
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4301 $as_echo_n "checking for $ac_word... " >&6; }
4302 if ${ac_cv_prog_AWK+:} false; then :
4303 $as_echo_n "(cached) " >&6
4305 if test -n "$AWK"; then
4306 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 test -z "$as_dir" && as_dir=.
4313 for ac_exec_ext in '' $ac_executable_extensions; do
4314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4315 ac_cv_prog_AWK="$ac_prog"
4316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4326 if test -n "$AWK"; then
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4328 $as_echo "$AWK" >&6; }
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4331 $as_echo "no" >&6; }
4335 test -n "$AWK" && break
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4339 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4341 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4342 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4343 $as_echo_n "(cached) " >&6
4345 cat >conftest.make <<\_ACEOF
4348 @echo '@@@%%%=$(MAKE)=@@@%%%'
4350 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4351 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4353 eval ac_cv_prog_make_${ac_make}_set=yes;;
4355 eval ac_cv_prog_make_${ac_make}_set=no;;
4359 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4361 $as_echo "yes" >&6; }
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4365 $as_echo "no" >&6; }
4366 SET_MAKE="MAKE=${MAKE-make}"
4369 rm -rf .tst 2>/dev/null
4370 mkdir .tst 2>/dev/null
4371 if test -d .tst; then
4376 rmdir .tst 2>/dev/null
4378 # Check whether --enable-silent-rules was given.
4379 if test "${enable_silent_rules+set}" = set; then :
4380 enableval=$enable_silent_rules;
4383 case $enable_silent_rules in # (((
4384 yes) AM_DEFAULT_VERBOSITY=0;;
4385 no) AM_DEFAULT_VERBOSITY=1;;
4386 *) AM_DEFAULT_VERBOSITY=1;;
4388 am_make=${MAKE-make}
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4390 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4391 if ${am_cv_make_support_nested_variables+:} false; then :
4392 $as_echo_n "(cached) " >&6
4394 if $as_echo 'TRUE=$(BAR$(V))
4400 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4401 am_cv_make_support_nested_variables=yes
4403 am_cv_make_support_nested_variables=no
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4407 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4408 if test $am_cv_make_support_nested_variables = yes; then
4410 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4412 AM_V=$AM_DEFAULT_VERBOSITY
4413 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4417 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4418 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4419 # is not polluted with repeated "-I."
4420 am__isrc=' -I$(srcdir)'
4421 # test to see if srcdir already configured
4422 if test -f $srcdir/config.status; then
4423 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4427 # test whether we have cygpath
4428 if test -z "$CYGPATH_W"; then
4429 if (cygpath --version) >/dev/null 2>/dev/null; then
4430 CYGPATH_W='cygpath -w'
4437 # Define the identity of the package.
4439 VERSION='version-unused'
4442 # Some tools Automake needs.
4444 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4447 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4450 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4453 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4456 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4458 # For better backward compatibility. To be removed once Automake 1.9.x
4459 # dies out for good. For more background, see:
4460 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4461 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4462 mkdir_p='$(MKDIR_P)'
4464 # We need awk for the "check" target (and possibly the TAP driver). The
4465 # system "awk" is bad on some platforms.
4466 # Always define AMTAR for backward compatibility. Yes, it's still used
4467 # in the wild :-( We should find a proper way to deprecate it ...
4471 # We'll loop over all known methods to create a tar archive until one works.
4472 _am_tools='gnutar pax cpio none'
4474 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4481 # POSIX will say in a future version that running "rm -f" with no argument
4482 # is OK; and we want to be able to make that assumption in our Makefile
4483 # recipes. So use an aggressive probe to check that the usage we want is
4484 # actually supported "in the wild" to an acceptable degree.
4485 # See automake bug#10828.
4486 # To make any issue more visible, cause the running configure to be aborted
4487 # by default if the 'rm' program in use doesn't match our expectations; the
4488 # user can still override this though.
4489 if rm -f && rm -fr && rm -rf; then : OK; else
4493 Your 'rm' program seems unable to run without file operands specified
4494 on the command line, even when the '-f' option is present. This is contrary
4495 to the behaviour of most rm programs out there, and not conforming with
4496 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4498 Please tell bug-automake@gnu.org about your system, including the value
4499 of your $PATH and any error possibly output before this message. This
4500 can help us improve future automake versions.
4503 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4504 echo 'Configuration will proceed anyway, since you have set the' >&2
4505 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4509 Aborting the configuration process, to ensure you take notice of the issue.
4511 You can download and install GNU coreutils to get an 'rm' implementation
4512 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4514 If you want to complete the configuration process using your problematic
4515 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4516 to "yes", and re-run configure.
4519 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4526 # By default we simply use the C compiler to build assembly code.
4528 test "${CCAS+set}" = set || CCAS=$CC
4529 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4534 ac_cpp='$CPP $CPPFLAGS'
4535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4538 if test -n "$ac_tool_prefix"; then
4539 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4540 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4542 $as_echo_n "checking for $ac_word... " >&6; }
4543 if ${ac_cv_prog_CC+:} false; then :
4544 $as_echo_n "(cached) " >&6
4546 if test -n "$CC"; then
4547 ac_cv_prog_CC="$CC" # Let the user override the test.
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 test -z "$as_dir" && as_dir=.
4554 for ac_exec_ext in '' $ac_executable_extensions; do
4555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4556 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4567 if test -n "$CC"; then
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4569 $as_echo "$CC" >&6; }
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4572 $as_echo "no" >&6; }
4577 if test -z "$ac_cv_prog_CC"; then
4579 # Extract the first word of "gcc", so it can be a program name with args.
4580 set dummy gcc; ac_word=$2
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4582 $as_echo_n "checking for $ac_word... " >&6; }
4583 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4584 $as_echo_n "(cached) " >&6
4586 if test -n "$ac_ct_CC"; then
4587 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 test -z "$as_dir" && as_dir=.
4594 for ac_exec_ext in '' $ac_executable_extensions; do
4595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4596 ac_cv_prog_ac_ct_CC="gcc"
4597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4606 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4607 if test -n "$ac_ct_CC"; then
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4609 $as_echo "$ac_ct_CC" >&6; }
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4612 $as_echo "no" >&6; }
4615 if test "x$ac_ct_CC" = x; then
4618 case $cross_compiling:$ac_tool_warned in
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4622 ac_tool_warned=yes ;;
4630 if test -z "$CC"; then
4631 if test -n "$ac_tool_prefix"; then
4632 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4633 set dummy ${ac_tool_prefix}cc; ac_word=$2
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635 $as_echo_n "checking for $ac_word... " >&6; }
4636 if ${ac_cv_prog_CC+:} false; then :
4637 $as_echo_n "(cached) " >&6
4639 if test -n "$CC"; then
4640 ac_cv_prog_CC="$CC" # Let the user override the test.
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4649 ac_cv_prog_CC="${ac_tool_prefix}cc"
4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4660 if test -n "$CC"; then
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4662 $as_echo "$CC" >&6; }
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665 $as_echo "no" >&6; }
4671 if test -z "$CC"; then
4672 # Extract the first word of "cc", so it can be a program name with args.
4673 set dummy cc; ac_word=$2
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4675 $as_echo_n "checking for $ac_word... " >&6; }
4676 if ${ac_cv_prog_CC+:} false; then :
4677 $as_echo_n "(cached) " >&6
4679 if test -n "$CC"; then
4680 ac_cv_prog_CC="$CC" # Let the user override the test.
4683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 test -z "$as_dir" && as_dir=.
4688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4690 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4691 ac_prog_rejected=yes
4695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4702 if test $ac_prog_rejected = yes; then
4703 # We found a bogon in the path, so make sure we never use it.
4704 set dummy $ac_cv_prog_CC
4706 if test $# != 0; then
4707 # We chose a different compiler from the bogus one.
4708 # However, it has the same basename, so the bogon will be chosen
4709 # first if we set CC to just the basename; use the full file name.
4711 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4717 if test -n "$CC"; then
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4719 $as_echo "$CC" >&6; }
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4722 $as_echo "no" >&6; }
4727 if test -z "$CC"; then
4728 if test -n "$ac_tool_prefix"; then
4729 for ac_prog in cl.exe
4731 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4732 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4734 $as_echo_n "checking for $ac_word... " >&6; }
4735 if ${ac_cv_prog_CC+:} false; then :
4736 $as_echo_n "(cached) " >&6
4738 if test -n "$CC"; then
4739 ac_cv_prog_CC="$CC" # Let the user override the test.
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4748 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4759 if test -n "$CC"; then
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4761 $as_echo "$CC" >&6; }
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4764 $as_echo "no" >&6; }
4768 test -n "$CC" && break
4771 if test -z "$CC"; then
4773 for ac_prog in cl.exe
4775 # Extract the first word of "$ac_prog", so it can be a program name with args.
4776 set dummy $ac_prog; ac_word=$2
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778 $as_echo_n "checking for $ac_word... " >&6; }
4779 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4780 $as_echo_n "(cached) " >&6
4782 if test -n "$ac_ct_CC"; then
4783 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 test -z "$as_dir" && as_dir=.
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4792 ac_cv_prog_ac_ct_CC="$ac_prog"
4793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4802 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4803 if test -n "$ac_ct_CC"; then
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4805 $as_echo "$ac_ct_CC" >&6; }
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808 $as_echo "no" >&6; }
4812 test -n "$ac_ct_CC" && break
4815 if test "x$ac_ct_CC" = x; then
4818 case $cross_compiling:$ac_tool_warned in
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4822 ac_tool_warned=yes ;;
4831 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4833 as_fn_error $? "no acceptable C compiler found in \$PATH
4834 See \`config.log' for more details" "$LINENO" 5; }
4836 # Provide some information about the compiler.
4837 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4840 for ac_option in --version -v -V -qversion; do
4841 { { ac_try="$ac_compiler $ac_option >&5"
4843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4844 *) ac_try_echo=$ac_try;;
4846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4847 $as_echo "$ac_try_echo"; } >&5
4848 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4850 if test -s conftest.err; then
4852 ... rest of stderr output deleted ...
4853 10q' conftest.err >conftest.er1
4854 cat conftest.er1 >&5
4856 rm -f conftest.er1 conftest.err
4857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4858 test $ac_status = 0; }
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4862 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4863 if ${ac_cv_c_compiler_gnu+:} false; then :
4864 $as_echo_n "(cached) " >&6
4866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867 /* end confdefs.h. */
4880 if ac_fn_c_try_compile "$LINENO"; then :
4885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4886 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4890 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4891 if test $ac_compiler_gnu = yes; then
4896 ac_test_CFLAGS=${CFLAGS+set}
4897 ac_save_CFLAGS=$CFLAGS
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4899 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4900 if ${ac_cv_prog_cc_g+:} false; then :
4901 $as_echo_n "(cached) " >&6
4903 ac_save_c_werror_flag=$ac_c_werror_flag
4904 ac_c_werror_flag=yes
4907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4908 /* end confdefs.h. */
4918 if ac_fn_c_try_compile "$LINENO"; then :
4922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923 /* end confdefs.h. */
4933 if ac_fn_c_try_compile "$LINENO"; then :
4936 ac_c_werror_flag=$ac_save_c_werror_flag
4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939 /* end confdefs.h. */
4949 if ac_fn_c_try_compile "$LINENO"; then :
4952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4957 ac_c_werror_flag=$ac_save_c_werror_flag
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4960 $as_echo "$ac_cv_prog_cc_g" >&6; }
4961 if test "$ac_test_CFLAGS" = set; then
4962 CFLAGS=$ac_save_CFLAGS
4963 elif test $ac_cv_prog_cc_g = yes; then
4964 if test "$GCC" = yes; then
4970 if test "$GCC" = yes; then
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4977 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4978 if ${ac_cv_prog_cc_c89+:} false; then :
4979 $as_echo_n "(cached) " >&6
4981 ac_cv_prog_cc_c89=no
4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984 /* end confdefs.h. */
4988 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4989 struct buf { int x; };
4990 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4991 static char *e (p, i)
4997 static char *f (char * (*g) (char **, int), char **p, ...)
5002 s = g (p, va_arg (v,int));
5007 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5008 function prototypes and stuff, but not '\xHH' hex character constants.
5009 These don't provoke an error unfortunately, instead are silently treated
5010 as 'x'. The following induces an error, until -std is added to get
5011 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5012 array size at least. It's necessary to write '\x00'==0 to get something
5013 that's true only with -std. */
5014 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5016 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5017 inside strings and character constants. */
5019 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5021 int test (int i, double x);
5022 struct s1 {int (*f) (int a);};
5023 struct s2 {int (*f) (double a);};
5024 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5030 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5035 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5036 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5038 CC="$ac_save_CC $ac_arg"
5039 if ac_fn_c_try_compile "$LINENO"; then :
5040 ac_cv_prog_cc_c89=$ac_arg
5042 rm -f core conftest.err conftest.$ac_objext
5043 test "x$ac_cv_prog_cc_c89" != "xno" && break
5045 rm -f conftest.$ac_ext
5050 case "x$ac_cv_prog_cc_c89" in
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5053 $as_echo "none needed" >&6; } ;;
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5056 $as_echo "unsupported" >&6; } ;;
5058 CC="$CC $ac_cv_prog_cc_c89"
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5060 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5062 if test "x$ac_cv_prog_cc_c89" != xno; then :
5067 ac_cpp='$CPP $CPPFLAGS'
5068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5073 ac_cpp='$CPP $CPPFLAGS'
5074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5078 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5079 if ${am_cv_prog_cc_c_o+:} false; then :
5080 $as_echo_n "(cached) " >&6
5082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083 /* end confdefs.h. */
5093 # Make sure it works both with $CC and with simple cc.
5094 # Following AC_PROG_CC_C_O, we do the test twice because some
5095 # compilers refuse to overwrite an existing .o file with -o,
5096 # though they will create one.
5097 am_cv_prog_cc_c_o=yes
5099 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5100 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); } \
5104 && test -f conftest2.$ac_objext; then
5107 am_cv_prog_cc_c_o=no
5111 rm -f core conftest*
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5115 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5116 if test "$am_cv_prog_cc_c_o" != yes; then
5117 # Losing compiler, so override with the script.
5118 # FIXME: It is wrong to rewrite CC.
5119 # But if we don't then we get into trouble of one sort or another.
5120 # A longer-term fix would be to have automake use am__CC in this case,
5121 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5122 CC="$am_aux_dir/compile $CC"
5125 ac_cpp='$CPP $CPPFLAGS'
5126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5132 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5133 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5135 if test -n "$ac_tool_prefix"; then
5136 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5137 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5139 $as_echo_n "checking for $ac_word... " >&6; }
5140 if ${ac_cv_prog_GDC+:} false; then :
5141 $as_echo_n "(cached) " >&6
5143 if test -n "$GDC"; then
5144 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 test -z "$as_dir" && as_dir=.
5151 for ac_exec_ext in '' $ac_executable_extensions; do
5152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5153 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 if test -n "$GDC"; then
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5166 $as_echo "$GDC" >&6; }
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5169 $as_echo "no" >&6; }
5174 if test -z "$ac_cv_prog_GDC"; then
5176 # Extract the first word of "gdc", so it can be a program name with args.
5177 set dummy gdc; ac_word=$2
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5179 $as_echo_n "checking for $ac_word... " >&6; }
5180 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5181 $as_echo_n "(cached) " >&6
5183 if test -n "$ac_ct_GDC"; then
5184 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 test -z "$as_dir" && as_dir=.
5191 for ac_exec_ext in '' $ac_executable_extensions; do
5192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5193 ac_cv_prog_ac_ct_GDC="gdc"
5194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5204 if test -n "$ac_ct_GDC"; then
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5206 $as_echo "$ac_ct_GDC" >&6; }
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5209 $as_echo "no" >&6; }
5212 if test "x$ac_ct_GDC" = x; then
5215 case $cross_compiling:$ac_tool_warned in
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5219 ac_tool_warned=yes ;;
5224 GDC="$ac_cv_prog_GDC"
5227 if test -z "$GDC"; then
5228 if test -n "$ac_tool_prefix"; then
5229 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5230 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5232 $as_echo_n "checking for $ac_word... " >&6; }
5233 if ${ac_cv_prog_GDC+:} false; then :
5234 $as_echo_n "(cached) " >&6
5236 if test -n "$GDC"; then
5237 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 test -z "$as_dir" && as_dir=.
5244 for ac_exec_ext in '' $ac_executable_extensions; do
5245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5246 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
5247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 if test -n "$GDC"; then
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5259 $as_echo "$GDC" >&6; }
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5262 $as_echo "no" >&6; }
5268 if test -z "$GDC"; then
5269 # Extract the first word of "gdc", so it can be a program name with args.
5270 set dummy gdc; ac_word=$2
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5272 $as_echo_n "checking for $ac_word... " >&6; }
5273 if ${ac_cv_prog_GDC+:} false; then :
5274 $as_echo_n "(cached) " >&6
5276 if test -n "$GDC"; then
5277 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 test -z "$as_dir" && as_dir=.
5285 for ac_exec_ext in '' $ac_executable_extensions; do
5286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5287 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
5288 ac_prog_rejected=yes
5291 ac_cv_prog_GDC="gdc"
5292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5299 if test $ac_prog_rejected = yes; then
5300 # We found a bogon in the path, so make sure we never use it.
5301 set dummy $ac_cv_prog_GDC
5303 if test $# != 0; then
5304 # We chose a different compiler from the bogus one.
5305 # However, it has the same basename, so the bogon will be chosen
5306 # first if we set GDC to just the basename; use the full file name.
5308 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
5314 if test -n "$GDC"; then
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5316 $as_echo "$GDC" >&6; }
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5319 $as_echo "no" >&6; }
5326 # Provide some information about the compiler.
5327 $as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
5330 { { ac_try="$ac_compiler --version >&5"
5332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5333 *) ac_try_echo=$ac_try;;
5335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5336 $as_echo "$ac_try_echo"; } >&5
5337 (eval "$ac_compiler --version >&5") 2>conftest.err
5339 if test -s conftest.err; then
5341 ... rest of stderr output deleted ...
5342 10q' conftest.err >conftest.er1
5343 cat conftest.er1 >&5
5345 rm -f conftest.er1 conftest.err
5346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5347 test $ac_status = 0; }
5349 ac_cpp='$CPP $CPPFLAGS'
5350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
5356 $as_echo_n "checking for absolute libphobos source path... " >&6; }
5357 if ${phobos_cv_abs_srcdir+:} false; then :
5358 $as_echo_n "(cached) " >&6
5360 phobos_cv_abs_srcdir=`cd $srcdir && pwd`
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
5363 $as_echo "$phobos_cv_abs_srcdir" >&6; }
5364 if test -d "$phobos_cv_abs_srcdir"; then :
5367 as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
5373 gdc_save_DFLAGS=$GDCFLAGS
5374 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
5377 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5378 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
5382 $as_echo_n "checking If $GDC can compile D sources... " >&6; }
5383 cat > conftest.$ac_ext <<_ACEOF
5387 extern(C) int main() {
5391 if ac_fn_d_try_compile "$LINENO"; then :
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5393 $as_echo "yes" >&6; }
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5396 $as_echo "no" >&6; }
5397 as_fn_error $? "can't compile D sources!" "$LINENO" 5
5399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5401 ac_cpp='$CPP $CPPFLAGS'
5402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5407 GDCFLAGS=$gdc_save_DFLAGS
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5415 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5416 # Check whether --enable-maintainer-mode was given.
5417 if test "${enable_maintainer_mode+set}" = set; then :
5418 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5420 USE_MAINTAINER_MODE=no
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5424 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5425 if test $USE_MAINTAINER_MODE = yes; then
5426 MAINTAINER_MODE_TRUE=
5427 MAINTAINER_MODE_FALSE='#'
5429 MAINTAINER_MODE_TRUE='#'
5430 MAINTAINER_MODE_FALSE=
5433 MAINT=$MAINTAINER_MODE_TRUE
5436 if test -n "$ac_tool_prefix"; then
5437 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5438 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5440 $as_echo_n "checking for $ac_word... " >&6; }
5441 if ${ac_cv_prog_RANLIB+:} false; then :
5442 $as_echo_n "(cached) " >&6
5444 if test -n "$RANLIB"; then
5445 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451 test -z "$as_dir" && as_dir=.
5452 for ac_exec_ext in '' $ac_executable_extensions; do
5453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5454 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464 RANLIB=$ac_cv_prog_RANLIB
5465 if test -n "$RANLIB"; then
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5467 $as_echo "$RANLIB" >&6; }
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5470 $as_echo "no" >&6; }
5475 if test -z "$ac_cv_prog_RANLIB"; then
5476 ac_ct_RANLIB=$RANLIB
5477 # Extract the first word of "ranlib", so it can be a program name with args.
5478 set dummy ranlib; ac_word=$2
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5480 $as_echo_n "checking for $ac_word... " >&6; }
5481 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5482 $as_echo_n "(cached) " >&6
5484 if test -n "$ac_ct_RANLIB"; then
5485 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491 test -z "$as_dir" && as_dir=.
5492 for ac_exec_ext in '' $ac_executable_extensions; do
5493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5494 ac_cv_prog_ac_ct_RANLIB="ranlib"
5495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5504 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5505 if test -n "$ac_ct_RANLIB"; then
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5507 $as_echo "$ac_ct_RANLIB" >&6; }
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5510 $as_echo "no" >&6; }
5513 if test "x$ac_ct_RANLIB" = x; then
5516 case $cross_compiling:$ac_tool_warned in
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5519 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5520 ac_tool_warned=yes ;;
5522 RANLIB=$ac_ct_RANLIB
5525 RANLIB="$ac_cv_prog_RANLIB"
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5530 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5532 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5533 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5534 $as_echo_n "(cached) " >&6
5536 cat >conftest.make <<\_ACEOF
5539 @echo '@@@%%%=$(MAKE)=@@@%%%'
5541 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5542 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5544 eval ac_cv_prog_make_${ac_make}_set=yes;;
5546 eval ac_cv_prog_make_${ac_make}_set=no;;
5550 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5552 $as_echo "yes" >&6; }
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556 $as_echo "no" >&6; }
5557 SET_MAKE="MAKE=${MAKE-make}"
5561 # This should be inherited in the recursive make, but ensure it is defined.
5565 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5573 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5578 macro_version='2.2.7a'
5579 macro_revision='1.3134'
5593 ltmain="$ac_aux_dir/ltmain.sh"
5595 # Backslashify metacharacters that are still active within
5596 # double-quoted strings.
5597 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5599 # Same as above, but do not quote variable references.
5600 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5602 # Sed substitution to delay expansion of an escaped shell variable in a
5603 # double_quote_subst'ed string.
5604 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5606 # Sed substitution to delay expansion of an escaped single quote.
5607 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5609 # Sed substitution to avoid accidental globbing in evaled expressions
5610 no_glob_subst='s/\*/\\\*/g'
5612 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5613 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5614 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5617 $as_echo_n "checking how to print strings... " >&6; }
5618 # Test print first, because it will be a builtin if present.
5619 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5620 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5622 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5625 # Use this function as a fallback that always works.
5626 func_fallback_echo ()
5628 eval 'cat <<_LTECHO_EOF
5632 ECHO='func_fallback_echo'
5635 # func_echo_all arg...
5636 # Invoke $ECHO with all args, space-separated.
5643 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5644 $as_echo "printf" >&6; } ;;
5645 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5646 $as_echo "print -r" >&6; } ;;
5647 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5648 $as_echo "cat" >&6; } ;;
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5665 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5666 if ${ac_cv_path_SED+:} false; then :
5667 $as_echo_n "(cached) " >&6
5669 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5670 for ac_i in 1 2 3 4 5 6 7; do
5671 ac_script="$ac_script$as_nl$ac_script"
5673 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5674 { ac_script=; unset ac_script;}
5675 if test -z "$SED"; then
5676 ac_path_SED_found=false
5677 # Loop through the user's path and test for each of PROGNAME-LIST
5678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682 test -z "$as_dir" && as_dir=.
5683 for ac_prog in sed gsed; do
5684 for ac_exec_ext in '' $ac_executable_extensions; do
5685 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5686 as_fn_executable_p "$ac_path_SED" || continue
5687 # Check for GNU ac_path_SED and select it if it is found.
5688 # Check for GNU $ac_path_SED
5689 case `"$ac_path_SED" --version 2>&1` in
5691 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5694 $as_echo_n 0123456789 >"conftest.in"
5697 cat "conftest.in" "conftest.in" >"conftest.tmp"
5698 mv "conftest.tmp" "conftest.in"
5699 cp "conftest.in" "conftest.nl"
5700 $as_echo '' >> "conftest.nl"
5701 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5702 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5703 as_fn_arith $ac_count + 1 && ac_count=$as_val
5704 if test $ac_count -gt ${ac_path_SED_max-0}; then
5705 # Best one so far, save it but keep looking for a better one
5706 ac_cv_path_SED="$ac_path_SED"
5707 ac_path_SED_max=$ac_count
5709 # 10*(2^10) chars as input seems more than enough
5710 test $ac_count -gt 10 && break
5712 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5715 $ac_path_SED_found && break 3
5720 if test -z "$ac_cv_path_SED"; then
5721 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5729 $as_echo "$ac_cv_path_SED" >&6; }
5730 SED="$ac_cv_path_SED"
5733 test -z "$SED" && SED=sed
5734 Xsed="$SED -e 1s/^X//"
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5747 $as_echo_n "checking for fgrep... " >&6; }
5748 if ${ac_cv_path_FGREP+:} false; then :
5749 $as_echo_n "(cached) " >&6
5751 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5752 then ac_cv_path_FGREP="$GREP -F"
5754 if test -z "$FGREP"; then
5755 ac_path_FGREP_found=false
5756 # Loop through the user's path and test for each of PROGNAME-LIST
5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5761 test -z "$as_dir" && as_dir=.
5762 for ac_prog in fgrep; do
5763 for ac_exec_ext in '' $ac_executable_extensions; do
5764 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5765 as_fn_executable_p "$ac_path_FGREP" || continue
5766 # Check for GNU ac_path_FGREP and select it if it is found.
5767 # Check for GNU $ac_path_FGREP
5768 case `"$ac_path_FGREP" --version 2>&1` in
5770 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5773 $as_echo_n 0123456789 >"conftest.in"
5776 cat "conftest.in" "conftest.in" >"conftest.tmp"
5777 mv "conftest.tmp" "conftest.in"
5778 cp "conftest.in" "conftest.nl"
5779 $as_echo 'FGREP' >> "conftest.nl"
5780 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5781 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5782 as_fn_arith $ac_count + 1 && ac_count=$as_val
5783 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5784 # Best one so far, save it but keep looking for a better one
5785 ac_cv_path_FGREP="$ac_path_FGREP"
5786 ac_path_FGREP_max=$ac_count
5788 # 10*(2^10) chars as input seems more than enough
5789 test $ac_count -gt 10 && break
5791 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5794 $ac_path_FGREP_found && break 3
5799 if test -z "$ac_cv_path_FGREP"; then
5800 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5803 ac_cv_path_FGREP=$FGREP
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5809 $as_echo "$ac_cv_path_FGREP" >&6; }
5810 FGREP="$ac_cv_path_FGREP"
5813 test -z "$GREP" && GREP=grep
5833 # Check whether --with-gnu-ld was given.
5834 if test "${with_gnu_ld+set}" = set; then :
5835 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5841 if test "$GCC" = yes; then
5842 # Check if gcc -print-prog-name=ld gives a path.
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5844 $as_echo_n "checking for ld used by $CC... " >&6; }
5847 # gcc leaves a trailing carriage return which upsets mingw
5848 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5850 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5853 # Accept absolute paths.
5855 re_direlt='/[^/][^/]*/\.\./'
5856 # Canonicalize the pathname of ld
5857 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5858 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5859 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5861 test -z "$LD" && LD="$ac_prog"
5864 # If it fails, then pretend we aren't using GCC.
5868 # If it is relative, then search for the first ld in PATH.
5872 elif test "$with_gnu_ld" = yes; then
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5874 $as_echo_n "checking for GNU ld... " >&6; }
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5877 $as_echo_n "checking for non-GNU ld... " >&6; }
5879 if ${lt_cv_path_LD+:} false; then :
5880 $as_echo_n "(cached) " >&6
5882 if test -z "$LD"; then
5883 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5884 for ac_dir in $PATH; do
5886 test -z "$ac_dir" && ac_dir=.
5887 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5888 lt_cv_path_LD="$ac_dir/$ac_prog"
5889 # Check to see if the program is GNU ld. I'd rather use --version,
5890 # but apparently some variants of GNU ld only accept -v.
5891 # Break only if it was the GNU/non-GNU ld that we prefer.
5892 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5893 *GNU* | *'with BFD'*)
5894 test "$with_gnu_ld" != no && break
5897 test "$with_gnu_ld" != yes && break
5904 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5909 if test -n "$LD"; then
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5911 $as_echo "$LD" >&6; }
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5914 $as_echo "no" >&6; }
5916 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5918 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5919 if ${lt_cv_prog_gnu_ld+:} false; then :
5920 $as_echo_n "(cached) " >&6
5922 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5923 case `$LD -v 2>&1 </dev/null` in
5924 *GNU* | *'with BFD'*)
5925 lt_cv_prog_gnu_ld=yes
5928 lt_cv_prog_gnu_ld=no
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5933 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5934 with_gnu_ld=$lt_cv_prog_gnu_ld
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5945 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5946 if ${lt_cv_path_NM+:} false; then :
5947 $as_echo_n "(cached) " >&6
5949 if test -n "$NM"; then
5950 # Let the user override the test.
5953 lt_nm_to_check="${ac_tool_prefix}nm"
5954 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5955 lt_nm_to_check="$lt_nm_to_check nm"
5957 for lt_tmp_nm in $lt_nm_to_check; do
5958 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5959 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5961 test -z "$ac_dir" && ac_dir=.
5962 tmp_nm="$ac_dir/$lt_tmp_nm"
5963 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5964 # Check to see if the nm accepts a BSD-compat flag.
5965 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5966 # nm: unknown option "B" ignored
5967 # Tru64's nm complains that /dev/null is an invalid object file
5968 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5969 */dev/null* | *'Invalid file or object type'*)
5970 lt_cv_path_NM="$tmp_nm -B"
5974 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5976 lt_cv_path_NM="$tmp_nm -p"
5980 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5981 continue # so that we can try to find one that supports BSD flags
5990 : ${lt_cv_path_NM=no}
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5994 $as_echo "$lt_cv_path_NM" >&6; }
5995 if test "$lt_cv_path_NM" != "no"; then
5998 # Didn't find any BSD compatible name lister, look for dumpbin.
5999 if test -n "$DUMPBIN"; then :
6000 # Let the user override the test.
6002 if test -n "$ac_tool_prefix"; then
6003 for ac_prog in dumpbin "link -dump"
6005 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6006 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6008 $as_echo_n "checking for $ac_word... " >&6; }
6009 if ${ac_cv_prog_DUMPBIN+:} false; then :
6010 $as_echo_n "(cached) " >&6
6012 if test -n "$DUMPBIN"; then
6013 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019 test -z "$as_dir" && as_dir=.
6020 for ac_exec_ext in '' $ac_executable_extensions; do
6021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6022 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 DUMPBIN=$ac_cv_prog_DUMPBIN
6033 if test -n "$DUMPBIN"; then
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6035 $as_echo "$DUMPBIN" >&6; }
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6038 $as_echo "no" >&6; }
6042 test -n "$DUMPBIN" && break
6045 if test -z "$DUMPBIN"; then
6046 ac_ct_DUMPBIN=$DUMPBIN
6047 for ac_prog in dumpbin "link -dump"
6049 # Extract the first word of "$ac_prog", so it can be a program name with args.
6050 set dummy $ac_prog; ac_word=$2
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6052 $as_echo_n "checking for $ac_word... " >&6; }
6053 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6054 $as_echo_n "(cached) " >&6
6056 if test -n "$ac_ct_DUMPBIN"; then
6057 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 test -z "$as_dir" && as_dir=.
6064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6066 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6076 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6077 if test -n "$ac_ct_DUMPBIN"; then
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6079 $as_echo "$ac_ct_DUMPBIN" >&6; }
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6082 $as_echo "no" >&6; }
6086 test -n "$ac_ct_DUMPBIN" && break
6089 if test "x$ac_ct_DUMPBIN" = x; then
6092 case $cross_compiling:$ac_tool_warned in
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6096 ac_tool_warned=yes ;;
6098 DUMPBIN=$ac_ct_DUMPBIN
6102 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6104 DUMPBIN="$DUMPBIN -symbols"
6112 if test "$DUMPBIN" != ":"; then
6116 test -z "$NM" && NM=nm
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6124 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6125 if ${lt_cv_nm_interface+:} false; then :
6126 $as_echo_n "(cached) " >&6
6128 lt_cv_nm_interface="BSD nm"
6129 echo "int some_variable = 0;" > conftest.$ac_ext
6130 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6131 (eval "$ac_compile" 2>conftest.err)
6132 cat conftest.err >&5
6133 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6134 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6135 cat conftest.err >&5
6136 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6137 cat conftest.out >&5
6138 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6139 lt_cv_nm_interface="MS dumpbin"
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6144 $as_echo "$lt_cv_nm_interface" >&6; }
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6147 $as_echo_n "checking whether ln -s works... " >&6; }
6149 if test "$LN_S" = "ln -s"; then
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6151 $as_echo "yes" >&6; }
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6154 $as_echo "no, using $LN_S" >&6; }
6157 # find the maximum length of command line arguments
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6159 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6160 if ${lt_cv_sys_max_cmd_len+:} false; then :
6161 $as_echo_n "(cached) " >&6
6168 # On DJGPP, this test can blow up pretty badly due to problems in libc
6169 # (any single argument exceeding 2000 bytes causes a buffer overrun
6170 # during glob expansion). Even if it were fixed, the result of this
6171 # check would be larger than it should be.
6172 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6176 # Under GNU Hurd, this test is not required because there is
6177 # no limit to the length of command line arguments.
6178 # Libtool will interpret -1 as no limit whatsoever
6179 lt_cv_sys_max_cmd_len=-1;
6182 cygwin* | mingw* | cegcc*)
6183 # On Win9x/ME, this test blows up -- it succeeds, but takes
6184 # about 5 minutes as the teststring grows exponentially.
6185 # Worse, since 9x/ME are not pre-emptively multitasking,
6186 # you end up with a "frozen" computer, even though with patience
6187 # the test eventually succeeds (with a max line length of 256k).
6188 # Instead, let's just punt: use the minimum linelength reported by
6189 # all of the supported platforms: 8192 (on NT/2K/XP).
6190 lt_cv_sys_max_cmd_len=8192;
6194 # On MiNT this can take a long time and run out of memory.
6195 lt_cv_sys_max_cmd_len=8192;
6199 # On AmigaOS with pdksh, this test takes hours, literally.
6200 # So we just punt and use a minimum line length of 8192.
6201 lt_cv_sys_max_cmd_len=8192;
6204 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6205 # This has been around since 386BSD, at least. Likely further.
6206 if test -x /sbin/sysctl; then
6207 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6208 elif test -x /usr/sbin/sysctl; then
6209 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6211 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6213 # And add a safety zone
6214 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6215 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6219 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6220 lt_cv_sys_max_cmd_len=196608
6224 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6225 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6226 # nice to cause kernel panics so lets avoid the loop below.
6227 # First set a reasonable default.
6228 lt_cv_sys_max_cmd_len=16384
6230 if test -x /sbin/sysconfig; then
6231 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6232 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6237 lt_cv_sys_max_cmd_len=102400
6239 sysv5* | sco5v6* | sysv4.2uw2*)
6240 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6241 if test -n "$kargmax"; then
6242 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6244 lt_cv_sys_max_cmd_len=32768
6248 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6249 if test -n "$lt_cv_sys_max_cmd_len"; then
6250 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6251 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6253 # Make teststring a little bigger before we do anything with it.
6254 # a 1K string should be a reasonable start.
6255 for i in 1 2 3 4 5 6 7 8 ; do
6256 teststring=$teststring$teststring
6258 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6259 # If test is not a shell built-in, we'll probably end up computing a
6260 # maximum length that is only half of the actual maximum length, but
6262 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6263 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6264 test $i != 17 # 1/2 MB should be enough
6267 teststring=$teststring$teststring
6269 # Only check the string length outside the loop.
6270 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6272 # Add a significant safety factor because C++ compilers can tack on
6273 # massive amounts of additional arguments before passing them to the
6274 # linker. It appears as though 1/2 is a usable value.
6275 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6282 if test -n $lt_cv_sys_max_cmd_len ; then
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6284 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6287 $as_echo "none" >&6; }
6289 max_cmd_len=$lt_cv_sys_max_cmd_len
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6301 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6302 # Try some XSI features
6305 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6307 && eval 'test $(( 1 + 1 )) -eq 2 \
6308 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6311 $as_echo "$xsi_shell" >&6; }
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6315 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6317 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6319 && lt_shell_append=yes
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6321 $as_echo "$lt_shell_append" >&6; }
6324 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6334 # test EBCDIC or ASCII
6335 case `echo X|tr X '\101'` in
6336 A) # ASCII based system
6337 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6338 lt_SP2NL='tr \040 \012'
6339 lt_NL2SP='tr \015\012 \040\040'
6341 *) # EBCDIC based system
6342 lt_SP2NL='tr \100 \n'
6343 lt_NL2SP='tr \r\n \100\100'
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6356 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6357 if ${lt_cv_ld_reload_flag+:} false; then :
6358 $as_echo_n "(cached) " >&6
6360 lt_cv_ld_reload_flag='-r'
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6363 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6364 reload_flag=$lt_cv_ld_reload_flag
6365 case $reload_flag in
6367 *) reload_flag=" $reload_flag" ;;
6369 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6372 if test "$GCC" = yes; then
6373 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6375 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6388 if test -n "$ac_tool_prefix"; then
6389 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6390 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6392 $as_echo_n "checking for $ac_word... " >&6; }
6393 if ${ac_cv_prog_OBJDUMP+:} false; then :
6394 $as_echo_n "(cached) " >&6
6396 if test -n "$OBJDUMP"; then
6397 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 test -z "$as_dir" && as_dir=.
6404 for ac_exec_ext in '' $ac_executable_extensions; do
6405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6406 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6416 OBJDUMP=$ac_cv_prog_OBJDUMP
6417 if test -n "$OBJDUMP"; then
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6419 $as_echo "$OBJDUMP" >&6; }
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422 $as_echo "no" >&6; }
6427 if test -z "$ac_cv_prog_OBJDUMP"; then
6428 ac_ct_OBJDUMP=$OBJDUMP
6429 # Extract the first word of "objdump", so it can be a program name with args.
6430 set dummy objdump; ac_word=$2
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6432 $as_echo_n "checking for $ac_word... " >&6; }
6433 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6434 $as_echo_n "(cached) " >&6
6436 if test -n "$ac_ct_OBJDUMP"; then
6437 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443 test -z "$as_dir" && as_dir=.
6444 for ac_exec_ext in '' $ac_executable_extensions; do
6445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6446 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6456 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6457 if test -n "$ac_ct_OBJDUMP"; then
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6459 $as_echo "$ac_ct_OBJDUMP" >&6; }
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6462 $as_echo "no" >&6; }
6465 if test "x$ac_ct_OBJDUMP" = x; then
6468 case $cross_compiling:$ac_tool_warned in
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6472 ac_tool_warned=yes ;;
6474 OBJDUMP=$ac_ct_OBJDUMP
6477 OBJDUMP="$ac_cv_prog_OBJDUMP"
6480 test -z "$OBJDUMP" && OBJDUMP=objdump
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6491 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6492 if ${lt_cv_deplibs_check_method+:} false; then :
6493 $as_echo_n "(cached) " >&6
6495 lt_cv_file_magic_cmd='$MAGIC_CMD'
6496 lt_cv_file_magic_test_file=
6497 lt_cv_deplibs_check_method='unknown'
6498 # Need to set the preceding variable on all platforms that support
6499 # interlibrary dependencies.
6500 # 'none' -- dependencies not supported.
6501 # `unknown' -- same as none, but documents that we really don't know.
6502 # 'pass_all' -- all dependencies passed with no checks.
6503 # 'test_compile' -- check by making test program.
6504 # 'file_magic [[regex]]' -- check by looking for files in library path
6505 # which responds to the $file_magic_cmd with a given extended regex.
6506 # If you have `file' or equivalent on your system and you're not sure
6507 # whether `pass_all' will *always* work, you probably want this one.
6511 lt_cv_deplibs_check_method=pass_all
6515 lt_cv_deplibs_check_method=pass_all
6519 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6520 lt_cv_file_magic_cmd='/usr/bin/file -L'
6521 lt_cv_file_magic_test_file=/shlib/libc.so
6525 # func_win32_libid is a shell function defined in ltmain.sh
6526 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6527 lt_cv_file_magic_cmd='func_win32_libid'
6531 # Base MSYS/MinGW do not provide the 'file' command needed by
6532 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6533 # unless we find 'file', for example because we are cross-compiling.
6534 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6535 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6536 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6537 lt_cv_file_magic_cmd='func_win32_libid'
6539 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6540 lt_cv_file_magic_cmd='$OBJDUMP -f'
6545 # use the weaker test based on 'objdump'. See mingw*.
6546 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6547 lt_cv_file_magic_cmd='$OBJDUMP -f'
6550 darwin* | rhapsody*)
6551 lt_cv_deplibs_check_method=pass_all
6554 freebsd* | dragonfly*)
6555 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6558 # Not sure whether the presence of OpenBSD here was a mistake.
6559 # Let's accept both of them until this is cleared up.
6560 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6561 lt_cv_file_magic_cmd=/usr/bin/file
6562 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6566 lt_cv_deplibs_check_method=pass_all
6571 lt_cv_deplibs_check_method=pass_all
6575 lt_cv_deplibs_check_method=pass_all
6578 hpux10.20* | hpux11*)
6579 lt_cv_file_magic_cmd=/usr/bin/file
6582 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6583 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6586 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]'
6587 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6590 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6591 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6597 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6598 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6601 irix5* | irix6* | nonstopux*)
6603 *-32|*"-32 ") libmagic=32-bit;;
6604 *-n32|*"-n32 ") libmagic=N32;;
6605 *-64|*"-64 ") libmagic=64-bit;;
6606 *) libmagic=never-match;;
6608 lt_cv_deplibs_check_method=pass_all
6611 # This must be Linux ELF.
6612 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6613 lt_cv_deplibs_check_method=pass_all
6617 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6618 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6620 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6625 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6626 lt_cv_file_magic_cmd=/usr/bin/file
6627 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6631 lt_cv_deplibs_check_method=pass_all
6635 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6636 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6638 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6642 osf3* | osf4* | osf5*)
6643 lt_cv_deplibs_check_method=pass_all
6647 lt_cv_deplibs_check_method=pass_all
6651 lt_cv_deplibs_check_method=pass_all
6654 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6655 lt_cv_deplibs_check_method=pass_all
6659 case $host_vendor in
6661 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]'
6662 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6665 lt_cv_deplibs_check_method=pass_all
6668 lt_cv_file_magic_cmd='/bin/file'
6669 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6672 lt_cv_file_magic_cmd='/bin/file'
6673 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6674 lt_cv_file_magic_test_file=/lib/libc.so
6677 lt_cv_deplibs_check_method=pass_all
6680 lt_cv_deplibs_check_method=pass_all
6686 lt_cv_deplibs_check_method=pass_all
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6692 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6693 file_magic_cmd=$lt_cv_file_magic_cmd
6694 deplibs_check_method=$lt_cv_deplibs_check_method
6695 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6708 if test -n "$ac_tool_prefix"; then
6709 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6710 set dummy ${ac_tool_prefix}ar; ac_word=$2
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6712 $as_echo_n "checking for $ac_word... " >&6; }
6713 if ${ac_cv_prog_AR+:} false; then :
6714 $as_echo_n "(cached) " >&6
6716 if test -n "$AR"; then
6717 ac_cv_prog_AR="$AR" # Let the user override the test.
6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 test -z "$as_dir" && as_dir=.
6724 for ac_exec_ext in '' $ac_executable_extensions; do
6725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6726 ac_cv_prog_AR="${ac_tool_prefix}ar"
6727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6737 if test -n "$AR"; then
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6739 $as_echo "$AR" >&6; }
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6742 $as_echo "no" >&6; }
6747 if test -z "$ac_cv_prog_AR"; then
6749 # Extract the first word of "ar", so it can be a program name with args.
6750 set dummy ar; ac_word=$2
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6752 $as_echo_n "checking for $ac_word... " >&6; }
6753 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6754 $as_echo_n "(cached) " >&6
6756 if test -n "$ac_ct_AR"; then
6757 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 test -z "$as_dir" && as_dir=.
6764 for ac_exec_ext in '' $ac_executable_extensions; do
6765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6766 ac_cv_prog_ac_ct_AR="ar"
6767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6776 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6777 if test -n "$ac_ct_AR"; then
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6779 $as_echo "$ac_ct_AR" >&6; }
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6782 $as_echo "no" >&6; }
6785 if test "x$ac_ct_AR" = x; then
6788 case $cross_compiling:$ac_tool_warned in
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6792 ac_tool_warned=yes ;;
6800 test -z "$AR" && AR=ar
6801 test -z "$AR_FLAGS" && AR_FLAGS=cru
6813 if test -n "$ac_tool_prefix"; then
6814 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6815 set dummy ${ac_tool_prefix}strip; ac_word=$2
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6817 $as_echo_n "checking for $ac_word... " >&6; }
6818 if ${ac_cv_prog_STRIP+:} false; then :
6819 $as_echo_n "(cached) " >&6
6821 if test -n "$STRIP"; then
6822 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6831 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 STRIP=$ac_cv_prog_STRIP
6842 if test -n "$STRIP"; then
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6844 $as_echo "$STRIP" >&6; }
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847 $as_echo "no" >&6; }
6852 if test -z "$ac_cv_prog_STRIP"; then
6854 # Extract the first word of "strip", so it can be a program name with args.
6855 set dummy strip; ac_word=$2
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6857 $as_echo_n "checking for $ac_word... " >&6; }
6858 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6859 $as_echo_n "(cached) " >&6
6861 if test -n "$ac_ct_STRIP"; then
6862 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 test -z "$as_dir" && as_dir=.
6869 for ac_exec_ext in '' $ac_executable_extensions; do
6870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6871 ac_cv_prog_ac_ct_STRIP="strip"
6872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6882 if test -n "$ac_ct_STRIP"; then
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6884 $as_echo "$ac_ct_STRIP" >&6; }
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6887 $as_echo "no" >&6; }
6890 if test "x$ac_ct_STRIP" = x; then
6893 case $cross_compiling:$ac_tool_warned in
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6897 ac_tool_warned=yes ;;
6902 STRIP="$ac_cv_prog_STRIP"
6905 test -z "$STRIP" && STRIP=:
6912 if test -n "$ac_tool_prefix"; then
6913 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6914 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if ${ac_cv_prog_RANLIB+:} false; then :
6918 $as_echo_n "(cached) " >&6
6920 if test -n "$RANLIB"; then
6921 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6930 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6940 RANLIB=$ac_cv_prog_RANLIB
6941 if test -n "$RANLIB"; then
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6943 $as_echo "$RANLIB" >&6; }
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946 $as_echo "no" >&6; }
6951 if test -z "$ac_cv_prog_RANLIB"; then
6952 ac_ct_RANLIB=$RANLIB
6953 # Extract the first word of "ranlib", so it can be a program name with args.
6954 set dummy ranlib; ac_word=$2
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6956 $as_echo_n "checking for $ac_word... " >&6; }
6957 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6958 $as_echo_n "(cached) " >&6
6960 if test -n "$ac_ct_RANLIB"; then
6961 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 test -z "$as_dir" && as_dir=.
6968 for ac_exec_ext in '' $ac_executable_extensions; do
6969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6970 ac_cv_prog_ac_ct_RANLIB="ranlib"
6971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6980 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6981 if test -n "$ac_ct_RANLIB"; then
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6983 $as_echo "$ac_ct_RANLIB" >&6; }
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986 $as_echo "no" >&6; }
6989 if test "x$ac_ct_RANLIB" = x; then
6992 case $cross_compiling:$ac_tool_warned in
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6996 ac_tool_warned=yes ;;
6998 RANLIB=$ac_ct_RANLIB
7001 RANLIB="$ac_cv_prog_RANLIB"
7004 test -z "$RANLIB" && RANLIB=:
7011 # Determine commands to create old-style static archives.
7012 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7013 old_postinstall_cmds='chmod 644 $oldlib'
7014 old_postuninstall_cmds=
7016 if test -n "$RANLIB"; then
7019 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7022 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7025 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7030 lock_old_archive_extraction=yes ;;
7032 lock_old_archive_extraction=no ;;
7073 # If no C compiler was specified, use CC.
7076 # If no C compiler flags were specified, use CFLAGS.
7077 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7079 # Allow CC to be a program name with arguments.
7083 # Check for command to grab the raw symbol name followed by C symbol from nm.
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7085 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7086 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7087 $as_echo_n "(cached) " >&6
7090 # These are sane defaults that work on at least a few old systems.
7091 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7093 # Character class describing NM global symbol codes.
7094 symcode='[BCDEGRST]'
7096 # Regexp to match symbols that can be accessed directly from C.
7097 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7099 # Define system-specific variables.
7104 cygwin* | mingw* | pw32* | cegcc*)
7105 symcode='[ABCDGISTW]'
7108 if test "$host_cpu" = ia64; then
7109 symcode='[ABCDEGRST]'
7113 symcode='[BCDEGRST]'
7116 symcode='[BCDEGQRST]'
7127 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7135 # If we're using GNU nm, then use its standard symbol codes.
7136 case `$NM -V 2>&1` in
7137 *GNU* | *'with BFD'*)
7138 symcode='[ABCDGIRSTW]' ;;
7141 # Transform an extracted symbol line into a proper C declaration.
7142 # Some systems (esp. on ia64) link data and code symbols differently,
7143 # so use this general approach.
7144 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7146 # Transform an extracted symbol line into symbol name and symbol address
7147 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7148 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'"
7150 # Handle CRLF in mingw tool chain
7154 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7158 # Try without a prefix underscore, then with it.
7159 for ac_symprfx in "" "_"; do
7161 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7162 symxfrm="\\1 $ac_symprfx\\2 \\2"
7164 # Write the raw and C identifiers.
7165 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7166 # Fake it for dumpbin and say T for any non-static function
7167 # and D for any global variable.
7168 # Also find C++ and __fastcall symbols from MSVC++,
7169 # which start with @ or ?.
7170 lt_cv_sys_global_symbol_pipe="$AWK '"\
7171 " {last_section=section; section=\$ 3};"\
7172 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7173 " \$ 0!~/External *\|/{next};"\
7174 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7175 " {if(hide[section]) next};"\
7176 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7177 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7178 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7179 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7180 " ' prfx=^$ac_symprfx"
7182 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7185 # Check to see that the pipe works correctly.
7189 cat > conftest.$ac_ext <<_LT_EOF
7194 void nm_test_func(void);
7195 void nm_test_func(void){}
7199 int main(){nm_test_var='a';nm_test_func();return(0);}
7202 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7203 (eval $ac_compile) 2>&5
7205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7206 test $ac_status = 0; }; then
7207 # Now try to grab the symbols.
7209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7210 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7213 test $ac_status = 0; } && test -s "$nlist"; then
7214 # Try sorting and uniquifying the output.
7215 if sort "$nlist" | uniq > "$nlist"T; then
7216 mv -f "$nlist"T "$nlist"
7221 # Make sure that we snagged all the symbols we need.
7222 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7223 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7224 cat <<_LT_EOF > conftest.$ac_ext
7230 # Now generate the symbol file.
7231 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7233 cat <<_LT_EOF >> conftest.$ac_ext
7235 /* The mapping between symbol names and symbols. */
7240 lt__PROGRAM__LTX_preloaded_symbols[] =
7242 { "@PROGRAM@", (void *) 0 },
7244 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7245 cat <<\_LT_EOF >> conftest.$ac_ext
7249 /* This works around a problem in FreeBSD linker */
7250 #ifdef FREEBSD_WORKAROUND
7251 static const void *lt_preloaded_setup() {
7252 return lt__PROGRAM__LTX_preloaded_symbols;
7260 # Now try linking the two files.
7261 mv conftest.$ac_objext conftstm.$ac_objext
7262 lt_save_LIBS="$LIBS"
7263 lt_save_CFLAGS="$CFLAGS"
7264 LIBS="conftstm.$ac_objext"
7265 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7267 (eval $ac_link) 2>&5
7269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7270 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7273 LIBS="$lt_save_LIBS"
7274 CFLAGS="$lt_save_CFLAGS"
7276 echo "cannot find nm_test_func in $nlist" >&5
7279 echo "cannot find nm_test_var in $nlist" >&5
7282 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7285 echo "$progname: failed program was:" >&5
7286 cat conftest.$ac_ext >&5
7288 rm -rf conftest* conftst*
7290 # Do not use the global_symbol_pipe unless it works.
7291 if test "$pipe_works" = yes; then
7294 lt_cv_sys_global_symbol_pipe=
7300 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7301 lt_cv_sys_global_symbol_to_cdecl=
7303 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7305 $as_echo "failed" >&6; }
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7308 $as_echo "ok" >&6; }
7332 # Check whether --enable-libtool-lock was given.
7333 if test "${enable_libtool_lock+set}" = set; then :
7334 enableval=$enable_libtool_lock;
7337 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7339 # Some flags need to be propagated to the compiler or linker for good
7343 # Find out which ABI we are using.
7344 echo 'int i;' > conftest.$ac_ext
7345 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7346 (eval $ac_compile) 2>&5
7348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7349 test $ac_status = 0; }; then
7350 case `/usr/bin/file conftest.$ac_objext` in
7362 # Find out which ABI we are using.
7363 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7365 (eval $ac_compile) 2>&5
7367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7368 test $ac_status = 0; }; then
7369 if test "$lt_cv_prog_gnu_ld" = yes; then
7370 case `/usr/bin/file conftest.$ac_objext` in
7372 LD="${LD-ld} -melf32bsmip"
7375 LD="${LD-ld} -melf32bmipn32"
7378 LD="${LD-ld} -melf64bmip"
7382 case `/usr/bin/file conftest.$ac_objext` in
7398 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7399 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7400 # Find out which ABI we are using.
7401 echo 'int i;' > conftest.$ac_ext
7402 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7403 (eval $ac_compile) 2>&5
7405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7406 test $ac_status = 0; }; then
7407 case `/usr/bin/file conftest.o` in
7410 x86_64-*kfreebsd*-gnu)
7411 LD="${LD-ld} -m elf_i386_fbsd"
7414 case `/usr/bin/file conftest.o` in
7416 LD="${LD-ld} -m elf32_x86_64"
7419 LD="${LD-ld} -m elf_i386"
7423 powerpc64le-*linux*)
7424 LD="${LD-ld} -m elf32lppclinux"
7427 LD="${LD-ld} -m elf32ppclinux"
7430 LD="${LD-ld} -m elf_s390"
7433 LD="${LD-ld} -m elf32_sparc"
7439 x86_64-*kfreebsd*-gnu)
7440 LD="${LD-ld} -m elf_x86_64_fbsd"
7443 LD="${LD-ld} -m elf_x86_64"
7446 LD="${LD-ld} -m elf64lppc"
7449 LD="${LD-ld} -m elf64ppc"
7451 s390*-*linux*|s390*-*tpf*)
7452 LD="${LD-ld} -m elf64_s390"
7455 LD="${LD-ld} -m elf64_sparc"
7465 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7466 SAVE_CFLAGS="$CFLAGS"
7467 CFLAGS="$CFLAGS -belf"
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7469 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7470 if ${lt_cv_cc_needs_belf+:} false; then :
7471 $as_echo_n "(cached) " >&6
7474 ac_cpp='$CPP $CPPFLAGS'
7475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7480 /* end confdefs.h. */
7490 if ac_fn_c_try_link "$LINENO"; then :
7491 lt_cv_cc_needs_belf=yes
7493 lt_cv_cc_needs_belf=no
7495 rm -f core conftest.err conftest.$ac_objext \
7496 conftest$ac_exeext conftest.$ac_ext
7498 ac_cpp='$CPP $CPPFLAGS'
7499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7505 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7506 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7507 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7508 CFLAGS="$SAVE_CFLAGS"
7512 # Find out which ABI we are using.
7513 echo 'int i;' > conftest.$ac_ext
7514 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7515 (eval $ac_compile) 2>&5
7517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7518 test $ac_status = 0; }; then
7519 case `/usr/bin/file conftest.o` in
7521 case $lt_cv_prog_gnu_ld in
7522 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7524 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7536 need_locks="$enable_libtool_lock"
7540 rhapsody* | darwin*)
7541 if test -n "$ac_tool_prefix"; then
7542 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7543 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7545 $as_echo_n "checking for $ac_word... " >&6; }
7546 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7547 $as_echo_n "(cached) " >&6
7549 if test -n "$DSYMUTIL"; then
7550 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 test -z "$as_dir" && as_dir=.
7557 for ac_exec_ext in '' $ac_executable_extensions; do
7558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7559 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7569 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7570 if test -n "$DSYMUTIL"; then
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7572 $as_echo "$DSYMUTIL" >&6; }
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7575 $as_echo "no" >&6; }
7580 if test -z "$ac_cv_prog_DSYMUTIL"; then
7581 ac_ct_DSYMUTIL=$DSYMUTIL
7582 # Extract the first word of "dsymutil", so it can be a program name with args.
7583 set dummy dsymutil; ac_word=$2
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7585 $as_echo_n "checking for $ac_word... " >&6; }
7586 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7587 $as_echo_n "(cached) " >&6
7589 if test -n "$ac_ct_DSYMUTIL"; then
7590 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 test -z "$as_dir" && as_dir=.
7597 for ac_exec_ext in '' $ac_executable_extensions; do
7598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7599 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7609 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7610 if test -n "$ac_ct_DSYMUTIL"; then
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7612 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7615 $as_echo "no" >&6; }
7618 if test "x$ac_ct_DSYMUTIL" = x; then
7621 case $cross_compiling:$ac_tool_warned in
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7625 ac_tool_warned=yes ;;
7627 DSYMUTIL=$ac_ct_DSYMUTIL
7630 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7633 if test -n "$ac_tool_prefix"; then
7634 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7635 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7637 $as_echo_n "checking for $ac_word... " >&6; }
7638 if ${ac_cv_prog_NMEDIT+:} false; then :
7639 $as_echo_n "(cached) " >&6
7641 if test -n "$NMEDIT"; then
7642 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648 test -z "$as_dir" && as_dir=.
7649 for ac_exec_ext in '' $ac_executable_extensions; do
7650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7651 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7661 NMEDIT=$ac_cv_prog_NMEDIT
7662 if test -n "$NMEDIT"; then
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7664 $as_echo "$NMEDIT" >&6; }
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7667 $as_echo "no" >&6; }
7672 if test -z "$ac_cv_prog_NMEDIT"; then
7673 ac_ct_NMEDIT=$NMEDIT
7674 # Extract the first word of "nmedit", so it can be a program name with args.
7675 set dummy nmedit; ac_word=$2
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7677 $as_echo_n "checking for $ac_word... " >&6; }
7678 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7679 $as_echo_n "(cached) " >&6
7681 if test -n "$ac_ct_NMEDIT"; then
7682 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688 test -z "$as_dir" && as_dir=.
7689 for ac_exec_ext in '' $ac_executable_extensions; do
7690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7691 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7701 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7702 if test -n "$ac_ct_NMEDIT"; then
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7704 $as_echo "$ac_ct_NMEDIT" >&6; }
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707 $as_echo "no" >&6; }
7710 if test "x$ac_ct_NMEDIT" = x; then
7713 case $cross_compiling:$ac_tool_warned in
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7717 ac_tool_warned=yes ;;
7719 NMEDIT=$ac_ct_NMEDIT
7722 NMEDIT="$ac_cv_prog_NMEDIT"
7725 if test -n "$ac_tool_prefix"; then
7726 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7727 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7729 $as_echo_n "checking for $ac_word... " >&6; }
7730 if ${ac_cv_prog_LIPO+:} false; then :
7731 $as_echo_n "(cached) " >&6
7733 if test -n "$LIPO"; then
7734 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740 test -z "$as_dir" && as_dir=.
7741 for ac_exec_ext in '' $ac_executable_extensions; do
7742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7743 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7753 LIPO=$ac_cv_prog_LIPO
7754 if test -n "$LIPO"; then
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7756 $as_echo "$LIPO" >&6; }
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759 $as_echo "no" >&6; }
7764 if test -z "$ac_cv_prog_LIPO"; then
7766 # Extract the first word of "lipo", so it can be a program name with args.
7767 set dummy lipo; ac_word=$2
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7769 $as_echo_n "checking for $ac_word... " >&6; }
7770 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7771 $as_echo_n "(cached) " >&6
7773 if test -n "$ac_ct_LIPO"; then
7774 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780 test -z "$as_dir" && as_dir=.
7781 for ac_exec_ext in '' $ac_executable_extensions; do
7782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7783 ac_cv_prog_ac_ct_LIPO="lipo"
7784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7793 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7794 if test -n "$ac_ct_LIPO"; then
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7796 $as_echo "$ac_ct_LIPO" >&6; }
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7799 $as_echo "no" >&6; }
7802 if test "x$ac_ct_LIPO" = x; then
7805 case $cross_compiling:$ac_tool_warned in
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7809 ac_tool_warned=yes ;;
7814 LIPO="$ac_cv_prog_LIPO"
7817 if test -n "$ac_tool_prefix"; then
7818 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7819 set dummy ${ac_tool_prefix}otool; ac_word=$2
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7821 $as_echo_n "checking for $ac_word... " >&6; }
7822 if ${ac_cv_prog_OTOOL+:} false; then :
7823 $as_echo_n "(cached) " >&6
7825 if test -n "$OTOOL"; then
7826 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7832 test -z "$as_dir" && as_dir=.
7833 for ac_exec_ext in '' $ac_executable_extensions; do
7834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7835 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7845 OTOOL=$ac_cv_prog_OTOOL
7846 if test -n "$OTOOL"; then
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7848 $as_echo "$OTOOL" >&6; }
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7851 $as_echo "no" >&6; }
7856 if test -z "$ac_cv_prog_OTOOL"; then
7858 # Extract the first word of "otool", so it can be a program name with args.
7859 set dummy otool; ac_word=$2
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7861 $as_echo_n "checking for $ac_word... " >&6; }
7862 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7863 $as_echo_n "(cached) " >&6
7865 if test -n "$ac_ct_OTOOL"; then
7866 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872 test -z "$as_dir" && as_dir=.
7873 for ac_exec_ext in '' $ac_executable_extensions; do
7874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7875 ac_cv_prog_ac_ct_OTOOL="otool"
7876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7885 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7886 if test -n "$ac_ct_OTOOL"; then
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7888 $as_echo "$ac_ct_OTOOL" >&6; }
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7891 $as_echo "no" >&6; }
7894 if test "x$ac_ct_OTOOL" = x; then
7897 case $cross_compiling:$ac_tool_warned in
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7901 ac_tool_warned=yes ;;
7906 OTOOL="$ac_cv_prog_OTOOL"
7909 if test -n "$ac_tool_prefix"; then
7910 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7911 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7913 $as_echo_n "checking for $ac_word... " >&6; }
7914 if ${ac_cv_prog_OTOOL64+:} false; then :
7915 $as_echo_n "(cached) " >&6
7917 if test -n "$OTOOL64"; then
7918 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7924 test -z "$as_dir" && as_dir=.
7925 for ac_exec_ext in '' $ac_executable_extensions; do
7926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7927 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7937 OTOOL64=$ac_cv_prog_OTOOL64
7938 if test -n "$OTOOL64"; then
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7940 $as_echo "$OTOOL64" >&6; }
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7943 $as_echo "no" >&6; }
7948 if test -z "$ac_cv_prog_OTOOL64"; then
7949 ac_ct_OTOOL64=$OTOOL64
7950 # Extract the first word of "otool64", so it can be a program name with args.
7951 set dummy otool64; ac_word=$2
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7953 $as_echo_n "checking for $ac_word... " >&6; }
7954 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7955 $as_echo_n "(cached) " >&6
7957 if test -n "$ac_ct_OTOOL64"; then
7958 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964 test -z "$as_dir" && as_dir=.
7965 for ac_exec_ext in '' $ac_executable_extensions; do
7966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7967 ac_cv_prog_ac_ct_OTOOL64="otool64"
7968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7977 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7978 if test -n "$ac_ct_OTOOL64"; then
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7980 $as_echo "$ac_ct_OTOOL64" >&6; }
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7983 $as_echo "no" >&6; }
7986 if test "x$ac_ct_OTOOL64" = x; then
7989 case $cross_compiling:$ac_tool_warned in
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7993 ac_tool_warned=yes ;;
7995 OTOOL64=$ac_ct_OTOOL64
7998 OTOOL64="$ac_cv_prog_OTOOL64"
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8028 $as_echo_n "checking for -single_module linker flag... " >&6; }
8029 if ${lt_cv_apple_cc_single_mod+:} false; then :
8030 $as_echo_n "(cached) " >&6
8032 lt_cv_apple_cc_single_mod=no
8033 if test -z "${LT_MULTI_MODULE}"; then
8034 # By default we will add the -single_module flag. You can override
8035 # by either setting the environment variable LT_MULTI_MODULE
8036 # non-empty at configure time, or by adding -multi_module to the
8038 rm -rf libconftest.dylib*
8039 echo "int foo(void){return 1;}" > conftest.c
8040 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8041 -dynamiclib -Wl,-single_module conftest.c" >&5
8042 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8043 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8045 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8046 lt_cv_apple_cc_single_mod=yes
8048 cat conftest.err >&5
8050 rm -rf libconftest.dylib*
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8055 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8057 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8058 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8059 $as_echo_n "(cached) " >&6
8061 lt_cv_ld_exported_symbols_list=no
8062 save_LDFLAGS=$LDFLAGS
8063 echo "_main" > conftest.sym
8064 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8066 /* end confdefs.h. */
8076 if ac_fn_c_try_link "$LINENO"; then :
8077 lt_cv_ld_exported_symbols_list=yes
8079 lt_cv_ld_exported_symbols_list=no
8081 rm -f core conftest.err conftest.$ac_objext \
8082 conftest$ac_exeext conftest.$ac_ext
8083 LDFLAGS="$save_LDFLAGS"
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8087 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8089 $as_echo_n "checking for -force_load linker flag... " >&6; }
8090 if ${lt_cv_ld_force_load+:} false; then :
8091 $as_echo_n "(cached) " >&6
8093 lt_cv_ld_force_load=no
8094 cat > conftest.c << _LT_EOF
8095 int forced_loaded() { return 2;}
8097 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8098 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8099 echo "$AR cru libconftest.a conftest.o" >&5
8100 $AR cru libconftest.a conftest.o 2>&5
8101 cat > conftest.c << _LT_EOF
8102 int main() { return 0;}
8104 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8105 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8107 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8108 lt_cv_ld_force_load=yes
8110 cat conftest.err >&5
8112 rm -f conftest.err libconftest.a conftest conftest.c
8113 rm -rf conftest.dSYM
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8117 $as_echo "$lt_cv_ld_force_load" >&6; }
8119 rhapsody* | darwin1.[012])
8120 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8122 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8123 darwin*) # darwin 5.x on
8124 # if running on 10.5 or later, the deployment target defaults
8125 # to the OS version, if on x86, and 10.4, the deployment
8126 # target defaults to 10.4. Don't you love it?
8127 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8128 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8129 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8131 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8133 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8137 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8138 _lt_dar_single_mod='$single_module'
8140 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8141 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8143 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8145 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8146 _lt_dsymutil='~$DSYMUTIL $lib || :'
8153 for ac_header in dlfcn.h
8155 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8157 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8158 cat >>confdefs.h <<_ACEOF
8159 #define HAVE_DLFCN_H 1
8179 # Check whether --enable-shared was given.
8180 if test "${enable_shared+set}" = set; then :
8181 enableval=$enable_shared; p=${PACKAGE-default}
8183 yes) enable_shared=yes ;;
8184 no) enable_shared=no ;;
8187 # Look at the argument we got. We use all the common list separators.
8188 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8189 for pkg in $enableval; do
8191 if test "X$pkg" = "X$p"; then
8210 # Check whether --enable-static was given.
8211 if test "${enable_static+set}" = set; then :
8212 enableval=$enable_static; p=${PACKAGE-default}
8214 yes) enable_static=yes ;;
8215 no) enable_static=no ;;
8218 # Look at the argument we got. We use all the common list separators.
8219 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8220 for pkg in $enableval; do
8222 if test "X$pkg" = "X$p"; then
8242 # Check whether --with-pic was given.
8243 if test "${with_pic+set}" = set; then :
8244 withval=$with_pic; pic_mode="$withval"
8250 test -z "$pic_mode" && pic_mode=default
8258 # Check whether --enable-fast-install was given.
8259 if test "${enable_fast_install+set}" = set; then :
8260 enableval=$enable_fast_install; p=${PACKAGE-default}
8262 yes) enable_fast_install=yes ;;
8263 no) enable_fast_install=no ;;
8265 enable_fast_install=no
8266 # Look at the argument we got. We use all the common list separators.
8267 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8268 for pkg in $enableval; do
8270 if test "X$pkg" = "X$p"; then
8271 enable_fast_install=yes
8278 enable_fast_install=yes
8291 # This can be used to rebuild libtool when needed
8292 LIBTOOL_DEPS="$ltmain"
8294 # Always use our own libtool.
8295 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8322 test -z "$LN_S" && LN_S="ln -s"
8337 if test -n "${ZSH_VERSION+set}" ; then
8338 setopt NO_GLOB_SUBST
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8342 $as_echo_n "checking for objdir... " >&6; }
8343 if ${lt_cv_objdir+:} false; then :
8344 $as_echo_n "(cached) " >&6
8346 rm -f .libs 2>/dev/null
8347 mkdir .libs 2>/dev/null
8348 if test -d .libs; then
8351 # MS-DOS does not allow filenames that begin with a dot.
8354 rmdir .libs 2>/dev/null
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8357 $as_echo "$lt_cv_objdir" >&6; }
8358 objdir=$lt_cv_objdir
8364 cat >>confdefs.h <<_ACEOF
8365 #define LT_OBJDIR "$lt_cv_objdir/"
8373 # AIX sometimes has problems with the GCC collect2 program. For some
8374 # reason, if we set the COLLECT_NAMES environment variable, the problems
8375 # vanish in a puff of smoke.
8376 if test "X${COLLECT_NAMES+set}" != Xset; then
8378 export COLLECT_NAMES
8385 can_build_shared=yes
8387 # All known linkers require a `.a' archive for static linking (except MSVC,
8388 # which needs '.lib').
8391 with_gnu_ld="$lt_cv_prog_gnu_ld"
8394 old_CFLAGS="$CFLAGS"
8396 # Set sane defaults for various variables
8397 test -z "$CC" && CC=cc
8398 test -z "$LTCC" && LTCC=$CC
8399 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8400 test -z "$LD" && LD=ld
8401 test -z "$ac_objext" && ac_objext=o
8403 for cc_temp in $compiler""; do
8405 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8406 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8411 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8414 # Only perform the check for file, if the check method requires it
8415 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8416 case $deplibs_check_method in
8418 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8420 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8421 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8422 $as_echo_n "(cached) " >&6
8426 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8429 lt_save_MAGIC_CMD="$MAGIC_CMD"
8430 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8431 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8432 for ac_dir in $ac_dummy; do
8434 test -z "$ac_dir" && ac_dir=.
8435 if test -f $ac_dir/${ac_tool_prefix}file; then
8436 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8437 if test -n "$file_magic_test_file"; then
8438 case $deplibs_check_method in
8440 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8441 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8442 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8443 $EGREP "$file_magic_regex" > /dev/null; then
8448 *** Warning: the command libtool uses to detect shared libraries,
8449 *** $file_magic_cmd, produces output that libtool cannot recognize.
8450 *** The result is that libtool may fail to recognize shared libraries
8451 *** as such. This will affect the creation of libtool libraries that
8452 *** depend on shared libraries, but programs linked with such libtool
8453 *** libraries will work regardless of this problem. Nevertheless, you
8454 *** may want to report the problem to your system manager and/or to
8455 *** bug-libtool@gnu.org
8465 MAGIC_CMD="$lt_save_MAGIC_CMD"
8470 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8471 if test -n "$MAGIC_CMD"; then
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8473 $as_echo "$MAGIC_CMD" >&6; }
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8476 $as_echo "no" >&6; }
8483 if test -z "$lt_cv_path_MAGIC_CMD"; then
8484 if test -n "$ac_tool_prefix"; then
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8486 $as_echo_n "checking for file... " >&6; }
8487 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8488 $as_echo_n "(cached) " >&6
8492 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8495 lt_save_MAGIC_CMD="$MAGIC_CMD"
8496 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8497 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8498 for ac_dir in $ac_dummy; do
8500 test -z "$ac_dir" && ac_dir=.
8501 if test -f $ac_dir/file; then
8502 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8503 if test -n "$file_magic_test_file"; then
8504 case $deplibs_check_method in
8506 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8507 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8508 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8509 $EGREP "$file_magic_regex" > /dev/null; then
8514 *** Warning: the command libtool uses to detect shared libraries,
8515 *** $file_magic_cmd, produces output that libtool cannot recognize.
8516 *** The result is that libtool may fail to recognize shared libraries
8517 *** as such. This will affect the creation of libtool libraries that
8518 *** depend on shared libraries, but programs linked with such libtool
8519 *** libraries will work regardless of this problem. Nevertheless, you
8520 *** may want to report the problem to your system manager and/or to
8521 *** bug-libtool@gnu.org
8531 MAGIC_CMD="$lt_save_MAGIC_CMD"
8536 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8537 if test -n "$MAGIC_CMD"; then
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8539 $as_echo "$MAGIC_CMD" >&6; }
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542 $as_echo "no" >&6; }
8555 # Use C for the default configuration in the libtool script
8559 ac_cpp='$CPP $CPPFLAGS'
8560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8565 # Source file extension for C test sources.
8568 # Object file extension for compiled C test sources.
8572 # Code to be used in simple compile tests
8573 lt_simple_compile_test_code="int some_variable = 0;"
8575 # Code to be used in simple link tests
8576 lt_simple_link_test_code='int main(){return(0);}'
8584 # If no C compiler was specified, use CC.
8587 # If no C compiler flags were specified, use CFLAGS.
8588 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8590 # Allow CC to be a program name with arguments.
8593 # Save the default compiler, since it gets overwritten when the other
8594 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8595 compiler_DEFAULT=$CC
8597 # save warnings/boilerplate of simple test code
8598 ac_outfile=conftest.$ac_objext
8599 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8600 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8601 _lt_compiler_boilerplate=`cat conftest.err`
8604 ac_outfile=conftest.$ac_objext
8605 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8606 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8607 _lt_linker_boilerplate=`cat conftest.err`
8612 ## There is no encapsulation within the following macros, do not change
8613 ## the running order or otherwise move them around unless you know exactly
8614 ## what you are doing...
8615 if test -n "$compiler"; then
8617 lt_prog_compiler_no_builtin_flag=
8619 if test "$GCC" = yes; then
8620 case $cc_basename in
8622 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8624 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8628 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8629 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8630 $as_echo_n "(cached) " >&6
8632 lt_cv_prog_compiler_rtti_exceptions=no
8633 ac_outfile=conftest.$ac_objext
8634 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8635 lt_compiler_flag="-fno-rtti -fno-exceptions"
8636 # Insert the option either (1) after the last *FLAGS variable, or
8637 # (2) before a word containing "conftest.", or (3) at the end.
8638 # Note that $ac_compile itself does not contain backslashes and begins
8639 # with a dollar sign (not a hyphen), so the echo should work correctly.
8640 # The option is referenced via a variable to avoid confusing sed.
8641 lt_compile=`echo "$ac_compile" | $SED \
8642 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8643 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8644 -e 's:$: $lt_compiler_flag:'`
8645 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8646 (eval "$lt_compile" 2>conftest.err)
8648 cat conftest.err >&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 if (exit $ac_status) && test -s "$ac_outfile"; then
8651 # The compiler can only warn and ignore the option if not recognized
8652 # So say no if there are warnings other than the usual output.
8653 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8654 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8655 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8656 lt_cv_prog_compiler_rtti_exceptions=yes
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8663 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8665 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8666 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8678 lt_prog_compiler_wl=
8679 lt_prog_compiler_pic=
8680 lt_prog_compiler_static=
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8683 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8685 if test "$GCC" = yes; then
8686 lt_prog_compiler_wl='-Wl,'
8687 lt_prog_compiler_static='-static'
8691 # All AIX code is PIC.
8692 if test "$host_cpu" = ia64; then
8693 # AIX 5 now supports IA64 processor
8694 lt_prog_compiler_static='-Bstatic'
8696 lt_prog_compiler_pic='-fPIC'
8702 # see comment about AmigaOS4 .so support
8703 lt_prog_compiler_pic='-fPIC'
8706 # FIXME: we need at least 68020 code to build shared libraries, but
8707 # adding the `-m68020' flag to GCC prevents building anything better,
8709 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8714 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8715 # PIC is the default for these OSes.
8718 mingw* | cygwin* | pw32* | os2* | cegcc*)
8719 # This hack is so that the source file can tell whether it is being
8720 # built for inclusion in a dll (and should export symbols for example).
8721 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8722 # (--disable-auto-import) libraries
8723 lt_prog_compiler_pic='-DDLL_EXPORT'
8726 darwin* | rhapsody*)
8727 # PIC is the default on this platform
8728 # Common symbols not allowed in MH_DYLIB files
8729 lt_prog_compiler_pic='-fno-common'
8733 # PIC is the default for Haiku.
8734 # The "-static" flag exists, but is broken.
8735 lt_prog_compiler_static=
8739 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8740 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8741 # sets the default TLS model and affects inlining.
8747 lt_prog_compiler_pic='-fPIC'
8753 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8754 # Instead, we relocate shared libraries at runtime.
8758 # Just because we use GCC doesn't mean we suddenly get shared libraries
8759 # on systems that don't support them.
8760 lt_prog_compiler_can_build_shared=no
8765 # QNX uses GNU C++, but need to define -shared option too, otherwise
8767 lt_prog_compiler_pic='-fPIC -shared'
8771 if test -d /usr/nec; then
8772 lt_prog_compiler_pic=-Kconform_pic
8777 lt_prog_compiler_pic='-fPIC'
8781 case $cc_basename in
8782 nvcc*) # Cuda Compiler Driver 2.2
8783 lt_prog_compiler_wl='-Xlinker '
8784 lt_prog_compiler_pic='-Xcompiler -fPIC'
8788 # PORTME Check for flag to pass linker flags through the system compiler.
8791 lt_prog_compiler_wl='-Wl,'
8792 if test "$host_cpu" = ia64; then
8793 # AIX 5 now supports IA64 processor
8794 lt_prog_compiler_static='-Bstatic'
8796 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8800 mingw* | cygwin* | pw32* | os2* | cegcc*)
8801 # This hack is so that the source file can tell whether it is being
8802 # built for inclusion in a dll (and should export symbols for example).
8803 lt_prog_compiler_pic='-DDLL_EXPORT'
8806 hpux9* | hpux10* | hpux11*)
8807 lt_prog_compiler_wl='-Wl,'
8808 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8815 lt_prog_compiler_pic='+Z'
8818 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8819 lt_prog_compiler_static='${wl}-a ${wl}archive'
8822 irix5* | irix6* | nonstopux*)
8823 lt_prog_compiler_wl='-Wl,'
8824 # PIC (with -KPIC) is the default.
8825 lt_prog_compiler_static='-non_shared'
8828 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8829 case $cc_basename in
8830 # old Intel for x86_64 which still supported -KPIC.
8832 lt_prog_compiler_wl='-Wl,'
8833 lt_prog_compiler_pic='-KPIC'
8834 lt_prog_compiler_static='-static'
8836 # icc used to be incompatible with GCC.
8837 # ICC 10 doesn't accept -KPIC any more.
8839 lt_prog_compiler_wl='-Wl,'
8840 lt_prog_compiler_pic='-fPIC'
8841 lt_prog_compiler_static='-static'
8843 # Lahey Fortran 8.1.
8845 lt_prog_compiler_wl='-Wl,'
8846 lt_prog_compiler_pic='--shared'
8847 lt_prog_compiler_static='--static'
8849 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8850 # Portland Group compilers (*not* the Pentium gcc compiler,
8851 # which looks to be a dead project)
8852 lt_prog_compiler_wl='-Wl,'
8853 lt_prog_compiler_pic='-fpic'
8854 lt_prog_compiler_static='-Bstatic'
8857 lt_prog_compiler_wl='-Wl,'
8858 # All Alpha code is PIC.
8859 lt_prog_compiler_static='-non_shared'
8861 xl* | bgxl* | bgf* | mpixl*)
8862 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8863 lt_prog_compiler_wl='-Wl,'
8864 lt_prog_compiler_pic='-qpic'
8865 lt_prog_compiler_static='-qstaticlink'
8868 case `$CC -V 2>&1 | sed 5q` in
8869 *Sun\ F* | *Sun*Fortran*)
8870 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8871 lt_prog_compiler_pic='-KPIC'
8872 lt_prog_compiler_static='-Bstatic'
8873 lt_prog_compiler_wl=''
8877 lt_prog_compiler_pic='-KPIC'
8878 lt_prog_compiler_static='-Bstatic'
8879 lt_prog_compiler_wl='-Wl,'
8887 lt_prog_compiler_pic='-KPIC'
8888 lt_prog_compiler_static='-Bstatic'
8892 # QNX uses GNU C++, but need to define -shared option too, otherwise
8894 lt_prog_compiler_pic='-fPIC -shared'
8897 osf3* | osf4* | osf5*)
8898 lt_prog_compiler_wl='-Wl,'
8899 # All OSF/1 code is PIC.
8900 lt_prog_compiler_static='-non_shared'
8904 lt_prog_compiler_static='-non_shared'
8908 lt_prog_compiler_pic='-KPIC'
8909 lt_prog_compiler_static='-Bstatic'
8910 case $cc_basename in
8912 lt_prog_compiler_wl='-Qoption ld ';;
8914 lt_prog_compiler_wl='-Wl,';;
8919 lt_prog_compiler_wl='-Qoption ld '
8920 lt_prog_compiler_pic='-PIC'
8921 lt_prog_compiler_static='-Bstatic'
8924 sysv4 | sysv4.2uw2* | sysv4.3*)
8925 lt_prog_compiler_wl='-Wl,'
8926 lt_prog_compiler_pic='-KPIC'
8927 lt_prog_compiler_static='-Bstatic'
8931 if test -d /usr/nec ;then
8932 lt_prog_compiler_pic='-Kconform_pic'
8933 lt_prog_compiler_static='-Bstatic'
8937 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8938 lt_prog_compiler_wl='-Wl,'
8939 lt_prog_compiler_pic='-KPIC'
8940 lt_prog_compiler_static='-Bstatic'
8944 lt_prog_compiler_wl='-Wl,'
8945 lt_prog_compiler_can_build_shared=no
8949 lt_prog_compiler_pic='-pic'
8950 lt_prog_compiler_static='-Bstatic'
8954 lt_prog_compiler_can_build_shared=no
8960 # For platforms which do not support PIC, -DPIC is meaningless:
8962 lt_prog_compiler_pic=
8965 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8969 $as_echo "$lt_prog_compiler_pic" >&6; }
8977 # Check to make sure the PIC flag actually works.
8979 if test -n "$lt_prog_compiler_pic"; then
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8981 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8982 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8983 $as_echo_n "(cached) " >&6
8985 lt_cv_prog_compiler_pic_works=no
8986 ac_outfile=conftest.$ac_objext
8987 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8988 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8989 # Insert the option either (1) after the last *FLAGS variable, or
8990 # (2) before a word containing "conftest.", or (3) at the end.
8991 # Note that $ac_compile itself does not contain backslashes and begins
8992 # with a dollar sign (not a hyphen), so the echo should work correctly.
8993 # The option is referenced via a variable to avoid confusing sed.
8994 lt_compile=`echo "$ac_compile" | $SED \
8995 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8996 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8997 -e 's:$: $lt_compiler_flag:'`
8998 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8999 (eval "$lt_compile" 2>conftest.err)
9001 cat conftest.err >&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 if (exit $ac_status) && test -s "$ac_outfile"; then
9004 # The compiler can only warn and ignore the option if not recognized
9005 # So say no if there are warnings other than the usual output.
9006 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9007 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9008 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9009 lt_cv_prog_compiler_pic_works=yes
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9016 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9018 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9019 case $lt_prog_compiler_pic in
9021 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9024 lt_prog_compiler_pic=
9025 lt_prog_compiler_can_build_shared=no
9036 # Check to make sure the static flag actually works.
9038 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9040 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9041 if ${lt_cv_prog_compiler_static_works+:} false; then :
9042 $as_echo_n "(cached) " >&6
9044 lt_cv_prog_compiler_static_works=no
9045 save_LDFLAGS="$LDFLAGS"
9046 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9047 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9048 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9049 # The linker can only warn and ignore the option if not recognized
9050 # So say no if there are warnings
9051 if test -s conftest.err; then
9052 # Append any errors to the config.log.
9053 cat conftest.err 1>&5
9054 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9055 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9056 if diff conftest.exp conftest.er2 >/dev/null; then
9057 lt_cv_prog_compiler_static_works=yes
9060 lt_cv_prog_compiler_static_works=yes
9064 LDFLAGS="$save_LDFLAGS"
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9068 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9070 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9073 lt_prog_compiler_static=
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9083 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9084 if ${lt_cv_prog_compiler_c_o+:} false; then :
9085 $as_echo_n "(cached) " >&6
9087 lt_cv_prog_compiler_c_o=no
9088 $RM -r conftest 2>/dev/null
9092 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9094 lt_compiler_flag="-o out/conftest2.$ac_objext"
9095 # Insert the option either (1) after the last *FLAGS variable, or
9096 # (2) before a word containing "conftest.", or (3) at the end.
9097 # Note that $ac_compile itself does not contain backslashes and begins
9098 # with a dollar sign (not a hyphen), so the echo should work correctly.
9099 lt_compile=`echo "$ac_compile" | $SED \
9100 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9101 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9102 -e 's:$: $lt_compiler_flag:'`
9103 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9104 (eval "$lt_compile" 2>out/conftest.err)
9106 cat out/conftest.err >&5
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9110 # The compiler can only warn and ignore the option if not recognized
9111 # So say no if there are warnings
9112 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9113 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9114 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9115 lt_cv_prog_compiler_c_o=yes
9120 # SGI C++ compiler will create directory out/ii_files/ for
9121 # template instantiation
9122 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9123 $RM out/* && rmdir out
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9130 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9138 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9139 if ${lt_cv_prog_compiler_c_o+:} false; then :
9140 $as_echo_n "(cached) " >&6
9142 lt_cv_prog_compiler_c_o=no
9143 $RM -r conftest 2>/dev/null
9147 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9149 lt_compiler_flag="-o out/conftest2.$ac_objext"
9150 # Insert the option either (1) after the last *FLAGS variable, or
9151 # (2) before a word containing "conftest.", or (3) at the end.
9152 # Note that $ac_compile itself does not contain backslashes and begins
9153 # with a dollar sign (not a hyphen), so the echo should work correctly.
9154 lt_compile=`echo "$ac_compile" | $SED \
9155 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9157 -e 's:$: $lt_compiler_flag:'`
9158 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9159 (eval "$lt_compile" 2>out/conftest.err)
9161 cat out/conftest.err >&5
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9165 # The compiler can only warn and ignore the option if not recognized
9166 # So say no if there are warnings
9167 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9168 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9169 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9170 lt_cv_prog_compiler_c_o=yes
9175 # SGI C++ compiler will create directory out/ii_files/ for
9176 # template instantiation
9177 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9178 $RM out/* && rmdir out
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9185 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9190 hard_links="nottested"
9191 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9192 # do not overwrite the value of need_locks provided by the user
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9194 $as_echo_n "checking if we can lock with hard links... " >&6; }
9197 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9199 ln conftest.a conftest.b 2>&5 || hard_links=no
9200 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9202 $as_echo "$hard_links" >&6; }
9203 if test "$hard_links" = no; then
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9205 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9218 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9221 allow_undefined_flag=
9222 always_export_symbols=no
9224 archive_expsym_cmds=
9225 compiler_needs_object=no
9226 enable_shared_with_static_runtimes=no
9227 export_dynamic_flag_spec=
9228 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9229 hardcode_automatic=no
9231 hardcode_direct_absolute=no
9232 hardcode_libdir_flag_spec=
9233 hardcode_libdir_flag_spec_ld=
9234 hardcode_libdir_separator=
9236 hardcode_shlibpath_var=unsupported
9238 link_all_deplibs=unknown
9241 old_archive_from_new_cmds=
9242 old_archive_from_expsyms_cmds=
9243 thread_safe_flag_spec=
9244 whole_archive_flag_spec=
9245 # include_expsyms should be a list of space-separated symbols to be *always*
9246 # included in the symbol list
9248 # exclude_expsyms can be an extended regexp of symbols to exclude
9249 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9250 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9251 # as well as any symbol that contains `d'.
9252 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9253 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9254 # platforms (ab)use it in PIC code, but their linkers get confused if
9255 # the symbol is explicitly referenced. Since portable code cannot
9256 # rely on this symbol name, it's probably fine to never include it in
9257 # preloaded symbol tables.
9258 # Exclude shared library initialization/finalization symbols.
9259 extract_expsyms_cmds=
9262 cygwin* | mingw* | pw32* | cegcc*)
9263 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9264 # When not using gcc, we currently assume that we are using
9265 # Microsoft Visual C++.
9266 if test "$GCC" != yes; then
9271 # we just hope/assume this is gcc and not c89 (= MSVC++)
9281 # On some targets, GNU ld is compatible enough with the native linker
9282 # that we're better off using the native interface for both.
9283 lt_use_gnu_ld_interface=no
9284 if test "$with_gnu_ld" = yes; then
9287 # The AIX port of GNU ld has always aspired to compatibility
9288 # with the native linker. However, as the warning in the GNU ld
9289 # block says, versions before 2.19.5* couldn't really create working
9290 # shared libraries, regardless of the interface used.
9291 case `$LD -v 2>&1` in
9292 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9293 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9294 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9296 lt_use_gnu_ld_interface=yes
9301 lt_use_gnu_ld_interface=yes
9306 if test "$lt_use_gnu_ld_interface" = yes; then
9307 # If archive_cmds runs LD, not CC, wlarc should be empty
9310 # Set some defaults for GNU ld with shared library support. These
9311 # are reset later if shared libraries are not supported. Putting them
9312 # here allows them to be overridden if necessary.
9313 runpath_var=LD_RUN_PATH
9314 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9315 export_dynamic_flag_spec='${wl}--export-dynamic'
9316 # ancient GNU ld didn't support --whole-archive et. al.
9317 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9318 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9320 whole_archive_flag_spec=
9322 supports_anon_versioning=no
9323 case `$LD -v 2>&1` in
9324 *GNU\ gold*) supports_anon_versioning=yes ;;
9325 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9326 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9327 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9328 *\ 2.11.*) ;; # other 2.11 versions
9329 *) supports_anon_versioning=yes ;;
9332 # See if GNU ld supports shared libraries.
9335 # On AIX/PPC, the GNU linker is very broken
9336 if test "$host_cpu" != ia64; then
9340 *** Warning: the GNU linker, at least up to release 2.19, is reported
9341 *** to be unable to reliably create shared libraries on AIX.
9342 *** Therefore, libtool is disabling shared libraries support. If you
9343 *** really care for shared libraries, you may want to install binutils
9344 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9345 *** You will then need to restart the configuration process.
9354 # see comment about AmigaOS4 .so support
9355 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9356 archive_expsym_cmds=''
9359 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)'
9360 hardcode_libdir_flag_spec='-L$libdir'
9361 hardcode_minus_L=yes
9367 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9368 allow_undefined_flag=unsupported
9369 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9370 # support --undefined. This deserves some investigation. FIXME
9371 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9377 cygwin* | mingw* | pw32* | cegcc*)
9378 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9379 # as there is no search path for DLLs.
9380 hardcode_libdir_flag_spec='-L$libdir'
9381 export_dynamic_flag_spec='${wl}--export-all-symbols'
9382 allow_undefined_flag=unsupported
9383 always_export_symbols=no
9384 enable_shared_with_static_runtimes=yes
9385 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9387 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9388 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9389 # If the export-symbols file already is a .def file (1st line
9390 # is EXPORTS), use it as is; otherwise, prepend...
9391 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9392 cp $export_symbols $output_objdir/$soname.def;
9394 echo EXPORTS > $output_objdir/$soname.def;
9395 cat $export_symbols >> $output_objdir/$soname.def;
9397 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9404 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9405 link_all_deplibs=yes
9410 hardcode_shlibpath_var=no
9411 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9412 export_dynamic_flag_spec='${wl}-E'
9413 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9414 # Instead, shared libraries are loaded at an image base (0x10000000 by
9415 # default) and relocated if they conflict, which is a slow very memory
9416 # consuming and fragmenting process. To avoid this, we pick a random,
9417 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9418 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9419 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9420 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'
9423 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9425 if test "$host_os" = linux-dietlibc; then
9426 case $cc_basename in
9427 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9430 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9431 && test "$tmp_diet" = no
9433 tmp_addflag=' $pic_flag'
9434 tmp_sharedflag='-shared'
9435 case $cc_basename,$host_cpu in
9436 pgcc*) # Portland Group C compiler
9437 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9438 tmp_addflag=' $pic_flag'
9440 pgf77* | pgf90* | pgf95* | pgfortran*)
9441 # Portland Group f77 and f90 compilers
9442 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'
9443 tmp_addflag=' $pic_flag -Mnomain' ;;
9444 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9445 tmp_addflag=' -i_dynamic' ;;
9446 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9447 tmp_addflag=' -i_dynamic -nofor_main' ;;
9448 ifc* | ifort*) # Intel Fortran compiler
9449 tmp_addflag=' -nofor_main' ;;
9450 lf95*) # Lahey Fortran 8.1
9451 whole_archive_flag_spec=
9452 tmp_sharedflag='--shared' ;;
9453 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9454 tmp_sharedflag='-qmkshrobj'
9456 nvcc*) # Cuda Compiler Driver 2.2
9457 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'
9458 compiler_needs_object=yes
9461 case `$CC -V 2>&1 | sed 5q` in
9462 *Sun\ C*) # Sun C 5.9
9463 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'
9464 compiler_needs_object=yes
9465 tmp_sharedflag='-G' ;;
9466 *Sun\ F*) # Sun Fortran 8.3
9467 tmp_sharedflag='-G' ;;
9469 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9471 if test "x$supports_anon_versioning" = xyes; then
9472 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9473 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9474 echo "local: *; };" >> $output_objdir/$libname.ver~
9475 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9478 case $cc_basename in
9479 xlf* | bgf* | bgxlf* | mpixlf*)
9480 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9481 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9482 hardcode_libdir_flag_spec=
9483 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9484 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9485 if test "x$supports_anon_versioning" = xyes; then
9486 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9487 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9488 echo "local: *; };" >> $output_objdir/$libname.ver~
9489 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9499 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9500 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9503 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9504 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9509 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9513 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9514 *** create shared libraries on Solaris systems. Therefore, libtool
9515 *** is disabling shared libraries support. We urge you to upgrade GNU
9516 *** binutils to release 2.9.1 or newer. Another option is to modify
9517 *** your PATH or compiler configuration so that the native linker is
9518 *** used, and then restart.
9521 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9522 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9523 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9529 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9530 case `$LD -v 2>&1` in
9531 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9535 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9536 *** reliably create shared libraries on SCO systems. Therefore, libtool
9537 *** is disabling shared libraries support. We urge you to upgrade GNU
9538 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9539 *** your PATH or compiler configuration so that the native linker is
9540 *** used, and then restart.
9545 # For security reasons, it is highly recommended that you always
9546 # use absolute paths for naming shared libraries, and exclude the
9547 # DT_RUNPATH tag from executables and libraries. But doing so
9548 # requires that you compile everything twice, which is a pain.
9549 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9550 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9551 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9552 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9561 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9564 hardcode_shlibpath_var=no
9568 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9569 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9570 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9577 if test "$ld_shlibs" = no; then
9579 hardcode_libdir_flag_spec=
9580 export_dynamic_flag_spec=
9581 whole_archive_flag_spec=
9584 # PORTME fill in a description of your system's linker (not GNU ld)
9587 allow_undefined_flag=unsupported
9588 always_export_symbols=yes
9589 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'
9590 # Note: this linker hardcodes the directories in LIBPATH if there
9591 # are no directories specified by -L.
9592 hardcode_minus_L=yes
9593 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9594 # Neither direct hardcoding nor static linking is supported with a
9596 hardcode_direct=unsupported
9601 if test "$host_cpu" = ia64; then
9602 # On IA64, the linker does run time linking by default, so we don't
9603 # have to do anything special.
9604 aix_use_runtimelinking=no
9605 exp_sym_flag='-Bexport'
9608 # If we're using GNU nm, then we don't want the "-C" option.
9609 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9610 # Also, AIX nm treats weak defined symbols like other global
9611 # defined symbols, whereas GNU nm marks them as "W".
9612 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9613 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'
9615 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'
9617 aix_use_runtimelinking=no
9619 # Test if we are trying to use run time linking or normal
9620 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9621 # need to do runtime linking.
9622 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9623 for ld_flag in $LDFLAGS; do
9624 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9625 aix_use_runtimelinking=yes
9632 exp_sym_flag='-bexport'
9633 no_entry_flag='-bnoentry'
9636 # When large executables or shared objects are built, AIX ld can
9637 # have problems creating the table of contents. If linking a library
9638 # or program results in "error TOC overflow" add -mminimal-toc to
9639 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9640 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9644 hardcode_direct_absolute=yes
9645 hardcode_libdir_separator=':'
9646 link_all_deplibs=yes
9647 file_list_spec='${wl}-f,'
9649 if test "$GCC" = yes; then
9650 case $host_os in aix4.[012]|aix4.[012].*)
9651 # We only want to do this on AIX 4.2 and lower, the check
9652 # below for broken collect2 doesn't work under 4.3+
9653 collect2name=`${CC} -print-prog-name=collect2`
9654 if test -f "$collect2name" &&
9655 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9657 # We have reworked collect2
9660 # We have old collect2
9661 hardcode_direct=unsupported
9662 # It fails to find uninstalled libraries when the uninstalled
9663 # path is not listed in the libpath. Setting hardcode_minus_L
9664 # to unsupported forces relinking
9665 hardcode_minus_L=yes
9666 hardcode_libdir_flag_spec='-L$libdir'
9667 hardcode_libdir_separator=
9671 shared_flag='-shared'
9672 if test "$aix_use_runtimelinking" = yes; then
9673 shared_flag="$shared_flag "'${wl}-G'
9677 if test "$host_cpu" = ia64; then
9678 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9679 # chokes on -Wl,-G. The following line is correct:
9682 if test "$aix_use_runtimelinking" = yes; then
9683 shared_flag='${wl}-G'
9685 shared_flag='${wl}-bM:SRE'
9690 export_dynamic_flag_spec='${wl}-bexpall'
9691 # It seems that -bexpall does not export symbols beginning with
9692 # underscore (_), so it is better to generate a list of symbols to export.
9693 always_export_symbols=yes
9694 if test "$aix_use_runtimelinking" = yes; then
9695 # Warning - without using the other runtime loading flags (-brtl),
9696 # -berok will link without error, but may produce a broken library.
9697 allow_undefined_flag='-berok'
9698 # Determine the default libpath from the value encoded in an
9700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9701 /* end confdefs.h. */
9711 if ac_fn_c_try_link "$LINENO"; then :
9713 lt_aix_libpath_sed='
9714 /Import File Strings/,/^$/ {
9720 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9721 # Check for a 64-bit object if we didn't find anything.
9722 if test -z "$aix_libpath"; then
9723 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9726 rm -f core conftest.err conftest.$ac_objext \
9727 conftest$ac_exeext conftest.$ac_ext
9728 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9730 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9731 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"
9733 if test "$host_cpu" = ia64; then
9734 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9735 allow_undefined_flag="-z nodefs"
9736 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"
9738 # Determine the default libpath from the value encoded in an
9740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9741 /* end confdefs.h. */
9751 if ac_fn_c_try_link "$LINENO"; then :
9753 lt_aix_libpath_sed='
9754 /Import File Strings/,/^$/ {
9760 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9761 # Check for a 64-bit object if we didn't find anything.
9762 if test -z "$aix_libpath"; then
9763 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9766 rm -f core conftest.err conftest.$ac_objext \
9767 conftest$ac_exeext conftest.$ac_ext
9768 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9770 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9771 # Warning - without using the other run time loading flags,
9772 # -berok will link without error, but may produce a broken library.
9773 no_undefined_flag=' ${wl}-bernotok'
9774 allow_undefined_flag=' ${wl}-berok'
9775 if test "$with_gnu_ld" = yes; then
9776 # We only use this code for GNU lds that support --whole-archive.
9777 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9779 # Exported symbols can be pulled into shared objects from archives
9780 whole_archive_flag_spec='$convenience'
9782 archive_cmds_need_lc=yes
9783 # This is similar to how AIX traditionally builds its shared libraries.
9784 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'
9792 # see comment about AmigaOS4 .so support
9793 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9794 archive_expsym_cmds=''
9797 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)'
9798 hardcode_libdir_flag_spec='-L$libdir'
9799 hardcode_minus_L=yes
9805 export_dynamic_flag_spec=-rdynamic
9808 cygwin* | mingw* | pw32* | cegcc*)
9809 # When not using gcc, we currently assume that we are using
9810 # Microsoft Visual C++.
9811 # hardcode_libdir_flag_spec is actually meaningless, as there is
9812 # no search path for DLLs.
9813 hardcode_libdir_flag_spec=' '
9814 allow_undefined_flag=unsupported
9815 # Tell ltmain to make .lib files, not .a files.
9817 # Tell ltmain to make .dll files, not .so files.
9819 # FIXME: Setting linknames here is a bad hack.
9820 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9821 # The linker will automatically build a .lib file if we build a DLL.
9822 old_archive_from_new_cmds='true'
9823 # FIXME: Should let the user specify the lib program.
9824 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9825 fix_srcfile_path='`cygpath -w "$srcfile"`'
9826 enable_shared_with_static_runtimes=yes
9829 darwin* | rhapsody*)
9832 archive_cmds_need_lc=no
9834 hardcode_automatic=yes
9835 hardcode_shlibpath_var=unsupported
9836 if test "$lt_cv_ld_force_load" = "yes"; then
9837 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\"`'
9839 whole_archive_flag_spec=''
9841 link_all_deplibs=yes
9842 allow_undefined_flag="$_lt_dar_allow_undefined"
9843 case $cc_basename in
9844 ifort*) _lt_dar_can_shared=yes ;;
9845 *) _lt_dar_can_shared=$GCC ;;
9847 if test "$_lt_dar_can_shared" = "yes"; then
9848 output_verbose_link_cmd=func_echo_all
9849 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9850 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9851 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}"
9852 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}"
9861 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9862 hardcode_libdir_flag_spec='-L$libdir'
9863 hardcode_shlibpath_var=no
9866 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9867 # support. Future versions do this automatically, but an explicit c++rt0.o
9868 # does not break anything, and helps significantly (at the cost of a little
9871 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9872 hardcode_libdir_flag_spec='-R$libdir'
9874 hardcode_shlibpath_var=no
9877 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9879 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9881 hardcode_minus_L=yes
9882 hardcode_shlibpath_var=no
9885 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9886 freebsd* | dragonfly*)
9887 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9888 hardcode_libdir_flag_spec='-R$libdir'
9890 hardcode_shlibpath_var=no
9894 if test "$GCC" = yes; then
9895 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'
9897 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'
9899 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9900 hardcode_libdir_separator=:
9903 # hardcode_minus_L: Not really in the search PATH,
9904 # but as the default location of the library.
9905 hardcode_minus_L=yes
9906 export_dynamic_flag_spec='${wl}-E'
9910 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9911 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9913 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9915 if test "$with_gnu_ld" = no; then
9916 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9917 hardcode_libdir_flag_spec_ld='+b $libdir'
9918 hardcode_libdir_separator=:
9920 hardcode_direct_absolute=yes
9921 export_dynamic_flag_spec='${wl}-E'
9922 # hardcode_minus_L: Not really in the search PATH,
9923 # but as the default location of the library.
9924 hardcode_minus_L=yes
9929 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9932 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9935 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9938 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9944 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9947 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9951 # Older versions of the 11.00 compiler do not understand -b yet
9952 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9954 $as_echo_n "checking if $CC understands -b... " >&6; }
9955 if ${lt_cv_prog_compiler__b+:} false; then :
9956 $as_echo_n "(cached) " >&6
9958 lt_cv_prog_compiler__b=no
9959 save_LDFLAGS="$LDFLAGS"
9960 LDFLAGS="$LDFLAGS -b"
9961 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9962 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9963 # The linker can only warn and ignore the option if not recognized
9964 # So say no if there are warnings
9965 if test -s conftest.err; then
9966 # Append any errors to the config.log.
9967 cat conftest.err 1>&5
9968 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9969 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9970 if diff conftest.exp conftest.er2 >/dev/null; then
9971 lt_cv_prog_compiler__b=yes
9974 lt_cv_prog_compiler__b=yes
9978 LDFLAGS="$save_LDFLAGS"
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9982 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9984 if test x"$lt_cv_prog_compiler__b" = xyes; then
9985 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9987 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9993 if test "$with_gnu_ld" = no; then
9994 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9995 hardcode_libdir_separator=:
10000 hardcode_shlibpath_var=no
10003 hardcode_direct=yes
10004 hardcode_direct_absolute=yes
10005 export_dynamic_flag_spec='${wl}-E'
10007 # hardcode_minus_L: Not really in the search PATH,
10008 # but as the default location of the library.
10009 hardcode_minus_L=yes
10015 irix5* | irix6* | nonstopux*)
10016 if test "$GCC" = yes; then
10017 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'
10018 # Try to use the -exported_symbol ld option, if it does not
10019 # work, assume that -exports_file does not work either and
10020 # implicitly export all symbols.
10021 save_LDFLAGS="$LDFLAGS"
10022 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10024 /* end confdefs.h. */
10027 if ac_fn_c_try_link "$LINENO"; then :
10028 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'
10031 rm -f core conftest.err conftest.$ac_objext \
10032 conftest$ac_exeext conftest.$ac_ext
10033 LDFLAGS="$save_LDFLAGS"
10035 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'
10036 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'
10038 archive_cmds_need_lc='no'
10039 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10040 hardcode_libdir_separator=:
10042 link_all_deplibs=yes
10046 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10047 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10049 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10051 hardcode_libdir_flag_spec='-R$libdir'
10052 hardcode_direct=yes
10053 hardcode_shlibpath_var=no
10057 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10058 hardcode_direct=yes
10059 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10060 hardcode_libdir_separator=:
10061 hardcode_shlibpath_var=no
10068 if test -f /usr/libexec/ld.so; then
10069 hardcode_direct=yes
10070 hardcode_shlibpath_var=no
10071 hardcode_direct_absolute=yes
10072 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10073 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10074 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10075 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10076 export_dynamic_flag_spec='${wl}-E'
10079 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10080 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10081 hardcode_libdir_flag_spec='-R$libdir'
10084 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10085 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10095 hardcode_libdir_flag_spec='-L$libdir'
10096 hardcode_minus_L=yes
10097 allow_undefined_flag=unsupported
10098 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'
10099 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10103 if test "$GCC" = yes; then
10104 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10105 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'
10107 allow_undefined_flag=' -expect_unresolved \*'
10108 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'
10110 archive_cmds_need_lc='no'
10111 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10112 hardcode_libdir_separator=:
10115 osf4* | osf5*) # as osf3* with the addition of -msym flag
10116 if test "$GCC" = yes; then
10117 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10118 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'
10119 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10121 allow_undefined_flag=' -expect_unresolved \*'
10122 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'
10123 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~
10124 $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'
10126 # Both c and cxx compiler support -rpath directly
10127 hardcode_libdir_flag_spec='-rpath $libdir'
10129 archive_cmds_need_lc='no'
10130 hardcode_libdir_separator=:
10134 no_undefined_flag=' -z defs'
10135 if test "$GCC" = yes; then
10137 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10138 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10139 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10141 case `$CC -V 2>&1` in
10144 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10145 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10146 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10150 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10151 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10152 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10156 hardcode_libdir_flag_spec='-R$libdir'
10157 hardcode_shlibpath_var=no
10159 solaris2.[0-5] | solaris2.[0-5].*) ;;
10161 # The compiler driver will combine and reorder linker options,
10162 # but understands `-z linker_flag'. GCC discards it without `$wl',
10163 # but is careful enough not to reorder.
10164 # Supported since Solaris 2.6 (maybe 2.5.1?)
10165 if test "$GCC" = yes; then
10166 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10168 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10172 link_all_deplibs=yes
10176 if test "x$host_vendor" = xsequent; then
10177 # Use $CC to link under sequent, because it throws in some extra .o
10178 # files that make .init and .fini sections work.
10179 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10181 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10183 hardcode_libdir_flag_spec='-L$libdir'
10184 hardcode_direct=yes
10185 hardcode_minus_L=yes
10186 hardcode_shlibpath_var=no
10190 case $host_vendor in
10192 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10193 hardcode_direct=yes # is this really true???
10196 ## LD is ld it makes a PLAMLIB
10197 ## CC just makes a GrossModule.
10198 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10199 reload_cmds='$CC -r -o $output$reload_objs'
10203 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10204 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10207 runpath_var='LD_RUN_PATH'
10208 hardcode_shlibpath_var=no
10212 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10213 hardcode_shlibpath_var=no
10214 export_dynamic_flag_spec='-Bexport'
10218 if test -d /usr/nec; then
10219 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10220 hardcode_shlibpath_var=no
10221 runpath_var=LD_RUN_PATH
10222 hardcode_runpath_var=yes
10227 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10228 no_undefined_flag='${wl}-z,text'
10229 archive_cmds_need_lc=no
10230 hardcode_shlibpath_var=no
10231 runpath_var='LD_RUN_PATH'
10233 if test "$GCC" = yes; then
10234 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10235 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10237 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10238 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10242 sysv5* | sco3.2v5* | sco5v6*)
10243 # Note: We can NOT use -z defs as we might desire, because we do not
10244 # link with -lc, and that would cause any symbols used from libc to
10245 # always be unresolved, which means just about no library would
10246 # ever link correctly. If we're not using GNU ld we use -z text
10247 # though, which does catch some bad symbols but isn't as heavy-handed
10249 no_undefined_flag='${wl}-z,text'
10250 allow_undefined_flag='${wl}-z,nodefs'
10251 archive_cmds_need_lc=no
10252 hardcode_shlibpath_var=no
10253 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10254 hardcode_libdir_separator=':'
10255 link_all_deplibs=yes
10256 export_dynamic_flag_spec='${wl}-Bexport'
10257 runpath_var='LD_RUN_PATH'
10259 if test "$GCC" = yes; then
10260 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10261 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10263 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10264 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10269 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10270 hardcode_libdir_flag_spec='-L$libdir'
10271 hardcode_shlibpath_var=no
10279 if test x$host_vendor = xsni; then
10281 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10282 export_dynamic_flag_spec='${wl}-Blargedynsym'
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10289 $as_echo "$ld_shlibs" >&6; }
10290 test "$ld_shlibs" = no && can_build_shared=no
10292 with_gnu_ld=$with_gnu_ld
10309 # Do we need to explicitly link libc?
10311 case "x$archive_cmds_need_lc" in
10313 # Assume -lc should be added
10314 archive_cmds_need_lc=yes
10316 if test "$enable_shared" = yes && test "$GCC" = yes; then
10317 case $archive_cmds in
10319 # FIXME: we may have to deal with multi-command sequences.
10322 # Test whether the compiler implicitly links with -lc since on some
10323 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10324 # to ld, don't add -lc before -lgcc.
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10326 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10327 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10328 $as_echo_n "(cached) " >&6
10331 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10333 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10334 (eval $ac_compile) 2>&5
10336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10337 test $ac_status = 0; } 2>conftest.err; then
10340 libobjs=conftest.$ac_objext
10342 wl=$lt_prog_compiler_wl
10343 pic_flag=$lt_prog_compiler_pic
10349 lt_save_allow_undefined_flag=$allow_undefined_flag
10350 allow_undefined_flag=
10351 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10352 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10355 test $ac_status = 0; }
10357 lt_cv_archive_cmds_need_lc=no
10359 lt_cv_archive_cmds_need_lc=yes
10361 allow_undefined_flag=$lt_save_allow_undefined_flag
10363 cat conftest.err 1>&5
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10369 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10370 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10534 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10536 if test "$GCC" = yes; then
10538 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10539 *) lt_awk_arg="/^libraries:/" ;;
10542 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10543 *) lt_sed_strip_eq="s,=/,/,g" ;;
10545 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10546 case $lt_search_path_spec in
10548 # if the path contains ";" then we assume it to be the separator
10549 # otherwise default to the standard path separator (i.e. ":") - it is
10550 # assumed that no part of a normal pathname contains ";" but that should
10551 # okay in the real world where ";" in dirpaths is itself problematic.
10552 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10555 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10558 # Ok, now we have the path, separated by spaces, we can step through it
10559 # and add multilib dir if necessary.
10560 lt_tmp_lt_search_path_spec=
10561 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10562 for lt_sys_path in $lt_search_path_spec; do
10563 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10564 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10566 test -d "$lt_sys_path" && \
10567 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10570 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10571 BEGIN {RS=" "; FS="/|\n";} {
10574 for (lt_i = NF; lt_i > 0; lt_i--) {
10575 if ($lt_i != "" && $lt_i != ".") {
10576 if ($lt_i == "..") {
10579 if (lt_count == 0) {
10580 lt_foo="/" $lt_i lt_foo;
10587 if (lt_foo != "") { lt_freq[lt_foo]++; }
10588 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10590 # AWK program above erroneously prepends '/' to C:/dos/paths
10593 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10594 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10596 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10598 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10600 library_names_spec=
10601 libname_spec='lib$name'
10605 postuninstall_cmds=
10609 shlibpath_overrides_runpath=unknown
10611 dynamic_linker="$host_os ld.so"
10612 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10613 need_lib_prefix=unknown
10614 hardcode_into_libs=no
10616 # when you set need_version to no, make sure it does not cause -set_version
10617 # flags to be left without arguments
10618 need_version=unknown
10623 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10624 shlibpath_var=LIBPATH
10626 # AIX 3 has no versioning support, so we append a major version to the name.
10627 soname_spec='${libname}${release}${shared_ext}$major'
10634 hardcode_into_libs=yes
10635 if test "$host_cpu" = ia64; then
10636 # AIX 5 supports IA64
10637 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10638 shlibpath_var=LD_LIBRARY_PATH
10640 # With GCC up to 2.95.x, collect2 would create an import file
10641 # for dependence libraries. The import file would start with
10642 # the line `#! .'. This would cause the generated library to
10643 # depend on `.', always an invalid library. This was fixed in
10644 # development snapshots of GCC prior to 3.0.
10646 aix4 | aix4.[01] | aix4.[01].*)
10647 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10649 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10652 can_build_shared=no
10656 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10657 # soname into executable. Probably we can add versioning support to
10658 # collect2, so additional links can be useful in future.
10659 if test "$aix_use_runtimelinking" = yes; then
10660 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10661 # instead of lib<name>.a to let people know that these are not
10662 # typical AIX shared libraries.
10663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10665 # We preserve .a as extension for shared libraries through AIX4.2
10666 # and later when we are not doing run time linking.
10667 library_names_spec='${libname}${release}.a $libname.a'
10668 soname_spec='${libname}${release}${shared_ext}$major'
10670 shlibpath_var=LIBPATH
10677 # Since July 2007 AmigaOS4 officially supports .so libraries.
10678 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10682 library_names_spec='$libname.ixlibrary $libname.a'
10683 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10684 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'
10690 library_names_spec='${libname}${shared_ext}'
10691 dynamic_linker="$host_os ld.so"
10692 shlibpath_var=LIBRARY_PATH
10698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10699 soname_spec='${libname}${release}${shared_ext}$major'
10700 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10701 shlibpath_var=LD_LIBRARY_PATH
10702 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10703 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10704 # the default ld.so.conf also contains /usr/contrib/lib and
10705 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10706 # libtool to hard-code these into programs
10709 cygwin* | mingw* | pw32* | cegcc*)
10710 version_type=windows
10715 case $GCC,$host_os in
10716 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10717 library_names_spec='$libname.dll.a'
10718 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10719 postinstall_cmds='base_file=`basename \${file}`~
10720 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10721 dldir=$destdir/`dirname \$dlpath`~
10722 test -d \$dldir || mkdir -p \$dldir~
10723 $install_prog $dir/$dlname \$dldir/$dlname~
10724 chmod a+x \$dldir/$dlname~
10725 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10726 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10728 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10729 dlpath=$dir/\$dldll~
10731 shlibpath_overrides_runpath=yes
10735 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10736 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10738 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10741 # MinGW DLLs use traditional 'lib' prefix
10742 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10745 # pw32 DLLs use 'pw' prefix rather than 'lib'
10746 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10752 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10755 dynamic_linker='Win32 ld.exe'
10756 # FIXME: first we should search . and the directory the executable is in
10760 darwin* | rhapsody*)
10761 dynamic_linker="$host_os dyld"
10762 version_type=darwin
10765 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10766 soname_spec='${libname}${release}${major}$shared_ext'
10767 shlibpath_overrides_runpath=yes
10768 shlibpath_var=DYLD_LIBRARY_PATH
10769 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10771 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10772 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10780 soname_spec='${libname}${release}${shared_ext}$major'
10781 shlibpath_var=LD_LIBRARY_PATH
10784 freebsd* | dragonfly*)
10785 # DragonFly does not have aout. When/if they implement a new
10786 # versioning mechanism, adjust this.
10787 if test -x /usr/bin/objformat; then
10788 objformat=`/usr/bin/objformat`
10791 freebsd[23].*) objformat=aout ;;
10792 *) objformat=elf ;;
10795 version_type=freebsd-$objformat
10796 case $version_type in
10798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10803 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10807 shlibpath_var=LD_LIBRARY_PATH
10810 shlibpath_overrides_runpath=yes
10812 freebsd3.[01]* | freebsdelf3.[01]*)
10813 shlibpath_overrides_runpath=yes
10814 hardcode_into_libs=yes
10816 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10817 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10818 shlibpath_overrides_runpath=no
10819 hardcode_into_libs=yes
10821 *) # from 4.6 on, and DragonFly
10822 shlibpath_overrides_runpath=yes
10823 hardcode_into_libs=yes
10832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10833 soname_spec='${libname}${release}${shared_ext}$major'
10834 shlibpath_var=LD_LIBRARY_PATH
10835 hardcode_into_libs=yes
10842 dynamic_linker="$host_os runtime_loader"
10843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10844 soname_spec='${libname}${release}${shared_ext}$major'
10845 shlibpath_var=LIBRARY_PATH
10846 shlibpath_overrides_runpath=yes
10847 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10848 hardcode_into_libs=yes
10851 hpux9* | hpux10* | hpux11*)
10852 # Give a soname corresponding to the major version so that dld.sl refuses to
10853 # link against other versions.
10860 hardcode_into_libs=yes
10861 dynamic_linker="$host_os dld.so"
10862 shlibpath_var=LD_LIBRARY_PATH
10863 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10865 soname_spec='${libname}${release}${shared_ext}$major'
10866 if test "X$HPUX_IA64_MODE" = X32; then
10867 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10869 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10871 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10875 hardcode_into_libs=yes
10876 dynamic_linker="$host_os dld.sl"
10877 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10878 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10880 soname_spec='${libname}${release}${shared_ext}$major'
10881 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10882 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10886 dynamic_linker="$host_os dld.sl"
10887 shlibpath_var=SHLIB_PATH
10888 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10890 soname_spec='${libname}${release}${shared_ext}$major'
10893 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10894 postinstall_cmds='chmod 555 $lib'
10895 # or fails outright, so override atomically:
10896 install_override_mode=555
10903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10904 soname_spec='${libname}${release}${shared_ext}$major'
10905 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10906 shlibpath_var=LD_LIBRARY_PATH
10907 shlibpath_overrides_runpath=no
10908 hardcode_into_libs=yes
10911 irix5* | irix6* | nonstopux*)
10913 nonstopux*) version_type=nonstopux ;;
10915 if test "$lt_cv_prog_gnu_ld" = yes; then
10923 soname_spec='${libname}${release}${shared_ext}$major'
10924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10926 irix5* | nonstopux*)
10927 libsuff= shlibsuff=
10930 case $LD in # libtool.m4 will add one of these switches to LD
10931 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10932 libsuff= shlibsuff= libmagic=32-bit;;
10933 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10934 libsuff=32 shlibsuff=N32 libmagic=N32;;
10935 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10936 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10937 *) libsuff= shlibsuff= libmagic=never-match;;
10941 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10942 shlibpath_overrides_runpath=no
10943 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10944 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10945 hardcode_into_libs=yes
10948 # No shared lib support for Linux oldld, aout, or coff.
10949 linux*oldld* | linux*aout* | linux*coff*)
10953 # This must be Linux ELF.
10955 # uclinux* changes (here and below) have been submitted to the libtool
10956 # project, but have not yet been accepted: they are GCC-local changes
10957 # for the time being. (See
10958 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10959 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10964 soname_spec='${libname}${release}${shared_ext}$major'
10965 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10966 shlibpath_var=LD_LIBRARY_PATH
10967 shlibpath_overrides_runpath=no
10969 # Some binutils ld are patched to set DT_RUNPATH
10970 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10971 $as_echo_n "(cached) " >&6
10973 lt_cv_shlibpath_overrides_runpath=no
10974 save_LDFLAGS=$LDFLAGS
10975 save_libdir=$libdir
10976 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10977 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10979 /* end confdefs.h. */
10989 if ac_fn_c_try_link "$LINENO"; then :
10990 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10991 lt_cv_shlibpath_overrides_runpath=yes
10994 rm -f core conftest.err conftest.$ac_objext \
10995 conftest$ac_exeext conftest.$ac_ext
10996 LDFLAGS=$save_LDFLAGS
10997 libdir=$save_libdir
11001 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11003 # This implies no fast_install, which is unacceptable.
11004 # Some rework will be needed to allow for fast_install
11005 # before this can be enabled.
11006 hardcode_into_libs=yes
11008 # Append ld.so.conf contents to the search path
11009 if test -f /etc/ld.so.conf; then
11010 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' ' '`
11011 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11014 # We used to test for /lib/ld.so.1 and disable shared libraries on
11015 # powerpc, because MkLinux only supported shared libraries with the
11016 # GNU dynamic linker. Since this was broken with cross compilers,
11017 # most powerpc-linux boxes support dynamic linking these days and
11018 # people can always --disable-shared, the test was removed, and we
11019 # assume the GNU/Linux dynamic linker is in use.
11020 dynamic_linker='GNU/Linux ld.so'
11027 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11029 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11030 dynamic_linker='NetBSD (a.out) ld.so'
11032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11033 soname_spec='${libname}${release}${shared_ext}$major'
11034 dynamic_linker='NetBSD ld.elf_so'
11036 shlibpath_var=LD_LIBRARY_PATH
11037 shlibpath_overrides_runpath=yes
11038 hardcode_into_libs=yes
11043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11044 shlibpath_var=LD_LIBRARY_PATH
11045 shlibpath_overrides_runpath=yes
11052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11053 soname_spec='${libname}${release}${shared_ext}$major'
11054 shlibpath_var=LD_LIBRARY_PATH
11055 shlibpath_overrides_runpath=no
11056 hardcode_into_libs=yes
11057 dynamic_linker='ldqnx.so'
11062 sys_lib_dlsearch_path_spec="/usr/lib"
11064 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11066 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11067 *) need_version=no ;;
11069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11070 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11071 shlibpath_var=LD_LIBRARY_PATH
11072 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11074 openbsd2.[89] | openbsd2.[89].*)
11075 shlibpath_overrides_runpath=no
11078 shlibpath_overrides_runpath=yes
11082 shlibpath_overrides_runpath=yes
11087 libname_spec='$name'
11090 library_names_spec='$libname${shared_ext} $libname.a'
11091 dynamic_linker='OS/2 ld.exe'
11092 shlibpath_var=LIBPATH
11095 osf3* | osf4* | osf5*)
11099 soname_spec='${libname}${release}${shared_ext}$major'
11100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11101 shlibpath_var=LD_LIBRARY_PATH
11102 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11103 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11115 soname_spec='${libname}${release}${shared_ext}$major'
11116 shlibpath_var=LD_LIBRARY_PATH
11117 shlibpath_overrides_runpath=yes
11118 hardcode_into_libs=yes
11119 # ldd complains unless libraries are executable
11120 postinstall_cmds='chmod +x $lib'
11125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11126 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11127 shlibpath_var=LD_LIBRARY_PATH
11128 shlibpath_overrides_runpath=yes
11129 if test "$with_gnu_ld" = yes; then
11137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11138 soname_spec='${libname}${release}${shared_ext}$major'
11139 shlibpath_var=LD_LIBRARY_PATH
11140 case $host_vendor in
11142 shlibpath_overrides_runpath=no
11144 runpath_var=LD_RUN_PATH
11152 shlibpath_overrides_runpath=no
11153 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11159 if test -d /usr/nec ;then
11161 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11162 soname_spec='$libname${shared_ext}.$major'
11163 shlibpath_var=LD_LIBRARY_PATH
11167 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11168 version_type=freebsd-elf
11171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11172 soname_spec='${libname}${release}${shared_ext}$major'
11173 shlibpath_var=LD_LIBRARY_PATH
11174 shlibpath_overrides_runpath=yes
11175 hardcode_into_libs=yes
11176 if test "$with_gnu_ld" = yes; then
11177 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11179 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11182 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11186 sys_lib_dlsearch_path_spec='/usr/lib'
11190 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11195 shlibpath_var=LD_LIBRARY_PATH
11196 shlibpath_overrides_runpath=no
11197 hardcode_into_libs=yes
11202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11203 soname_spec='${libname}${release}${shared_ext}$major'
11204 shlibpath_var=LD_LIBRARY_PATH
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11212 $as_echo "$dynamic_linker" >&6; }
11213 test "$dynamic_linker" = no && can_build_shared=no
11215 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11216 if test "$GCC" = yes; then
11217 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11220 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11221 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11223 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11224 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11319 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11321 if test -n "$hardcode_libdir_flag_spec" ||
11322 test -n "$runpath_var" ||
11323 test "X$hardcode_automatic" = "Xyes" ; then
11325 # We can hardcode non-existent directories.
11326 if test "$hardcode_direct" != no &&
11327 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11328 # have to relink, otherwise we might link with an installed library
11329 # when we should be linking with a yet-to-be-installed one
11330 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11331 test "$hardcode_minus_L" != no; then
11332 # Linking always hardcodes the temporary library directory.
11333 hardcode_action=relink
11335 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11336 hardcode_action=immediate
11339 # We cannot hardcode anything, or else we can only hardcode existing
11341 hardcode_action=unsupported
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11344 $as_echo "$hardcode_action" >&6; }
11346 if test "$hardcode_action" = relink ||
11347 test "$inherit_rpath" = yes; then
11348 # Fast installation is not supported
11349 enable_fast_install=no
11350 elif test "$shlibpath_overrides_runpath" = yes ||
11351 test "$enable_shared" = no; then
11352 # Fast installation is not necessary
11353 enable_fast_install=needless
11361 if test "x$enable_dlopen" != xyes; then
11362 enable_dlopen=unknown
11363 enable_dlopen_self=unknown
11364 enable_dlopen_self_static=unknown
11371 lt_cv_dlopen="load_add_on"
11373 lt_cv_dlopen_self=yes
11376 mingw* | pw32* | cegcc*)
11377 lt_cv_dlopen="LoadLibrary"
11382 lt_cv_dlopen="dlopen"
11387 # if libdl is installed we need to link against it
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11389 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11390 if ${ac_cv_lib_dl_dlopen+:} false; then :
11391 $as_echo_n "(cached) " >&6
11393 ac_check_lib_save_LIBS=$LIBS
11395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11396 /* end confdefs.h. */
11398 /* Override any GCC internal prototype to avoid an error.
11399 Use char because int might match the return type of a GCC
11400 builtin and then its argument prototype would still apply. */
11413 if ac_fn_c_try_link "$LINENO"; then :
11414 ac_cv_lib_dl_dlopen=yes
11416 ac_cv_lib_dl_dlopen=no
11418 rm -f core conftest.err conftest.$ac_objext \
11419 conftest$ac_exeext conftest.$ac_ext
11420 LIBS=$ac_check_lib_save_LIBS
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11423 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11424 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11425 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11428 lt_cv_dlopen="dyld"
11430 lt_cv_dlopen_self=yes
11437 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11438 if test "x$ac_cv_func_shl_load" = xyes; then :
11439 lt_cv_dlopen="shl_load"
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11442 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11443 if ${ac_cv_lib_dld_shl_load+:} false; then :
11444 $as_echo_n "(cached) " >&6
11446 ac_check_lib_save_LIBS=$LIBS
11448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11449 /* end confdefs.h. */
11451 /* Override any GCC internal prototype to avoid an error.
11452 Use char because int might match the return type of a GCC
11453 builtin and then its argument prototype would still apply. */
11461 return shl_load ();
11466 if ac_fn_c_try_link "$LINENO"; then :
11467 ac_cv_lib_dld_shl_load=yes
11469 ac_cv_lib_dld_shl_load=no
11471 rm -f core conftest.err conftest.$ac_objext \
11472 conftest$ac_exeext conftest.$ac_ext
11473 LIBS=$ac_check_lib_save_LIBS
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11476 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11477 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11478 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11480 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11481 if test "x$ac_cv_func_dlopen" = xyes; then :
11482 lt_cv_dlopen="dlopen"
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11485 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11486 if ${ac_cv_lib_dl_dlopen+:} false; then :
11487 $as_echo_n "(cached) " >&6
11489 ac_check_lib_save_LIBS=$LIBS
11491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11492 /* end confdefs.h. */
11494 /* Override any GCC internal prototype to avoid an error.
11495 Use char because int might match the return type of a GCC
11496 builtin and then its argument prototype would still apply. */
11509 if ac_fn_c_try_link "$LINENO"; then :
11510 ac_cv_lib_dl_dlopen=yes
11512 ac_cv_lib_dl_dlopen=no
11514 rm -f core conftest.err conftest.$ac_objext \
11515 conftest$ac_exeext conftest.$ac_ext
11516 LIBS=$ac_check_lib_save_LIBS
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11519 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11520 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11521 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11524 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11525 if ${ac_cv_lib_svld_dlopen+:} false; then :
11526 $as_echo_n "(cached) " >&6
11528 ac_check_lib_save_LIBS=$LIBS
11529 LIBS="-lsvld $LIBS"
11530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11531 /* end confdefs.h. */
11533 /* Override any GCC internal prototype to avoid an error.
11534 Use char because int might match the return type of a GCC
11535 builtin and then its argument prototype would still apply. */
11548 if ac_fn_c_try_link "$LINENO"; then :
11549 ac_cv_lib_svld_dlopen=yes
11551 ac_cv_lib_svld_dlopen=no
11553 rm -f core conftest.err conftest.$ac_objext \
11554 conftest$ac_exeext conftest.$ac_ext
11555 LIBS=$ac_check_lib_save_LIBS
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11558 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11559 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11560 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11563 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11564 if ${ac_cv_lib_dld_dld_link+:} false; then :
11565 $as_echo_n "(cached) " >&6
11567 ac_check_lib_save_LIBS=$LIBS
11569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11570 /* end confdefs.h. */
11572 /* Override any GCC internal prototype to avoid an error.
11573 Use char because int might match the return type of a GCC
11574 builtin and then its argument prototype would still apply. */
11582 return dld_link ();
11587 if ac_fn_c_try_link "$LINENO"; then :
11588 ac_cv_lib_dld_dld_link=yes
11590 ac_cv_lib_dld_dld_link=no
11592 rm -f core conftest.err conftest.$ac_objext \
11593 conftest$ac_exeext conftest.$ac_ext
11594 LIBS=$ac_check_lib_save_LIBS
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11597 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11598 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11599 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11620 if test "x$lt_cv_dlopen" != xno; then
11626 case $lt_cv_dlopen in
11628 save_CPPFLAGS="$CPPFLAGS"
11629 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11631 save_LDFLAGS="$LDFLAGS"
11632 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11635 LIBS="$lt_cv_dlopen_libs $LIBS"
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11638 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11639 if ${lt_cv_dlopen_self+:} false; then :
11640 $as_echo_n "(cached) " >&6
11642 if test "$cross_compiling" = yes; then :
11643 lt_cv_dlopen_self=cross
11645 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11646 lt_status=$lt_dlunknown
11647 cat > conftest.$ac_ext <<_LT_EOF
11648 #line 11648 "configure"
11649 #include "confdefs.h"
11658 # define LT_DLGLOBAL RTLD_GLOBAL
11661 # define LT_DLGLOBAL DL_GLOBAL
11663 # define LT_DLGLOBAL 0
11667 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11668 find out it does not work in some platform. */
11669 #ifndef LT_DLLAZY_OR_NOW
11671 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11674 # define LT_DLLAZY_OR_NOW DL_LAZY
11677 # define LT_DLLAZY_OR_NOW RTLD_NOW
11680 # define LT_DLLAZY_OR_NOW DL_NOW
11682 # define LT_DLLAZY_OR_NOW 0
11689 /* When -fvisbility=hidden is used, assume the code has been annotated
11690 correspondingly for the symbols needed. */
11691 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11692 void fnord () __attribute__((visibility("default")));
11695 void fnord () { int i=42; }
11698 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11699 int status = $lt_dlunknown;
11703 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11706 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11707 else puts (dlerror ());
11709 /* dlclose (self); */
11717 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11718 (eval $ac_link) 2>&5
11720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11721 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11722 (./conftest; exit; ) >&5 2>/dev/null
11724 case x$lt_status in
11725 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11726 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11727 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11730 # compilation failed
11731 lt_cv_dlopen_self=no
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11739 $as_echo "$lt_cv_dlopen_self" >&6; }
11741 if test "x$lt_cv_dlopen_self" = xyes; then
11742 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11744 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11745 if ${lt_cv_dlopen_self_static+:} false; then :
11746 $as_echo_n "(cached) " >&6
11748 if test "$cross_compiling" = yes; then :
11749 lt_cv_dlopen_self_static=cross
11751 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11752 lt_status=$lt_dlunknown
11753 cat > conftest.$ac_ext <<_LT_EOF
11754 #line 11754 "configure"
11755 #include "confdefs.h"
11764 # define LT_DLGLOBAL RTLD_GLOBAL
11767 # define LT_DLGLOBAL DL_GLOBAL
11769 # define LT_DLGLOBAL 0
11773 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11774 find out it does not work in some platform. */
11775 #ifndef LT_DLLAZY_OR_NOW
11777 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11780 # define LT_DLLAZY_OR_NOW DL_LAZY
11783 # define LT_DLLAZY_OR_NOW RTLD_NOW
11786 # define LT_DLLAZY_OR_NOW DL_NOW
11788 # define LT_DLLAZY_OR_NOW 0
11795 /* When -fvisbility=hidden is used, assume the code has been annotated
11796 correspondingly for the symbols needed. */
11797 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11798 void fnord () __attribute__((visibility("default")));
11801 void fnord () { int i=42; }
11804 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11805 int status = $lt_dlunknown;
11809 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11812 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11813 else puts (dlerror ());
11815 /* dlclose (self); */
11823 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11824 (eval $ac_link) 2>&5
11826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11827 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11828 (./conftest; exit; ) >&5 2>/dev/null
11830 case x$lt_status in
11831 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11832 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11833 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11836 # compilation failed
11837 lt_cv_dlopen_self_static=no
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11845 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11848 CPPFLAGS="$save_CPPFLAGS"
11849 LDFLAGS="$save_LDFLAGS"
11854 case $lt_cv_dlopen_self in
11855 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11856 *) enable_dlopen_self=unknown ;;
11859 case $lt_cv_dlopen_self_static in
11860 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11861 *) enable_dlopen_self_static=unknown ;;
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11884 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11885 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11886 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11887 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11889 $as_echo "yes" >&6; }
11891 # FIXME - insert some real tests, host_os isn't really good enough
11894 if test -n "$STRIP" ; then
11895 striplib="$STRIP -x"
11896 old_striplib="$STRIP -S"
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11898 $as_echo "yes" >&6; }
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11901 $as_echo "no" >&6; }
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11906 $as_echo "no" >&6; }
11922 # Report which library types will actually be built
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11924 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11926 $as_echo "$can_build_shared" >&6; }
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11929 $as_echo_n "checking whether to build shared libraries... " >&6; }
11930 test "$can_build_shared" = "no" && enable_shared=no
11932 # On AIX, shared libraries and static libraries use the same namespace, and
11933 # are all built from PIC.
11936 test "$enable_shared" = yes && enable_static=no
11937 if test -n "$RANLIB"; then
11938 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11939 postinstall_cmds='$RANLIB $lib'
11944 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11945 test "$enable_shared" = yes && enable_static=no
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11950 $as_echo "$enable_shared" >&6; }
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11953 $as_echo_n "checking whether to build static libraries... " >&6; }
11954 # Make sure either enable_shared or enable_static is yes.
11955 test "$enable_shared" = yes || enable_static=yes
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11957 $as_echo "$enable_static" >&6; }
11964 ac_cpp='$CPP $CPPFLAGS'
11965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11983 ac_config_commands="$ac_config_commands libtool"
11988 # Only expand once:
11994 gdc_save_DFLAGS=$GDCFLAGS
11995 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
11998 # Source file extension for D test sources.
12001 # Object file extension for compiled D test sources.
12005 # Code to be used in simple compile tests
12006 lt_simple_compile_test_code="\
12008 shared int some_variable = 0;
12011 # Code to be used in simple link tests
12012 lt_simple_link_test_code="\
12014 extern(C) int main() { return 0; }
12017 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12024 # If no C compiler was specified, use CC.
12027 # If no C compiler flags were specified, use CFLAGS.
12028 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12030 # Allow CC to be a program name with arguments.
12034 # save warnings/boilerplate of simple test code
12035 ac_outfile=conftest.$ac_objext
12036 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12037 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12038 _lt_compiler_boilerplate=`cat conftest.err`
12041 ac_outfile=conftest.$ac_objext
12042 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12043 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12044 _lt_linker_boilerplate=`cat conftest.err`
12048 # Allow CC to be a program name with arguments.
12050 lt_save_CFLAGS=$CFLAGS
12058 for cc_temp in $compiler""; do
12060 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12061 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12066 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12069 # GDC did not exist at the time GCC didn't implicitly link libc in.
12070 archive_cmds_need_lc_D=no
12072 old_archive_cmds_D=$old_archive_cmds
12073 reload_flag_D=$reload_flag
12074 reload_cmds_D=$reload_cmds
12077 ## There is no encapsulation within the following macros, do not change
12078 ## the running order or otherwise move them around unless you know exactly
12079 ## what you are doing...
12080 if test -n "$compiler"; then
12082 lt_prog_compiler_no_builtin_flag_D=
12084 if test "$GCC" = yes; then
12085 case $cc_basename in
12087 lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
12089 lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12093 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12094 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12095 $as_echo_n "(cached) " >&6
12097 lt_cv_prog_compiler_rtti_exceptions=no
12098 ac_outfile=conftest.$ac_objext
12099 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12100 lt_compiler_flag="-fno-rtti -fno-exceptions"
12101 # Insert the option either (1) after the last *FLAGS variable, or
12102 # (2) before a word containing "conftest.", or (3) at the end.
12103 # Note that $ac_compile itself does not contain backslashes and begins
12104 # with a dollar sign (not a hyphen), so the echo should work correctly.
12105 # The option is referenced via a variable to avoid confusing sed.
12106 lt_compile=`echo "$ac_compile" | $SED \
12107 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12108 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12109 -e 's:$: $lt_compiler_flag:'`
12110 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12111 (eval "$lt_compile" 2>conftest.err)
12113 cat conftest.err >&5
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 if (exit $ac_status) && test -s "$ac_outfile"; then
12116 # The compiler can only warn and ignore the option if not recognized
12117 # So say no if there are warnings other than the usual output.
12118 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12119 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12120 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12121 lt_cv_prog_compiler_rtti_exceptions=yes
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12128 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12130 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12131 lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12140 lt_prog_compiler_wl_D=
12141 lt_prog_compiler_pic_D=
12142 lt_prog_compiler_static_D=
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12145 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12147 if test "$GCC" = yes; then
12148 lt_prog_compiler_wl_D='-Wl,'
12149 lt_prog_compiler_static_D='-static'
12153 # All AIX code is PIC.
12154 if test "$host_cpu" = ia64; then
12155 # AIX 5 now supports IA64 processor
12156 lt_prog_compiler_static_D='-Bstatic'
12158 lt_prog_compiler_pic_D='-fPIC'
12164 # see comment about AmigaOS4 .so support
12165 lt_prog_compiler_pic_D='-fPIC'
12168 # FIXME: we need at least 68020 code to build shared libraries, but
12169 # adding the `-m68020' flag to GCC prevents building anything better,
12171 lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12176 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12177 # PIC is the default for these OSes.
12180 mingw* | cygwin* | pw32* | os2* | cegcc*)
12181 # This hack is so that the source file can tell whether it is being
12182 # built for inclusion in a dll (and should export symbols for example).
12183 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12184 # (--disable-auto-import) libraries
12185 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12188 darwin* | rhapsody*)
12189 # PIC is the default on this platform
12190 # Common symbols not allowed in MH_DYLIB files
12191 lt_prog_compiler_pic_D='-fno-common'
12195 # PIC is the default for Haiku.
12196 # The "-static" flag exists, but is broken.
12197 lt_prog_compiler_static_D=
12201 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12202 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12203 # sets the default TLS model and affects inlining.
12209 lt_prog_compiler_pic_D='-fPIC'
12215 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12216 # Instead, we relocate shared libraries at runtime.
12220 # Just because we use GCC doesn't mean we suddenly get shared libraries
12221 # on systems that don't support them.
12222 lt_prog_compiler_can_build_shared_D=no
12227 # QNX uses GNU C++, but need to define -shared option too, otherwise
12228 # it will coredump.
12229 lt_prog_compiler_pic_D='-fPIC -shared'
12233 if test -d /usr/nec; then
12234 lt_prog_compiler_pic_D=-Kconform_pic
12239 lt_prog_compiler_pic_D='-fPIC'
12243 case $cc_basename in
12244 nvcc*) # Cuda Compiler Driver 2.2
12245 lt_prog_compiler_wl_D='-Xlinker '
12246 lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12250 # PORTME Check for flag to pass linker flags through the system compiler.
12253 lt_prog_compiler_wl_D='-Wl,'
12254 if test "$host_cpu" = ia64; then
12255 # AIX 5 now supports IA64 processor
12256 lt_prog_compiler_static_D='-Bstatic'
12258 lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12262 mingw* | cygwin* | pw32* | os2* | cegcc*)
12263 # This hack is so that the source file can tell whether it is being
12264 # built for inclusion in a dll (and should export symbols for example).
12265 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12268 hpux9* | hpux10* | hpux11*)
12269 lt_prog_compiler_wl_D='-Wl,'
12270 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12271 # not for PA HP-UX.
12277 lt_prog_compiler_pic_D='+Z'
12280 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12281 lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12284 irix5* | irix6* | nonstopux*)
12285 lt_prog_compiler_wl_D='-Wl,'
12286 # PIC (with -KPIC) is the default.
12287 lt_prog_compiler_static_D='-non_shared'
12290 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12291 case $cc_basename in
12292 # old Intel for x86_64 which still supported -KPIC.
12294 lt_prog_compiler_wl_D='-Wl,'
12295 lt_prog_compiler_pic_D='-KPIC'
12296 lt_prog_compiler_static_D='-static'
12298 # icc used to be incompatible with GCC.
12299 # ICC 10 doesn't accept -KPIC any more.
12301 lt_prog_compiler_wl_D='-Wl,'
12302 lt_prog_compiler_pic_D='-fPIC'
12303 lt_prog_compiler_static_D='-static'
12305 # Lahey Fortran 8.1.
12307 lt_prog_compiler_wl_D='-Wl,'
12308 lt_prog_compiler_pic_D='--shared'
12309 lt_prog_compiler_static_D='--static'
12311 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12312 # Portland Group compilers (*not* the Pentium gcc compiler,
12313 # which looks to be a dead project)
12314 lt_prog_compiler_wl_D='-Wl,'
12315 lt_prog_compiler_pic_D='-fpic'
12316 lt_prog_compiler_static_D='-Bstatic'
12319 lt_prog_compiler_wl_D='-Wl,'
12320 # All Alpha code is PIC.
12321 lt_prog_compiler_static_D='-non_shared'
12323 xl* | bgxl* | bgf* | mpixl*)
12324 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12325 lt_prog_compiler_wl_D='-Wl,'
12326 lt_prog_compiler_pic_D='-qpic'
12327 lt_prog_compiler_static_D='-qstaticlink'
12330 case `$CC -V 2>&1 | sed 5q` in
12331 *Sun\ F* | *Sun*Fortran*)
12332 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12333 lt_prog_compiler_pic_D='-KPIC'
12334 lt_prog_compiler_static_D='-Bstatic'
12335 lt_prog_compiler_wl_D=''
12339 lt_prog_compiler_pic_D='-KPIC'
12340 lt_prog_compiler_static_D='-Bstatic'
12341 lt_prog_compiler_wl_D='-Wl,'
12349 lt_prog_compiler_pic_D='-KPIC'
12350 lt_prog_compiler_static_D='-Bstatic'
12354 # QNX uses GNU C++, but need to define -shared option too, otherwise
12355 # it will coredump.
12356 lt_prog_compiler_pic_D='-fPIC -shared'
12359 osf3* | osf4* | osf5*)
12360 lt_prog_compiler_wl_D='-Wl,'
12361 # All OSF/1 code is PIC.
12362 lt_prog_compiler_static_D='-non_shared'
12366 lt_prog_compiler_static_D='-non_shared'
12370 lt_prog_compiler_pic_D='-KPIC'
12371 lt_prog_compiler_static_D='-Bstatic'
12372 case $cc_basename in
12373 f77* | f90* | f95*)
12374 lt_prog_compiler_wl_D='-Qoption ld ';;
12376 lt_prog_compiler_wl_D='-Wl,';;
12381 lt_prog_compiler_wl_D='-Qoption ld '
12382 lt_prog_compiler_pic_D='-PIC'
12383 lt_prog_compiler_static_D='-Bstatic'
12386 sysv4 | sysv4.2uw2* | sysv4.3*)
12387 lt_prog_compiler_wl_D='-Wl,'
12388 lt_prog_compiler_pic_D='-KPIC'
12389 lt_prog_compiler_static_D='-Bstatic'
12393 if test -d /usr/nec ;then
12394 lt_prog_compiler_pic_D='-Kconform_pic'
12395 lt_prog_compiler_static_D='-Bstatic'
12399 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12400 lt_prog_compiler_wl_D='-Wl,'
12401 lt_prog_compiler_pic_D='-KPIC'
12402 lt_prog_compiler_static_D='-Bstatic'
12406 lt_prog_compiler_wl_D='-Wl,'
12407 lt_prog_compiler_can_build_shared_D=no
12411 lt_prog_compiler_pic_D='-pic'
12412 lt_prog_compiler_static_D='-Bstatic'
12416 lt_prog_compiler_can_build_shared_D=no
12422 # For platforms which do not support PIC, -DPIC is meaningless:
12424 lt_prog_compiler_pic_D=
12427 lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12431 $as_echo "$lt_prog_compiler_pic_D" >&6; }
12436 # Check to make sure the PIC flag actually works.
12438 if test -n "$lt_prog_compiler_pic_D"; then
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12440 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
12441 if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
12442 $as_echo_n "(cached) " >&6
12444 lt_cv_prog_compiler_pic_works_D=no
12445 ac_outfile=conftest.$ac_objext
12446 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12447 lt_compiler_flag="$lt_prog_compiler_pic_D"
12448 # Insert the option either (1) after the last *FLAGS variable, or
12449 # (2) before a word containing "conftest.", or (3) at the end.
12450 # Note that $ac_compile itself does not contain backslashes and begins
12451 # with a dollar sign (not a hyphen), so the echo should work correctly.
12452 # The option is referenced via a variable to avoid confusing sed.
12453 lt_compile=`echo "$ac_compile" | $SED \
12454 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12455 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12456 -e 's:$: $lt_compiler_flag:'`
12457 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12458 (eval "$lt_compile" 2>conftest.err)
12460 cat conftest.err >&5
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 if (exit $ac_status) && test -s "$ac_outfile"; then
12463 # The compiler can only warn and ignore the option if not recognized
12464 # So say no if there are warnings other than the usual output.
12465 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12466 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12467 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12468 lt_cv_prog_compiler_pic_works_D=yes
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12475 $as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12477 if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12478 case $lt_prog_compiler_pic_D in
12480 *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12483 lt_prog_compiler_pic_D=
12484 lt_prog_compiler_can_build_shared_D=no
12492 # Check to make sure the static flag actually works.
12494 wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12496 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12497 if ${lt_cv_prog_compiler_static_works_D+:} false; then :
12498 $as_echo_n "(cached) " >&6
12500 lt_cv_prog_compiler_static_works_D=no
12501 save_LDFLAGS="$LDFLAGS"
12502 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12503 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12504 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12505 # The linker can only warn and ignore the option if not recognized
12506 # So say no if there are warnings
12507 if test -s conftest.err; then
12508 # Append any errors to the config.log.
12509 cat conftest.err 1>&5
12510 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12511 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12512 if diff conftest.exp conftest.er2 >/dev/null; then
12513 lt_cv_prog_compiler_static_works_D=yes
12516 lt_cv_prog_compiler_static_works_D=yes
12520 LDFLAGS="$save_LDFLAGS"
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12524 $as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12526 if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12529 lt_prog_compiler_static_D=
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12536 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12537 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12538 $as_echo_n "(cached) " >&6
12540 lt_cv_prog_compiler_c_o_D=no
12541 $RM -r conftest 2>/dev/null
12545 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12547 lt_compiler_flag="-o out/conftest2.$ac_objext"
12548 # Insert the option either (1) after the last *FLAGS variable, or
12549 # (2) before a word containing "conftest.", or (3) at the end.
12550 # Note that $ac_compile itself does not contain backslashes and begins
12551 # with a dollar sign (not a hyphen), so the echo should work correctly.
12552 lt_compile=`echo "$ac_compile" | $SED \
12553 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12554 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12555 -e 's:$: $lt_compiler_flag:'`
12556 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12557 (eval "$lt_compile" 2>out/conftest.err)
12559 cat out/conftest.err >&5
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12563 # The compiler can only warn and ignore the option if not recognized
12564 # So say no if there are warnings
12565 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12566 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12567 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12568 lt_cv_prog_compiler_c_o_D=yes
12573 # SGI C++ compiler will create directory out/ii_files/ for
12574 # template instantiation
12575 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12576 $RM out/* && rmdir out
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12583 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12588 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12589 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12590 $as_echo_n "(cached) " >&6
12592 lt_cv_prog_compiler_c_o_D=no
12593 $RM -r conftest 2>/dev/null
12597 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12599 lt_compiler_flag="-o out/conftest2.$ac_objext"
12600 # Insert the option either (1) after the last *FLAGS variable, or
12601 # (2) before a word containing "conftest.", or (3) at the end.
12602 # Note that $ac_compile itself does not contain backslashes and begins
12603 # with a dollar sign (not a hyphen), so the echo should work correctly.
12604 lt_compile=`echo "$ac_compile" | $SED \
12605 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12607 -e 's:$: $lt_compiler_flag:'`
12608 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12609 (eval "$lt_compile" 2>out/conftest.err)
12611 cat out/conftest.err >&5
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12615 # The compiler can only warn and ignore the option if not recognized
12616 # So say no if there are warnings
12617 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12618 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12619 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12620 lt_cv_prog_compiler_c_o_D=yes
12625 # SGI C++ compiler will create directory out/ii_files/ for
12626 # template instantiation
12627 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12628 $RM out/* && rmdir out
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12635 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12640 hard_links="nottested"
12641 if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12642 # do not overwrite the value of need_locks provided by the user
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12644 $as_echo_n "checking if we can lock with hard links... " >&6; }
12647 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12649 ln conftest.a conftest.b 2>&5 || hard_links=no
12650 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12652 $as_echo "$hard_links" >&6; }
12653 if test "$hard_links" = no; then
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12655 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12665 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12668 allow_undefined_flag_D=
12669 always_export_symbols_D=no
12671 archive_expsym_cmds_D=
12672 compiler_needs_object_D=no
12673 enable_shared_with_static_runtimes_D=no
12674 export_dynamic_flag_spec_D=
12675 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12676 hardcode_automatic_D=no
12677 hardcode_direct_D=no
12678 hardcode_direct_absolute_D=no
12679 hardcode_libdir_flag_spec_D=
12680 hardcode_libdir_flag_spec_ld_D=
12681 hardcode_libdir_separator_D=
12682 hardcode_minus_L_D=no
12683 hardcode_shlibpath_var_D=unsupported
12685 link_all_deplibs_D=unknown
12687 module_expsym_cmds_D=
12688 old_archive_from_new_cmds_D=
12689 old_archive_from_expsyms_cmds_D=
12690 thread_safe_flag_spec_D=
12691 whole_archive_flag_spec_D=
12692 # include_expsyms should be a list of space-separated symbols to be *always*
12693 # included in the symbol list
12695 # exclude_expsyms can be an extended regexp of symbols to exclude
12696 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12697 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12698 # as well as any symbol that contains `d'.
12699 exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12700 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12701 # platforms (ab)use it in PIC code, but their linkers get confused if
12702 # the symbol is explicitly referenced. Since portable code cannot
12703 # rely on this symbol name, it's probably fine to never include it in
12704 # preloaded symbol tables.
12705 # Exclude shared library initialization/finalization symbols.
12706 extract_expsyms_cmds=
12709 cygwin* | mingw* | pw32* | cegcc*)
12710 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12711 # When not using gcc, we currently assume that we are using
12712 # Microsoft Visual C++.
12713 if test "$GCC" != yes; then
12718 # we just hope/assume this is gcc and not c89 (= MSVC++)
12728 # On some targets, GNU ld is compatible enough with the native linker
12729 # that we're better off using the native interface for both.
12730 lt_use_gnu_ld_interface=no
12731 if test "$with_gnu_ld" = yes; then
12734 # The AIX port of GNU ld has always aspired to compatibility
12735 # with the native linker. However, as the warning in the GNU ld
12736 # block says, versions before 2.19.5* couldn't really create working
12737 # shared libraries, regardless of the interface used.
12738 case `$LD -v 2>&1` in
12739 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12740 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12741 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12743 lt_use_gnu_ld_interface=yes
12748 lt_use_gnu_ld_interface=yes
12753 if test "$lt_use_gnu_ld_interface" = yes; then
12754 # If archive_cmds runs LD, not CC, wlarc should be empty
12757 # Set some defaults for GNU ld with shared library support. These
12758 # are reset later if shared libraries are not supported. Putting them
12759 # here allows them to be overridden if necessary.
12760 runpath_var=LD_RUN_PATH
12761 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12762 export_dynamic_flag_spec_D='${wl}--export-dynamic'
12763 # ancient GNU ld didn't support --whole-archive et. al.
12764 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12765 whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12767 whole_archive_flag_spec_D=
12769 supports_anon_versioning=no
12770 case `$LD -v 2>&1` in
12771 *GNU\ gold*) supports_anon_versioning=yes ;;
12772 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12773 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12774 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12775 *\ 2.11.*) ;; # other 2.11 versions
12776 *) supports_anon_versioning=yes ;;
12779 # See if GNU ld supports shared libraries.
12782 # On AIX/PPC, the GNU linker is very broken
12783 if test "$host_cpu" != ia64; then
12787 *** Warning: the GNU linker, at least up to release 2.19, is reported
12788 *** to be unable to reliably create shared libraries on AIX.
12789 *** Therefore, libtool is disabling shared libraries support. If you
12790 *** really care for shared libraries, you may want to install binutils
12791 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12792 *** You will then need to restart the configuration process.
12801 # see comment about AmigaOS4 .so support
12802 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12803 archive_expsym_cmds_D=''
12806 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)'
12807 hardcode_libdir_flag_spec_D='-L$libdir'
12808 hardcode_minus_L_D=yes
12814 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12815 allow_undefined_flag_D=unsupported
12816 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12817 # support --undefined. This deserves some investigation. FIXME
12818 archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12824 cygwin* | mingw* | pw32* | cegcc*)
12825 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12826 # as there is no search path for DLLs.
12827 hardcode_libdir_flag_spec_D='-L$libdir'
12828 export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12829 allow_undefined_flag_D=unsupported
12830 always_export_symbols_D=no
12831 enable_shared_with_static_runtimes_D=yes
12832 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12834 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12835 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12836 # If the export-symbols file already is a .def file (1st line
12837 # is EXPORTS), use it as is; otherwise, prepend...
12838 archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12839 cp $export_symbols $output_objdir/$soname.def;
12841 echo EXPORTS > $output_objdir/$soname.def;
12842 cat $export_symbols >> $output_objdir/$soname.def;
12844 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12851 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12852 link_all_deplibs_D=yes
12856 hardcode_direct_D=no
12857 hardcode_shlibpath_var_D=no
12858 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12859 export_dynamic_flag_spec_D='${wl}-E'
12860 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12861 # Instead, shared libraries are loaded at an image base (0x10000000 by
12862 # default) and relocated if they conflict, which is a slow very memory
12863 # consuming and fragmenting process. To avoid this, we pick a random,
12864 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12865 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12866 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'
12867 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'
12870 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
12872 if test "$host_os" = linux-dietlibc; then
12873 case $cc_basename in
12874 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12877 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12878 && test "$tmp_diet" = no
12880 tmp_addflag=' $pic_flag'
12881 tmp_sharedflag='-shared'
12882 case $cc_basename,$host_cpu in
12883 pgcc*) # Portland Group C compiler
12884 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'
12885 tmp_addflag=' $pic_flag'
12887 pgf77* | pgf90* | pgf95* | pgfortran*)
12888 # Portland Group f77 and f90 compilers
12889 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'
12890 tmp_addflag=' $pic_flag -Mnomain' ;;
12891 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12892 tmp_addflag=' -i_dynamic' ;;
12893 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12894 tmp_addflag=' -i_dynamic -nofor_main' ;;
12895 ifc* | ifort*) # Intel Fortran compiler
12896 tmp_addflag=' -nofor_main' ;;
12897 lf95*) # Lahey Fortran 8.1
12898 whole_archive_flag_spec_D=
12899 tmp_sharedflag='--shared' ;;
12900 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12901 tmp_sharedflag='-qmkshrobj'
12903 nvcc*) # Cuda Compiler Driver 2.2
12904 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'
12905 compiler_needs_object_D=yes
12908 case `$CC -V 2>&1 | sed 5q` in
12909 *Sun\ C*) # Sun C 5.9
12910 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'
12911 compiler_needs_object_D=yes
12912 tmp_sharedflag='-G' ;;
12913 *Sun\ F*) # Sun Fortran 8.3
12914 tmp_sharedflag='-G' ;;
12916 archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12918 if test "x$supports_anon_versioning" = xyes; then
12919 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12920 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12921 echo "local: *; };" >> $output_objdir/$libname.ver~
12922 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12925 case $cc_basename in
12926 xlf* | bgf* | bgxlf* | mpixlf*)
12927 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12928 whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
12929 hardcode_libdir_flag_spec_D=
12930 hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
12931 archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12932 if test "x$supports_anon_versioning" = xyes; then
12933 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12934 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12935 echo "local: *; };" >> $output_objdir/$libname.ver~
12936 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12946 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12947 archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12950 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12951 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12956 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12960 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12961 *** create shared libraries on Solaris systems. Therefore, libtool
12962 *** is disabling shared libraries support. We urge you to upgrade GNU
12963 *** binutils to release 2.9.1 or newer. Another option is to modify
12964 *** your PATH or compiler configuration so that the native linker is
12965 *** used, and then restart.
12968 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12969 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12970 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12976 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12977 case `$LD -v 2>&1` in
12978 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12982 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12983 *** reliably create shared libraries on SCO systems. Therefore, libtool
12984 *** is disabling shared libraries support. We urge you to upgrade GNU
12985 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12986 *** your PATH or compiler configuration so that the native linker is
12987 *** used, and then restart.
12992 # For security reasons, it is highly recommended that you always
12993 # use absolute paths for naming shared libraries, and exclude the
12994 # DT_RUNPATH tag from executables and libraries. But doing so
12995 # requires that you compile everything twice, which is a pain.
12996 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12997 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12998 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12999 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13008 archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13010 hardcode_direct_D=yes
13011 hardcode_shlibpath_var_D=no
13015 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13016 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13017 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13024 if test "$ld_shlibs_D" = no; then
13026 hardcode_libdir_flag_spec_D=
13027 export_dynamic_flag_spec_D=
13028 whole_archive_flag_spec_D=
13031 # PORTME fill in a description of your system's linker (not GNU ld)
13034 allow_undefined_flag_D=unsupported
13035 always_export_symbols_D=yes
13036 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'
13037 # Note: this linker hardcodes the directories in LIBPATH if there
13038 # are no directories specified by -L.
13039 hardcode_minus_L_D=yes
13040 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13041 # Neither direct hardcoding nor static linking is supported with a
13043 hardcode_direct_D=unsupported
13048 if test "$host_cpu" = ia64; then
13049 # On IA64, the linker does run time linking by default, so we don't
13050 # have to do anything special.
13051 aix_use_runtimelinking=no
13052 exp_sym_flag='-Bexport'
13055 # If we're using GNU nm, then we don't want the "-C" option.
13056 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13057 # Also, AIX nm treats weak defined symbols like other global
13058 # defined symbols, whereas GNU nm marks them as "W".
13059 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13060 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'
13062 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'
13064 aix_use_runtimelinking=no
13066 # Test if we are trying to use run time linking or normal
13067 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13068 # need to do runtime linking.
13069 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13070 for ld_flag in $LDFLAGS; do
13071 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13072 aix_use_runtimelinking=yes
13079 exp_sym_flag='-bexport'
13080 no_entry_flag='-bnoentry'
13083 # When large executables or shared objects are built, AIX ld can
13084 # have problems creating the table of contents. If linking a library
13085 # or program results in "error TOC overflow" add -mminimal-toc to
13086 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13087 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13090 hardcode_direct_D=yes
13091 hardcode_direct_absolute_D=yes
13092 hardcode_libdir_separator_D=':'
13093 link_all_deplibs_D=yes
13094 file_list_spec_D='${wl}-f,'
13096 if test "$GCC" = yes; then
13097 case $host_os in aix4.[012]|aix4.[012].*)
13098 # We only want to do this on AIX 4.2 and lower, the check
13099 # below for broken collect2 doesn't work under 4.3+
13100 collect2name=`${CC} -print-prog-name=collect2`
13101 if test -f "$collect2name" &&
13102 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13104 # We have reworked collect2
13107 # We have old collect2
13108 hardcode_direct_D=unsupported
13109 # It fails to find uninstalled libraries when the uninstalled
13110 # path is not listed in the libpath. Setting hardcode_minus_L
13111 # to unsupported forces relinking
13112 hardcode_minus_L_D=yes
13113 hardcode_libdir_flag_spec_D='-L$libdir'
13114 hardcode_libdir_separator_D=
13118 shared_flag='-shared'
13119 if test "$aix_use_runtimelinking" = yes; then
13120 shared_flag="$shared_flag "'${wl}-G'
13124 if test "$host_cpu" = ia64; then
13125 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13126 # chokes on -Wl,-G. The following line is correct:
13129 if test "$aix_use_runtimelinking" = yes; then
13130 shared_flag='${wl}-G'
13132 shared_flag='${wl}-bM:SRE'
13137 export_dynamic_flag_spec_D='${wl}-bexpall'
13138 # It seems that -bexpall does not export symbols beginning with
13139 # underscore (_), so it is better to generate a list of symbols to export.
13140 always_export_symbols_D=yes
13141 if test "$aix_use_runtimelinking" = yes; then
13142 # Warning - without using the other runtime loading flags (-brtl),
13143 # -berok will link without error, but may produce a broken library.
13144 allow_undefined_flag_D='-berok'
13145 # Determine the default libpath from the value encoded in an
13146 # empty executable.
13147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13148 /* end confdefs.h. */
13158 if ac_fn_c_try_link "$LINENO"; then :
13160 lt_aix_libpath_sed='
13161 /Import File Strings/,/^$/ {
13167 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13168 # Check for a 64-bit object if we didn't find anything.
13169 if test -z "$aix_libpath"; then
13170 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13173 rm -f core conftest.err conftest.$ac_objext \
13174 conftest$ac_exeext conftest.$ac_ext
13175 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13177 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13178 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"
13180 if test "$host_cpu" = ia64; then
13181 hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13182 allow_undefined_flag_D="-z nodefs"
13183 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"
13185 # Determine the default libpath from the value encoded in an
13186 # empty executable.
13187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13188 /* end confdefs.h. */
13198 if ac_fn_c_try_link "$LINENO"; then :
13200 lt_aix_libpath_sed='
13201 /Import File Strings/,/^$/ {
13207 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13208 # Check for a 64-bit object if we didn't find anything.
13209 if test -z "$aix_libpath"; then
13210 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13213 rm -f core conftest.err conftest.$ac_objext \
13214 conftest$ac_exeext conftest.$ac_ext
13215 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13217 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13218 # Warning - without using the other run time loading flags,
13219 # -berok will link without error, but may produce a broken library.
13220 no_undefined_flag_D=' ${wl}-bernotok'
13221 allow_undefined_flag_D=' ${wl}-berok'
13222 if test "$with_gnu_ld" = yes; then
13223 # We only use this code for GNU lds that support --whole-archive.
13224 whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13226 # Exported symbols can be pulled into shared objects from archives
13227 whole_archive_flag_spec_D='$convenience'
13229 archive_cmds_need_lc_D=yes
13230 # This is similar to how AIX traditionally builds its shared libraries.
13231 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'
13239 # see comment about AmigaOS4 .so support
13240 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13241 archive_expsym_cmds_D=''
13244 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)'
13245 hardcode_libdir_flag_spec_D='-L$libdir'
13246 hardcode_minus_L_D=yes
13252 export_dynamic_flag_spec_D=-rdynamic
13255 cygwin* | mingw* | pw32* | cegcc*)
13256 # When not using gcc, we currently assume that we are using
13257 # Microsoft Visual C++.
13258 # hardcode_libdir_flag_spec is actually meaningless, as there is
13259 # no search path for DLLs.
13260 hardcode_libdir_flag_spec_D=' '
13261 allow_undefined_flag_D=unsupported
13262 # Tell ltmain to make .lib files, not .a files.
13264 # Tell ltmain to make .dll files, not .so files.
13266 # FIXME: Setting linknames here is a bad hack.
13267 archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13268 # The linker will automatically build a .lib file if we build a DLL.
13269 old_archive_from_new_cmds_D='true'
13270 # FIXME: Should let the user specify the lib program.
13271 old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13272 fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13273 enable_shared_with_static_runtimes_D=yes
13276 darwin* | rhapsody*)
13279 archive_cmds_need_lc_D=no
13280 hardcode_direct_D=no
13281 hardcode_automatic_D=yes
13282 hardcode_shlibpath_var_D=unsupported
13283 if test "$lt_cv_ld_force_load" = "yes"; then
13284 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\"`'
13286 whole_archive_flag_spec_D=''
13288 link_all_deplibs_D=yes
13289 allow_undefined_flag_D="$_lt_dar_allow_undefined"
13290 case $cc_basename in
13291 ifort*) _lt_dar_can_shared=yes ;;
13292 *) _lt_dar_can_shared=$GCC ;;
13294 if test "$_lt_dar_can_shared" = "yes"; then
13295 output_verbose_link_cmd=func_echo_all
13296 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}"
13297 module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13298 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}"
13299 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}"
13308 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13309 hardcode_libdir_flag_spec_D='-L$libdir'
13310 hardcode_shlibpath_var_D=no
13313 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13314 # support. Future versions do this automatically, but an explicit c++rt0.o
13315 # does not break anything, and helps significantly (at the cost of a little
13318 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13319 hardcode_libdir_flag_spec_D='-R$libdir'
13320 hardcode_direct_D=yes
13321 hardcode_shlibpath_var_D=no
13324 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13326 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13327 hardcode_direct_D=yes
13328 hardcode_minus_L_D=yes
13329 hardcode_shlibpath_var_D=no
13332 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13333 freebsd* | dragonfly*)
13334 archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13335 hardcode_libdir_flag_spec_D='-R$libdir'
13336 hardcode_direct_D=yes
13337 hardcode_shlibpath_var_D=no
13341 if test "$GCC" = yes; then
13342 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'
13344 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'
13346 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13347 hardcode_libdir_separator_D=:
13348 hardcode_direct_D=yes
13350 # hardcode_minus_L: Not really in the search PATH,
13351 # but as the default location of the library.
13352 hardcode_minus_L_D=yes
13353 export_dynamic_flag_spec_D='${wl}-E'
13357 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13358 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13360 archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13362 if test "$with_gnu_ld" = no; then
13363 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13364 hardcode_libdir_flag_spec_ld_D='+b $libdir'
13365 hardcode_libdir_separator_D=:
13366 hardcode_direct_D=yes
13367 hardcode_direct_absolute_D=yes
13368 export_dynamic_flag_spec_D='${wl}-E'
13369 # hardcode_minus_L: Not really in the search PATH,
13370 # but as the default location of the library.
13371 hardcode_minus_L_D=yes
13376 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13379 archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13382 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13385 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13391 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13394 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13397 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13401 if test "$with_gnu_ld" = no; then
13402 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13403 hardcode_libdir_separator_D=:
13407 hardcode_direct_D=no
13408 hardcode_shlibpath_var_D=no
13411 hardcode_direct_D=yes
13412 hardcode_direct_absolute_D=yes
13413 export_dynamic_flag_spec_D='${wl}-E'
13415 # hardcode_minus_L: Not really in the search PATH,
13416 # but as the default location of the library.
13417 hardcode_minus_L_D=yes
13423 irix5* | irix6* | nonstopux*)
13424 if test "$GCC" = yes; then
13425 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'
13426 # Try to use the -exported_symbol ld option, if it does not
13427 # work, assume that -exports_file does not work either and
13428 # implicitly export all symbols.
13429 save_LDFLAGS="$LDFLAGS"
13430 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13432 /* end confdefs.h. */
13435 if ac_fn_c_try_link "$LINENO"; then :
13436 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'
13439 rm -f core conftest.err conftest.$ac_objext \
13440 conftest$ac_exeext conftest.$ac_ext
13441 LDFLAGS="$save_LDFLAGS"
13443 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'
13444 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'
13446 archive_cmds_need_lc_D='no'
13447 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13448 hardcode_libdir_separator_D=:
13449 inherit_rpath_D=yes
13450 link_all_deplibs_D=yes
13454 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13455 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13457 archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13459 hardcode_libdir_flag_spec_D='-R$libdir'
13460 hardcode_direct_D=yes
13461 hardcode_shlibpath_var_D=no
13465 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13466 hardcode_direct_D=yes
13467 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13468 hardcode_libdir_separator_D=:
13469 hardcode_shlibpath_var_D=no
13476 if test -f /usr/libexec/ld.so; then
13477 hardcode_direct_D=yes
13478 hardcode_shlibpath_var_D=no
13479 hardcode_direct_absolute_D=yes
13480 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13481 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13482 archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13483 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13484 export_dynamic_flag_spec_D='${wl}-E'
13487 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13488 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13489 hardcode_libdir_flag_spec_D='-R$libdir'
13492 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13493 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13503 hardcode_libdir_flag_spec_D='-L$libdir'
13504 hardcode_minus_L_D=yes
13505 allow_undefined_flag_D=unsupported
13506 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'
13507 old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13511 if test "$GCC" = yes; then
13512 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13513 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'
13515 allow_undefined_flag_D=' -expect_unresolved \*'
13516 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'
13518 archive_cmds_need_lc_D='no'
13519 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13520 hardcode_libdir_separator_D=:
13523 osf4* | osf5*) # as osf3* with the addition of -msym flag
13524 if test "$GCC" = yes; then
13525 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13526 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'
13527 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13529 allow_undefined_flag_D=' -expect_unresolved \*'
13530 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'
13531 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~
13532 $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'
13534 # Both c and cxx compiler support -rpath directly
13535 hardcode_libdir_flag_spec_D='-rpath $libdir'
13537 archive_cmds_need_lc_D='no'
13538 hardcode_libdir_separator_D=:
13542 no_undefined_flag_D=' -z defs'
13543 if test "$GCC" = yes; then
13545 archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13546 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13547 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13549 case `$CC -V 2>&1` in
13552 archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13553 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13554 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13558 archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13559 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13560 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13564 hardcode_libdir_flag_spec_D='-R$libdir'
13565 hardcode_shlibpath_var_D=no
13567 solaris2.[0-5] | solaris2.[0-5].*) ;;
13569 # The compiler driver will combine and reorder linker options,
13570 # but understands `-z linker_flag'. GCC discards it without `$wl',
13571 # but is careful enough not to reorder.
13572 # Supported since Solaris 2.6 (maybe 2.5.1?)
13573 if test "$GCC" = yes; then
13574 whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13576 whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13580 link_all_deplibs_D=yes
13584 if test "x$host_vendor" = xsequent; then
13585 # Use $CC to link under sequent, because it throws in some extra .o
13586 # files that make .init and .fini sections work.
13587 archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13589 archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13591 hardcode_libdir_flag_spec_D='-L$libdir'
13592 hardcode_direct_D=yes
13593 hardcode_minus_L_D=yes
13594 hardcode_shlibpath_var_D=no
13598 case $host_vendor in
13600 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13601 hardcode_direct_D=yes # is this really true???
13604 ## LD is ld it makes a PLAMLIB
13605 ## CC just makes a GrossModule.
13606 archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13607 reload_cmds_D='$CC -r -o $output$reload_objs'
13608 hardcode_direct_D=no
13611 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13612 hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13615 runpath_var='LD_RUN_PATH'
13616 hardcode_shlibpath_var_D=no
13620 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13621 hardcode_shlibpath_var_D=no
13622 export_dynamic_flag_spec_D='-Bexport'
13626 if test -d /usr/nec; then
13627 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13628 hardcode_shlibpath_var_D=no
13629 runpath_var=LD_RUN_PATH
13630 hardcode_runpath_var=yes
13635 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13636 no_undefined_flag_D='${wl}-z,text'
13637 archive_cmds_need_lc_D=no
13638 hardcode_shlibpath_var_D=no
13639 runpath_var='LD_RUN_PATH'
13641 if test "$GCC" = yes; then
13642 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13643 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13645 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13646 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13650 sysv5* | sco3.2v5* | sco5v6*)
13651 # Note: We can NOT use -z defs as we might desire, because we do not
13652 # link with -lc, and that would cause any symbols used from libc to
13653 # always be unresolved, which means just about no library would
13654 # ever link correctly. If we're not using GNU ld we use -z text
13655 # though, which does catch some bad symbols but isn't as heavy-handed
13657 no_undefined_flag_D='${wl}-z,text'
13658 allow_undefined_flag_D='${wl}-z,nodefs'
13659 archive_cmds_need_lc_D=no
13660 hardcode_shlibpath_var_D=no
13661 hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13662 hardcode_libdir_separator_D=':'
13663 link_all_deplibs_D=yes
13664 export_dynamic_flag_spec_D='${wl}-Bexport'
13665 runpath_var='LD_RUN_PATH'
13667 if test "$GCC" = yes; then
13668 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13669 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13671 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13672 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13677 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13678 hardcode_libdir_flag_spec_D='-L$libdir'
13679 hardcode_shlibpath_var_D=no
13687 if test x$host_vendor = xsni; then
13689 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13690 export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13697 $as_echo "$ld_shlibs_D" >&6; }
13698 test "$ld_shlibs_D" = no && can_build_shared=no
13700 with_gnu_ld_D=$with_gnu_ld
13708 # Do we need to explicitly link libc?
13710 case "x$archive_cmds_need_lc_D" in
13712 # Assume -lc should be added
13713 archive_cmds_need_lc_D=yes
13715 if test "$enable_shared" = yes && test "$GCC" = yes; then
13716 case $archive_cmds_D in
13718 # FIXME: we may have to deal with multi-command sequences.
13721 # Test whether the compiler implicitly links with -lc since on some
13722 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13723 # to ld, don't add -lc before -lgcc.
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13725 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13726 if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
13727 $as_echo_n "(cached) " >&6
13730 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13732 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13733 (eval $ac_compile) 2>&5
13735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13736 test $ac_status = 0; } 2>conftest.err; then
13739 libobjs=conftest.$ac_objext
13741 wl=$lt_prog_compiler_wl_D
13742 pic_flag=$lt_prog_compiler_pic_D
13748 lt_save_allow_undefined_flag=$allow_undefined_flag_D
13749 allow_undefined_flag_D=
13750 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13751 (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13754 test $ac_status = 0; }
13756 lt_cv_archive_cmds_need_lc_D=no
13758 lt_cv_archive_cmds_need_lc_D=yes
13760 allow_undefined_flag_D=$lt_save_allow_undefined_flag
13762 cat conftest.err 1>&5
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13768 $as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13769 archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13840 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13842 if test -n "$hardcode_libdir_flag_spec_D" ||
13843 test -n "$runpath_var_D" ||
13844 test "X$hardcode_automatic_D" = "Xyes" ; then
13846 # We can hardcode non-existent directories.
13847 if test "$hardcode_direct_D" != no &&
13848 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13849 # have to relink, otherwise we might link with an installed library
13850 # when we should be linking with a yet-to-be-installed one
13851 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13852 test "$hardcode_minus_L_D" != no; then
13853 # Linking always hardcodes the temporary library directory.
13854 hardcode_action_D=relink
13856 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13857 hardcode_action_D=immediate
13860 # We cannot hardcode anything, or else we can only hardcode existing
13862 hardcode_action_D=unsupported
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13865 $as_echo "$hardcode_action_D" >&6; }
13867 if test "$hardcode_action_D" = relink ||
13868 test "$inherit_rpath_D" = yes; then
13869 # Fast installation is not supported
13870 enable_fast_install=no
13871 elif test "$shlibpath_overrides_runpath" = yes ||
13872 test "$enable_shared" = no; then
13873 # Fast installation is not necessary
13874 enable_fast_install=needless
13886 ac_cpp='$CPP $CPPFLAGS'
13887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13894 CFLAGS=$lt_save_CFLAGS
13896 GDCFLAGS=$gdc_save_DFLAGS
13899 # libtool variables for Phobos shared and position-independent compiles.
13901 # Use phobos_compiler_shared_flag to designate the compile-time flags for
13902 # creating shared objects. Default: -fversion=Shared.
13904 # Use phobos_compiler_pic_flag to designate the compile-time flags for
13905 # creating position-independent objects. This varies with the target
13906 # hardware and operating system, but is often: -fPIC.
13908 # The distinction between pic and shared compilation flags is not present in
13909 # libtool, and so we make it here. How it is handled is that in shared
13910 # compilations the `lt_prog_compiler_pic_D' variable is used to instead
13911 # ensure that conditional compilation of shared runtime code is compiled in.
13912 # The original PIC flags are then used in the compilation of every object.
13914 # Why are objects destined for libgphobos.a compiled with -fPIC?
13915 # Because -fPIC is not harmful to use for objects destined for static
13916 # libraries. In addition, using -fPIC will allow the use of static
13917 # libgphobos.a in the creation of other D shared libraries.
13918 if test "$enable_shared" = yes; then
13919 phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
13920 phobos_compiler_shared_flag="-fversion=Shared"
13922 phobos_compiler_pic_flag=
13923 phobos_compiler_shared_flag=
13928 # Override the libtool's pic_flag and pic_mode.
13929 # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
13930 # NB: this impacts --with-pic and --without-pic.
13931 lt_prog_compiler_pic_D="$phobos_compiler_shared_flag"
13934 # Determine what GCC version number to use in filesystem paths.
13936 get_gcc_base_ver="cat"
13938 # Check whether --with-gcc-major-version-only was given.
13939 if test "${with_gcc_major_version_only+set}" = set; then :
13940 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13941 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13949 # libphobos/libdruntime specific options and feature detection
13951 # These need to be absolute paths, yet at the same time need to
13952 # canonicalize only relative paths, because then amd will not unmount
13953 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
13954 libphobos_builddir=`${PWDCMD-pwd}`
13956 \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
13957 *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
13963 if test ${multilib} = yes; then
13964 multilib_arg="--enable-multilib"
13970 # Check whether --enable-werror was given.
13971 if test "${enable_werror+set}" = set; then :
13972 enableval=$enable_werror;
13976 if test "x$enable_werror" = "xyes"; then
13977 WERROR_FLAG="-Werror"
13982 druntime_target_cpu_parsed=""
13983 case "$target_cpu" in
13985 druntime_target_cpu_parsed="aarch64"
13987 arm*) druntime_target_cpu_parsed="arm"
13989 mips*) druntime_target_cpu_parsed="mips"
13991 powerpc) druntime_target_cpu_parsed="powerpc"
13994 druntime_target_cpu_parsed="powerpc64"
13997 druntime_target_cpu_parsed="x86"
14000 druntime_target_cpu_parsed="s390x"
14003 druntime_target_cpu_parsed="s390"
14006 if test "$druntime_target_cpu_parsed" = "aarch64"; then
14007 DRUNTIME_CPU_AARCH64_TRUE=
14008 DRUNTIME_CPU_AARCH64_FALSE='#'
14010 DRUNTIME_CPU_AARCH64_TRUE='#'
14011 DRUNTIME_CPU_AARCH64_FALSE=
14014 if test "$druntime_target_cpu_parsed" = "arm"; then
14015 DRUNTIME_CPU_ARM_TRUE=
14016 DRUNTIME_CPU_ARM_FALSE='#'
14018 DRUNTIME_CPU_ARM_TRUE='#'
14019 DRUNTIME_CPU_ARM_FALSE=
14022 if test "$druntime_target_cpu_parsed" = "mips"; then
14023 DRUNTIME_CPU_MIPS_TRUE=
14024 DRUNTIME_CPU_MIPS_FALSE='#'
14026 DRUNTIME_CPU_MIPS_TRUE='#'
14027 DRUNTIME_CPU_MIPS_FALSE=
14030 if test "$druntime_target_cpu_parsed" = "powerpc"; then
14031 DRUNTIME_CPU_POWERPC_TRUE=
14032 DRUNTIME_CPU_POWERPC_FALSE='#'
14034 DRUNTIME_CPU_POWERPC_TRUE='#'
14035 DRUNTIME_CPU_POWERPC_FALSE=
14038 if test "$druntime_target_cpu_parsed" = "powerpc64"; then
14039 DRUNTIME_CPU_POWERPC64_TRUE=
14040 DRUNTIME_CPU_POWERPC64_FALSE='#'
14042 DRUNTIME_CPU_POWERPC64_TRUE='#'
14043 DRUNTIME_CPU_POWERPC64_FALSE=
14046 if test "$druntime_target_cpu_parsed" = "x86"; then
14047 DRUNTIME_CPU_X86_TRUE=
14048 DRUNTIME_CPU_X86_FALSE='#'
14050 DRUNTIME_CPU_X86_TRUE='#'
14051 DRUNTIME_CPU_X86_FALSE=
14054 if test "$druntime_target_cpu_parsed" = "s390x"; then
14055 DRUNTIME_CPU_SYSTEMZ_TRUE=
14056 DRUNTIME_CPU_SYSTEMZ_FALSE='#'
14058 DRUNTIME_CPU_SYSTEMZ_TRUE='#'
14059 DRUNTIME_CPU_SYSTEMZ_FALSE=
14062 if test "$druntime_target_cpu_parsed" = "s390"; then
14063 DRUNTIME_CPU_S390_TRUE=
14064 DRUNTIME_CPU_S390_FALSE='#'
14066 DRUNTIME_CPU_S390_TRUE='#'
14067 DRUNTIME_CPU_S390_FALSE=
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
14073 $as_echo_n "checking for target OS... " >&6; }
14074 if ${druntime_cv_target_os+:} false; then :
14075 $as_echo_n "(cached) " >&6
14077 druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
14080 $as_echo "$druntime_cv_target_os" >&6; }
14081 if test -z "$druntime_cv_target_os"; then :
14082 as_fn_error $? "can't detect target OS" "$LINENO" 5
14088 druntime_target_os_parsed=""
14089 case "$druntime_cv_target_os" in
14090 aix*) druntime_target_os_parsed="aix"
14093 druntime_target_os_parsed="android"
14095 darwin*) druntime_target_os_parsed="darwin"
14098 druntime_target_os_parsed="dragonflybsd"
14100 freebsd*|k*bsd*-gnu)
14101 druntime_target_os_parsed="freebsd"
14104 druntime_target_os_parsed="openbsd"
14107 druntime_target_os_parsed="netbsd"
14109 linux*) druntime_target_os_parsed="linux"
14111 mingw*) druntime_target_os_parsed="mingw"
14113 *solaris*) druntime_target_os_parsed="solaris"
14115 if test "$druntime_target_os_parsed" = "aix"; then
14116 DRUNTIME_OS_AIX_TRUE=
14117 DRUNTIME_OS_AIX_FALSE='#'
14119 DRUNTIME_OS_AIX_TRUE='#'
14120 DRUNTIME_OS_AIX_FALSE=
14123 if test "$druntime_target_os_parsed" = "android"; then
14124 DRUNTIME_OS_ANDROID_TRUE=
14125 DRUNTIME_OS_ANDROID_FALSE='#'
14127 DRUNTIME_OS_ANDROID_TRUE='#'
14128 DRUNTIME_OS_ANDROID_FALSE=
14131 if test "$druntime_target_os_parsed" = "darwin"; then
14132 DRUNTIME_OS_DARWIN_TRUE=
14133 DRUNTIME_OS_DARWIN_FALSE='#'
14135 DRUNTIME_OS_DARWIN_TRUE='#'
14136 DRUNTIME_OS_DARWIN_FALSE=
14139 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14140 DRUNTIME_OS_DRAGONFLYBSD_TRUE=
14141 DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
14143 DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
14144 DRUNTIME_OS_DRAGONFLYBSD_FALSE=
14147 if test "$druntime_target_os_parsed" = "freebsd"; then
14148 DRUNTIME_OS_FREEBSD_TRUE=
14149 DRUNTIME_OS_FREEBSD_FALSE='#'
14151 DRUNTIME_OS_FREEBSD_TRUE='#'
14152 DRUNTIME_OS_FREEBSD_FALSE=
14155 if test "$druntime_target_os_parsed" = "netbsd"; then
14156 DRUNTIME_OS_NETBSD_TRUE=
14157 DRUNTIME_OS_NETBSD_FALSE='#'
14159 DRUNTIME_OS_NETBSD_TRUE='#'
14160 DRUNTIME_OS_NETBSD_FALSE=
14163 if test "$druntime_target_os_parsed" = "openbsd"; then
14164 DRUNTIME_OS_OPENBSD_TRUE=
14165 DRUNTIME_OS_OPENBSD_FALSE='#'
14167 DRUNTIME_OS_OPENBSD_TRUE='#'
14168 DRUNTIME_OS_OPENBSD_FALSE=
14171 if test "$druntime_target_os_parsed" = "linux"; then
14172 DRUNTIME_OS_LINUX_TRUE=
14173 DRUNTIME_OS_LINUX_FALSE='#'
14175 DRUNTIME_OS_LINUX_TRUE='#'
14176 DRUNTIME_OS_LINUX_FALSE=
14179 if test "$druntime_target_os_parsed" = "mingw"; then
14180 DRUNTIME_OS_MINGW_TRUE=
14181 DRUNTIME_OS_MINGW_FALSE='#'
14183 DRUNTIME_OS_MINGW_TRUE='#'
14184 DRUNTIME_OS_MINGW_FALSE=
14187 if test "$druntime_target_os_parsed" = "solaris"; then
14188 DRUNTIME_OS_SOLARIS_TRUE=
14189 DRUNTIME_OS_SOLARIS_FALSE='#'
14191 DRUNTIME_OS_SOLARIS_TRUE='#'
14192 DRUNTIME_OS_SOLARIS_FALSE=
14196 druntime_target_posix="no"
14197 case "$druntime_cv_target_os" in
14198 aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*)
14199 druntime_target_posix="yes"
14202 if test "$druntime_target_posix" = "yes"; then
14203 DRUNTIME_OS_POSIX_TRUE=
14204 DRUNTIME_OS_POSIX_FALSE='#'
14206 DRUNTIME_OS_POSIX_TRUE='#'
14207 DRUNTIME_OS_POSIX_FALSE=
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14214 $as_echo_n "checking for thread model used by GDC... " >&6; }
14215 d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14217 $as_echo "$d_thread_model" >&6; }
14219 # Map from thread model to thread interface.
14221 case $d_thread_model in
14222 aix) DCFG_THREAD_MODEL="Posix" ;;
14223 lynx) DCFG_THREAD_MODEL="Posix" ;;
14224 posix) DCFG_THREAD_MODEL="Posix" ;;
14225 single) DCFG_THREAD_MODEL="Single" ;;
14226 win32) DCFG_THREAD_MODEL="Win32" ;;
14227 # TODO: These targets need porting.
14228 dce|mipssde|rtems|tpf|vxworks)
14229 DCFG_THREAD_MODEL="Single" ;;
14230 *) as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14237 ac_cpp='$CPP $CPPFLAGS'
14238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14243 $as_echo_n "checking for ARM unwinder... " >&6; }
14244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14245 /* end confdefs.h. */
14246 #include <unwind.h>
14251 #if __ARM_EABI_UNWINDER__
14259 if ac_fn_c_try_compile "$LINENO"; then :
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14261 $as_echo "no" >&6; }
14262 DCFG_ARM_EABI_UNWINDER=false
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14265 $as_echo "yes" >&6; }
14266 DCFG_ARM_EABI_UNWINDER=true
14268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14270 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14271 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14272 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14274 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14275 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14279 ac_cpp='$CPP $CPPFLAGS'
14280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14287 ac_cpp='$CPP $CPPFLAGS'
14288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14293 $as_echo_n "checking for minfo section bracketing... " >&6; }
14294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14295 /* end confdefs.h. */
14297 void* module_info_ptr __attribute__((section ("minfo")));
14298 extern void* __start_minfo __attribute__((visibility ("hidden")));
14299 extern void* __stop_minfo __attribute__((visibility ("hidden")));
14303 // Never run, just to prevent compiler from optimizing access
14304 return &__start_minfo == &__stop_minfo;
14308 if ac_fn_c_try_link "$LINENO"; then :
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14310 $as_echo "yes" >&6; }
14311 DCFG_MINFO_BRACKETING=true
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14314 $as_echo "no" >&6; }
14315 DCFG_MINFO_BRACKETING=false
14317 rm -f core conftest.err conftest.$ac_objext \
14318 conftest$ac_exeext conftest.$ac_ext
14320 if test "$DCFG_MINFO_BRACKETING" = "true"; then
14321 DRUNTIME_OS_MINFO_BRACKETING_TRUE=
14322 DRUNTIME_OS_MINFO_BRACKETING_FALSE='#'
14324 DRUNTIME_OS_MINFO_BRACKETING_TRUE='#'
14325 DRUNTIME_OS_MINFO_BRACKETING_FALSE=
14329 ac_cpp='$CPP $CPPFLAGS'
14330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14337 ac_cpp='$CPP $CPPFLAGS'
14338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14342 ac_fn_c_check_member "$LINENO" "struct dl_phdr_info" "dlpi_tls_modid" "ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" "#include <link.h>
14344 if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes; then :
14345 DCFG_DLPI_TLS_MODID=true
14347 DCFG_DLPI_TLS_MODID=false
14352 ac_cpp='$CPP $CPPFLAGS'
14353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14360 i?86-*-solaris2.* | x86_64-*-solaris2.*)
14361 # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14362 # relocs. Work around by disabling TLS transitions. Not necessary
14363 # on 32-bit x86, but cannot be distinguished reliably in specs.
14364 druntime_ld_prog=`$CC -print-prog-name=ld`
14366 druntime_ld_relax_transtls=no
14367 if test -n "$druntime_ld_prog" \
14368 && $druntime_ld_prog -v 2>&1 | grep GNU > /dev/null 2>&1; then
14369 druntime_ld_gld=yes
14371 echo 'int main (void) { return 0; }' > conftest.c
14372 save_LDFLAGS="$LDFLAGS"
14373 LDFLAGS="$LDFLAGS -Wl,-z,relax=transtls"
14374 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c > /dev/null 2>&1; then
14375 druntime_ld_relax_transtls=yes
14377 LDFLAGS="$save_LDFLAGS"
14378 rm -f conftest.c conftest
14380 if test "$druntime_ld_relax_transtls" = "yes"; then
14381 OS_LINK_SPEC='-z relax=transtls'
14389 ac_cpp='$CPP $CPPFLAGS'
14390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14394 DCFG_HAVE_QSORT_R=false
14395 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14396 if test "x$ac_cv_func_qsort_r" = xyes; then :
14397 DCFG_HAVE_QSORT_R=true
14402 ac_cpp='$CPP $CPPFLAGS'
14403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14411 gdc_save_DFLAGS=$GDCFLAGS
14412 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14415 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14416 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14417 ac_compiler_gnu=yes
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14420 $as_echo_n "checking for library containing malloc... " >&6; }
14421 if ${ac_cv_search_malloc+:} false; then :
14422 $as_echo_n "(cached) " >&6
14424 ac_func_search_save_LIBS=$LIBS
14425 cat > conftest.$ac_ext <<_ACEOF
14427 extern(C) int malloc();
14429 extern(C) int main() {
14430 malloc(); return 0;
14433 for ac_lib in '' c; do
14434 if test -z "$ac_lib"; then
14435 ac_res="none required"
14438 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14440 if ac_fn_d_try_link "$LINENO"; then :
14441 ac_cv_search_malloc=$ac_res
14443 rm -f core conftest.err conftest.$ac_objext \
14445 if ${ac_cv_search_malloc+:} false; then :
14449 if ${ac_cv_search_malloc+:} false; then :
14452 ac_cv_search_malloc=no
14454 rm conftest.$ac_ext
14455 LIBS=$ac_func_search_save_LIBS
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14458 $as_echo "$ac_cv_search_malloc" >&6; }
14459 ac_res=$ac_cv_search_malloc
14460 if test "$ac_res" != no; then :
14461 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14466 $as_echo_n "checking for library containing pthread_create... " >&6; }
14467 if ${ac_cv_search_pthread_create+:} false; then :
14468 $as_echo_n "(cached) " >&6
14470 ac_func_search_save_LIBS=$LIBS
14471 cat > conftest.$ac_ext <<_ACEOF
14473 extern(C) int pthread_create();
14475 extern(C) int main() {
14476 pthread_create(); return 0;
14479 for ac_lib in '' pthread; do
14480 if test -z "$ac_lib"; then
14481 ac_res="none required"
14484 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14486 if ac_fn_d_try_link "$LINENO"; then :
14487 ac_cv_search_pthread_create=$ac_res
14489 rm -f core conftest.err conftest.$ac_objext \
14491 if ${ac_cv_search_pthread_create+:} false; then :
14495 if ${ac_cv_search_pthread_create+:} false; then :
14498 ac_cv_search_pthread_create=no
14500 rm conftest.$ac_ext
14501 LIBS=$ac_func_search_save_LIBS
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14504 $as_echo "$ac_cv_search_pthread_create" >&6; }
14505 ac_res=$ac_cv_search_pthread_create
14506 if test "$ac_res" != no; then :
14507 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14512 $as_echo_n "checking for library containing cosf... " >&6; }
14513 if ${ac_cv_search_cosf+:} false; then :
14514 $as_echo_n "(cached) " >&6
14516 ac_func_search_save_LIBS=$LIBS
14517 cat > conftest.$ac_ext <<_ACEOF
14519 extern(C) int cosf();
14521 extern(C) int main() {
14525 for ac_lib in '' m; do
14526 if test -z "$ac_lib"; then
14527 ac_res="none required"
14530 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14532 if ac_fn_d_try_link "$LINENO"; then :
14533 ac_cv_search_cosf=$ac_res
14535 rm -f core conftest.err conftest.$ac_objext \
14537 if ${ac_cv_search_cosf+:} false; then :
14541 if ${ac_cv_search_cosf+:} false; then :
14544 ac_cv_search_cosf=no
14546 rm conftest.$ac_ext
14547 LIBS=$ac_func_search_save_LIBS
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14550 $as_echo "$ac_cv_search_cosf" >&6; }
14551 ac_res=$ac_cv_search_cosf
14552 if test "$ac_res" != no; then :
14553 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14558 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14559 if ${ac_cv_search_clock_gettime+:} false; then :
14560 $as_echo_n "(cached) " >&6
14562 ac_func_search_save_LIBS=$LIBS
14563 cat > conftest.$ac_ext <<_ACEOF
14565 extern(C) int clock_gettime();
14567 extern(C) int main() {
14568 clock_gettime(); return 0;
14571 for ac_lib in '' rt; do
14572 if test -z "$ac_lib"; then
14573 ac_res="none required"
14576 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14578 if ac_fn_d_try_link "$LINENO"; then :
14579 ac_cv_search_clock_gettime=$ac_res
14581 rm -f core conftest.err conftest.$ac_objext \
14583 if ${ac_cv_search_clock_gettime+:} false; then :
14587 if ${ac_cv_search_clock_gettime+:} false; then :
14590 ac_cv_search_clock_gettime=no
14592 rm conftest.$ac_ext
14593 LIBS=$ac_func_search_save_LIBS
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14596 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14597 ac_res=$ac_cv_search_clock_gettime
14598 if test "$ac_res" != no; then :
14599 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14604 # This checks to see if the host supports the compiler-generated builtins
14605 # for atomic operations for various integral sizes. Note, this is intended
14606 # to be an all-or-nothing switch, so all the atomic operations that are
14607 # used should be checked.
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14609 $as_echo_n "checking for atomic builtins for byte... " >&6; }
14610 if ${druntime_cv_atomic_byte+:} false; then :
14611 $as_echo_n "(cached) " >&6
14614 cat > conftest.$ac_ext <<_ACEOF
14616 import gcc.builtins;
14618 extern(C) int main() {
14622 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14623 __atomic_load_1(&c1, 5);
14624 __atomic_store_1(&c1, c2, 5);
14629 if ac_fn_d_try_link "$LINENO"; then :
14630 druntime_cv_atomic_byte=yes
14632 druntime_cv_atomic_byte=no
14634 rm -f core conftest.err conftest.$ac_objext \
14635 conftest$ac_exeext conftest.$ac_ext
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14640 $as_echo "$druntime_cv_atomic_byte" >&6; }
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14643 $as_echo_n "checking for atomic builtins for short... " >&6; }
14644 if ${druntime_cv_atomic_short+:} false; then :
14645 $as_echo_n "(cached) " >&6
14648 cat > conftest.$ac_ext <<_ACEOF
14650 import gcc.builtins;
14652 extern(C) int main() {
14656 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14657 __atomic_load_2(&c1, 5);
14658 __atomic_store_2(&c1, c2, 5);
14663 if ac_fn_d_try_link "$LINENO"; then :
14664 druntime_cv_atomic_short=yes
14666 druntime_cv_atomic_short=no
14668 rm -f core conftest.err conftest.$ac_objext \
14669 conftest$ac_exeext conftest.$ac_ext
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14674 $as_echo "$druntime_cv_atomic_short" >&6; }
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14677 $as_echo_n "checking for atomic builtins for int... " >&6; }
14678 if ${druntime_cv_atomic_int+:} false; then :
14679 $as_echo_n "(cached) " >&6
14682 cat > conftest.$ac_ext <<_ACEOF
14684 import gcc.builtins;
14686 extern(C) int main() {
14690 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14691 __atomic_load_4(&c1, 5);
14692 __atomic_store_4(&c1, c2, 5);
14697 if ac_fn_d_try_link "$LINENO"; then :
14698 druntime_cv_atomic_int=yes
14700 druntime_cv_atomic_int=no
14702 rm -f core conftest.err conftest.$ac_objext \
14703 conftest$ac_exeext conftest.$ac_ext
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14708 $as_echo "$druntime_cv_atomic_int" >&6; }
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14711 $as_echo_n "checking for atomic builtins for long... " >&6; }
14712 if ${druntime_cv_atomic_long+:} false; then :
14713 $as_echo_n "(cached) " >&6
14716 cat > conftest.$ac_ext <<_ACEOF
14718 import gcc.builtins;
14720 extern(C) int main() {
14724 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14725 __atomic_load_8(&c1, 5);
14726 __atomic_store_8(&c1, c2, 5);
14731 if ac_fn_d_try_link "$LINENO"; then :
14732 druntime_cv_atomic_long=yes
14734 druntime_cv_atomic_long=no
14736 rm -f core conftest.err conftest.$ac_objext \
14737 conftest$ac_exeext conftest.$ac_ext
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14742 $as_echo "$druntime_cv_atomic_long" >&6; }
14744 # Have atomic builtin support if all but the long test above passes.
14745 DCFG_HAVE_ATOMIC_BUILTINS=false
14746 if test "$druntime_cv_atomic_byte" = yes \
14747 && test "$druntime_cv_atomic_short" = yes \
14748 && test "$druntime_cv_atomic_int" = yes; then \
14749 DCFG_HAVE_ATOMIC_BUILTINS=true
14752 # Have 64-bit atomic support if the long test above passes.
14753 DCFG_HAVE_64BIT_ATOMICS=false
14754 if test "$druntime_cv_atomic_long" = yes; then
14755 DCFG_HAVE_64BIT_ATOMICS=true
14762 ac_cpp='$CPP $CPPFLAGS'
14763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14768 GDCFLAGS=$gdc_save_DFLAGS
14773 # Check whether --with-libatomic was given.
14774 if test "${with_libatomic+set}" = set; then :
14775 withval=$with_libatomic;
14779 DCFG_HAVE_LIBATOMIC=false
14781 if test "x$with_libatomic" != "xno"; then :
14783 DCFG_HAVE_LIBATOMIC=true
14784 LIBATOMIC=../../libatomic/libatomic_convenience.la
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14789 $as_echo_n "checking for libatomic... " >&6; }
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14791 $as_echo "disabled" >&6; }
14800 ac_cpp='$CPP $CPPFLAGS'
14801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14805 BACKTRACE_SUPPORTED=false
14806 BACKTRACE_USES_MALLOC=false
14807 BACKTRACE_SUPPORTS_THREADS=false
14811 # Check whether --with-libbacktrace was given.
14812 if test "${with_libbacktrace+set}" = set; then :
14813 withval=$with_libbacktrace;
14817 if test "x$with_libbacktrace" != "xno"; then :
14819 LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14821 gdc_save_CPPFLAGS=$CPPFLAGS
14822 CPPFLAGS="$CPPFLAGS -I../libbacktrace "
14824 ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
14825 if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
14826 have_libbacktrace_h=true
14828 have_libbacktrace_h=false
14833 if $have_libbacktrace_h; then
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14835 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14837 /* end confdefs.h. */
14839 #include <backtrace-supported.h>
14840 #if BACKTRACE_SUPPORTED
14841 FOUND_LIBBACKTRACE_RESULT_GDC
14845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14846 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14847 BACKTRACE_SUPPORTED=true
14849 BACKTRACE_SUPPORTED=false
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14854 $as_echo "$BACKTRACE_SUPPORTED" >&6; }
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14857 $as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14859 /* end confdefs.h. */
14861 #include <backtrace-supported.h>
14862 #if BACKTRACE_USES_MALLOC
14863 FOUND_LIBBACKTRACE_RESULT_GDC
14867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14868 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14869 BACKTRACE_USES_MALLOC=true
14871 BACKTRACE_USES_MALLOC=false
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14876 $as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14879 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14881 /* end confdefs.h. */
14883 #include <backtrace-supported.h>
14884 #if BACKTRACE_SUPPORTS_THREADS
14885 FOUND_LIBBACKTRACE_RESULT_GDC
14889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14890 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14891 BACKTRACE_SUPPORTS_THREADS=true
14893 BACKTRACE_SUPPORTS_THREADS=false
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14898 $as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14900 CPPFLAGS=$gdc_save_CPPFLAGS
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14905 $as_echo_n "checking for libbacktrace... " >&6; }
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14907 $as_echo "disabled" >&6; }
14916 ac_cpp='$CPP $CPPFLAGS'
14917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14923 # Libtool has already checked this, so re-use the inferred dlopen lib.
14924 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
14926 LIBS="$LIBS $lt_cv_dlopen_libs"
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14932 $as_echo_n "checking for socket libraries... " >&6; }
14933 if ${druntime_cv_lib_sockets+:} false; then :
14934 $as_echo_n "(cached) " >&6
14936 druntime_cv_lib_sockets=
14937 druntime_check_both=no
14938 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14939 if test "x$ac_cv_func_connect" = xyes; then :
14940 druntime_check_socket=no
14942 druntime_check_socket=yes
14945 if test "$druntime_check_socket" = "yes"; then
14946 unset ac_cv_func_connect
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14948 $as_echo_n "checking for main in -lsocket... " >&6; }
14949 if ${ac_cv_lib_socket_main+:} false; then :
14950 $as_echo_n "(cached) " >&6
14952 ac_check_lib_save_LIBS=$LIBS
14953 LIBS="-lsocket $LIBS"
14954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14955 /* end confdefs.h. */
14966 if ac_fn_c_try_link "$LINENO"; then :
14967 ac_cv_lib_socket_main=yes
14969 ac_cv_lib_socket_main=no
14971 rm -f core conftest.err conftest.$ac_objext \
14972 conftest$ac_exeext conftest.$ac_ext
14973 LIBS=$ac_check_lib_save_LIBS
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14976 $as_echo "$ac_cv_lib_socket_main" >&6; }
14977 if test "x$ac_cv_lib_socket_main" = xyes; then :
14978 druntime_cv_lib_sockets="-lsocket"
14980 druntime_check_both=yes
14984 if test "$druntime_check_both" = "yes"; then
14985 druntime_old_libs=$LIBS
14986 LIBS="$LIBS -lsocket -lnsl"
14987 unset ac_cv_func_accept
14988 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14989 if test "x$ac_cv_func_accept" = xyes; then :
14990 druntime_check_nsl=no
14991 druntime_cv_lib_sockets="-lsocket -lnsl"
14994 unset ac_cv_func_accept
14995 LIBS=$druntime_old_libs
14997 unset ac_cv_func_gethostbyname
14998 druntime_old_libs="$LIBS"
14999 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15000 if test "x$ac_cv_func_gethostbyname" = xyes; then :
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
15004 $as_echo_n "checking for main in -lnsl... " >&6; }
15005 if ${ac_cv_lib_nsl_main+:} false; then :
15006 $as_echo_n "(cached) " >&6
15008 ac_check_lib_save_LIBS=$LIBS
15010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15011 /* end confdefs.h. */
15022 if ac_fn_c_try_link "$LINENO"; then :
15023 ac_cv_lib_nsl_main=yes
15025 ac_cv_lib_nsl_main=no
15027 rm -f core conftest.err conftest.$ac_objext \
15028 conftest$ac_exeext conftest.$ac_ext
15029 LIBS=$ac_check_lib_save_LIBS
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
15032 $as_echo "$ac_cv_lib_nsl_main" >&6; }
15033 if test "x$ac_cv_lib_nsl_main" = xyes; then :
15034 druntime_cv_lib_sockets="$druntime_cv_lib_sockets -lnsl"
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_lib_sockets" >&5
15042 $as_echo "$druntime_cv_lib_sockets" >&6; }
15043 LIBS="$LIBS $druntime_cv_lib_sockets"
15047 ac_cpp='$CPP $CPPFLAGS'
15048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15055 # Check whether --with-target-system-zlib was given.
15056 if test "${with_target_system_zlib+set}" = set; then :
15057 withval=$with_target_system_zlib;
15059 with_target_system_zlib=no
15063 case "$with_target_system_zlib" in
15065 *) as_fn_error $? "Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15069 $as_echo_n "checking for system zlib... " >&6; }
15072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15073 /* end confdefs.h. */
15078 gzopen("none", "rb")
15083 if ac_fn_c_try_link "$LINENO"; then :
15085 if test "$cross_compiling" = yes; then :
15086 system_zlib_found=no
15089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15090 /* end confdefs.h. */
15094 gzFile file = gzopen("none", "rb");
15099 if ac_fn_c_try_run "$LINENO"; then :
15100 system_zlib_found=yes
15102 system_zlib_found=no
15104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15105 conftest.$ac_objext conftest.beam conftest.$ac_ext
15110 system_zlib_found=no
15112 rm -f core conftest.err conftest.$ac_objext \
15113 conftest$ac_exeext conftest.$ac_ext
15116 if test x$system_zlib_found = xyes && test x$with_target_system_zlib != xno; then
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15118 $as_echo "found" >&6; }
15120 elif test x$system_zlib_found = xno && test x$with_target_system_zlib = xyes; then
15121 as_fn_error $? "system zlib required but not found" "$LINENO" 5
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15124 $as_echo "just compiled" >&6; }
15125 LIBZ=../../zlib/libz_convenience.la
15130 ac_cpp='$CPP $CPPFLAGS'
15131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15140 $as_echo_n "checking D GCC version... " >&6; }
15141 gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15143 $as_echo "$gcc_version" >&6; }
15147 # Check whether --with-cross-host was given.
15148 if test "${with_cross_host+set}" = set; then :
15149 withval=$with_cross_host;
15153 libphobos_toolexecdir=no
15154 libphobos_toolexeclibdir=no
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15157 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15158 # Check whether --enable-version-specific-runtime-libs was given.
15159 if test "${enable_version_specific_runtime_libs+set}" = set; then :
15160 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
15161 yes) version_specific_libs=yes ;;
15162 no) version_specific_libs=no ;;
15163 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15166 version_specific_libs=no
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15170 $as_echo "$version_specific_libs" >&6; }
15173 # Check whether --with-toolexeclibdir was given.
15174 if test "${with_toolexeclibdir+set}" = set; then :
15175 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
15179 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
15183 with_toolexeclibdir=no
15188 # Version-specific runtime libs processing.
15189 if test $version_specific_libs = yes; then
15190 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15191 libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
15193 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15194 # Install a library built with a cross compiler in tooldir, not libdir.
15195 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
15196 libphobos_toolexecdir='${exec_prefix}/${host_alias}'
15197 case ${with_toolexeclibdir} in
15199 libphobos_toolexeclibdir='${toolexecdir}/lib'
15202 libphobos_toolexeclibdir=${with_toolexeclibdir}
15206 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15207 libphobos_toolexeclibdir='${libdir}'
15209 multi_os_directory=`$GDC -print-multi-os-directory`
15210 case $multi_os_directory in
15211 .) ;; # Avoid trailing /.
15212 *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15218 # Default case for install directory for D sources files.
15219 gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5
15224 $as_echo_n "checking for --enable-libphobos... " >&6; }
15225 # Check whether --enable-libphobos was given.
15226 if test "${enable_libphobos+set}" = set; then :
15227 enableval=$enable_libphobos;
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5
15231 $as_echo "$enable_libphobos" >&6; }
15233 # See if supported.
15234 unset LIBPHOBOS_SUPPORTED
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5
15236 $as_echo_n "checking for host support for libphobos... " >&6; }
15237 . ${srcdir}/configure.tgt
15239 x86_64-*-solaris2.* | i?86-*-solaris2.*)
15240 # libphobos doesn't compile with the Solaris/x86 assembler due to a
15241 # relatively low linelength limit.
15242 as_prog=`$CC -print-prog-name=as`
15243 if test -n "$as_prog" && $as_prog -v /dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
15244 druntime_cv_use_gas=yes;
15246 druntime_cv_use_gas=no;
15249 if test x$druntime_cv_use_gas = xno; then
15250 LIBPHOBOS_SUPPORTED=no
15252 # 64-bit D execution fails with Solaris ld without -z relax=transtls support.
15253 if test "$druntime_ld_gld" = "no" && test "$druntime_ld_relax_transtls" = "no"; then
15254 LIBPHOBOS_SUPPORTED=no
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5
15259 $as_echo "$LIBPHOBOS_SUPPORTED" >&6; }
15261 # Decide if it's usable.
15262 case $LIBPHOBOS_SUPPORTED:$enable_libphobos in
15263 *:no) use_libphobos=no ;;
15264 *:yes) use_libphobos=yes ;;
15265 yes:*) use_libphobos=yes ;;
15266 *:*) use_libphobos=no ;;
15268 if test x$use_libphobos = xyes; then
15269 ENABLE_LIBPHOBOS_TRUE=
15270 ENABLE_LIBPHOBOS_FALSE='#'
15272 ENABLE_LIBPHOBOS_TRUE='#'
15273 ENABLE_LIBPHOBOS_FALSE=
15277 # Enable expensive internal checks
15278 # Check whether --enable-libphobos-checking was given.
15279 if test "${enable_libphobos_checking+set}" = set; then :
15280 enableval=$enable_libphobos_checking; ac_checking_flags="${enableval}"
15282 ac_checking_flags=release
15285 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
15286 for check in release $ac_checking_flags
15289 # These set all the flags to specific states
15290 yes|all) RELEASE_FLAG="-fno-release" ; ASSERT_FLAG= ;;
15291 no|none|release) RELEASE_FLAG="-frelease" ; ASSERT_FLAG= ;;
15292 # These enable particular checks
15293 assert) ASSERT_FLAG="-fassert" ;;
15299 CHECKING_DFLAGS="$RELEASE_FLAG $ASSERT_FLAG"
15302 # Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15303 if test "$DCFG_MINFO_BRACKETING" = "false"; then
15304 DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec
15306 DRTSTUFF_SPEC=/dev/null
15310 # Add dependencies for libgphobos.spec file
15311 SPEC_PHOBOS_DEPS="$LIBS"
15314 # Libdruntime / phobos soname version
15315 libtool_VERSION=1:0:0
15318 # Set default flags (after DRUNTIME_WERROR!)
15319 if test -z "$GDCFLAGS"; then
15324 if test -z "$GDCFLAGSX"; then
15329 WARN_DFLAGS="-Wall $WERROR_FLAG"
15332 # Sanity check for the cross-compilation case:
15333 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
15334 if test "x$ac_cv_header_stdio_h" = xyes; then :
15337 as_fn_error $? "cannot find stdio.h." "$LINENO" 5
15342 ac_config_files="$ac_config_files Makefile"
15345 ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15347 ac_config_files="$ac_config_files src/libgphobos.spec"
15349 ac_config_files="$ac_config_files testsuite/testsuite_flags"
15352 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15353 # that multilib installs will end up installed in the correct place.
15354 # The testsuite needs it for multilib-aware ABI baseline files.
15355 # To work around this not being passed down from config-ml.in ->
15356 # srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15357 # append it here. Only modify Makefiles that have just been created.
15359 # Also, get rid of this simulated-VPATH thing that automake does.
15360 ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
15363 cat >confcache <<\_ACEOF
15364 # This file is a shell script that caches the results of configure
15365 # tests run on this system so they can be shared between configure
15366 # scripts and configure runs, see configure's option --config-cache.
15367 # It is not useful on other systems. If it contains results you don't
15368 # want to keep, you may remove or edit it.
15370 # config.status only pays attention to the cache file if you give it
15371 # the --recheck option to rerun configure.
15373 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15374 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15375 # following values.
15379 # The following way of writing the cache mishandles newlines in values,
15380 # but we know of no workaround that is simple, portable, and efficient.
15381 # So, we kill variables containing newlines.
15382 # Ultrix sh set writes to stderr and can't be redirected directly,
15383 # and sets the high bit in the cache file unless we assign to the vars.
15385 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15386 eval ac_val=\$$ac_var
15390 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15391 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15394 _ | IFS | as_nl) ;; #(
15395 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15396 *) { eval $ac_var=; unset $ac_var;} ;;
15402 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15403 *${as_nl}ac_space=\ *)
15404 # `set' does not quote correctly, so add quotes: double-quote
15405 # substitution turns \\\\ into \\, and sed turns \\ into \.
15408 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15411 # `set' quotes correctly as required by POSIX, so do not add quotes.
15412 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15421 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15423 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15425 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15426 if test -w "$cache_file"; then
15427 if test "x$cache_file" != "x/dev/null"; then
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15429 $as_echo "$as_me: updating cache $cache_file" >&6;}
15430 if test ! -f "$cache_file" || test -h "$cache_file"; then
15431 cat confcache >"$cache_file"
15433 case $cache_file in #(
15435 mv -f confcache "$cache_file"$$ &&
15436 mv -f "$cache_file"$$ "$cache_file" ;; #(
15438 mv -f confcache "$cache_file" ;;
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15444 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15449 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15450 # Let make expand exec_prefix.
15451 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15453 DEFS=-DHAVE_CONFIG_H
15458 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15459 # 1. Remove the extension, and $U if already installed.
15460 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15461 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15462 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15463 # will be set to the directory where LIBOBJS objects are built.
15464 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15465 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15467 LIBOBJS=$ac_libobjs
15469 LTLIBOBJS=$ac_ltlibobjs
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15473 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15474 if test -n "$am_sleep_pid"; then
15475 # Hide warnings about reused PIDs.
15476 wait $am_sleep_pid 2>/dev/null
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15479 $as_echo "done" >&6; }
15480 if test -n "$EXEEXT"; then
15482 am__EXEEXT_FALSE='#'
15484 am__EXEEXT_TRUE='#'
15488 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15489 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15492 if test -z "${DRUNTIME_CPU_AARCH64_TRUE}" && test -z "${DRUNTIME_CPU_AARCH64_FALSE}"; then
15493 as_fn_error $? "conditional \"DRUNTIME_CPU_AARCH64\" was never defined.
15494 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15496 if test -z "${DRUNTIME_CPU_ARM_TRUE}" && test -z "${DRUNTIME_CPU_ARM_FALSE}"; then
15497 as_fn_error $? "conditional \"DRUNTIME_CPU_ARM\" was never defined.
15498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15500 if test -z "${DRUNTIME_CPU_MIPS_TRUE}" && test -z "${DRUNTIME_CPU_MIPS_FALSE}"; then
15501 as_fn_error $? "conditional \"DRUNTIME_CPU_MIPS\" was never defined.
15502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15504 if test -z "${DRUNTIME_CPU_POWERPC_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC_FALSE}"; then
15505 as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC\" was never defined.
15506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15508 if test -z "${DRUNTIME_CPU_POWERPC64_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC64_FALSE}"; then
15509 as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC64\" was never defined.
15510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15512 if test -z "${DRUNTIME_CPU_X86_TRUE}" && test -z "${DRUNTIME_CPU_X86_FALSE}"; then
15513 as_fn_error $? "conditional \"DRUNTIME_CPU_X86\" was never defined.
15514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15516 if test -z "${DRUNTIME_CPU_SYSTEMZ_TRUE}" && test -z "${DRUNTIME_CPU_SYSTEMZ_FALSE}"; then
15517 as_fn_error $? "conditional \"DRUNTIME_CPU_SYSTEMZ\" was never defined.
15518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15520 if test -z "${DRUNTIME_CPU_S390_TRUE}" && test -z "${DRUNTIME_CPU_S390_FALSE}"; then
15521 as_fn_error $? "conditional \"DRUNTIME_CPU_S390\" was never defined.
15522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15524 if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
15525 as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
15526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15528 if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
15529 as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
15530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15532 if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
15533 as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
15534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15536 if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
15537 as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
15538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15540 if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
15541 as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
15542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15544 if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
15545 as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
15546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15548 if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
15549 as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
15550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15552 if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
15553 as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
15554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15556 if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
15557 as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
15558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15560 if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
15561 as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
15562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15564 if test -z "${DRUNTIME_OS_POSIX_TRUE}" && test -z "${DRUNTIME_OS_POSIX_FALSE}"; then
15565 as_fn_error $? "conditional \"DRUNTIME_OS_POSIX\" was never defined.
15566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15568 if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
15569 as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
15570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15572 if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15573 as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15576 if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then
15577 as_fn_error $? "conditional \"ENABLE_LIBPHOBOS\" was never defined.
15578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15581 : "${CONFIG_STATUS=./config.status}"
15583 ac_clean_files_save=$ac_clean_files
15584 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15586 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15588 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15590 # Generated by $as_me.
15591 # Run this file to recreate the current configuration.
15592 # Compiler output produced by configure, useful for debugging
15593 # configure, is in config.log if it exists.
15596 ac_cs_recheck=false
15599 SHELL=\${CONFIG_SHELL-$SHELL}
15602 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15603 ## -------------------- ##
15604 ## M4sh Initialization. ##
15605 ## -------------------- ##
15607 # Be more Bourne compatible
15608 DUALCASE=1; export DUALCASE # for MKS sh
15609 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15612 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15613 # is contrary to our usage. Disable this feature.
15614 alias -g '${1+"$@"}'='"$@"'
15615 setopt NO_GLOB_SUBST
15617 case `(set -o) 2>/dev/null` in #(
15629 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15630 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15631 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15632 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15633 # Prefer a ksh shell builtin over an external printf program on Solaris,
15634 # but without wasting forks for bash or zsh.
15635 if test -z "$BASH_VERSION$ZSH_VERSION" \
15636 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15637 as_echo='print -r --'
15638 as_echo_n='print -rn --'
15639 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15640 as_echo='printf %s\n'
15641 as_echo_n='printf %s'
15643 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15644 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15645 as_echo_n='/usr/ucb/echo -n'
15647 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15648 as_echo_n_body='eval
15652 expr "X$arg" : "X\\(.*\\)$as_nl";
15653 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15655 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15657 export as_echo_n_body
15658 as_echo_n='sh -c $as_echo_n_body as_echo'
15660 export as_echo_body
15661 as_echo='sh -c $as_echo_body as_echo'
15664 # The user is always right.
15665 if test "${PATH_SEPARATOR+set}" != set; then
15667 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15668 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15675 # We need space, tab and new line, in precisely that order. Quoting is
15676 # there to prevent editors from complaining about space-tab.
15677 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15678 # splitting by setting IFS to empty value.)
15681 # Find who we are. Look in the path if we contain no directory separator.
15684 *[\\/]* ) as_myself=$0 ;;
15685 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15686 for as_dir in $PATH
15689 test -z "$as_dir" && as_dir=.
15690 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15696 # We did not find ourselves, most probably we were run as `sh COMMAND'
15697 # in which case we are not to be found in the path.
15698 if test "x$as_myself" = x; then
15701 if test ! -f "$as_myself"; then
15702 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15706 # Unset variables that we do not need and which cause bugs (e.g. in
15707 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15708 # suppresses any "Segmentation fault" message there. '((' could
15709 # trigger a bug in pdksh 5.2.14.
15710 for as_var in BASH_ENV ENV MAIL MAILPATH
15711 do eval test x\${$as_var+set} = xset \
15712 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15725 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15728 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15729 # ----------------------------------------
15730 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15731 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15732 # script with STATUS, using 1 if that was 0.
15735 as_status=$1; test $as_status -eq 0 && as_status=1
15737 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15738 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15740 $as_echo "$as_me: error: $2" >&2
15741 as_fn_exit $as_status
15745 # as_fn_set_status STATUS
15746 # -----------------------
15747 # Set $? to STATUS, without forking.
15748 as_fn_set_status ()
15751 } # as_fn_set_status
15753 # as_fn_exit STATUS
15754 # -----------------
15755 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15759 as_fn_set_status $1
15765 # Portably unset VAR.
15768 { eval $1=; unset $1;}
15770 as_unset=as_fn_unset
15771 # as_fn_append VAR VALUE
15772 # ----------------------
15773 # Append the text in VALUE to the end of the definition contained in VAR. Take
15774 # advantage of any shell optimizations that allow amortized linear growth over
15775 # repeated appends, instead of the typical quadratic growth present in naive
15777 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15778 eval 'as_fn_append ()
15789 # as_fn_arith ARG...
15790 # ------------------
15791 # Perform arithmetic evaluation on the ARGs, and store the result in the
15792 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15793 # must be portable across $(()) and expr.
15794 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15795 eval 'as_fn_arith ()
15802 as_val=`expr "$@" || test $? -eq 1`
15807 if expr a : '\(a\)' >/dev/null 2>&1 &&
15808 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15814 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15815 as_basename=basename
15820 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15826 as_me=`$as_basename -- "$0" ||
15827 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15828 X"$0" : 'X\(//\)$' \| \
15829 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15831 sed '/^.*\/\([^/][^/]*\)\/*$/{
15845 # Avoid depending upon Character Ranges.
15846 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15847 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15848 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15849 as_cr_digits='0123456789'
15850 as_cr_alnum=$as_cr_Letters$as_cr_digits
15852 ECHO_C= ECHO_N= ECHO_T=
15853 case `echo -n x` in #(((((
15855 case `echo 'xy\c'` in
15856 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15858 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15865 rm -f conf$$ conf$$.exe conf$$.file
15866 if test -d conf$$.dir; then
15867 rm -f conf$$.dir/conf$$.file
15870 mkdir conf$$.dir 2>/dev/null
15872 if (echo >conf$$.file) 2>/dev/null; then
15873 if ln -s conf$$.file conf$$ 2>/dev/null; then
15875 # ... but there are two gotchas:
15876 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15877 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15878 # In both cases, we have to default to `cp -pR'.
15879 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15881 elif ln conf$$.file conf$$ 2>/dev/null; then
15889 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15890 rmdir conf$$.dir 2>/dev/null
15895 # Create "$as_dir" as a directory, including parents if necessary.
15900 -*) as_dir=./$as_dir;;
15902 test -d "$as_dir" || eval $as_mkdir_p || {
15906 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15907 *) as_qdir=$as_dir;;
15909 as_dirs="'$as_qdir' $as_dirs"
15910 as_dir=`$as_dirname -- "$as_dir" ||
15911 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15912 X"$as_dir" : 'X\(//\)[^/]' \| \
15913 X"$as_dir" : 'X\(//\)$' \| \
15914 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15915 $as_echo X"$as_dir" |
15916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15920 /^X\(\/\/\)[^/].*/{
15933 test -d "$as_dir" && break
15935 test -z "$as_dirs" || eval "mkdir $as_dirs"
15936 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15940 if mkdir -p . 2>/dev/null; then
15941 as_mkdir_p='mkdir -p "$as_dir"'
15943 test -d ./-p && rmdir ./-p
15948 # as_fn_executable_p FILE
15949 # -----------------------
15950 # Test if FILE is an executable regular file.
15951 as_fn_executable_p ()
15953 test -f "$1" && test -x "$1"
15954 } # as_fn_executable_p
15955 as_test_x='test -x'
15956 as_executable_p=as_fn_executable_p
15958 # Sed expression to map a string onto a valid CPP name.
15959 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15961 # Sed expression to map a string onto a valid variable name.
15962 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15966 ## ----------------------------------- ##
15967 ## Main body of $CONFIG_STATUS script. ##
15968 ## ----------------------------------- ##
15970 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15973 # Save the log message, to keep $0 and so on meaningful, and to
15974 # report actual input values of CONFIG_FILES etc. instead of their
15975 # values after options handling.
15977 This file was extended by package-unused $as_me version-unused, which was
15978 generated by GNU Autoconf 2.69. Invocation command line was
15980 CONFIG_FILES = $CONFIG_FILES
15981 CONFIG_HEADERS = $CONFIG_HEADERS
15982 CONFIG_LINKS = $CONFIG_LINKS
15983 CONFIG_COMMANDS = $CONFIG_COMMANDS
15986 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15991 case $ac_config_files in *"
15992 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15995 case $ac_config_headers in *"
15996 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16001 # Files that config.status was made for.
16002 config_files="$ac_config_files"
16003 config_headers="$ac_config_headers"
16004 config_commands="$ac_config_commands"
16008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16010 \`$as_me' instantiates files and other configuration actions
16011 from templates according to the current configuration. Unless the files
16012 and actions are specified as TAGs, all are instantiated by default.
16014 Usage: $0 [OPTION]... [TAG]...
16016 -h, --help print this help, then exit
16017 -V, --version print version number and configuration settings, then exit
16018 --config print configuration, then exit
16019 -q, --quiet, --silent
16020 do not print progress messages
16021 -d, --debug don't remove temporary files
16022 --recheck update $as_me by reconfiguring in the same conditions
16023 --file=FILE[:TEMPLATE]
16024 instantiate the configuration file FILE
16025 --header=FILE[:TEMPLATE]
16026 instantiate the configuration header FILE
16028 Configuration files:
16031 Configuration headers:
16034 Configuration commands:
16037 Report bugs to the package provider."
16040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16041 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16043 package-unused config.status version-unused
16044 configured by $0, generated by GNU Autoconf 2.69,
16045 with options \\"\$ac_cs_config\\"
16047 Copyright (C) 2012 Free Software Foundation, Inc.
16048 This config.status script is free software; the Free Software Foundation
16049 gives unlimited permission to copy, distribute and modify it."
16056 test -n "\$AWK" || AWK=awk
16059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16060 # The default lists apply if the user does not specify any file.
16066 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16067 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16071 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16083 # Handling of the options.
16084 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16086 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16087 $as_echo "$ac_cs_version"; exit ;;
16088 --config | --confi | --conf | --con | --co | --c )
16089 $as_echo "$ac_cs_config"; exit ;;
16090 --debug | --debu | --deb | --de | --d | -d )
16092 --file | --fil | --fi | --f )
16095 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16096 '') as_fn_error $? "missing file argument" ;;
16098 as_fn_append CONFIG_FILES " '$ac_optarg'"
16099 ac_need_defaults=false;;
16100 --header | --heade | --head | --hea )
16103 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16105 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16106 ac_need_defaults=false;;
16108 # Conflict between --help and --header
16109 as_fn_error $? "ambiguous option: \`$1'
16110 Try \`$0 --help' for more information.";;
16111 --help | --hel | -h )
16112 $as_echo "$ac_cs_usage"; exit ;;
16113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16114 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16117 # This is an error.
16118 -*) as_fn_error $? "unrecognized option: \`$1'
16119 Try \`$0 --help' for more information." ;;
16121 *) as_fn_append ac_config_targets " $1"
16122 ac_need_defaults=false ;;
16128 ac_configure_extra_args=
16130 if $ac_cs_silent; then
16132 ac_configure_extra_args="$ac_configure_extra_args --silent"
16136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16137 if \$ac_cs_recheck; then
16138 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16140 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16141 CONFIG_SHELL='$SHELL'
16142 export CONFIG_SHELL
16147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16151 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16152 ## Running $as_me. ##
16158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16166 with_multisubdir="$with_multisubdir"
16167 with_multisrctop="$with_multisrctop"
16168 with_target_subdir="$with_target_subdir"
16169 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16170 multi_basedir="$multi_basedir"
16171 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16174 GFORTRAN="$GFORTRAN"
16178 # The HP-UX ksh and POSIX shell print the target directory to stdout
16179 # if CDPATH is set.
16180 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16182 sed_quote_subst='$sed_quote_subst'
16183 double_quote_subst='$double_quote_subst'
16184 delay_variable_subst='$delay_variable_subst'
16185 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16186 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16187 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16188 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16189 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16190 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16191 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16192 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16193 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16194 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16195 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16196 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16197 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16198 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16199 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16200 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16201 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16202 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16203 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16204 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16205 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16206 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16207 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16208 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16209 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16210 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16211 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16212 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16213 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16214 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16215 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16216 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16217 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16218 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16219 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16220 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16221 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16222 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16223 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16224 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16225 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16226 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16227 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16228 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16229 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16230 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16231 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16232 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16233 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"`'
16234 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16235 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16236 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16237 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16238 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16239 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16240 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16241 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16242 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16243 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16244 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16245 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16246 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16247 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16248 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16249 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16250 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16251 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16252 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16253 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16254 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16255 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16256 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16257 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16258 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16259 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16260 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16261 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16262 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16263 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16264 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16265 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16266 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16267 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16268 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16269 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16270 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16271 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16272 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16273 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16274 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16275 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16276 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16277 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16278 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16279 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16280 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16281 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16282 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16283 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16284 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16285 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16286 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16287 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16288 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16289 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16290 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16291 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16292 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16293 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16294 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16295 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16296 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16297 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16298 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16299 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16300 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16301 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16302 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16303 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16304 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16305 LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16306 reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16307 reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16308 old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16309 compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16310 GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16311 lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16312 lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16313 lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16314 lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16315 lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16316 archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16317 enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16318 export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16319 whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16320 compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16321 old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16322 old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16323 archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16324 archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16325 module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16326 module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16327 with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16328 allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16329 no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16330 hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16331 hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16332 hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16333 hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16334 hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16335 hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16336 hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16337 hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16338 inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16339 link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16340 fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16341 always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16342 export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16343 exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16344 include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16345 prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16346 file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16347 hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16350 LTCFLAGS='$LTCFLAGS'
16351 compiler='$compiler_DEFAULT'
16353 # A function that is used when there is no print builtin or printf.
16354 func_fallback_echo ()
16356 eval 'cat <<_LTECHO_EOF
16361 # Quote evaled strings.
16375 deplibs_check_method \
16384 lt_cv_sys_global_symbol_pipe \
16385 lt_cv_sys_global_symbol_to_cdecl \
16386 lt_cv_sys_global_symbol_to_c_name_address \
16387 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16388 lt_prog_compiler_no_builtin_flag \
16389 lt_prog_compiler_wl \
16390 lt_prog_compiler_pic \
16391 lt_prog_compiler_static \
16392 lt_cv_prog_compiler_c_o \
16400 export_dynamic_flag_spec \
16401 whole_archive_flag_spec \
16402 compiler_needs_object \
16404 allow_undefined_flag \
16405 no_undefined_flag \
16406 hardcode_libdir_flag_spec \
16407 hardcode_libdir_flag_spec_ld \
16408 hardcode_libdir_separator \
16413 variables_saved_for_relink \
16415 library_names_spec \
16417 install_override_mode \
16424 lt_prog_compiler_no_builtin_flag_D \
16425 lt_prog_compiler_wl_D \
16426 lt_prog_compiler_pic_D \
16427 lt_prog_compiler_static_D \
16428 lt_cv_prog_compiler_c_o_D \
16429 export_dynamic_flag_spec_D \
16430 whole_archive_flag_spec_D \
16431 compiler_needs_object_D \
16433 allow_undefined_flag_D \
16434 no_undefined_flag_D \
16435 hardcode_libdir_flag_spec_D \
16436 hardcode_libdir_flag_spec_ld_D \
16437 hardcode_libdir_separator_D \
16438 fix_srcfile_path_D \
16439 exclude_expsyms_D \
16440 include_expsyms_D \
16441 file_list_spec_D; do
16442 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16443 *[\\\\\\\`\\"\\\$]*)
16444 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16447 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16452 # Double-quote double-evaled strings.
16453 for var in reload_cmds \
16454 old_postinstall_cmds \
16455 old_postuninstall_cmds \
16457 extract_expsyms_cmds \
16458 old_archive_from_new_cmds \
16459 old_archive_from_expsyms_cmds \
16461 archive_expsym_cmds \
16463 module_expsym_cmds \
16464 export_symbols_cmds \
16467 postuninstall_cmds \
16469 sys_lib_search_path_spec \
16470 sys_lib_dlsearch_path_spec \
16472 old_archive_cmds_D \
16473 old_archive_from_new_cmds_D \
16474 old_archive_from_expsyms_cmds_D \
16476 archive_expsym_cmds_D \
16478 module_expsym_cmds_D \
16479 export_symbols_cmds_D \
16481 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16482 *[\\\\\\\`\\"\\\$]*)
16483 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16486 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16491 ac_aux_dir='$ac_aux_dir'
16492 xsi_shell='$xsi_shell'
16493 lt_shell_append='$lt_shell_append'
16495 # See if we are running on zsh, and set the options which allow our
16496 # commands through without removal of \ escapes INIT.
16497 if test -n "\${ZSH_VERSION+set}" ; then
16498 setopt NO_GLOB_SUBST
16504 TIMESTAMP='$TIMESTAMP'
16515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16517 # Handling of arguments.
16518 for ac_config_target in $ac_config_targets
16520 case $ac_config_target in
16521 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16522 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16523 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16524 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16525 "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16526 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16527 "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16528 "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
16529 "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16530 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16531 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16533 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16538 # If the user did not use the arguments to specify the items to instantiate,
16539 # then the envvar interface is used. Set only those that are not.
16540 # We use the long form for the default assignment because of an extremely
16541 # bizarre bug on SunOS 4.1.3.
16542 if $ac_need_defaults; then
16543 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16544 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16545 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16548 # Have a temporary directory for convenience. Make it in the build tree
16549 # simply because there is no reason against having it here, and in addition,
16550 # creating and moving files from /tmp can sometimes cause problems.
16551 # Hook for its removal unless debugging.
16552 # Note that there is a small window in which the directory will not be cleaned:
16553 # after its creation but before its name has been assigned to `$tmp'.
16557 trap 'exit_status=$?
16558 : "${ac_tmp:=$tmp}"
16559 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16561 trap 'as_fn_exit 1' 1 2 13 15
16563 # Create a (secure) tmp directory for tmp files.
16566 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16570 tmp=./conf$$-$RANDOM
16571 (umask 077 && mkdir "$tmp")
16572 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16575 # Set up the scripts for CONFIG_FILES section.
16576 # No need to generate them if there are no CONFIG_FILES.
16577 # This happens for instance with `./config.status config.h'.
16578 if test -n "$CONFIG_FILES"; then
16580 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16581 ac_cs_awk_getline=:
16582 ac_cs_awk_pipe_init=
16583 ac_cs_awk_read_file='
16584 while ((getline aline < (F[key])) > 0)
16587 ac_cs_awk_pipe_fini=
16589 ac_cs_awk_getline=false
16590 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16591 ac_cs_awk_read_file='
16593 print "cat " F[key] " &&"
16594 '$ac_cs_awk_pipe_init
16595 # The final `:' finishes the AND list.
16596 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16598 ac_cr=`echo X | tr X '\015'`
16599 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16600 # But we know of no other shell where ac_cr would be empty at this
16601 # point, so we can use a bashism as a fallback.
16602 if test "x$ac_cr" = x; then
16603 eval ac_cr=\$\'\\r\'
16605 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16606 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16609 ac_cs_awk_cr=$ac_cr
16612 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16615 # Create commands to substitute file output variables.
16617 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16618 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16619 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16622 } >conf$$files.sh &&
16623 . ./conf$$files.sh ||
16624 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16625 rm -f conf$$files.sh
16628 echo "cat >conf$$subs.awk <<_ACEOF" &&
16629 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16631 } >conf$$subs.sh ||
16632 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16633 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16635 for ac_last_try in false false false false false :; do
16636 . ./conf$$subs.sh ||
16637 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16639 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16640 if test $ac_delim_n = $ac_delim_num; then
16642 elif $ac_last_try; then
16643 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16645 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16648 rm -f conf$$subs.sh
16650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16651 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16655 s/^/S["/; s/!.*/"]=/
16665 s/\(.\{148\}\)..*/\1/
16667 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16672 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16679 s/\(.\{148\}\)..*/\1/
16681 s/["\\]/\\&/g; s/^/"/; s/$/"/
16685 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16690 ' <conf$$subs.awk | sed '
16695 ' >>$CONFIG_STATUS || ac_write_fail=1
16696 rm -f conf$$subs.awk
16697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16699 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16700 for (key in S) S_is_set[key] = 1
16702 \$ac_cs_awk_pipe_init
16706 nfields = split(line, field, "@")
16708 len = length(field[1])
16709 for (i = 2; i < nfields; i++) {
16711 keylen = length(key)
16712 if (S_is_set[key]) {
16714 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16715 len += length(value) + length(field[++i])
16720 if (nfields == 3 && !substed) {
16722 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16723 \$ac_cs_awk_read_file
16729 \$ac_cs_awk_pipe_fini
16732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16733 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16734 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16737 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16738 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16741 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16742 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16743 # trailing colons and then remove the whole line if VPATH becomes empty
16744 # (actually we leave an empty line to preserve line numbers).
16745 if test "x$srcdir" = x.; then
16746 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16765 fi # test -n "$CONFIG_FILES"
16767 # Set up the scripts for CONFIG_HEADERS section.
16768 # No need to generate them if there are no CONFIG_HEADERS.
16769 # This happens for instance with `./config.status Makefile'.
16770 if test -n "$CONFIG_HEADERS"; then
16771 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16775 # Transform confdefs.h into an awk script `defines.awk', embedded as
16776 # here-document in config.status, that substitutes the proper values into
16777 # config.h.in to produce config.h.
16779 # Create a delimiter string that does not exist in confdefs.h, to ease
16780 # handling of long lines.
16782 for ac_last_try in false false :; do
16783 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16784 if test -z "$ac_tt"; then
16786 elif $ac_last_try; then
16787 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16789 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16793 # For the awk script, D is an array of macro values keyed by name,
16794 # likewise P contains macro parameters if any. Preserve backslash
16795 # newline sequences.
16797 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16799 s/.\{148\}/&'"$ac_delim"'/g
16802 s/^[ ]*#[ ]*define[ ][ ]*/ /
16809 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16811 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16815 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16816 D["\1"]=" \3\\\\\\n"\\/p
16818 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16823 s/.\{148\}/&'"$ac_delim"'/g
16828 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16831 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16833 ' <confdefs.h | sed '
16834 s/'"$ac_delim"'/"\\\
16835 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16837 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16838 for (key in D) D_is_set[key] = 1
16841 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16843 split(line, arg, " ")
16844 if (arg[1] == "#") {
16848 defundef = substr(arg[1], 2)
16851 split(mac1, mac2, "(") #)
16853 prefix = substr(line, 1, index(line, defundef) - 1)
16854 if (D_is_set[macro]) {
16855 # Preserve the white space surrounding the "#".
16856 print prefix "define", macro P[macro] D[macro]
16859 # Replace #undef with comments. This is necessary, for example,
16860 # in the case of _POSIX_SOURCE, which is predefined and required
16861 # on some systems where configure will not decide to define it.
16862 if (defundef == "undef") {
16863 print "/*", prefix defundef, macro, "*/"
16871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16872 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16873 fi # test -n "$CONFIG_HEADERS"
16876 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16881 :[FHLC]) ac_mode=$ac_tag; continue;;
16883 case $ac_mode$ac_tag in
16885 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16886 :[FH]-) ac_tag=-:-;;
16887 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16904 -) ac_f="$ac_tmp/stdin";;
16905 *) # Look for the file first in the build tree, then in the source tree
16906 # (if the path is not absolute). The absolute path cannot be DOS-style,
16907 # because $ac_f cannot contain `:'.
16911 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16913 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16915 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16916 as_fn_append ac_file_inputs " '$ac_f'"
16919 # Let's still pretend it is `configure' which instantiates (i.e., don't
16920 # use $as_me), people would be surprised to read:
16921 # /* config.h. Generated by config.status. */
16922 configure_input='Generated from '`
16923 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16925 if test x"$ac_file" != x-; then
16926 configure_input="$ac_file. $configure_input"
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16928 $as_echo "$as_me: creating $ac_file" >&6;}
16930 # Neutralize special characters interpreted by sed in replacement strings.
16931 case $configure_input in #(
16932 *\&* | *\|* | *\\* )
16933 ac_sed_conf_input=`$as_echo "$configure_input" |
16934 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16935 *) ac_sed_conf_input=$configure_input;;
16939 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16940 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16945 ac_dir=`$as_dirname -- "$ac_file" ||
16946 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16947 X"$ac_file" : 'X\(//\)[^/]' \| \
16948 X"$ac_file" : 'X\(//\)$' \| \
16949 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16950 $as_echo X"$ac_file" |
16951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16955 /^X\(\/\/\)[^/].*/{
16968 as_dir="$ac_dir"; as_fn_mkdir_p
16972 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16974 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16975 # A ".." for each directory in $ac_dir_suffix.
16976 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16977 case $ac_top_builddir_sub in
16978 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16979 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16982 ac_abs_top_builddir=$ac_pwd
16983 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16984 # for backward compatibility:
16985 ac_top_builddir=$ac_top_build_prefix
16988 .) # We are building in place.
16990 ac_top_srcdir=$ac_top_builddir_sub
16991 ac_abs_top_srcdir=$ac_pwd ;;
16992 [\\/]* | ?:[\\/]* ) # Absolute name.
16993 ac_srcdir=$srcdir$ac_dir_suffix;
16994 ac_top_srcdir=$srcdir
16995 ac_abs_top_srcdir=$srcdir ;;
16996 *) # Relative name.
16997 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16998 ac_top_srcdir=$ac_top_build_prefix$srcdir
16999 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17001 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17011 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17012 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17014 ac_MKDIR_P=$MKDIR_P
17016 [\\/$]* | ?:[\\/]* ) ;;
17017 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17022 # If the template does not know about datarootdir, expand it.
17023 # FIXME: This hack should be removed a few years after 2.60.
17024 ac_datarootdir_hack=; ac_datarootdir_seen=
17035 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17036 *datarootdir*) ac_datarootdir_seen=yes;;
17037 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17039 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17042 ac_datarootdir_hack='
17043 s&@datadir@&$datadir&g
17044 s&@docdir@&$docdir&g
17045 s&@infodir@&$infodir&g
17046 s&@localedir@&$localedir&g
17047 s&@mandir@&$mandir&g
17048 s&\\\${datarootdir}&$datarootdir&g' ;;
17052 # Neutralize VPATH when `$srcdir' = `.'.
17053 # Shell code in configure.ac might set extrasub.
17054 # FIXME: do we really want to maintain this feature?
17055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17056 ac_sed_extra="$ac_vpsub
17059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17061 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17062 s|@configure_input@|$ac_sed_conf_input|;t t
17063 s&@top_builddir@&$ac_top_builddir_sub&;t t
17064 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17065 s&@srcdir@&$ac_srcdir&;t t
17066 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17067 s&@top_srcdir@&$ac_top_srcdir&;t t
17068 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17069 s&@builddir@&$ac_builddir&;t t
17070 s&@abs_builddir@&$ac_abs_builddir&;t t
17071 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17072 s&@INSTALL@&$ac_INSTALL&;t t
17073 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17074 $ac_datarootdir_hack
17076 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17077 if $ac_cs_awk_getline; then
17078 $AWK -f "$ac_tmp/subs.awk"
17080 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17082 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17084 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17085 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17086 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17087 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17089 which seems to be undefined. Please make sure it is defined" >&5
17090 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17091 which seems to be undefined. Please make sure it is defined" >&2;}
17093 rm -f "$ac_tmp/stdin"
17095 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17096 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17098 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17104 if test x"$ac_file" != x-; then
17106 $as_echo "/* $configure_input */" \
17107 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17108 } >"$ac_tmp/config.h" \
17109 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17110 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17112 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17115 mv "$ac_tmp/config.h" "$ac_file" \
17116 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17119 $as_echo "/* $configure_input */" \
17120 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17121 || as_fn_error $? "could not create -" "$LINENO" 5
17123 # Compute "$ac_file"'s index in $config_headers.
17126 for _am_header in $config_headers :; do
17127 case $_am_header in
17128 $_am_arg | $_am_arg:* )
17131 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17134 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17135 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17136 X"$_am_arg" : 'X\(//\)[^/]' \| \
17137 X"$_am_arg" : 'X\(//\)$' \| \
17138 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17139 $as_echo X"$_am_arg" |
17140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17144 /^X\(\/\/\)[^/].*/{
17156 s/.*/./; q'`/stamp-h$_am_stamp_count
17159 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17160 $as_echo "$as_me: executing $ac_file commands" >&6;}
17165 case $ac_file$ac_mode in
17167 # Only add multilib support code if we just rebuilt the top-level
17169 case " $CONFIG_FILES " in
17171 ac_file=Makefile . ${multi_basedir}/config-ml.in
17176 # See if we are running on zsh, and set the options which allow our
17177 # commands through without removal of \ escapes.
17178 if test -n "${ZSH_VERSION+set}" ; then
17179 setopt NO_GLOB_SUBST
17182 cfgfile="${ofile}T"
17183 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17186 cat <<_LT_EOF >> "$cfgfile"
17189 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17190 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17191 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17192 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17194 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17195 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17196 # Written by Gordon Matzigkeit, 1996
17198 # This file is part of GNU Libtool.
17200 # GNU Libtool is free software; you can redistribute it and/or
17201 # modify it under the terms of the GNU General Public License as
17202 # published by the Free Software Foundation; either version 2 of
17203 # the License, or (at your option) any later version.
17205 # As a special exception to the GNU General Public License,
17206 # if you distribute this file as part of a program or library that
17207 # is built using GNU Libtool, you may include this file under the
17208 # same distribution terms that you use for the rest of that program.
17210 # GNU Libtool is distributed in the hope that it will be useful,
17211 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17212 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17213 # GNU General Public License for more details.
17215 # You should have received a copy of the GNU General Public License
17216 # along with GNU Libtool; see the file COPYING. If not, a copy
17217 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17218 # obtained by writing to the Free Software Foundation, Inc.,
17219 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17222 # The names of the tagged configurations supported by this script.
17223 available_tags="D "
17225 # ### BEGIN LIBTOOL CONFIG
17227 # Which release of libtool.m4 was used?
17228 macro_version=$macro_version
17229 macro_revision=$macro_revision
17231 # Whether or not to build shared libraries.
17232 build_libtool_libs=$enable_shared
17234 # Whether or not to build static libraries.
17235 build_old_libs=$enable_static
17237 # What type of objects to build.
17240 # Whether or not to optimize for fast installation.
17241 fast_install=$enable_fast_install
17243 # Shell to use when invoking shell scripts.
17246 # An echo program that protects backslashes.
17250 host_alias=$host_alias
17254 # The build system.
17255 build_alias=$build_alias
17259 # A sed program that does not truncate output.
17262 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17263 Xsed="\$SED -e 1s/^X//"
17265 # A grep program that handles long lines.
17271 # A literal string matcher.
17274 # A BSD- or MS-compatible name lister.
17277 # Whether we need soft or hard links.
17280 # What is the maximum length of a command?
17281 max_cmd_len=$max_cmd_len
17283 # Object file suffix (normally "o").
17286 # Executable file suffix (normally "").
17289 # whether the shell understands "unset".
17292 # turn spaces into newlines.
17295 # turn newlines into spaces.
17298 # An object symbol dumper.
17299 OBJDUMP=$lt_OBJDUMP
17301 # Method to check whether dependent libraries are shared objects.
17302 deplibs_check_method=$lt_deplibs_check_method
17304 # Command to use when deplibs_check_method == "file_magic".
17305 file_magic_cmd=$lt_file_magic_cmd
17309 AR_FLAGS=$lt_AR_FLAGS
17311 # A symbol stripping program.
17314 # Commands used to install an old-style archive.
17316 old_postinstall_cmds=$lt_old_postinstall_cmds
17317 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17319 # Whether to use a lock for old archive extraction.
17320 lock_old_archive_extraction=$lock_old_archive_extraction
17325 # LTCC compiler flags.
17326 LTCFLAGS=$lt_CFLAGS
17328 # Take the output of nm and produce a listing of raw symbols and C names.
17329 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17331 # Transform the output of nm in a proper C declaration.
17332 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17334 # Transform the output of nm in a C name address pair.
17335 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17337 # Transform the output of nm in a C name address pair when lib prefix is needed.
17338 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17340 # The name of the directory that contains temporary libtool files.
17343 # Used to examine libraries when file_magic_cmd begins with "file".
17344 MAGIC_CMD=$MAGIC_CMD
17346 # Must we lock files when doing compilation?
17347 need_locks=$lt_need_locks
17349 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17350 DSYMUTIL=$lt_DSYMUTIL
17352 # Tool to change global to local symbols on Mac OS X.
17355 # Tool to manipulate fat objects and archives on Mac OS X.
17358 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17361 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17362 OTOOL64=$lt_OTOOL64
17364 # Old archive suffix (normally "a").
17367 # Shared library suffix (normally ".so").
17368 shrext_cmds=$lt_shrext_cmds
17370 # The commands to extract the exported symbol list from a shared archive.
17371 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17373 # Variables whose values should be saved in libtool wrapper scripts and
17374 # restored at link time.
17375 variables_saved_for_relink=$lt_variables_saved_for_relink
17377 # Do we need the "lib" prefix for modules?
17378 need_lib_prefix=$need_lib_prefix
17380 # Do we need a version for libraries?
17381 need_version=$need_version
17383 # Library versioning type.
17384 version_type=$version_type
17386 # Shared library runtime path variable.
17387 runpath_var=$runpath_var
17389 # Shared library path variable.
17390 shlibpath_var=$shlibpath_var
17392 # Is shlibpath searched before the hard-coded library search path?
17393 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17395 # Format of library name prefix.
17396 libname_spec=$lt_libname_spec
17398 # List of archive names. First name is the real one, the rest are links.
17399 # The last name is the one that the linker finds with -lNAME
17400 library_names_spec=$lt_library_names_spec
17402 # The coded name of the library, if different from the real name.
17403 soname_spec=$lt_soname_spec
17405 # Permission mode override for installation of shared libraries.
17406 install_override_mode=$lt_install_override_mode
17408 # Command to use after installation of a shared archive.
17409 postinstall_cmds=$lt_postinstall_cmds
17411 # Command to use after uninstallation of a shared archive.
17412 postuninstall_cmds=$lt_postuninstall_cmds
17414 # Commands used to finish a libtool library installation in a directory.
17415 finish_cmds=$lt_finish_cmds
17417 # As "finish_cmds", except a single script fragment to be evaled but
17419 finish_eval=$lt_finish_eval
17421 # Whether we should hardcode library paths into libraries.
17422 hardcode_into_libs=$hardcode_into_libs
17424 # Compile-time system search path for libraries.
17425 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17427 # Run-time system search path for libraries.
17428 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17430 # Whether dlopen is supported.
17431 dlopen_support=$enable_dlopen
17433 # Whether dlopen of programs is supported.
17434 dlopen_self=$enable_dlopen_self
17436 # Whether dlopen of statically linked programs is supported.
17437 dlopen_self_static=$enable_dlopen_self_static
17439 # Commands to strip libraries.
17440 old_striplib=$lt_old_striplib
17441 striplib=$lt_striplib
17444 # The linker used to build libraries.
17447 # How to create reloadable object files.
17448 reload_flag=$lt_reload_flag
17449 reload_cmds=$lt_reload_cmds
17451 # Commands used to build an old-style archive.
17452 old_archive_cmds=$lt_old_archive_cmds
17454 # A language specific compiler.
17457 # Is the compiler the GNU compiler?
17460 # Compiler flag to turn off builtin functions.
17461 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17463 # How to pass a linker flag through the compiler.
17464 wl=$lt_lt_prog_compiler_wl
17466 # Additional compiler flags for building library objects.
17467 pic_flag=$lt_lt_prog_compiler_pic
17469 # Compiler flag to prevent dynamic linking.
17470 link_static_flag=$lt_lt_prog_compiler_static
17472 # Does compiler simultaneously support -c and -o options?
17473 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17475 # Whether or not to add -lc for building shared libraries.
17476 build_libtool_need_lc=$archive_cmds_need_lc
17478 # Whether or not to disallow shared libs when runtime libs are static.
17479 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17481 # Compiler flag to allow reflexive dlopens.
17482 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17484 # Compiler flag to generate shared objects directly from archives.
17485 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17487 # Whether the compiler copes with passing no objects directly.
17488 compiler_needs_object=$lt_compiler_needs_object
17490 # Create an old-style archive from a shared archive.
17491 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17493 # Create a temporary old-style archive to link instead of a shared archive.
17494 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17496 # Commands used to build a shared archive.
17497 archive_cmds=$lt_archive_cmds
17498 archive_expsym_cmds=$lt_archive_expsym_cmds
17500 # Commands used to build a loadable module if different from building
17501 # a shared archive.
17502 module_cmds=$lt_module_cmds
17503 module_expsym_cmds=$lt_module_expsym_cmds
17505 # Whether we are building with GNU ld or not.
17506 with_gnu_ld=$lt_with_gnu_ld
17508 # Flag that allows shared libraries with undefined symbols to be built.
17509 allow_undefined_flag=$lt_allow_undefined_flag
17511 # Flag that enforces no undefined symbols.
17512 no_undefined_flag=$lt_no_undefined_flag
17514 # Flag to hardcode \$libdir into a binary during linking.
17515 # This must work even if \$libdir does not exist
17516 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17518 # If ld is used when linking, flag to hardcode \$libdir into a binary
17519 # during linking. This must work even if \$libdir does not exist.
17520 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17522 # Whether we need a single "-rpath" flag with a separated argument.
17523 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17525 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17526 # DIR into the resulting binary.
17527 hardcode_direct=$hardcode_direct
17529 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17530 # DIR into the resulting binary and the resulting library dependency is
17531 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17532 # library is relocated.
17533 hardcode_direct_absolute=$hardcode_direct_absolute
17535 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17536 # into the resulting binary.
17537 hardcode_minus_L=$hardcode_minus_L
17539 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17540 # into the resulting binary.
17541 hardcode_shlibpath_var=$hardcode_shlibpath_var
17543 # Set to "yes" if building a shared library automatically hardcodes DIR
17544 # into the library and all subsequent libraries and executables linked
17546 hardcode_automatic=$hardcode_automatic
17548 # Set to yes if linker adds runtime paths of dependent libraries
17549 # to runtime path list.
17550 inherit_rpath=$inherit_rpath
17552 # Whether libtool must link a program against all its dependency libraries.
17553 link_all_deplibs=$link_all_deplibs
17555 # Fix the shell variable \$srcfile for the compiler.
17556 fix_srcfile_path=$lt_fix_srcfile_path
17558 # Set to "yes" if exported symbols are required.
17559 always_export_symbols=$always_export_symbols
17561 # The commands to list exported symbols.
17562 export_symbols_cmds=$lt_export_symbols_cmds
17564 # Symbols that should not be listed in the preloaded symbols.
17565 exclude_expsyms=$lt_exclude_expsyms
17567 # Symbols that must always be exported.
17568 include_expsyms=$lt_include_expsyms
17570 # Commands necessary for linking programs (against libraries) with templates.
17571 prelink_cmds=$lt_prelink_cmds
17573 # Specify filename containing input files.
17574 file_list_spec=$lt_file_list_spec
17576 # How to hardcode a shared library path into an executable.
17577 hardcode_action=$hardcode_action
17579 # ### END LIBTOOL CONFIG
17585 cat <<\_LT_EOF >> "$cfgfile"
17586 # AIX sometimes has problems with the GCC collect2 program. For some
17587 # reason, if we set the COLLECT_NAMES environment variable, the problems
17588 # vanish in a puff of smoke.
17589 if test "X${COLLECT_NAMES+set}" != Xset; then
17591 export COLLECT_NAMES
17598 ltmain="$ac_aux_dir/ltmain.sh"
17601 # We use sed instead of cat because bash on DJGPP gets confused if
17602 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17603 # text mode, it properly converts lines to CR/LF. This bash problem
17604 # is reportedly fixed, but why not run on old versions too?
17605 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17606 || (rm -f "$cfgfile"; exit 1)
17610 cat << \_LT_EOF >> "$cfgfile"
17612 # func_dirname file append nondir_replacement
17613 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17614 # otherwise set result to NONDIR_REPLACEMENT.
17618 */*) func_dirname_result="${1%/*}${2}" ;;
17619 * ) func_dirname_result="${3}" ;;
17623 # func_basename file
17626 func_basename_result="${1##*/}"
17629 # func_dirname_and_basename file append nondir_replacement
17630 # perform func_basename and func_dirname in a single function
17632 # dirname: Compute the dirname of FILE. If nonempty,
17633 # add APPEND to the result, otherwise set result
17634 # to NONDIR_REPLACEMENT.
17635 # value returned in "$func_dirname_result"
17636 # basename: Compute filename of FILE.
17637 # value retuned in "$func_basename_result"
17638 # Implementation must be kept synchronized with func_dirname
17639 # and func_basename. For efficiency, we do not delegate to
17640 # those functions but instead duplicate the functionality here.
17641 func_dirname_and_basename ()
17644 */*) func_dirname_result="${1%/*}${2}" ;;
17645 * ) func_dirname_result="${3}" ;;
17647 func_basename_result="${1##*/}"
17650 # func_stripname prefix suffix name
17651 # strip PREFIX and SUFFIX off of NAME.
17652 # PREFIX and SUFFIX must not contain globbing or regex special
17653 # characters, hashes, percent signs, but SUFFIX may contain a leading
17654 # dot (in which case that matches only a dot).
17657 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17658 # positional parameters, so assign one to ordinary parameter first.
17659 func_stripname_result=${3}
17660 func_stripname_result=${func_stripname_result#"${1}"}
17661 func_stripname_result=${func_stripname_result%"${2}"}
17667 func_opt_split_opt=${1%%=*}
17668 func_opt_split_arg=${1#*=}
17675 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17676 *) func_lo2o_result=${1} ;;
17680 # func_xform libobj-or-source
17683 func_xform_result=${1%.*}.lo
17686 # func_arith arithmetic-term...
17689 func_arith_result=$(( $* ))
17693 # STRING may not start with a hyphen.
17696 func_len_result=${#1}
17701 *) # Bourne compatible functions.
17702 cat << \_LT_EOF >> "$cfgfile"
17704 # func_dirname file append nondir_replacement
17705 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17706 # otherwise set result to NONDIR_REPLACEMENT.
17709 # Extract subdirectory from the argument.
17710 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17711 if test "X$func_dirname_result" = "X${1}"; then
17712 func_dirname_result="${3}"
17714 func_dirname_result="$func_dirname_result${2}"
17718 # func_basename file
17721 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17725 # func_stripname prefix suffix name
17726 # strip PREFIX and SUFFIX off of NAME.
17727 # PREFIX and SUFFIX must not contain globbing or regex special
17728 # characters, hashes, percent signs, but SUFFIX may contain a leading
17729 # dot (in which case that matches only a dot).
17730 # func_strip_suffix prefix name
17734 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17735 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17740 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17741 my_sed_long_arg='1s/^-[^=]*=//'
17746 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17747 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17753 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17756 # func_xform libobj-or-source
17759 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17762 # func_arith arithmetic-term...
17765 func_arith_result=`expr "$@"`
17769 # STRING may not start with a hyphen.
17772 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17778 case $lt_shell_append in
17780 cat << \_LT_EOF >> "$cfgfile"
17782 # func_append var value
17783 # Append VALUE to the end of shell variable VAR.
17791 cat << \_LT_EOF >> "$cfgfile"
17793 # func_append var value
17794 # Append VALUE to the end of shell variable VAR.
17805 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17806 || (rm -f "$cfgfile"; exit 1)
17808 mv -f "$cfgfile" "$ofile" ||
17809 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17813 cat <<_LT_EOF >> "$ofile"
17815 # ### BEGIN LIBTOOL TAG CONFIG: D
17817 # The linker used to build libraries.
17820 # How to create reloadable object files.
17821 reload_flag=$lt_reload_flag_D
17822 reload_cmds=$lt_reload_cmds_D
17824 # Commands used to build an old-style archive.
17825 old_archive_cmds=$lt_old_archive_cmds_D
17827 # A language specific compiler.
17830 # Is the compiler the GNU compiler?
17833 # Compiler flag to turn off builtin functions.
17834 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
17836 # How to pass a linker flag through the compiler.
17837 wl=$lt_lt_prog_compiler_wl_D
17839 # Additional compiler flags for building library objects.
17840 pic_flag=$lt_lt_prog_compiler_pic_D
17842 # Compiler flag to prevent dynamic linking.
17843 link_static_flag=$lt_lt_prog_compiler_static_D
17845 # Does compiler simultaneously support -c and -o options?
17846 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
17848 # Whether or not to add -lc for building shared libraries.
17849 build_libtool_need_lc=$archive_cmds_need_lc_D
17851 # Whether or not to disallow shared libs when runtime libs are static.
17852 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
17854 # Compiler flag to allow reflexive dlopens.
17855 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
17857 # Compiler flag to generate shared objects directly from archives.
17858 whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
17860 # Whether the compiler copes with passing no objects directly.
17861 compiler_needs_object=$lt_compiler_needs_object_D
17863 # Create an old-style archive from a shared archive.
17864 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
17866 # Create a temporary old-style archive to link instead of a shared archive.
17867 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
17869 # Commands used to build a shared archive.
17870 archive_cmds=$lt_archive_cmds_D
17871 archive_expsym_cmds=$lt_archive_expsym_cmds_D
17873 # Commands used to build a loadable module if different from building
17874 # a shared archive.
17875 module_cmds=$lt_module_cmds_D
17876 module_expsym_cmds=$lt_module_expsym_cmds_D
17878 # Whether we are building with GNU ld or not.
17879 with_gnu_ld=$lt_with_gnu_ld_D
17881 # Flag that allows shared libraries with undefined symbols to be built.
17882 allow_undefined_flag=$lt_allow_undefined_flag_D
17884 # Flag that enforces no undefined symbols.
17885 no_undefined_flag=$lt_no_undefined_flag_D
17887 # Flag to hardcode \$libdir into a binary during linking.
17888 # This must work even if \$libdir does not exist
17889 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
17891 # If ld is used when linking, flag to hardcode \$libdir into a binary
17892 # during linking. This must work even if \$libdir does not exist.
17893 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
17895 # Whether we need a single "-rpath" flag with a separated argument.
17896 hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
17898 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17899 # DIR into the resulting binary.
17900 hardcode_direct=$hardcode_direct_D
17902 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17903 # DIR into the resulting binary and the resulting library dependency is
17904 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17905 # library is relocated.
17906 hardcode_direct_absolute=$hardcode_direct_absolute_D
17908 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17909 # into the resulting binary.
17910 hardcode_minus_L=$hardcode_minus_L_D
17912 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17913 # into the resulting binary.
17914 hardcode_shlibpath_var=$hardcode_shlibpath_var_D
17916 # Set to "yes" if building a shared library automatically hardcodes DIR
17917 # into the library and all subsequent libraries and executables linked
17919 hardcode_automatic=$hardcode_automatic_D
17921 # Set to yes if linker adds runtime paths of dependent libraries
17922 # to runtime path list.
17923 inherit_rpath=$inherit_rpath_D
17925 # Whether libtool must link a program against all its dependency libraries.
17926 link_all_deplibs=$link_all_deplibs_D
17928 # Fix the shell variable \$srcfile for the compiler.
17929 fix_srcfile_path=$lt_fix_srcfile_path_D
17931 # Set to "yes" if exported symbols are required.
17932 always_export_symbols=$always_export_symbols_D
17934 # The commands to list exported symbols.
17935 export_symbols_cmds=$lt_export_symbols_cmds_D
17937 # Symbols that should not be listed in the preloaded symbols.
17938 exclude_expsyms=$lt_exclude_expsyms_D
17940 # Symbols that must always be exported.
17941 include_expsyms=$lt_include_expsyms_D
17943 # Commands necessary for linking programs (against libraries) with templates.
17944 prelink_cmds=$lt_prelink_cmds_D
17946 # Specify filename containing input files.
17947 file_list_spec=$lt_file_list_spec_D
17949 # How to hardcode a shared library path into an executable.
17950 hardcode_action=$hardcode_action_D
17952 # ### END LIBTOOL TAG CONFIG: D
17956 "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
17957 "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
17958 s!`test -f '$<' || echo '$(srcdir)/'`!!
17960 sed -f vpsed$$ $ac_file > tmp$$
17963 echo 'MULTISUBDIR =' >> $ac_file
17965 . ${multi_basedir}/config-ml.in
17966 { ml_norecursion=; unset ml_norecursion;}
17968 "src/Makefile":F) cat > vpsed$$ << \_EOF
17969 s!`test -f '$<' || echo '$(srcdir)/'`!!
17971 sed -f vpsed$$ $ac_file > tmp$$
17974 echo 'MULTISUBDIR =' >> $ac_file
17976 . ${multi_basedir}/config-ml.in
17977 { ml_norecursion=; unset ml_norecursion;}
17979 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
17980 s!`test -f '$<' || echo '$(srcdir)/'`!!
17982 sed -f vpsed$$ $ac_file > tmp$$
17985 echo 'MULTISUBDIR =' >> $ac_file
17987 . ${multi_basedir}/config-ml.in
17988 { ml_norecursion=; unset ml_norecursion;}
17997 ac_clean_files=$ac_clean_files_save
17999 test $ac_write_fail = 0 ||
18000 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18003 # configure is writing to config.log, and then calls config.status.
18004 # config.status does its own redirection, appending to config.log.
18005 # Unfortunately, on DOS this fails, as config.log is still kept open
18006 # by configure, so config.status won't be able to write to it; its
18007 # output is simply discarded. So we exec the FD to /dev/null,
18008 # effectively closing config.log, so it can be properly (re)opened and
18009 # appended to by config.status. When coming back to configure, we
18010 # need to make the FD available again.
18011 if test "$no_create" != yes; then
18013 ac_config_status_args=
18014 test "$silent" = yes &&
18015 ac_config_status_args="$ac_config_status_args --quiet"
18017 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18019 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18020 # would make configure fail if this is the last instruction.
18021 $ac_cs_success || as_fn_exit 1
18023 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18025 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}