2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for package-unused version-unused.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
246 if test "x$CONFIG_SHELL" != x; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 *v*x* | *x*v* ) as_opts=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir=./$as_dir;;
329 test -d "$as_dir" || eval $as_mkdir_p || {
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
406 as_val=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status=$1; test $as_status -eq 0 && as_status=1
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 elif ln conf$$.file conf$$ 2>/dev/null; then
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
551 test -d ./-p && rmdir ./-p
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix=/usr/local
580 ac_config_libobj_dir=.
587 # Identity of this package.
588 PACKAGE_NAME='package-unused'
589 PACKAGE_TARNAME='libphobos'
590 PACKAGE_VERSION='version-unused'
591 PACKAGE_STRING='package-unused version-unused'
595 ac_unique_file="libdruntime/gcc/attribute.d"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
632 ac_subst_vars='am__EXEEXT_FALSE
640 libphobos_toolexeclibdir
641 libphobos_toolexecdir
644 BACKTRACE_SUPPORTS_THREADS
645 BACKTRACE_USES_MALLOC
650 DCFG_HAVE_64BIT_ATOMICS
651 DCFG_HAVE_ATOMIC_BUILTINS
655 DRUNTIME_OS_MINFO_BRACKETING_FALSE
656 DRUNTIME_OS_MINFO_BRACKETING_TRUE
657 DCFG_MINFO_BRACKETING
658 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
659 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
660 DCFG_ARM_EABI_UNWINDER
662 DRUNTIME_OS_SOLARIS_FALSE
663 DRUNTIME_OS_SOLARIS_TRUE
664 DRUNTIME_OS_MINGW_FALSE
665 DRUNTIME_OS_MINGW_TRUE
666 DRUNTIME_OS_LINUX_FALSE
667 DRUNTIME_OS_LINUX_TRUE
668 DRUNTIME_OS_OPENBSD_FALSE
669 DRUNTIME_OS_OPENBSD_TRUE
670 DRUNTIME_OS_NETBSD_FALSE
671 DRUNTIME_OS_NETBSD_TRUE
672 DRUNTIME_OS_FREEBSD_FALSE
673 DRUNTIME_OS_FREEBSD_TRUE
674 DRUNTIME_OS_DRAGONFLYBSD_FALSE
675 DRUNTIME_OS_DRAGONFLYBSD_TRUE
676 DRUNTIME_OS_DARWIN_FALSE
677 DRUNTIME_OS_DARWIN_TRUE
678 DRUNTIME_OS_ANDROID_FALSE
679 DRUNTIME_OS_ANDROID_TRUE
680 DRUNTIME_OS_AIX_FALSE
682 DRUNTIME_OS_UNIX_FALSE
683 DRUNTIME_OS_UNIX_TRUE
684 DRUNTIME_GC_ENABLE_FALSE
685 DRUNTIME_GC_ENABLE_TRUE
689 ENABLE_LIBPHOBOS_FALSE
690 ENABLE_LIBPHOBOS_TRUE
691 phobos_compiler_shared_flag
692 phobos_compiler_pic_flag
712 MAINTAINER_MODE_FALSE
730 INSTALL_STRIP_PROGRAM
795 program_transform_name
806 ac_subst_files='DRTSTUFF_SPEC'
808 enable_option_checking
811 enable_maintainer_mode
819 with_gcc_major_version_only
826 with_target_system_zlib
828 enable_version_specific_runtime_libs
830 ac_precious_vars='build_alias
841 # Initialize some variables set by options.
843 ac_init_version=false
844 ac_unrecognized_opts=
846 # The variables have the same names as the options, with
847 # dashes changed to underlines.
855 program_transform_name=s,x,x,
863 # Installation directory options.
864 # These are left unexpanded so users can "make install exec_prefix=/foo"
865 # and all the variables that are supposed to be based on exec_prefix
866 # by default will actually change.
867 # Use braces instead of parens because sh, perl, etc. also accept them.
868 # (The list follows the same order as the GNU Coding Standards.)
869 bindir='${exec_prefix}/bin'
870 sbindir='${exec_prefix}/sbin'
871 libexecdir='${exec_prefix}/libexec'
872 datarootdir='${prefix}/share'
873 datadir='${datarootdir}'
874 sysconfdir='${prefix}/etc'
875 sharedstatedir='${prefix}/com'
876 localstatedir='${prefix}/var'
877 includedir='${prefix}/include'
878 oldincludedir='/usr/include'
879 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
880 infodir='${datarootdir}/info'
885 libdir='${exec_prefix}/lib'
886 localedir='${datarootdir}/locale'
887 mandir='${datarootdir}/man'
893 # If the previous option needs an argument, assign it.
894 if test -n "$ac_prev"; then
895 eval $ac_prev=\$ac_option
901 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
906 # Accept the important Cygnus configure options, so we can diagnose typos.
908 case $ac_dashdash$ac_option in
912 -bindir | --bindir | --bindi | --bind | --bin | --bi)
914 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917 -build | --build | --buil | --bui | --bu)
918 ac_prev=build_alias ;;
919 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
920 build_alias=$ac_optarg ;;
922 -cache-file | --cache-file | --cache-fil | --cache-fi \
923 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
924 ac_prev=cache_file ;;
925 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
926 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
927 cache_file=$ac_optarg ;;
930 cache_file=config.cache ;;
932 -datadir | --datadir | --datadi | --datad)
934 -datadir=* | --datadir=* | --datadi=* | --datad=*)
935 datadir=$ac_optarg ;;
937 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
938 | --dataroo | --dataro | --datar)
939 ac_prev=datarootdir ;;
940 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
941 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
942 datarootdir=$ac_optarg ;;
944 -disable-* | --disable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948 as_fn_error $? "invalid feature name: $ac_useropt"
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
958 eval enable_$ac_useropt=no ;;
960 -docdir | --docdir | --docdi | --doc | --do)
962 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
967 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970 -enable-* | --enable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 as_fn_error $? "invalid feature name: $ac_useropt"
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
984 eval enable_$ac_useropt=\$ac_optarg ;;
986 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
987 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
988 | --exec | --exe | --ex)
989 ac_prev=exec_prefix ;;
990 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
991 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
992 | --exec=* | --exe=* | --ex=*)
993 exec_prefix=$ac_optarg ;;
995 -gas | --gas | --ga | --g)
996 # Obsolete; use --with-gas.
999 -help | --help | --hel | --he | -h)
1000 ac_init_help=long ;;
1001 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1002 ac_init_help=recursive ;;
1003 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1004 ac_init_help=short ;;
1006 -host | --host | --hos | --ho)
1007 ac_prev=host_alias ;;
1008 -host=* | --host=* | --hos=* | --ho=*)
1009 host_alias=$ac_optarg ;;
1011 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015 htmldir=$ac_optarg ;;
1017 -includedir | --includedir | --includedi | --included | --include \
1018 | --includ | --inclu | --incl | --inc)
1019 ac_prev=includedir ;;
1020 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1021 | --includ=* | --inclu=* | --incl=* | --inc=*)
1022 includedir=$ac_optarg ;;
1024 -infodir | --infodir | --infodi | --infod | --info | --inf)
1026 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1027 infodir=$ac_optarg ;;
1029 -libdir | --libdir | --libdi | --libd)
1031 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1032 libdir=$ac_optarg ;;
1034 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1035 | --libexe | --libex | --libe)
1036 ac_prev=libexecdir ;;
1037 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1038 | --libexe=* | --libex=* | --libe=*)
1039 libexecdir=$ac_optarg ;;
1041 -localedir | --localedir | --localedi | --localed | --locale)
1042 ac_prev=localedir ;;
1043 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1044 localedir=$ac_optarg ;;
1046 -localstatedir | --localstatedir | --localstatedi | --localstated \
1047 | --localstate | --localstat | --localsta | --localst | --locals)
1048 ac_prev=localstatedir ;;
1049 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1050 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1051 localstatedir=$ac_optarg ;;
1053 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1056 mandir=$ac_optarg ;;
1058 -nfp | --nfp | --nf)
1059 # Obsolete; use --without-fp.
1062 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1063 | --no-cr | --no-c | -n)
1066 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1067 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1071 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1072 | --oldin | --oldi | --old | --ol | --o)
1073 ac_prev=oldincludedir ;;
1074 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1075 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1076 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1077 oldincludedir=$ac_optarg ;;
1079 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1082 prefix=$ac_optarg ;;
1084 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1085 | --program-pre | --program-pr | --program-p)
1086 ac_prev=program_prefix ;;
1087 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1088 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1089 program_prefix=$ac_optarg ;;
1091 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1092 | --program-suf | --program-su | --program-s)
1093 ac_prev=program_suffix ;;
1094 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1095 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1096 program_suffix=$ac_optarg ;;
1098 -program-transform-name | --program-transform-name \
1099 | --program-transform-nam | --program-transform-na \
1100 | --program-transform-n | --program-transform- \
1101 | --program-transform | --program-transfor \
1102 | --program-transfo | --program-transf \
1103 | --program-trans | --program-tran \
1104 | --progr-tra | --program-tr | --program-t)
1105 ac_prev=program_transform_name ;;
1106 -program-transform-name=* | --program-transform-name=* \
1107 | --program-transform-nam=* | --program-transform-na=* \
1108 | --program-transform-n=* | --program-transform-=* \
1109 | --program-transform=* | --program-transfor=* \
1110 | --program-transfo=* | --program-transf=* \
1111 | --program-trans=* | --program-tran=* \
1112 | --progr-tra=* | --program-tr=* | --program-t=*)
1113 program_transform_name=$ac_optarg ;;
1115 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1118 pdfdir=$ac_optarg ;;
1120 -psdir | --psdir | --psdi | --psd | --ps)
1122 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1126 | -silent | --silent | --silen | --sile | --sil)
1129 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133 sbindir=$ac_optarg ;;
1135 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1136 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1137 | --sharedst | --shareds | --shared | --share | --shar \
1139 ac_prev=sharedstatedir ;;
1140 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1141 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1142 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144 sharedstatedir=$ac_optarg ;;
1146 -site | --site | --sit)
1148 -site=* | --site=* | --sit=*)
1151 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1154 srcdir=$ac_optarg ;;
1156 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1157 | --syscon | --sysco | --sysc | --sys | --sy)
1158 ac_prev=sysconfdir ;;
1159 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1160 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1161 sysconfdir=$ac_optarg ;;
1163 -target | --target | --targe | --targ | --tar | --ta | --t)
1164 ac_prev=target_alias ;;
1165 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1166 target_alias=$ac_optarg ;;
1168 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171 -version | --version | --versio | --versi | --vers | -V)
1172 ac_init_version=: ;;
1175 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178 as_fn_error $? "invalid package name: $ac_useropt"
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1188 eval with_$ac_useropt=\$ac_optarg ;;
1190 -without-* | --without-*)
1191 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194 as_fn_error $? "invalid package name: $ac_useropt"
1195 ac_useropt_orig=$ac_useropt
1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197 case $ac_user_opts in
1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1202 ac_unrecognized_sep=', ';;
1204 eval with_$ac_useropt=no ;;
1207 # Obsolete; use --with-x.
1210 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1211 | --x-incl | --x-inc | --x-in | --x-i)
1212 ac_prev=x_includes ;;
1213 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1214 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1215 x_includes=$ac_optarg ;;
1217 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1218 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1219 ac_prev=x_libraries ;;
1220 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1221 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1222 x_libraries=$ac_optarg ;;
1224 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1225 Try \`$0 --help' for more information"
1229 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1230 # Reject names that are not valid shell variable names.
1231 case $ac_envvar in #(
1232 '' | [0-9]* | *[!_$as_cr_alnum]* )
1233 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1235 eval $ac_envvar=\$ac_optarg
1236 export $ac_envvar ;;
1239 # FIXME: should be removed in autoconf 3.0.
1240 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1241 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1243 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1249 if test -n "$ac_prev"; then
1250 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1251 as_fn_error $? "missing argument to $ac_option"
1254 if test -n "$ac_unrecognized_opts"; then
1255 case $enable_option_checking in
1257 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1258 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1262 # Check all directory arguments for consistency.
1263 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264 datadir sysconfdir sharedstatedir localstatedir includedir \
1265 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266 libdir localedir mandir
1268 eval ac_val=\$$ac_var
1269 # Remove trailing slashes.
1272 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1273 eval $ac_var=\$ac_val;;
1275 # Be sure to have absolute directory names.
1277 [\\/$]* | ?:[\\/]* ) continue;;
1278 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1280 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1283 # There might be people who depend on the old broken behavior: `$host'
1284 # used to hold the argument of --host etc.
1285 # FIXME: To remove some day.
1288 target=$target_alias
1290 # FIXME: To remove some day.
1291 if test "x$host_alias" != x; then
1292 if test "x$build_alias" = x; then
1293 cross_compiling=maybe
1294 elif test "x$build_alias" != "x$host_alias"; then
1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1302 test "$silent" = yes && exec 6>/dev/null
1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306 ac_ls_di=`ls -di .` &&
1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308 as_fn_error $? "working directory cannot be determined"
1309 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1310 as_fn_error $? "pwd does not report name of working directory"
1313 # Find the source files, if location was not specified.
1314 if test -z "$srcdir"; then
1315 ac_srcdir_defaulted=yes
1316 # Try the directory containing this script, then the parent directory.
1317 ac_confdir=`$as_dirname -- "$as_myself" ||
1318 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319 X"$as_myself" : 'X\(//\)[^/]' \| \
1320 X"$as_myself" : 'X\(//\)$' \| \
1321 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1322 $as_echo X"$as_myself" |
1323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1345 ac_srcdir_defaulted=no
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1351 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1353 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1355 # When building in place, set srcdir=.
1356 if test "$ac_abs_confdir" = "$ac_pwd"; then
1359 # Remove unnecessary trailing slashes from srcdir.
1360 # Double slashes in file names in object file debugging info
1361 # mess up M-x gdb in Emacs.
1363 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1365 for ac_var in $ac_precious_vars; do
1366 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_env_${ac_var}_value=\$${ac_var}
1368 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1373 # Report the --help message.
1375 if test "$ac_init_help" = "long"; then
1376 # Omit some internal or obsolete options to make the list less imposing.
1377 # This message is too long to be a string in the A/UX 3.1 sh.
1379 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1381 Usage: $0 [OPTION]... [VAR=VALUE]...
1383 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384 VAR=VALUE. See below for descriptions of some of the useful variables.
1386 Defaults for the options are specified in brackets.
1389 -h, --help display this help and exit
1390 --help=short display options specific to this package
1391 --help=recursive display the short help of all the included packages
1392 -V, --version display version information and exit
1393 -q, --quiet, --silent do not print \`checking ...' messages
1394 --cache-file=FILE cache test results in FILE [disabled]
1395 -C, --config-cache alias for \`--cache-file=config.cache'
1396 -n, --no-create do not create output files
1397 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1399 Installation directories:
1400 --prefix=PREFIX install architecture-independent files in PREFIX
1401 [$ac_default_prefix]
1402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1405 By default, \`make install' will install all the files in
1406 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1407 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1408 for instance \`--prefix=\$HOME'.
1410 For better control, use the options below.
1412 Fine tuning of the installation directories:
1413 --bindir=DIR user executables [EPREFIX/bin]
1414 --sbindir=DIR system admin executables [EPREFIX/sbin]
1415 --libexecdir=DIR program executables [EPREFIX/libexec]
1416 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1417 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1418 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1419 --libdir=DIR object code libraries [EPREFIX/lib]
1420 --includedir=DIR C header files [PREFIX/include]
1421 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1422 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1423 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1424 --infodir=DIR info documentation [DATAROOTDIR/info]
1425 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1426 --mandir=DIR man documentation [DATAROOTDIR/man]
1427 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1428 --htmldir=DIR html documentation [DOCDIR]
1429 --dvidir=DIR dvi documentation [DOCDIR]
1430 --pdfdir=DIR pdf documentation [DOCDIR]
1431 --psdir=DIR ps documentation [DOCDIR]
1437 --program-prefix=PREFIX prepend PREFIX to installed program names
1438 --program-suffix=SUFFIX append SUFFIX to installed program names
1439 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1442 --build=BUILD configure for building on BUILD [guessed]
1443 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1444 --target=TARGET configure for building compilers for TARGET [HOST]
1448 if test -n "$ac_init_help"; then
1449 case $ac_init_help in
1450 short | recursive ) echo "Configuration of package-unused version-unused:";;
1455 --disable-option-checking ignore unrecognized --enable/--with options
1456 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1457 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1458 --enable-multilib build many library versions (default)
1459 --enable-silent-rules less verbose build output (undo: "make V=1")
1460 --disable-silent-rules verbose build output (undo: "make V=0")
1461 --enable-maintainer-mode
1462 enable make rules and dependencies not useful (and
1463 sometimes confusing) to the casual installer
1464 --enable-shared[=PKGS] build shared libraries [default=yes]
1465 --enable-static[=PKGS] build static libraries [default=yes]
1466 --enable-fast-install[=PKGS]
1467 optimize for fast installation [default=yes]
1468 --disable-libtool-lock avoid locking (might break parallel builds)
1469 --enable-libphobos Enable libphobos
1470 --enable-werror turns on -Werror [default=no]
1471 --enable-druntime-gc enable D runtime garbage collector (default: yes)
1472 --enable-unix enables Unix runtime (default: yes, for Unix
1474 --enable-thread-lib=<arg>
1475 specify linker option for the system thread library
1476 (default: autodetect)
1477 --enable-version-specific-runtime-libs
1478 Specify that runtime libraries should be installed
1479 in a compiler-specific directory
1482 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1483 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1484 --with-pic try to use only PIC/non-PIC objects [default=use
1486 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1487 --with-gcc-major-version-only
1488 use only GCC major number in filesystem paths
1489 --without-libatomic Do not use libatomic in core.atomic (default: auto)
1490 --without-libbacktrace Do not use libbacktrace in core.runtime (default:
1492 --with-target-system-zlib={yes,no,auto}
1493 use installed libz (default: no)
1494 --with-cross-host=HOST configuring with a cross compiler
1496 Some influential environment variables:
1497 CC C compiler command
1498 CFLAGS C compiler flags
1499 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1500 nonstandard directory <lib dir>
1501 LIBS libraries to pass to the linker, e.g. -l<library>
1502 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1503 you have headers in a nonstandard directory <include dir>
1505 CCAS assembler compiler command (defaults to CC)
1506 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1507 GDC D compiler command
1508 GDCFLAGS D compiler flags
1510 Use these variables to override the choices made by `configure' or to help
1511 it to find libraries and programs with nonstandard names/locations.
1513 Report bugs to the package provider.
1518 if test "$ac_init_help" = "recursive"; then
1519 # If there are subdirs, report their specific --help.
1520 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1521 test -d "$ac_dir" ||
1522 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1527 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1530 # A ".." for each directory in $ac_dir_suffix.
1531 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1532 case $ac_top_builddir_sub in
1533 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1537 ac_abs_top_builddir=$ac_pwd
1538 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539 # for backward compatibility:
1540 ac_top_builddir=$ac_top_build_prefix
1543 .) # We are building in place.
1545 ac_top_srcdir=$ac_top_builddir_sub
1546 ac_abs_top_srcdir=$ac_pwd ;;
1547 [\\/]* | ?:[\\/]* ) # Absolute name.
1548 ac_srcdir=$srcdir$ac_dir_suffix;
1549 ac_top_srcdir=$srcdir
1550 ac_abs_top_srcdir=$srcdir ;;
1552 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553 ac_top_srcdir=$ac_top_build_prefix$srcdir
1554 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1556 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1558 cd "$ac_dir" || { ac_status=$?; continue; }
1559 # Check for guested configure.
1560 if test -f "$ac_srcdir/configure.gnu"; then
1562 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563 elif test -f "$ac_srcdir/configure"; then
1565 $SHELL "$ac_srcdir/configure" --help=recursive
1567 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1569 cd "$ac_pwd" || { ac_status=$?; break; }
1573 test -n "$ac_init_help" && exit $ac_status
1574 if $ac_init_version; then
1576 package-unused configure version-unused
1577 generated by GNU Autoconf 2.69
1579 Copyright (C) 2012 Free Software Foundation, Inc.
1580 This configure script is free software; the Free Software Foundation
1581 gives unlimited permission to copy, distribute and modify it.
1586 ## ------------------------ ##
1587 ## Autoconf initialization. ##
1588 ## ------------------------ ##
1590 # ac_fn_c_try_compile LINENO
1591 # --------------------------
1592 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1593 ac_fn_c_try_compile ()
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 rm -f conftest.$ac_objext
1597 if { { ac_try="$ac_compile"
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_compile") 2>conftest.err
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } && {
1613 test -z "$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1615 } && test -s conftest.$ac_objext; then :
1618 $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
1626 } # ac_fn_c_try_compile
1628 # ac_fn_c_try_cpp LINENO
1629 # ----------------------
1630 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 if { { ac_try="$ac_cpp conftest.$ac_ext"
1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637 *) ac_try_echo=$ac_try;;
1639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640 $as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1643 if test -s conftest.err; then
1644 grep -v '^ *+' conftest.err >conftest.er1
1645 cat conftest.er1 >&5
1646 mv -f conftest.er1 conftest.err
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } > conftest.i && {
1650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1651 test ! -s conftest.err
1655 $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661 as_fn_set_status $ac_retval
1665 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1666 # -------------------------------------------------------
1667 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1668 # the include files in INCLUDES and setting the cache variable VAR
1670 ac_fn_c_check_header_mongrel ()
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 if eval \${$3+:} false; then :
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675 $as_echo_n "checking for $2... " >&6; }
1676 if eval \${$3+:} false; then :
1677 $as_echo_n "(cached) " >&6
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681 $as_echo "$ac_res" >&6; }
1683 # Is the header compilable?
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1685 $as_echo_n "checking $2 usability... " >&6; }
1686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687 /* end confdefs.h. */
1691 if ac_fn_c_try_compile "$LINENO"; then :
1692 ac_header_compiler=yes
1694 ac_header_compiler=no
1696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1698 $as_echo "$ac_header_compiler" >&6; }
1700 # Is the header present?
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1702 $as_echo_n "checking $2 presence... " >&6; }
1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704 /* end confdefs.h. */
1707 if ac_fn_c_try_cpp "$LINENO"; then :
1708 ac_header_preproc=yes
1710 ac_header_preproc=no
1712 rm -f conftest.err conftest.i conftest.$ac_ext
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1714 $as_echo "$ac_header_preproc" >&6; }
1716 # So? What about this header?
1717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1720 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1722 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1726 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1728 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1730 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1732 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1734 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738 $as_echo_n "checking for $2... " >&6; }
1739 if eval \${$3+:} false; then :
1740 $as_echo_n "(cached) " >&6
1742 eval "$3=\$ac_header_compiler"
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1746 $as_echo "$ac_res" >&6; }
1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 } # ac_fn_c_check_header_mongrel
1752 # ac_fn_c_try_run LINENO
1753 # ----------------------
1754 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1755 # that executables *can* be run.
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 if { { ac_try="$ac_link"
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 $as_echo "$ac_try_echo"; } >&5
1766 (eval "$ac_link") 2>&5
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1770 { { case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_try") 2>&5
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; }; }; then :
1782 $as_echo "$as_me: program exited with status $ac_status" >&5
1783 $as_echo "$as_me: failed program was:" >&5
1784 sed 's/^/| /' conftest.$ac_ext >&5
1786 ac_retval=$ac_status
1788 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790 as_fn_set_status $ac_retval
1794 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1795 # -------------------------------------------------------
1796 # Tests whether HEADER exists and can be compiled using the include files in
1797 # INCLUDES, setting the cache variable VAR accordingly.
1798 ac_fn_c_check_header_compile ()
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802 $as_echo_n "checking for $2... " >&6; }
1803 if eval \${$3+:} false; then :
1804 $as_echo_n "(cached) " >&6
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h. */
1811 if ac_fn_c_try_compile "$LINENO"; then :
1816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 $as_echo "$ac_res" >&6; }
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823 } # ac_fn_c_check_header_compile
1825 # ac_fn_d_try_compile LINENO
1826 # --------------------------
1827 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1828 ac_fn_d_try_compile ()
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 rm -f conftest.$ac_objext
1832 if { { ac_try="$ac_compile"
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_compile") 2>conftest.err
1841 if test -s conftest.err; then
1842 grep -v '^ *+' conftest.err >conftest.er1
1843 cat conftest.er1 >&5
1844 mv -f conftest.er1 conftest.err
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; } && {
1848 test -z "$ac_d_werror_flag" ||
1849 test ! -s conftest.err
1850 } && test -s conftest.$ac_objext; then :
1853 $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859 as_fn_set_status $ac_retval
1861 } # ac_fn_d_try_compile
1863 # ac_fn_c_try_link LINENO
1864 # -----------------------
1865 # Try to link conftest.$ac_ext, and return whether this succeeded.
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 rm -f conftest.$ac_objext conftest$ac_exeext
1870 if { { ac_try="$ac_link"
1872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873 *) ac_try_echo=$ac_try;;
1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876 $as_echo "$ac_try_echo"; } >&5
1877 (eval "$ac_link") 2>conftest.err
1879 if test -s conftest.err; then
1880 grep -v '^ *+' conftest.err >conftest.er1
1881 cat conftest.er1 >&5
1882 mv -f conftest.er1 conftest.err
1884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885 test $ac_status = 0; } && {
1886 test -z "$ac_c_werror_flag" ||
1887 test ! -s conftest.err
1888 } && test -s conftest$ac_exeext && {
1889 test "$cross_compiling" = yes ||
1890 test -x conftest$ac_exeext
1894 $as_echo "$as_me: failed program was:" >&5
1895 sed 's/^/| /' conftest.$ac_ext >&5
1899 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1900 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1901 # interfere with the next link command; also delete a directory that is
1902 # left behind by Apple's compiler. We do this before executing the actions.
1903 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905 as_fn_set_status $ac_retval
1907 } # ac_fn_c_try_link
1909 # ac_fn_c_check_func LINENO FUNC VAR
1910 # ----------------------------------
1911 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1912 ac_fn_c_check_func ()
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916 $as_echo_n "checking for $2... " >&6; }
1917 if eval \${$3+:} false; then :
1918 $as_echo_n "(cached) " >&6
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1922 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1924 #define $2 innocuous_$2
1926 /* System header to define __stub macros and hopefully few prototypes,
1927 which can conflict with char $2 (); below.
1928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1929 <limits.h> exists even on freestanding compilers. */
1932 # include <limits.h>
1934 # include <assert.h>
1939 /* Override any GCC internal prototype to avoid an error.
1940 Use char because int might match the return type of a GCC
1941 builtin and then its argument prototype would still apply. */
1946 /* The GNU C library defines this for functions which it implements
1947 to always fail with ENOSYS. Some functions are actually named
1948 something starting with __ and the normal name is an alias. */
1949 #if defined __stub_$2 || defined __stub___$2
1961 if ac_fn_c_try_link "$LINENO"; then :
1966 rm -f core conftest.err conftest.$ac_objext \
1967 conftest$ac_exeext conftest.$ac_ext
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 $as_echo "$ac_res" >&6; }
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974 } # ac_fn_c_check_func
1976 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1977 # ----------------------------------------------------
1978 # Tries to find if the field MEMBER exists in type AGGR, after including
1979 # INCLUDES, setting cache variable VAR accordingly.
1980 ac_fn_c_check_member ()
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1984 $as_echo_n "checking for $2.$3... " >&6; }
1985 if eval \${$4+:} false; then :
1986 $as_echo_n "(cached) " >&6
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
2001 if ac_fn_c_try_compile "$LINENO"; then :
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2011 if (sizeof ac_aggr.$3)
2017 if ac_fn_c_try_compile "$LINENO"; then :
2022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2028 $as_echo "$ac_res" >&6; }
2029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2031 } # ac_fn_c_check_member
2033 # ac_fn_d_try_link LINENO
2034 # -----------------------
2035 # Try to link conftest.$ac_ext, and return whether this succeeded.
2038 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039 rm -f conftest.$ac_objext conftest$ac_exeext
2040 if { { ac_try="$ac_link"
2042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2043 *) ac_try_echo=$ac_try;;
2045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2046 $as_echo "$ac_try_echo"; } >&5
2047 (eval "$ac_link") 2>conftest.err
2049 if test -s conftest.err; then
2050 grep -v '^ *+' conftest.err >conftest.er1
2051 cat conftest.er1 >&5
2052 mv -f conftest.er1 conftest.err
2054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2055 test $ac_status = 0; } && {
2056 test -z "$ac_d_werror_flag" ||
2057 test ! -s conftest.err
2058 } && test -s conftest$ac_exeext && {
2059 test "$cross_compiling" = yes ||
2060 test -x conftest$ac_exeext
2064 $as_echo "$as_me: failed program was:" >&5
2065 sed 's/^/| /' conftest.$ac_ext >&5
2069 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2070 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2071 # interfere with the next link command; also delete a directory that is
2072 # left behind by Apple's compiler. We do this before executing the actions.
2073 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2075 as_fn_set_status $ac_retval
2077 } # ac_fn_d_try_link
2078 cat >config.log <<_ACEOF
2079 This file contains any messages produced by compilers while
2080 running configure, to aid debugging if configure makes a mistake.
2082 It was created by package-unused $as_me version-unused, which was
2083 generated by GNU Autoconf 2.69. Invocation command line was
2095 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2096 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2097 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2098 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2099 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2101 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2102 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2104 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2105 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2106 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2107 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2108 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2109 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2110 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2118 test -z "$as_dir" && as_dir=.
2119 $as_echo "PATH: $as_dir"
2135 # Keep a trace of the command line.
2136 # Strip out --no-create and --no-recursion so they do not pile up.
2137 # Strip out --silent because we don't want to record it for future runs.
2138 # Also quote any args containing shell meta-characters.
2139 # Make two passes to allow for proper duplicate-argument suppression.
2143 ac_must_keep_next=false
2149 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2151 | -silent | --silent | --silen | --sile | --sil)
2154 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2157 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2159 as_fn_append ac_configure_args1 " '$ac_arg'"
2160 if test $ac_must_keep_next = true; then
2161 ac_must_keep_next=false # Got value, back to normal.
2164 *=* | --config-cache | -C | -disable-* | --disable-* \
2165 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2166 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2167 | -with-* | --with-* | -without-* | --without-* | --x)
2168 case "$ac_configure_args0 " in
2169 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2172 -* ) ac_must_keep_next=true ;;
2175 as_fn_append ac_configure_args " '$ac_arg'"
2180 { ac_configure_args0=; unset ac_configure_args0;}
2181 { ac_configure_args1=; unset ac_configure_args1;}
2183 # When interrupted or exit'd, cleanup temporary files, and complete
2184 # config.log. We remove comments because anyway the quotes in there
2185 # would cause problems or look ugly.
2186 # WARNING: Use '\'' to represent an apostrophe within the trap.
2187 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2188 trap 'exit_status=$?
2189 # Save into config.log some information that might help in debugging.
2193 $as_echo "## ---------------- ##
2194 ## Cache variables. ##
2195 ## ---------------- ##"
2197 # The following way of writing the cache mishandles newlines in values,
2199 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2200 eval ac_val=\$$ac_var
2204 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2205 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2208 _ | IFS | as_nl) ;; #(
2209 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2210 *) { eval $ac_var=; unset $ac_var;} ;;
2215 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2216 *${as_nl}ac_space=\ *)
2218 "s/'\''/'\''\\\\'\'''\''/g;
2219 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2222 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2229 $as_echo "## ----------------- ##
2230 ## Output variables. ##
2231 ## ----------------- ##"
2233 for ac_var in $ac_subst_vars
2235 eval ac_val=\$$ac_var
2237 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2239 $as_echo "$ac_var='\''$ac_val'\''"
2243 if test -n "$ac_subst_files"; then
2244 $as_echo "## ------------------- ##
2245 ## File substitutions. ##
2246 ## ------------------- ##"
2248 for ac_var in $ac_subst_files
2250 eval ac_val=\$$ac_var
2252 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2254 $as_echo "$ac_var='\''$ac_val'\''"
2259 if test -s confdefs.h; then
2260 $as_echo "## ----------- ##
2267 test "$ac_signal" != 0 &&
2268 $as_echo "$as_me: caught signal $ac_signal"
2269 $as_echo "$as_me: exit $exit_status"
2271 rm -f core *.core core.conftest.* &&
2272 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2275 for ac_signal in 1 2 13 15; do
2276 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2280 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2281 rm -f -r conftest* confdefs.h
2283 $as_echo "/* confdefs.h */" > confdefs.h
2285 # Predefined preprocessor variables.
2287 cat >>confdefs.h <<_ACEOF
2288 #define PACKAGE_NAME "$PACKAGE_NAME"
2291 cat >>confdefs.h <<_ACEOF
2292 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2295 cat >>confdefs.h <<_ACEOF
2296 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2299 cat >>confdefs.h <<_ACEOF
2300 #define PACKAGE_STRING "$PACKAGE_STRING"
2303 cat >>confdefs.h <<_ACEOF
2304 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2307 cat >>confdefs.h <<_ACEOF
2308 #define PACKAGE_URL "$PACKAGE_URL"
2312 # Let the site file select an alternate cache file if it wants to.
2313 # Prefer an explicitly selected file to automatically selected ones.
2316 if test -n "$CONFIG_SITE"; then
2317 # We do not want a PATH search for config.site.
2318 case $CONFIG_SITE in #((
2319 -*) ac_site_file1=./$CONFIG_SITE;;
2320 */*) ac_site_file1=$CONFIG_SITE;;
2321 *) ac_site_file1=./$CONFIG_SITE;;
2323 elif test "x$prefix" != xNONE; then
2324 ac_site_file1=$prefix/share/config.site
2325 ac_site_file2=$prefix/etc/config.site
2327 ac_site_file1=$ac_default_prefix/share/config.site
2328 ac_site_file2=$ac_default_prefix/etc/config.site
2330 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2332 test "x$ac_site_file" = xNONE && continue
2333 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2335 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2336 sed 's/^/| /' "$ac_site_file" >&5
2338 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2340 as_fn_error $? "failed to load site script $ac_site_file
2341 See \`config.log' for more details" "$LINENO" 5; }
2345 if test -r "$cache_file"; then
2346 # Some versions of bash will fail to source /dev/null (special files
2347 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2348 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2350 $as_echo "$as_me: loading cache $cache_file" >&6;}
2352 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2353 *) . "./$cache_file";;
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2358 $as_echo "$as_me: creating cache $cache_file" >&6;}
2362 # Check that the precious variables saved in the cache have kept the same
2364 ac_cache_corrupted=false
2365 for ac_var in $ac_precious_vars; do
2366 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2367 eval ac_new_set=\$ac_env_${ac_var}_set
2368 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2369 eval ac_new_val=\$ac_env_${ac_var}_value
2370 case $ac_old_set,$ac_new_set in
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2373 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2374 ac_cache_corrupted=: ;;
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2377 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2378 ac_cache_corrupted=: ;;
2381 if test "x$ac_old_val" != "x$ac_new_val"; then
2382 # differences in whitespace do not lead to failure.
2383 ac_old_val_w=`echo x $ac_old_val`
2384 ac_new_val_w=`echo x $ac_new_val`
2385 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2387 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2388 ac_cache_corrupted=:
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2391 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2392 eval $ac_var=\$ac_old_val
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2395 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2397 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2400 # Pass precious variables to config.status.
2401 if test "$ac_new_set" = set; then
2403 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2404 *) ac_arg=$ac_var=$ac_new_val ;;
2406 case " $ac_configure_args " in
2407 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2408 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2412 if $ac_cache_corrupted; then
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2416 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2417 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2419 ## -------------------- ##
2420 ## Main body of script. ##
2421 ## -------------------- ##
2424 ac_cpp='$CPP $CPPFLAGS'
2425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2434 ac_config_headers="$ac_config_headers config.h"
2437 # Default to --enable-multilib
2438 # Check whether --enable-multilib was given.
2439 if test "${enable_multilib+set}" = set; then :
2440 enableval=$enable_multilib; case "$enableval" in
2441 yes) multilib=yes ;;
2443 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2450 # We may get other options which we leave undocumented:
2451 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2452 # See config-ml.in if you want the gory details.
2454 if test "$srcdir" = "."; then
2455 if test "$with_target_subdir" != "."; then
2456 multi_basedir="$srcdir/$with_multisrctop../.."
2458 multi_basedir="$srcdir/$with_multisrctop.."
2461 multi_basedir="$srcdir/.."
2465 # Even if the default multilib is not a cross compilation,
2466 # it may be that some of the other multilibs are.
2467 if test $cross_compiling = no && test $multilib = yes \
2468 && test "x${with_multisubdir}" != x ; then
2469 cross_compiling=maybe
2472 ac_config_commands="$ac_config_commands default-1"
2475 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2476 if test -f "$ac_dir/install-sh"; then
2478 ac_install_sh="$ac_aux_dir/install-sh -c"
2480 elif test -f "$ac_dir/install.sh"; then
2482 ac_install_sh="$ac_aux_dir/install.sh -c"
2484 elif test -f "$ac_dir/shtool"; then
2486 ac_install_sh="$ac_aux_dir/shtool install -c"
2490 if test -z "$ac_aux_dir"; then
2491 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2494 # These three variables are undocumented and unsupported,
2495 # and are intended to be withdrawn in a future Autoconf release.
2496 # They can cause serious problems if a builder's source tree is in a directory
2497 # whose full name contains unusual characters.
2498 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2499 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2500 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2503 # Make sure we can run config.sub.
2504 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2505 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2508 $as_echo_n "checking build system type... " >&6; }
2509 if ${ac_cv_build+:} false; then :
2510 $as_echo_n "(cached) " >&6
2512 ac_build_alias=$build_alias
2513 test "x$ac_build_alias" = x &&
2514 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2515 test "x$ac_build_alias" = x &&
2516 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2517 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2518 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2522 $as_echo "$ac_cv_build" >&6; }
2523 case $ac_cv_build in
2525 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2528 ac_save_IFS=$IFS; IFS='-'
2534 # Remember, the first character of IFS is used to create $*,
2535 # except with old shells:
2538 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2542 $as_echo_n "checking host system type... " >&6; }
2543 if ${ac_cv_host+:} false; then :
2544 $as_echo_n "(cached) " >&6
2546 if test "x$host_alias" = x; then
2547 ac_cv_host=$ac_cv_build
2549 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2550 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2555 $as_echo "$ac_cv_host" >&6; }
2558 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2561 ac_save_IFS=$IFS; IFS='-'
2567 # Remember, the first character of IFS is used to create $*,
2568 # except with old shells:
2571 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2575 $as_echo_n "checking target system type... " >&6; }
2576 if ${ac_cv_target+:} false; then :
2577 $as_echo_n "(cached) " >&6
2579 if test "x$target_alias" = x; then
2580 ac_cv_target=$ac_cv_host
2582 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2583 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2588 $as_echo "$ac_cv_target" >&6; }
2589 case $ac_cv_target in
2591 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2593 target=$ac_cv_target
2594 ac_save_IFS=$IFS; IFS='-'
2600 # Remember, the first character of IFS is used to create $*,
2601 # except with old shells:
2604 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2607 # The aliases save the names the user supplied, while $host etc.
2608 # will get canonicalized.
2609 test -n "$target_alias" &&
2610 test "$program_prefix$program_suffix$program_transform_name" = \
2612 program_prefix=${target_alias}-
2614 # Expand $ac_aux_dir to an absolute path.
2615 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2618 ac_cpp='$CPP $CPPFLAGS'
2619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2622 if test -n "$ac_tool_prefix"; then
2623 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2624 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2626 $as_echo_n "checking for $ac_word... " >&6; }
2627 if ${ac_cv_prog_CC+:} false; then :
2628 $as_echo_n "(cached) " >&6
2630 if test -n "$CC"; then
2631 ac_cv_prog_CC="$CC" # Let the user override the test.
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 test -z "$as_dir" && as_dir=.
2638 for ac_exec_ext in '' $ac_executable_extensions; do
2639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2640 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 if test -n "$CC"; then
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2653 $as_echo "$CC" >&6; }
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2656 $as_echo "no" >&6; }
2661 if test -z "$ac_cv_prog_CC"; then
2663 # Extract the first word of "gcc", so it can be a program name with args.
2664 set dummy gcc; ac_word=$2
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2666 $as_echo_n "checking for $ac_word... " >&6; }
2667 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2668 $as_echo_n "(cached) " >&6
2670 if test -n "$ac_ct_CC"; then
2671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2680 ac_cv_prog_ac_ct_CC="gcc"
2681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2691 if test -n "$ac_ct_CC"; then
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2693 $as_echo "$ac_ct_CC" >&6; }
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2696 $as_echo "no" >&6; }
2699 if test "x$ac_ct_CC" = x; then
2702 case $cross_compiling:$ac_tool_warned in
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2706 ac_tool_warned=yes ;;
2714 if test -z "$CC"; then
2715 if test -n "$ac_tool_prefix"; then
2716 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2717 set dummy ${ac_tool_prefix}cc; ac_word=$2
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719 $as_echo_n "checking for $ac_word... " >&6; }
2720 if ${ac_cv_prog_CC+:} false; then :
2721 $as_echo_n "(cached) " >&6
2723 if test -n "$CC"; then
2724 ac_cv_prog_CC="$CC" # Let the user override the test.
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2733 ac_cv_prog_CC="${ac_tool_prefix}cc"
2734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 if test -n "$CC"; then
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2746 $as_echo "$CC" >&6; }
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749 $as_echo "no" >&6; }
2755 if test -z "$CC"; then
2756 # Extract the first word of "cc", so it can be a program name with args.
2757 set dummy cc; ac_word=$2
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759 $as_echo_n "checking for $ac_word... " >&6; }
2760 if ${ac_cv_prog_CC+:} false; then :
2761 $as_echo_n "(cached) " >&6
2763 if test -n "$CC"; then
2764 ac_cv_prog_CC="$CC" # Let the user override the test.
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 test -z "$as_dir" && as_dir=.
2772 for ac_exec_ext in '' $ac_executable_extensions; do
2773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2774 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2775 ac_prog_rejected=yes
2779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 if test $ac_prog_rejected = yes; then
2787 # We found a bogon in the path, so make sure we never use it.
2788 set dummy $ac_cv_prog_CC
2790 if test $# != 0; then
2791 # We chose a different compiler from the bogus one.
2792 # However, it has the same basename, so the bogon will be chosen
2793 # first if we set CC to just the basename; use the full file name.
2795 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2801 if test -n "$CC"; then
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2803 $as_echo "$CC" >&6; }
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806 $as_echo "no" >&6; }
2811 if test -z "$CC"; then
2812 if test -n "$ac_tool_prefix"; then
2813 for ac_prog in cl.exe
2815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2816 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2818 $as_echo_n "checking for $ac_word... " >&6; }
2819 if ${ac_cv_prog_CC+:} false; then :
2820 $as_echo_n "(cached) " >&6
2822 if test -n "$CC"; then
2823 ac_cv_prog_CC="$CC" # Let the user override the test.
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 test -z "$as_dir" && as_dir=.
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2832 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 if test -n "$CC"; then
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2845 $as_echo "$CC" >&6; }
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2848 $as_echo "no" >&6; }
2852 test -n "$CC" && break
2855 if test -z "$CC"; then
2857 for ac_prog in cl.exe
2859 # Extract the first word of "$ac_prog", so it can be a program name with args.
2860 set dummy $ac_prog; ac_word=$2
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2862 $as_echo_n "checking for $ac_word... " >&6; }
2863 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2864 $as_echo_n "(cached) " >&6
2866 if test -n "$ac_ct_CC"; then
2867 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 test -z "$as_dir" && as_dir=.
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2876 ac_cv_prog_ac_ct_CC="$ac_prog"
2877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2886 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2887 if test -n "$ac_ct_CC"; then
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2889 $as_echo "$ac_ct_CC" >&6; }
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892 $as_echo "no" >&6; }
2896 test -n "$ac_ct_CC" && break
2899 if test "x$ac_ct_CC" = x; then
2902 case $cross_compiling:$ac_tool_warned in
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2906 ac_tool_warned=yes ;;
2915 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2917 as_fn_error $? "no acceptable C compiler found in \$PATH
2918 See \`config.log' for more details" "$LINENO" 5; }
2920 # Provide some information about the compiler.
2921 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2924 for ac_option in --version -v -V -qversion; do
2925 { { ac_try="$ac_compiler $ac_option >&5"
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2931 $as_echo "$ac_try_echo"; } >&5
2932 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2934 if test -s conftest.err; then
2936 ... rest of stderr output deleted ...
2937 10q' conftest.err >conftest.er1
2938 cat conftest.er1 >&5
2940 rm -f conftest.er1 conftest.err
2941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2942 test $ac_status = 0; }
2945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2946 /* end confdefs.h. */
2956 ac_clean_files_save=$ac_clean_files
2957 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2958 # Try to create an executable without -o first, disregard a.out.
2959 # It will help us diagnose broken compilers, and finding out an intuition
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2962 $as_echo_n "checking whether the C compiler works... " >&6; }
2963 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2965 # The possible output files:
2966 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2969 for ac_file in $ac_files
2972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2973 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2978 if { { ac_try="$ac_link_default"
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2984 $as_echo "$ac_try_echo"; } >&5
2985 (eval "$ac_link_default") 2>&5
2987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2988 test $ac_status = 0; }; then :
2989 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2990 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2991 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2992 # so that the user can short-circuit this test for compilers unknown to
2994 for ac_file in $ac_files ''
2996 test -f "$ac_file" || continue
2998 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3001 # We found the default executable, but exeext='' is most
3005 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3007 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3009 # We set ac_cv_exeext here because the later test for it is not
3010 # safe: cross compilers may not add the suffix if given an `-o'
3011 # argument, so we may need to know it at that point already.
3012 # Even if this section looks crufty: it has the advantage of
3019 test "$ac_cv_exeext" = no && ac_cv_exeext=
3024 if test -z "$ac_file"; then :
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026 $as_echo "no" >&6; }
3027 $as_echo "$as_me: failed program was:" >&5
3028 sed 's/^/| /' conftest.$ac_ext >&5
3030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3032 as_fn_error 77 "C compiler cannot create executables
3033 See \`config.log' for more details" "$LINENO" 5; }
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3036 $as_echo "yes" >&6; }
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3039 $as_echo_n "checking for C compiler default output file name... " >&6; }
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3041 $as_echo "$ac_file" >&6; }
3042 ac_exeext=$ac_cv_exeext
3044 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3045 ac_clean_files=$ac_clean_files_save
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3047 $as_echo_n "checking for suffix of executables... " >&6; }
3048 if { { ac_try="$ac_link"
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3054 $as_echo "$ac_try_echo"; } >&5
3055 (eval "$ac_link") 2>&5
3057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3058 test $ac_status = 0; }; then :
3059 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3060 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3061 # work properly (i.e., refer to `conftest.exe'), while it won't with
3063 for ac_file in conftest.exe conftest conftest.*; do
3064 test -f "$ac_file" || continue
3066 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3067 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3073 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3075 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3076 See \`config.log' for more details" "$LINENO" 5; }
3078 rm -f conftest conftest$ac_cv_exeext
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3080 $as_echo "$ac_cv_exeext" >&6; }
3082 rm -f conftest.$ac_ext
3083 EXEEXT=$ac_cv_exeext
3085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3086 /* end confdefs.h. */
3091 FILE *f = fopen ("conftest.out", "w");
3092 return ferror (f) || fclose (f) != 0;
3098 ac_clean_files="$ac_clean_files conftest.out"
3099 # Check that the compiler produces executables we can run. If not, either
3100 # the compiler is broken, or we cross compile.
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3102 $as_echo_n "checking whether we are cross compiling... " >&6; }
3103 if test "$cross_compiling" != yes; then
3104 { { ac_try="$ac_link"
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3109 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3110 $as_echo "$ac_try_echo"; } >&5
3111 (eval "$ac_link") 2>&5
3113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3114 test $ac_status = 0; }
3115 if { ac_try='./conftest$ac_cv_exeext'
3116 { { case "(($ac_try" in
3117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118 *) ac_try_echo=$ac_try;;
3120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3121 $as_echo "$ac_try_echo"; } >&5
3122 (eval "$ac_try") 2>&5
3124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3125 test $ac_status = 0; }; }; then
3128 if test "$cross_compiling" = maybe; then
3131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3133 as_fn_error $? "cannot run C compiled programs.
3134 If you meant to cross compile, use \`--host'.
3135 See \`config.log' for more details" "$LINENO" 5; }
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3140 $as_echo "$cross_compiling" >&6; }
3142 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3143 ac_clean_files=$ac_clean_files_save
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3145 $as_echo_n "checking for suffix of object files... " >&6; }
3146 if ${ac_cv_objext+:} false; then :
3147 $as_echo_n "(cached) " >&6
3149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3150 /* end confdefs.h. */
3160 rm -f conftest.o conftest.obj
3161 if { { ac_try="$ac_compile"
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3167 $as_echo "$ac_try_echo"; } >&5
3168 (eval "$ac_compile") 2>&5
3170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3171 test $ac_status = 0; }; then :
3172 for ac_file in conftest.o conftest.obj conftest.*; do
3173 test -f "$ac_file" || continue;
3175 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3176 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3181 $as_echo "$as_me: failed program was:" >&5
3182 sed 's/^/| /' conftest.$ac_ext >&5
3184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3186 as_fn_error $? "cannot compute suffix of object files: cannot compile
3187 See \`config.log' for more details" "$LINENO" 5; }
3189 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3192 $as_echo "$ac_cv_objext" >&6; }
3193 OBJEXT=$ac_cv_objext
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3196 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3197 if ${ac_cv_c_compiler_gnu+:} false; then :
3198 $as_echo_n "(cached) " >&6
3200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3201 /* end confdefs.h. */
3214 if ac_fn_c_try_compile "$LINENO"; then :
3219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3220 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3224 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3225 if test $ac_compiler_gnu = yes; then
3230 ac_test_CFLAGS=${CFLAGS+set}
3231 ac_save_CFLAGS=$CFLAGS
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3233 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3234 if ${ac_cv_prog_cc_g+:} false; then :
3235 $as_echo_n "(cached) " >&6
3237 ac_save_c_werror_flag=$ac_c_werror_flag
3238 ac_c_werror_flag=yes
3241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3242 /* end confdefs.h. */
3252 if ac_fn_c_try_compile "$LINENO"; then :
3256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3257 /* end confdefs.h. */
3267 if ac_fn_c_try_compile "$LINENO"; then :
3270 ac_c_werror_flag=$ac_save_c_werror_flag
3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273 /* end confdefs.h. */
3283 if ac_fn_c_try_compile "$LINENO"; then :
3286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3291 ac_c_werror_flag=$ac_save_c_werror_flag
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3294 $as_echo "$ac_cv_prog_cc_g" >&6; }
3295 if test "$ac_test_CFLAGS" = set; then
3296 CFLAGS=$ac_save_CFLAGS
3297 elif test $ac_cv_prog_cc_g = yes; then
3298 if test "$GCC" = yes; then
3304 if test "$GCC" = yes; then
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3311 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3312 if ${ac_cv_prog_cc_c89+:} false; then :
3313 $as_echo_n "(cached) " >&6
3315 ac_cv_prog_cc_c89=no
3317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318 /* end confdefs.h. */
3322 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3323 struct buf { int x; };
3324 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3325 static char *e (p, i)
3331 static char *f (char * (*g) (char **, int), char **p, ...)
3336 s = g (p, va_arg (v,int));
3341 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3342 function prototypes and stuff, but not '\xHH' hex character constants.
3343 These don't provoke an error unfortunately, instead are silently treated
3344 as 'x'. The following induces an error, until -std is added to get
3345 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3346 array size at least. It's necessary to write '\x00'==0 to get something
3347 that's true only with -std. */
3348 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3350 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3351 inside strings and character constants. */
3353 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3355 int test (int i, double x);
3356 struct s1 {int (*f) (int a);};
3357 struct s2 {int (*f) (double a);};
3358 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3364 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3369 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3370 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3372 CC="$ac_save_CC $ac_arg"
3373 if ac_fn_c_try_compile "$LINENO"; then :
3374 ac_cv_prog_cc_c89=$ac_arg
3376 rm -f core conftest.err conftest.$ac_objext
3377 test "x$ac_cv_prog_cc_c89" != "xno" && break
3379 rm -f conftest.$ac_ext
3384 case "x$ac_cv_prog_cc_c89" in
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3387 $as_echo "none needed" >&6; } ;;
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3390 $as_echo "unsupported" >&6; } ;;
3392 CC="$CC $ac_cv_prog_cc_c89"
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3394 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3396 if test "x$ac_cv_prog_cc_c89" != xno; then :
3401 ac_cpp='$CPP $CPPFLAGS'
3402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3407 ac_cpp='$CPP $CPPFLAGS'
3408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3412 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3413 if ${am_cv_prog_cc_c_o+:} false; then :
3414 $as_echo_n "(cached) " >&6
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h. */
3427 # Make sure it works both with $CC and with simple cc.
3428 # Following AC_PROG_CC_C_O, we do the test twice because some
3429 # compilers refuse to overwrite an existing .o file with -o,
3430 # though they will create one.
3431 am_cv_prog_cc_c_o=yes
3433 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3434 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } \
3438 && test -f conftest2.$ac_objext; then
3441 am_cv_prog_cc_c_o=no
3445 rm -f core conftest*
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3449 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3450 if test "$am_cv_prog_cc_c_o" != yes; then
3451 # Losing compiler, so override with the script.
3452 # FIXME: It is wrong to rewrite CC.
3453 # But if we don't then we get into trouble of one sort or another.
3454 # A longer-term fix would be to have automake use am__CC in this case,
3455 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3456 CC="$am_aux_dir/compile $CC"
3459 ac_cpp='$CPP $CPPFLAGS'
3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467 ac_cpp='$CPP $CPPFLAGS'
3468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3472 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3473 # On Suns, sometimes $CPP names a directory.
3474 if test -n "$CPP" && test -d "$CPP"; then
3477 if test -z "$CPP"; then
3478 if ${ac_cv_prog_CPP+:} false; then :
3479 $as_echo_n "(cached) " >&6
3481 # Double quotes because CPP needs to be expanded
3482 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3485 for ac_c_preproc_warn_flag in '' yes
3487 # Use a header file that comes with gcc, so configuring glibc
3488 # with a fresh cross-compiler works.
3489 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3490 # <limits.h> exists even on freestanding compilers.
3491 # On the NeXT, cc -E runs the code through the compiler's parser,
3492 # not just through cpp. "Syntax error" is here to catch this case.
3493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494 /* end confdefs.h. */
3496 # include <limits.h>
3498 # include <assert.h>
3502 if ac_fn_c_try_cpp "$LINENO"; then :
3505 # Broken: fails on valid input.
3508 rm -f conftest.err conftest.i conftest.$ac_ext
3510 # OK, works on sane cases. Now check whether nonexistent headers
3511 # can be detected and how.
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h. */
3514 #include <ac_nonexistent.h>
3516 if ac_fn_c_try_cpp "$LINENO"; then :
3517 # Broken: success on invalid input.
3520 # Passes both tests.
3524 rm -f conftest.err conftest.i conftest.$ac_ext
3527 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3528 rm -f conftest.i conftest.err conftest.$ac_ext
3529 if $ac_preproc_ok; then :
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3542 $as_echo "$CPP" >&6; }
3544 for ac_c_preproc_warn_flag in '' yes
3546 # Use a header file that comes with gcc, so configuring glibc
3547 # with a fresh cross-compiler works.
3548 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3549 # <limits.h> exists even on freestanding compilers.
3550 # On the NeXT, cc -E runs the code through the compiler's parser,
3551 # not just through cpp. "Syntax error" is here to catch this case.
3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553 /* end confdefs.h. */
3555 # include <limits.h>
3557 # include <assert.h>
3561 if ac_fn_c_try_cpp "$LINENO"; then :
3564 # Broken: fails on valid input.
3567 rm -f conftest.err conftest.i conftest.$ac_ext
3569 # OK, works on sane cases. Now check whether nonexistent headers
3570 # can be detected and how.
3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572 /* end confdefs.h. */
3573 #include <ac_nonexistent.h>
3575 if ac_fn_c_try_cpp "$LINENO"; then :
3576 # Broken: success on invalid input.
3579 # Passes both tests.
3583 rm -f conftest.err conftest.i conftest.$ac_ext
3586 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3587 rm -f conftest.i conftest.err conftest.$ac_ext
3588 if $ac_preproc_ok; then :
3591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3593 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3594 See \`config.log' for more details" "$LINENO" 5; }
3598 ac_cpp='$CPP $CPPFLAGS'
3599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3605 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3606 if ${ac_cv_path_GREP+:} false; then :
3607 $as_echo_n "(cached) " >&6
3609 if test -z "$GREP"; then
3610 ac_path_GREP_found=false
3611 # Loop through the user's path and test for each of PROGNAME-LIST
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3616 test -z "$as_dir" && as_dir=.
3617 for ac_prog in grep ggrep; do
3618 for ac_exec_ext in '' $ac_executable_extensions; do
3619 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3620 as_fn_executable_p "$ac_path_GREP" || continue
3621 # Check for GNU ac_path_GREP and select it if it is found.
3622 # Check for GNU $ac_path_GREP
3623 case `"$ac_path_GREP" --version 2>&1` in
3625 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3628 $as_echo_n 0123456789 >"conftest.in"
3631 cat "conftest.in" "conftest.in" >"conftest.tmp"
3632 mv "conftest.tmp" "conftest.in"
3633 cp "conftest.in" "conftest.nl"
3634 $as_echo 'GREP' >> "conftest.nl"
3635 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3636 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3637 as_fn_arith $ac_count + 1 && ac_count=$as_val
3638 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3639 # Best one so far, save it but keep looking for a better one
3640 ac_cv_path_GREP="$ac_path_GREP"
3641 ac_path_GREP_max=$ac_count
3643 # 10*(2^10) chars as input seems more than enough
3644 test $ac_count -gt 10 && break
3646 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3649 $ac_path_GREP_found && break 3
3654 if test -z "$ac_cv_path_GREP"; then
3655 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3658 ac_cv_path_GREP=$GREP
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3663 $as_echo "$ac_cv_path_GREP" >&6; }
3664 GREP="$ac_cv_path_GREP"
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3668 $as_echo_n "checking for egrep... " >&6; }
3669 if ${ac_cv_path_EGREP+:} false; then :
3670 $as_echo_n "(cached) " >&6
3672 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3673 then ac_cv_path_EGREP="$GREP -E"
3675 if test -z "$EGREP"; then
3676 ac_path_EGREP_found=false
3677 # Loop through the user's path and test for each of PROGNAME-LIST
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3682 test -z "$as_dir" && as_dir=.
3683 for ac_prog in egrep; do
3684 for ac_exec_ext in '' $ac_executable_extensions; do
3685 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3686 as_fn_executable_p "$ac_path_EGREP" || continue
3687 # Check for GNU ac_path_EGREP and select it if it is found.
3688 # Check for GNU $ac_path_EGREP
3689 case `"$ac_path_EGREP" --version 2>&1` in
3691 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3694 $as_echo_n 0123456789 >"conftest.in"
3697 cat "conftest.in" "conftest.in" >"conftest.tmp"
3698 mv "conftest.tmp" "conftest.in"
3699 cp "conftest.in" "conftest.nl"
3700 $as_echo 'EGREP' >> "conftest.nl"
3701 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3702 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3703 as_fn_arith $ac_count + 1 && ac_count=$as_val
3704 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3705 # Best one so far, save it but keep looking for a better one
3706 ac_cv_path_EGREP="$ac_path_EGREP"
3707 ac_path_EGREP_max=$ac_count
3709 # 10*(2^10) chars as input seems more than enough
3710 test $ac_count -gt 10 && break
3712 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3715 $ac_path_EGREP_found && break 3
3720 if test -z "$ac_cv_path_EGREP"; then
3721 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3724 ac_cv_path_EGREP=$EGREP
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3730 $as_echo "$ac_cv_path_EGREP" >&6; }
3731 EGREP="$ac_cv_path_EGREP"
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3735 $as_echo_n "checking for ANSI C header files... " >&6; }
3736 if ${ac_cv_header_stdc+:} false; then :
3737 $as_echo_n "(cached) " >&6
3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h. */
3754 if ac_fn_c_try_compile "$LINENO"; then :
3755 ac_cv_header_stdc=yes
3757 ac_cv_header_stdc=no
3759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3761 if test $ac_cv_header_stdc = yes; then
3762 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h. */
3768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3769 $EGREP "memchr" >/dev/null 2>&1; then :
3772 ac_cv_header_stdc=no
3778 if test $ac_cv_header_stdc = yes; then
3779 # ISC 2.0.2 stdlib.h does not declare free, 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 "free" >/dev/null 2>&1; then :
3789 ac_cv_header_stdc=no
3795 if test $ac_cv_header_stdc = yes; then
3796 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3797 if test "$cross_compiling" = yes; then :
3800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h. */
3804 #if ((' ' & 0x0FF) == 0x020)
3805 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3806 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3808 # define ISLOWER(c) \
3809 (('a' <= (c) && (c) <= 'i') \
3810 || ('j' <= (c) && (c) <= 'r') \
3811 || ('s' <= (c) && (c) <= 'z'))
3812 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3815 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3820 for (i = 0; i < 256; i++)
3821 if (XOR (islower (i), ISLOWER (i))
3822 || toupper (i) != TOUPPER (i))
3827 if ac_fn_c_try_run "$LINENO"; then :
3830 ac_cv_header_stdc=no
3832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3833 conftest.$ac_objext conftest.beam conftest.$ac_ext
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3839 $as_echo "$ac_cv_header_stdc" >&6; }
3840 if test $ac_cv_header_stdc = yes; then
3842 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3846 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3847 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3848 inttypes.h stdint.h unistd.h
3850 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3851 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3853 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3854 cat >>confdefs.h <<_ACEOF
3855 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3864 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3865 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3872 if test "$MINIX" = yes; then
3874 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3877 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3880 $as_echo "#define _MINIX 1" >>confdefs.h
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3886 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3887 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3888 $as_echo_n "(cached) " >&6
3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891 /* end confdefs.h. */
3893 # define __EXTENSIONS__ 1
3894 $ac_includes_default
3903 if ac_fn_c_try_compile "$LINENO"; then :
3904 ac_cv_safe_to_define___extensions__=yes
3906 ac_cv_safe_to_define___extensions__=no
3908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3911 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3912 test $ac_cv_safe_to_define___extensions__ = yes &&
3913 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3915 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3917 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3919 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3921 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3925 target_alias=${target_alias-$target}
3928 # 1.11.1: Require that version of automake.
3929 # foreign: Don't require README, INSTALL, NEWS, etc.
3930 # no-define: Don't define PACKAGE and VERSION.
3931 # no-dependencies: Don't generate automatic dependencies.
3932 # (because it breaks when using bootstrap-lean, since some of the
3933 # headers are gone at "make install" time).
3934 # subdir-objects: Build objects in sub-directories.
3935 # -Wall: Issue all automake warnings.
3936 # -Wno-portability: Don't warn about constructs supported by GNU make.
3937 # (because GCC requires GNU make anyhow).
3938 # -Wno-override: Overrides used in testsuite.
3939 am__api_version='1.15'
3941 # Find a good install program. We prefer a C program (faster),
3942 # so one script is as good as another. But avoid the broken or
3943 # incompatible versions:
3944 # SysV /etc/install, /usr/sbin/install
3945 # SunOS /usr/etc/install
3946 # IRIX /sbin/install
3948 # AmigaOS /C/install, which installs bootblocks on floppy discs
3949 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3950 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3951 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3952 # OS/2's system install, which has a completely different semantic
3953 # ./install, which can be erroneously created by make from ./install.sh.
3954 # Reject install programs that cannot install multiple files.
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3956 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3957 if test -z "$INSTALL"; then
3958 if ${ac_cv_path_install+:} false; then :
3959 $as_echo_n "(cached) " >&6
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 test -z "$as_dir" && as_dir=.
3966 # Account for people who put trailing slashes in PATH elements.
3967 case $as_dir/ in #((
3968 ./ | .// | /[cC]/* | \
3969 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3970 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3973 # OSF1 and SCO ODT 3.0 have their own names for install.
3974 # Don't use installbsd from OSF since it installs stuff as root
3976 for ac_prog in ginstall scoinst install; do
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3979 if test $ac_prog = install &&
3980 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3981 # AIX install. It has an incompatible calling convention.
3983 elif test $ac_prog = install &&
3984 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3985 # program-specific install script used by HP pwplus--don't use.
3988 rm -rf conftest.one conftest.two conftest.dir
3989 echo one > conftest.one
3990 echo two > conftest.two
3992 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3993 test -s conftest.one && test -s conftest.two &&
3994 test -s conftest.dir/conftest.one &&
3995 test -s conftest.dir/conftest.two
3997 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4010 rm -rf conftest.one conftest.two conftest.dir
4013 if test "${ac_cv_path_install+set}" = set; then
4014 INSTALL=$ac_cv_path_install
4016 # As a last resort, use the slow shell script. Don't cache a
4017 # value for INSTALL within a source directory, because that will
4018 # break other packages using the cache if that directory is
4019 # removed, or if the value is a relative name.
4020 INSTALL=$ac_install_sh
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4024 $as_echo "$INSTALL" >&6; }
4026 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4027 # It thinks the first close brace ends the variable substitution.
4028 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4030 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4032 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4035 $as_echo_n "checking whether build environment is sane... " >&6; }
4036 # Reject unsafe characters in $srcdir or the absolute working directory
4037 # name. Accept space and tab only in the latter.
4041 *[\\\"\#\$\&\'\`$am_lf]*)
4042 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4045 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4046 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4049 # Do 'set' in a subshell so we don't clobber the current shell's
4050 # arguments. Must try -L first in case configure is actually a
4051 # symlink; some systems play weird games with the mod time of symlinks
4052 # (eg FreeBSD returns the mod time of the symlink's containing
4056 for am_try in 1 2; do
4057 echo "timestamp, slept: $am_has_slept" > conftest.file
4058 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4059 if test "$*" = "X"; then
4061 set X `ls -t "$srcdir/configure" conftest.file`
4063 if test "$*" != "X $srcdir/configure conftest.file" \
4064 && test "$*" != "X conftest.file $srcdir/configure"; then
4066 # If neither matched, then we have a broken ls. This can happen
4067 # if, for instance, CONFIG_SHELL is bash and it inherits a
4068 # broken ls alias from the environment. This has actually
4069 # happened. Such a system could not be considered "sane".
4070 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4071 alias in your environment" "$LINENO" 5
4073 if test "$2" = conftest.file || test $am_try -eq 2; then
4080 test "$2" = conftest.file
4086 as_fn_error $? "newly created file is older than distributed files!
4087 Check your system clock" "$LINENO" 5
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4090 $as_echo "yes" >&6; }
4091 # If we didn't sleep, we still need to ensure time stamps of config.status and
4092 # generated files are strictly newer.
4094 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4101 test "$program_prefix" != NONE &&
4102 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4103 # Use a double $ so make ignores it.
4104 test "$program_suffix" != NONE &&
4105 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4106 # Double any \ or $.
4107 # By default was `s,x,x', remove it if useless.
4108 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4109 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4111 if test x"${MISSING+set}" != xset; then
4114 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4116 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4119 # Use eval to expand $SHELL
4120 if eval "$MISSING --is-lightweight"; then
4121 am_missing_run="$MISSING "
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4125 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4128 if test x"${install_sh+set}" != xset; then
4131 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4133 install_sh="\${SHELL} $am_aux_dir/install-sh"
4137 # Installed binaries are usually stripped using 'strip' when the user
4138 # run "make install-strip". However 'strip' might not be the right
4139 # tool to use in cross-compilation environments, therefore Automake
4140 # will honor the 'STRIP' environment variable to overrule this program.
4141 if test "$cross_compiling" != no; then
4142 if test -n "$ac_tool_prefix"; then
4143 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4144 set dummy ${ac_tool_prefix}strip; ac_word=$2
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4146 $as_echo_n "checking for $ac_word... " >&6; }
4147 if ${ac_cv_prog_STRIP+:} false; then :
4148 $as_echo_n "(cached) " >&6
4150 if test -n "$STRIP"; then
4151 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157 test -z "$as_dir" && as_dir=.
4158 for ac_exec_ext in '' $ac_executable_extensions; do
4159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4160 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4170 STRIP=$ac_cv_prog_STRIP
4171 if test -n "$STRIP"; then
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4173 $as_echo "$STRIP" >&6; }
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4176 $as_echo "no" >&6; }
4181 if test -z "$ac_cv_prog_STRIP"; then
4183 # Extract the first word of "strip", so it can be a program name with args.
4184 set dummy strip; ac_word=$2
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4186 $as_echo_n "checking for $ac_word... " >&6; }
4187 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4188 $as_echo_n "(cached) " >&6
4190 if test -n "$ac_ct_STRIP"; then
4191 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 test -z "$as_dir" && as_dir=.
4198 for ac_exec_ext in '' $ac_executable_extensions; do
4199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4200 ac_cv_prog_ac_ct_STRIP="strip"
4201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4210 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4211 if test -n "$ac_ct_STRIP"; then
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4213 $as_echo "$ac_ct_STRIP" >&6; }
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4216 $as_echo "no" >&6; }
4219 if test "x$ac_ct_STRIP" = x; then
4222 case $cross_compiling:$ac_tool_warned in
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4226 ac_tool_warned=yes ;;
4231 STRIP="$ac_cv_prog_STRIP"
4235 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4238 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4239 if test -z "$MKDIR_P"; then
4240 if ${ac_cv_path_mkdir+:} false; then :
4241 $as_echo_n "(cached) " >&6
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4247 test -z "$as_dir" && as_dir=.
4248 for ac_prog in mkdir gmkdir; do
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4251 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4252 'mkdir (GNU coreutils) '* | \
4253 'mkdir (coreutils) '* | \
4254 'mkdir (fileutils) '4.1*)
4255 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4265 test -d ./--version && rmdir ./--version
4266 if test "${ac_cv_path_mkdir+set}" = set; then
4267 MKDIR_P="$ac_cv_path_mkdir -p"
4269 # As a last resort, use the slow shell script. Don't cache a
4270 # value for MKDIR_P within a source directory, because that will
4271 # break other packages using the cache if that directory is
4272 # removed, or if the value is a relative name.
4273 MKDIR_P="$ac_install_sh -d"
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4277 $as_echo "$MKDIR_P" >&6; }
4279 for ac_prog in gawk mawk nawk awk
4281 # Extract the first word of "$ac_prog", so it can be a program name with args.
4282 set dummy $ac_prog; ac_word=$2
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4284 $as_echo_n "checking for $ac_word... " >&6; }
4285 if ${ac_cv_prog_AWK+:} false; then :
4286 $as_echo_n "(cached) " >&6
4288 if test -n "$AWK"; then
4289 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295 test -z "$as_dir" && as_dir=.
4296 for ac_exec_ext in '' $ac_executable_extensions; do
4297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4298 ac_cv_prog_AWK="$ac_prog"
4299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4309 if test -n "$AWK"; then
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4311 $as_echo "$AWK" >&6; }
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314 $as_echo "no" >&6; }
4318 test -n "$AWK" && break
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4322 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4324 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4325 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4326 $as_echo_n "(cached) " >&6
4328 cat >conftest.make <<\_ACEOF
4331 @echo '@@@%%%=$(MAKE)=@@@%%%'
4333 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4334 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4336 eval ac_cv_prog_make_${ac_make}_set=yes;;
4338 eval ac_cv_prog_make_${ac_make}_set=no;;
4342 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4344 $as_echo "yes" >&6; }
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348 $as_echo "no" >&6; }
4349 SET_MAKE="MAKE=${MAKE-make}"
4352 rm -rf .tst 2>/dev/null
4353 mkdir .tst 2>/dev/null
4354 if test -d .tst; then
4359 rmdir .tst 2>/dev/null
4361 # Check whether --enable-silent-rules was given.
4362 if test "${enable_silent_rules+set}" = set; then :
4363 enableval=$enable_silent_rules;
4366 case $enable_silent_rules in # (((
4367 yes) AM_DEFAULT_VERBOSITY=0;;
4368 no) AM_DEFAULT_VERBOSITY=1;;
4369 *) AM_DEFAULT_VERBOSITY=1;;
4371 am_make=${MAKE-make}
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4373 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4374 if ${am_cv_make_support_nested_variables+:} false; then :
4375 $as_echo_n "(cached) " >&6
4377 if $as_echo 'TRUE=$(BAR$(V))
4383 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4384 am_cv_make_support_nested_variables=yes
4386 am_cv_make_support_nested_variables=no
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4390 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4391 if test $am_cv_make_support_nested_variables = yes; then
4393 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4395 AM_V=$AM_DEFAULT_VERBOSITY
4396 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4400 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4401 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4402 # is not polluted with repeated "-I."
4403 am__isrc=' -I$(srcdir)'
4404 # test to see if srcdir already configured
4405 if test -f $srcdir/config.status; then
4406 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4410 # test whether we have cygpath
4411 if test -z "$CYGPATH_W"; then
4412 if (cygpath --version) >/dev/null 2>/dev/null; then
4413 CYGPATH_W='cygpath -w'
4420 # Define the identity of the package.
4422 VERSION='version-unused'
4425 # Some tools Automake needs.
4427 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4430 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4433 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4436 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4439 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4441 # For better backward compatibility. To be removed once Automake 1.9.x
4442 # dies out for good. For more background, see:
4443 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4444 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4445 mkdir_p='$(MKDIR_P)'
4447 # We need awk for the "check" target (and possibly the TAP driver). The
4448 # system "awk" is bad on some platforms.
4449 # Always define AMTAR for backward compatibility. Yes, it's still used
4450 # in the wild :-( We should find a proper way to deprecate it ...
4454 # We'll loop over all known methods to create a tar archive until one works.
4455 _am_tools='gnutar pax cpio none'
4457 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4464 # POSIX will say in a future version that running "rm -f" with no argument
4465 # is OK; and we want to be able to make that assumption in our Makefile
4466 # recipes. So use an aggressive probe to check that the usage we want is
4467 # actually supported "in the wild" to an acceptable degree.
4468 # See automake bug#10828.
4469 # To make any issue more visible, cause the running configure to be aborted
4470 # by default if the 'rm' program in use doesn't match our expectations; the
4471 # user can still override this though.
4472 if rm -f && rm -fr && rm -rf; then : OK; else
4476 Your 'rm' program seems unable to run without file operands specified
4477 on the command line, even when the '-f' option is present. This is contrary
4478 to the behaviour of most rm programs out there, and not conforming with
4479 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4481 Please tell bug-automake@gnu.org about your system, including the value
4482 of your $PATH and any error possibly output before this message. This
4483 can help us improve future automake versions.
4486 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4487 echo 'Configuration will proceed anyway, since you have set the' >&2
4488 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4492 Aborting the configuration process, to ensure you take notice of the issue.
4494 You can download and install GNU coreutils to get an 'rm' implementation
4495 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4497 If you want to complete the configuration process using your problematic
4498 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4499 to "yes", and re-run configure.
4502 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4509 # By default we simply use the C compiler to build assembly code.
4511 test "${CCAS+set}" = set || CCAS=$CC
4512 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4517 ac_cpp='$CPP $CPPFLAGS'
4518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4521 if test -n "$ac_tool_prefix"; then
4522 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4523 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4525 $as_echo_n "checking for $ac_word... " >&6; }
4526 if ${ac_cv_prog_CC+:} false; then :
4527 $as_echo_n "(cached) " >&6
4529 if test -n "$CC"; then
4530 ac_cv_prog_CC="$CC" # Let the user override the test.
4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 test -z "$as_dir" && as_dir=.
4537 for ac_exec_ext in '' $ac_executable_extensions; do
4538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4539 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4550 if test -n "$CC"; then
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4552 $as_echo "$CC" >&6; }
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4555 $as_echo "no" >&6; }
4560 if test -z "$ac_cv_prog_CC"; then
4562 # Extract the first word of "gcc", so it can be a program name with args.
4563 set dummy gcc; ac_word=$2
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4565 $as_echo_n "checking for $ac_word... " >&6; }
4566 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4567 $as_echo_n "(cached) " >&6
4569 if test -n "$ac_ct_CC"; then
4570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4579 ac_cv_prog_ac_ct_CC="gcc"
4580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4590 if test -n "$ac_ct_CC"; then
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4592 $as_echo "$ac_ct_CC" >&6; }
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4595 $as_echo "no" >&6; }
4598 if test "x$ac_ct_CC" = x; then
4601 case $cross_compiling:$ac_tool_warned in
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4605 ac_tool_warned=yes ;;
4613 if test -z "$CC"; then
4614 if test -n "$ac_tool_prefix"; then
4615 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4616 set dummy ${ac_tool_prefix}cc; ac_word=$2
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4618 $as_echo_n "checking for $ac_word... " >&6; }
4619 if ${ac_cv_prog_CC+:} false; then :
4620 $as_echo_n "(cached) " >&6
4622 if test -n "$CC"; then
4623 ac_cv_prog_CC="$CC" # Let the user override the test.
4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 test -z "$as_dir" && as_dir=.
4630 for ac_exec_ext in '' $ac_executable_extensions; do
4631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4632 ac_cv_prog_CC="${ac_tool_prefix}cc"
4633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4643 if test -n "$CC"; then
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4645 $as_echo "$CC" >&6; }
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4648 $as_echo "no" >&6; }
4654 if test -z "$CC"; then
4655 # Extract the first word of "cc", so it can be a program name with args.
4656 set dummy cc; ac_word=$2
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4658 $as_echo_n "checking for $ac_word... " >&6; }
4659 if ${ac_cv_prog_CC+:} false; then :
4660 $as_echo_n "(cached) " >&6
4662 if test -n "$CC"; then
4663 ac_cv_prog_CC="$CC" # Let the user override the test.
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4673 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4674 ac_prog_rejected=yes
4678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4685 if test $ac_prog_rejected = yes; then
4686 # We found a bogon in the path, so make sure we never use it.
4687 set dummy $ac_cv_prog_CC
4689 if test $# != 0; then
4690 # We chose a different compiler from the bogus one.
4691 # However, it has the same basename, so the bogon will be chosen
4692 # first if we set CC to just the basename; use the full file name.
4694 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4700 if test -n "$CC"; then
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4702 $as_echo "$CC" >&6; }
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4705 $as_echo "no" >&6; }
4710 if test -z "$CC"; then
4711 if test -n "$ac_tool_prefix"; then
4712 for ac_prog in cl.exe
4714 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4715 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4717 $as_echo_n "checking for $ac_word... " >&6; }
4718 if ${ac_cv_prog_CC+:} false; then :
4719 $as_echo_n "(cached) " >&6
4721 if test -n "$CC"; then
4722 ac_cv_prog_CC="$CC" # Let the user override the test.
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728 test -z "$as_dir" && as_dir=.
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4731 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4742 if test -n "$CC"; then
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4744 $as_echo "$CC" >&6; }
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4747 $as_echo "no" >&6; }
4751 test -n "$CC" && break
4754 if test -z "$CC"; then
4756 for ac_prog in cl.exe
4758 # Extract the first word of "$ac_prog", so it can be a program name with args.
4759 set dummy $ac_prog; ac_word=$2
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4761 $as_echo_n "checking for $ac_word... " >&6; }
4762 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4763 $as_echo_n "(cached) " >&6
4765 if test -n "$ac_ct_CC"; then
4766 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772 test -z "$as_dir" && as_dir=.
4773 for ac_exec_ext in '' $ac_executable_extensions; do
4774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4775 ac_cv_prog_ac_ct_CC="$ac_prog"
4776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4785 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4786 if test -n "$ac_ct_CC"; then
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4788 $as_echo "$ac_ct_CC" >&6; }
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4791 $as_echo "no" >&6; }
4795 test -n "$ac_ct_CC" && break
4798 if test "x$ac_ct_CC" = x; then
4801 case $cross_compiling:$ac_tool_warned in
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4805 ac_tool_warned=yes ;;
4814 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4816 as_fn_error $? "no acceptable C compiler found in \$PATH
4817 See \`config.log' for more details" "$LINENO" 5; }
4819 # Provide some information about the compiler.
4820 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4823 for ac_option in --version -v -V -qversion; do
4824 { { ac_try="$ac_compiler $ac_option >&5"
4826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4827 *) ac_try_echo=$ac_try;;
4829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4830 $as_echo "$ac_try_echo"; } >&5
4831 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4833 if test -s conftest.err; then
4835 ... rest of stderr output deleted ...
4836 10q' conftest.err >conftest.er1
4837 cat conftest.er1 >&5
4839 rm -f conftest.er1 conftest.err
4840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4841 test $ac_status = 0; }
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4845 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4846 if ${ac_cv_c_compiler_gnu+:} false; then :
4847 $as_echo_n "(cached) " >&6
4849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4850 /* end confdefs.h. */
4863 if ac_fn_c_try_compile "$LINENO"; then :
4868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4869 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4873 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4874 if test $ac_compiler_gnu = yes; then
4879 ac_test_CFLAGS=${CFLAGS+set}
4880 ac_save_CFLAGS=$CFLAGS
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4882 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4883 if ${ac_cv_prog_cc_g+:} false; then :
4884 $as_echo_n "(cached) " >&6
4886 ac_save_c_werror_flag=$ac_c_werror_flag
4887 ac_c_werror_flag=yes
4890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4891 /* end confdefs.h. */
4901 if ac_fn_c_try_compile "$LINENO"; then :
4905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906 /* end confdefs.h. */
4916 if ac_fn_c_try_compile "$LINENO"; then :
4919 ac_c_werror_flag=$ac_save_c_werror_flag
4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h. */
4932 if ac_fn_c_try_compile "$LINENO"; then :
4935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4940 ac_c_werror_flag=$ac_save_c_werror_flag
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4943 $as_echo "$ac_cv_prog_cc_g" >&6; }
4944 if test "$ac_test_CFLAGS" = set; then
4945 CFLAGS=$ac_save_CFLAGS
4946 elif test $ac_cv_prog_cc_g = yes; then
4947 if test "$GCC" = yes; then
4953 if test "$GCC" = yes; then
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4960 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4961 if ${ac_cv_prog_cc_c89+:} false; then :
4962 $as_echo_n "(cached) " >&6
4964 ac_cv_prog_cc_c89=no
4966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4967 /* end confdefs.h. */
4971 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4972 struct buf { int x; };
4973 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4974 static char *e (p, i)
4980 static char *f (char * (*g) (char **, int), char **p, ...)
4985 s = g (p, va_arg (v,int));
4990 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4991 function prototypes and stuff, but not '\xHH' hex character constants.
4992 These don't provoke an error unfortunately, instead are silently treated
4993 as 'x'. The following induces an error, until -std is added to get
4994 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4995 array size at least. It's necessary to write '\x00'==0 to get something
4996 that's true only with -std. */
4997 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4999 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5000 inside strings and character constants. */
5002 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5004 int test (int i, double x);
5005 struct s1 {int (*f) (int a);};
5006 struct s2 {int (*f) (double a);};
5007 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5013 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5018 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5019 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5021 CC="$ac_save_CC $ac_arg"
5022 if ac_fn_c_try_compile "$LINENO"; then :
5023 ac_cv_prog_cc_c89=$ac_arg
5025 rm -f core conftest.err conftest.$ac_objext
5026 test "x$ac_cv_prog_cc_c89" != "xno" && break
5028 rm -f conftest.$ac_ext
5033 case "x$ac_cv_prog_cc_c89" in
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5036 $as_echo "none needed" >&6; } ;;
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5039 $as_echo "unsupported" >&6; } ;;
5041 CC="$CC $ac_cv_prog_cc_c89"
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5043 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5045 if test "x$ac_cv_prog_cc_c89" != xno; then :
5050 ac_cpp='$CPP $CPPFLAGS'
5051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5056 ac_cpp='$CPP $CPPFLAGS'
5057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5061 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5062 if ${am_cv_prog_cc_c_o+:} false; then :
5063 $as_echo_n "(cached) " >&6
5065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066 /* end confdefs.h. */
5076 # Make sure it works both with $CC and with simple cc.
5077 # Following AC_PROG_CC_C_O, we do the test twice because some
5078 # compilers refuse to overwrite an existing .o file with -o,
5079 # though they will create one.
5080 am_cv_prog_cc_c_o=yes
5082 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5083 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); } \
5087 && test -f conftest2.$ac_objext; then
5090 am_cv_prog_cc_c_o=no
5094 rm -f core conftest*
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5098 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5099 if test "$am_cv_prog_cc_c_o" != yes; then
5100 # Losing compiler, so override with the script.
5101 # FIXME: It is wrong to rewrite CC.
5102 # But if we don't then we get into trouble of one sort or another.
5103 # A longer-term fix would be to have automake use am__CC in this case,
5104 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5105 CC="$am_aux_dir/compile $CC"
5108 ac_cpp='$CPP $CPPFLAGS'
5109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5115 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5116 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5118 if test -n "$ac_tool_prefix"; then
5119 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5120 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5122 $as_echo_n "checking for $ac_word... " >&6; }
5123 if ${ac_cv_prog_GDC+:} false; then :
5124 $as_echo_n "(cached) " >&6
5126 if test -n "$GDC"; then
5127 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133 test -z "$as_dir" && as_dir=.
5134 for ac_exec_ext in '' $ac_executable_extensions; do
5135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5136 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5147 if test -n "$GDC"; then
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5149 $as_echo "$GDC" >&6; }
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5152 $as_echo "no" >&6; }
5157 if test -z "$ac_cv_prog_GDC"; then
5159 # Extract the first word of "gdc", so it can be a program name with args.
5160 set dummy gdc; ac_word=$2
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5162 $as_echo_n "checking for $ac_word... " >&6; }
5163 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5164 $as_echo_n "(cached) " >&6
5166 if test -n "$ac_ct_GDC"; then
5167 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173 test -z "$as_dir" && as_dir=.
5174 for ac_exec_ext in '' $ac_executable_extensions; do
5175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5176 ac_cv_prog_ac_ct_GDC="gdc"
5177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5186 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5187 if test -n "$ac_ct_GDC"; then
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5189 $as_echo "$ac_ct_GDC" >&6; }
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5192 $as_echo "no" >&6; }
5195 if test "x$ac_ct_GDC" = x; then
5198 case $cross_compiling:$ac_tool_warned in
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5202 ac_tool_warned=yes ;;
5207 GDC="$ac_cv_prog_GDC"
5210 if test -z "$GDC"; then
5211 if test -n "$ac_tool_prefix"; then
5212 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5213 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5215 $as_echo_n "checking for $ac_word... " >&6; }
5216 if ${ac_cv_prog_GDC+:} false; then :
5217 $as_echo_n "(cached) " >&6
5219 if test -n "$GDC"; then
5220 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 test -z "$as_dir" && as_dir=.
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5229 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
5230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5240 if test -n "$GDC"; then
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5242 $as_echo "$GDC" >&6; }
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5245 $as_echo "no" >&6; }
5251 if test -z "$GDC"; then
5252 # Extract the first word of "gdc", so it can be a program name with args.
5253 set dummy gdc; ac_word=$2
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5255 $as_echo_n "checking for $ac_word... " >&6; }
5256 if ${ac_cv_prog_GDC+:} false; then :
5257 $as_echo_n "(cached) " >&6
5259 if test -n "$GDC"; then
5260 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 test -z "$as_dir" && as_dir=.
5268 for ac_exec_ext in '' $ac_executable_extensions; do
5269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5270 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
5271 ac_prog_rejected=yes
5274 ac_cv_prog_GDC="gdc"
5275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5282 if test $ac_prog_rejected = yes; then
5283 # We found a bogon in the path, so make sure we never use it.
5284 set dummy $ac_cv_prog_GDC
5286 if test $# != 0; then
5287 # We chose a different compiler from the bogus one.
5288 # However, it has the same basename, so the bogon will be chosen
5289 # first if we set GDC to just the basename; use the full file name.
5291 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
5297 if test -n "$GDC"; then
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5299 $as_echo "$GDC" >&6; }
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5302 $as_echo "no" >&6; }
5309 # Provide some information about the compiler.
5310 $as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
5313 { { ac_try="$ac_compiler --version >&5"
5315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5316 *) ac_try_echo=$ac_try;;
5318 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5319 $as_echo "$ac_try_echo"; } >&5
5320 (eval "$ac_compiler --version >&5") 2>conftest.err
5322 if test -s conftest.err; then
5324 ... rest of stderr output deleted ...
5325 10q' conftest.err >conftest.er1
5326 cat conftest.er1 >&5
5328 rm -f conftest.er1 conftest.err
5329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5330 test $ac_status = 0; }
5332 ac_cpp='$CPP $CPPFLAGS'
5333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
5339 $as_echo_n "checking for absolute libphobos source path... " >&6; }
5340 if ${phobos_cv_abs_srcdir+:} false; then :
5341 $as_echo_n "(cached) " >&6
5343 phobos_cv_abs_srcdir=`cd $srcdir && pwd`
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
5346 $as_echo "$phobos_cv_abs_srcdir" >&6; }
5347 if test -d "$phobos_cv_abs_srcdir"; then :
5350 as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
5356 gdc_save_DFLAGS=$GDCFLAGS
5357 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
5360 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5361 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
5365 $as_echo_n "checking If $GDC can compile D sources... " >&6; }
5366 cat > conftest.$ac_ext <<_ACEOF
5370 extern(C) int main() {
5374 if ac_fn_d_try_compile "$LINENO"; then :
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5376 $as_echo "yes" >&6; }
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379 $as_echo "no" >&6; }
5380 as_fn_error $? "can't compile D sources!" "$LINENO" 5
5382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5384 ac_cpp='$CPP $CPPFLAGS'
5385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5390 GDCFLAGS=$gdc_save_DFLAGS
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5398 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5399 # Check whether --enable-maintainer-mode was given.
5400 if test "${enable_maintainer_mode+set}" = set; then :
5401 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5403 USE_MAINTAINER_MODE=no
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5407 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5408 if test $USE_MAINTAINER_MODE = yes; then
5409 MAINTAINER_MODE_TRUE=
5410 MAINTAINER_MODE_FALSE='#'
5412 MAINTAINER_MODE_TRUE='#'
5413 MAINTAINER_MODE_FALSE=
5416 MAINT=$MAINTAINER_MODE_TRUE
5419 if test -n "$ac_tool_prefix"; then
5420 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5421 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5423 $as_echo_n "checking for $ac_word... " >&6; }
5424 if ${ac_cv_prog_RANLIB+:} false; then :
5425 $as_echo_n "(cached) " >&6
5427 if test -n "$RANLIB"; then
5428 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 test -z "$as_dir" && as_dir=.
5435 for ac_exec_ext in '' $ac_executable_extensions; do
5436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5437 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5447 RANLIB=$ac_cv_prog_RANLIB
5448 if test -n "$RANLIB"; then
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5450 $as_echo "$RANLIB" >&6; }
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453 $as_echo "no" >&6; }
5458 if test -z "$ac_cv_prog_RANLIB"; then
5459 ac_ct_RANLIB=$RANLIB
5460 # Extract the first word of "ranlib", so it can be a program name with args.
5461 set dummy ranlib; ac_word=$2
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463 $as_echo_n "checking for $ac_word... " >&6; }
5464 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5465 $as_echo_n "(cached) " >&6
5467 if test -n "$ac_ct_RANLIB"; then
5468 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5477 ac_cv_prog_ac_ct_RANLIB="ranlib"
5478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5487 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5488 if test -n "$ac_ct_RANLIB"; then
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5490 $as_echo "$ac_ct_RANLIB" >&6; }
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493 $as_echo "no" >&6; }
5496 if test "x$ac_ct_RANLIB" = x; then
5499 case $cross_compiling:$ac_tool_warned in
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5503 ac_tool_warned=yes ;;
5505 RANLIB=$ac_ct_RANLIB
5508 RANLIB="$ac_cv_prog_RANLIB"
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5513 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5515 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5516 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5517 $as_echo_n "(cached) " >&6
5519 cat >conftest.make <<\_ACEOF
5522 @echo '@@@%%%=$(MAKE)=@@@%%%'
5524 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5525 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5527 eval ac_cv_prog_make_${ac_make}_set=yes;;
5529 eval ac_cv_prog_make_${ac_make}_set=no;;
5533 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5535 $as_echo "yes" >&6; }
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539 $as_echo "no" >&6; }
5540 SET_MAKE="MAKE=${MAKE-make}"
5544 # This should be inherited in the recursive make, but ensure it is defined.
5548 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5556 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5561 macro_version='2.2.7a'
5562 macro_revision='1.3134'
5576 ltmain="$ac_aux_dir/ltmain.sh"
5578 # Backslashify metacharacters that are still active within
5579 # double-quoted strings.
5580 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5582 # Same as above, but do not quote variable references.
5583 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5585 # Sed substitution to delay expansion of an escaped shell variable in a
5586 # double_quote_subst'ed string.
5587 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5589 # Sed substitution to delay expansion of an escaped single quote.
5590 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5592 # Sed substitution to avoid accidental globbing in evaled expressions
5593 no_glob_subst='s/\*/\\\*/g'
5595 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5596 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5597 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5600 $as_echo_n "checking how to print strings... " >&6; }
5601 # Test print first, because it will be a builtin if present.
5602 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5603 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5605 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5608 # Use this function as a fallback that always works.
5609 func_fallback_echo ()
5611 eval 'cat <<_LTECHO_EOF
5615 ECHO='func_fallback_echo'
5618 # func_echo_all arg...
5619 # Invoke $ECHO with all args, space-separated.
5626 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5627 $as_echo "printf" >&6; } ;;
5628 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5629 $as_echo "print -r" >&6; } ;;
5630 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5631 $as_echo "cat" >&6; } ;;
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5648 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5649 if ${ac_cv_path_SED+:} false; then :
5650 $as_echo_n "(cached) " >&6
5652 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5653 for ac_i in 1 2 3 4 5 6 7; do
5654 ac_script="$ac_script$as_nl$ac_script"
5656 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5657 { ac_script=; unset ac_script;}
5658 if test -z "$SED"; then
5659 ac_path_SED_found=false
5660 # Loop through the user's path and test for each of PROGNAME-LIST
5661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665 test -z "$as_dir" && as_dir=.
5666 for ac_prog in sed gsed; do
5667 for ac_exec_ext in '' $ac_executable_extensions; do
5668 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5669 as_fn_executable_p "$ac_path_SED" || continue
5670 # Check for GNU ac_path_SED and select it if it is found.
5671 # Check for GNU $ac_path_SED
5672 case `"$ac_path_SED" --version 2>&1` in
5674 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5677 $as_echo_n 0123456789 >"conftest.in"
5680 cat "conftest.in" "conftest.in" >"conftest.tmp"
5681 mv "conftest.tmp" "conftest.in"
5682 cp "conftest.in" "conftest.nl"
5683 $as_echo '' >> "conftest.nl"
5684 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5685 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5686 as_fn_arith $ac_count + 1 && ac_count=$as_val
5687 if test $ac_count -gt ${ac_path_SED_max-0}; then
5688 # Best one so far, save it but keep looking for a better one
5689 ac_cv_path_SED="$ac_path_SED"
5690 ac_path_SED_max=$ac_count
5692 # 10*(2^10) chars as input seems more than enough
5693 test $ac_count -gt 10 && break
5695 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5698 $ac_path_SED_found && break 3
5703 if test -z "$ac_cv_path_SED"; then
5704 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5712 $as_echo "$ac_cv_path_SED" >&6; }
5713 SED="$ac_cv_path_SED"
5716 test -z "$SED" && SED=sed
5717 Xsed="$SED -e 1s/^X//"
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5730 $as_echo_n "checking for fgrep... " >&6; }
5731 if ${ac_cv_path_FGREP+:} false; then :
5732 $as_echo_n "(cached) " >&6
5734 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5735 then ac_cv_path_FGREP="$GREP -F"
5737 if test -z "$FGREP"; then
5738 ac_path_FGREP_found=false
5739 # Loop through the user's path and test for each of PROGNAME-LIST
5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5744 test -z "$as_dir" && as_dir=.
5745 for ac_prog in fgrep; do
5746 for ac_exec_ext in '' $ac_executable_extensions; do
5747 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5748 as_fn_executable_p "$ac_path_FGREP" || continue
5749 # Check for GNU ac_path_FGREP and select it if it is found.
5750 # Check for GNU $ac_path_FGREP
5751 case `"$ac_path_FGREP" --version 2>&1` in
5753 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5756 $as_echo_n 0123456789 >"conftest.in"
5759 cat "conftest.in" "conftest.in" >"conftest.tmp"
5760 mv "conftest.tmp" "conftest.in"
5761 cp "conftest.in" "conftest.nl"
5762 $as_echo 'FGREP' >> "conftest.nl"
5763 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5764 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5765 as_fn_arith $ac_count + 1 && ac_count=$as_val
5766 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5767 # Best one so far, save it but keep looking for a better one
5768 ac_cv_path_FGREP="$ac_path_FGREP"
5769 ac_path_FGREP_max=$ac_count
5771 # 10*(2^10) chars as input seems more than enough
5772 test $ac_count -gt 10 && break
5774 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5777 $ac_path_FGREP_found && break 3
5782 if test -z "$ac_cv_path_FGREP"; then
5783 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5786 ac_cv_path_FGREP=$FGREP
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5792 $as_echo "$ac_cv_path_FGREP" >&6; }
5793 FGREP="$ac_cv_path_FGREP"
5796 test -z "$GREP" && GREP=grep
5816 # Check whether --with-gnu-ld was given.
5817 if test "${with_gnu_ld+set}" = set; then :
5818 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5824 if test "$GCC" = yes; then
5825 # Check if gcc -print-prog-name=ld gives a path.
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5827 $as_echo_n "checking for ld used by $CC... " >&6; }
5830 # gcc leaves a trailing carriage return which upsets mingw
5831 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5833 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5836 # Accept absolute paths.
5838 re_direlt='/[^/][^/]*/\.\./'
5839 # Canonicalize the pathname of ld
5840 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5841 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5842 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5844 test -z "$LD" && LD="$ac_prog"
5847 # If it fails, then pretend we aren't using GCC.
5851 # If it is relative, then search for the first ld in PATH.
5855 elif test "$with_gnu_ld" = yes; then
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5857 $as_echo_n "checking for GNU ld... " >&6; }
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5860 $as_echo_n "checking for non-GNU ld... " >&6; }
5862 if ${lt_cv_path_LD+:} false; then :
5863 $as_echo_n "(cached) " >&6
5865 if test -z "$LD"; then
5866 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5867 for ac_dir in $PATH; do
5869 test -z "$ac_dir" && ac_dir=.
5870 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5871 lt_cv_path_LD="$ac_dir/$ac_prog"
5872 # Check to see if the program is GNU ld. I'd rather use --version,
5873 # but apparently some variants of GNU ld only accept -v.
5874 # Break only if it was the GNU/non-GNU ld that we prefer.
5875 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5876 *GNU* | *'with BFD'*)
5877 test "$with_gnu_ld" != no && break
5880 test "$with_gnu_ld" != yes && break
5887 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5892 if test -n "$LD"; then
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5894 $as_echo "$LD" >&6; }
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897 $as_echo "no" >&6; }
5899 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5901 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5902 if ${lt_cv_prog_gnu_ld+:} false; then :
5903 $as_echo_n "(cached) " >&6
5905 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5906 case `$LD -v 2>&1 </dev/null` in
5907 *GNU* | *'with BFD'*)
5908 lt_cv_prog_gnu_ld=yes
5911 lt_cv_prog_gnu_ld=no
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5916 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5917 with_gnu_ld=$lt_cv_prog_gnu_ld
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5928 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5929 if ${lt_cv_path_NM+:} false; then :
5930 $as_echo_n "(cached) " >&6
5932 if test -n "$NM"; then
5933 # Let the user override the test.
5936 lt_nm_to_check="${ac_tool_prefix}nm"
5937 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5938 lt_nm_to_check="$lt_nm_to_check nm"
5940 for lt_tmp_nm in $lt_nm_to_check; do
5941 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5942 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5944 test -z "$ac_dir" && ac_dir=.
5945 tmp_nm="$ac_dir/$lt_tmp_nm"
5946 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5947 # Check to see if the nm accepts a BSD-compat flag.
5948 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5949 # nm: unknown option "B" ignored
5950 # Tru64's nm complains that /dev/null is an invalid object file
5951 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5952 */dev/null* | *'Invalid file or object type'*)
5953 lt_cv_path_NM="$tmp_nm -B"
5957 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5959 lt_cv_path_NM="$tmp_nm -p"
5963 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5964 continue # so that we can try to find one that supports BSD flags
5973 : ${lt_cv_path_NM=no}
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5977 $as_echo "$lt_cv_path_NM" >&6; }
5978 if test "$lt_cv_path_NM" != "no"; then
5981 # Didn't find any BSD compatible name lister, look for dumpbin.
5982 if test -n "$DUMPBIN"; then :
5983 # Let the user override the test.
5985 if test -n "$ac_tool_prefix"; then
5986 for ac_prog in dumpbin "link -dump"
5988 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5989 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5991 $as_echo_n "checking for $ac_word... " >&6; }
5992 if ${ac_cv_prog_DUMPBIN+:} false; then :
5993 $as_echo_n "(cached) " >&6
5995 if test -n "$DUMPBIN"; then
5996 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002 test -z "$as_dir" && as_dir=.
6003 for ac_exec_ext in '' $ac_executable_extensions; do
6004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6005 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6015 DUMPBIN=$ac_cv_prog_DUMPBIN
6016 if test -n "$DUMPBIN"; then
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6018 $as_echo "$DUMPBIN" >&6; }
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6021 $as_echo "no" >&6; }
6025 test -n "$DUMPBIN" && break
6028 if test -z "$DUMPBIN"; then
6029 ac_ct_DUMPBIN=$DUMPBIN
6030 for ac_prog in dumpbin "link -dump"
6032 # Extract the first word of "$ac_prog", so it can be a program name with args.
6033 set dummy $ac_prog; ac_word=$2
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6035 $as_echo_n "checking for $ac_word... " >&6; }
6036 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6037 $as_echo_n "(cached) " >&6
6039 if test -n "$ac_ct_DUMPBIN"; then
6040 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046 test -z "$as_dir" && as_dir=.
6047 for ac_exec_ext in '' $ac_executable_extensions; do
6048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6049 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6059 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6060 if test -n "$ac_ct_DUMPBIN"; then
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6062 $as_echo "$ac_ct_DUMPBIN" >&6; }
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065 $as_echo "no" >&6; }
6069 test -n "$ac_ct_DUMPBIN" && break
6072 if test "x$ac_ct_DUMPBIN" = x; then
6075 case $cross_compiling:$ac_tool_warned in
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6079 ac_tool_warned=yes ;;
6081 DUMPBIN=$ac_ct_DUMPBIN
6085 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6087 DUMPBIN="$DUMPBIN -symbols"
6095 if test "$DUMPBIN" != ":"; then
6099 test -z "$NM" && NM=nm
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6107 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6108 if ${lt_cv_nm_interface+:} false; then :
6109 $as_echo_n "(cached) " >&6
6111 lt_cv_nm_interface="BSD nm"
6112 echo "int some_variable = 0;" > conftest.$ac_ext
6113 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6114 (eval "$ac_compile" 2>conftest.err)
6115 cat conftest.err >&5
6116 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6117 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6118 cat conftest.err >&5
6119 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6120 cat conftest.out >&5
6121 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6122 lt_cv_nm_interface="MS dumpbin"
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6127 $as_echo "$lt_cv_nm_interface" >&6; }
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6130 $as_echo_n "checking whether ln -s works... " >&6; }
6132 if test "$LN_S" = "ln -s"; then
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6134 $as_echo "yes" >&6; }
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6137 $as_echo "no, using $LN_S" >&6; }
6140 # find the maximum length of command line arguments
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6142 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6143 if ${lt_cv_sys_max_cmd_len+:} false; then :
6144 $as_echo_n "(cached) " >&6
6151 # On DJGPP, this test can blow up pretty badly due to problems in libc
6152 # (any single argument exceeding 2000 bytes causes a buffer overrun
6153 # during glob expansion). Even if it were fixed, the result of this
6154 # check would be larger than it should be.
6155 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6159 # Under GNU Hurd, this test is not required because there is
6160 # no limit to the length of command line arguments.
6161 # Libtool will interpret -1 as no limit whatsoever
6162 lt_cv_sys_max_cmd_len=-1;
6165 cygwin* | mingw* | cegcc*)
6166 # On Win9x/ME, this test blows up -- it succeeds, but takes
6167 # about 5 minutes as the teststring grows exponentially.
6168 # Worse, since 9x/ME are not pre-emptively multitasking,
6169 # you end up with a "frozen" computer, even though with patience
6170 # the test eventually succeeds (with a max line length of 256k).
6171 # Instead, let's just punt: use the minimum linelength reported by
6172 # all of the supported platforms: 8192 (on NT/2K/XP).
6173 lt_cv_sys_max_cmd_len=8192;
6177 # On MiNT this can take a long time and run out of memory.
6178 lt_cv_sys_max_cmd_len=8192;
6182 # On AmigaOS with pdksh, this test takes hours, literally.
6183 # So we just punt and use a minimum line length of 8192.
6184 lt_cv_sys_max_cmd_len=8192;
6187 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6188 # This has been around since 386BSD, at least. Likely further.
6189 if test -x /sbin/sysctl; then
6190 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6191 elif test -x /usr/sbin/sysctl; then
6192 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6194 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6196 # And add a safety zone
6197 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6198 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6202 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6203 lt_cv_sys_max_cmd_len=196608
6207 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6208 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6209 # nice to cause kernel panics so lets avoid the loop below.
6210 # First set a reasonable default.
6211 lt_cv_sys_max_cmd_len=16384
6213 if test -x /sbin/sysconfig; then
6214 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6215 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6220 lt_cv_sys_max_cmd_len=102400
6222 sysv5* | sco5v6* | sysv4.2uw2*)
6223 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6224 if test -n "$kargmax"; then
6225 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6227 lt_cv_sys_max_cmd_len=32768
6231 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6232 if test -n "$lt_cv_sys_max_cmd_len"; then
6233 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6234 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6236 # Make teststring a little bigger before we do anything with it.
6237 # a 1K string should be a reasonable start.
6238 for i in 1 2 3 4 5 6 7 8 ; do
6239 teststring=$teststring$teststring
6241 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6242 # If test is not a shell built-in, we'll probably end up computing a
6243 # maximum length that is only half of the actual maximum length, but
6245 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6246 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6247 test $i != 17 # 1/2 MB should be enough
6250 teststring=$teststring$teststring
6252 # Only check the string length outside the loop.
6253 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6255 # Add a significant safety factor because C++ compilers can tack on
6256 # massive amounts of additional arguments before passing them to the
6257 # linker. It appears as though 1/2 is a usable value.
6258 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6265 if test -n $lt_cv_sys_max_cmd_len ; then
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6267 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6270 $as_echo "none" >&6; }
6272 max_cmd_len=$lt_cv_sys_max_cmd_len
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6284 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6285 # Try some XSI features
6288 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6290 && eval 'test $(( 1 + 1 )) -eq 2 \
6291 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6294 $as_echo "$xsi_shell" >&6; }
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6298 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6300 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6302 && lt_shell_append=yes
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6304 $as_echo "$lt_shell_append" >&6; }
6307 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6317 # test EBCDIC or ASCII
6318 case `echo X|tr X '\101'` in
6319 A) # ASCII based system
6320 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6321 lt_SP2NL='tr \040 \012'
6322 lt_NL2SP='tr \015\012 \040\040'
6324 *) # EBCDIC based system
6325 lt_SP2NL='tr \100 \n'
6326 lt_NL2SP='tr \r\n \100\100'
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6339 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6340 if ${lt_cv_ld_reload_flag+:} false; then :
6341 $as_echo_n "(cached) " >&6
6343 lt_cv_ld_reload_flag='-r'
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6346 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6347 reload_flag=$lt_cv_ld_reload_flag
6348 case $reload_flag in
6350 *) reload_flag=" $reload_flag" ;;
6352 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6355 if test "$GCC" = yes; then
6356 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6358 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6371 if test -n "$ac_tool_prefix"; then
6372 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6373 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6375 $as_echo_n "checking for $ac_word... " >&6; }
6376 if ${ac_cv_prog_OBJDUMP+:} false; then :
6377 $as_echo_n "(cached) " >&6
6379 if test -n "$OBJDUMP"; then
6380 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6386 test -z "$as_dir" && as_dir=.
6387 for ac_exec_ext in '' $ac_executable_extensions; do
6388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6389 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6399 OBJDUMP=$ac_cv_prog_OBJDUMP
6400 if test -n "$OBJDUMP"; then
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6402 $as_echo "$OBJDUMP" >&6; }
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405 $as_echo "no" >&6; }
6410 if test -z "$ac_cv_prog_OBJDUMP"; then
6411 ac_ct_OBJDUMP=$OBJDUMP
6412 # Extract the first word of "objdump", so it can be a program name with args.
6413 set dummy objdump; ac_word=$2
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6415 $as_echo_n "checking for $ac_word... " >&6; }
6416 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6417 $as_echo_n "(cached) " >&6
6419 if test -n "$ac_ct_OBJDUMP"; then
6420 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426 test -z "$as_dir" && as_dir=.
6427 for ac_exec_ext in '' $ac_executable_extensions; do
6428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6429 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6439 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6440 if test -n "$ac_ct_OBJDUMP"; then
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6442 $as_echo "$ac_ct_OBJDUMP" >&6; }
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6445 $as_echo "no" >&6; }
6448 if test "x$ac_ct_OBJDUMP" = x; then
6451 case $cross_compiling:$ac_tool_warned in
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6455 ac_tool_warned=yes ;;
6457 OBJDUMP=$ac_ct_OBJDUMP
6460 OBJDUMP="$ac_cv_prog_OBJDUMP"
6463 test -z "$OBJDUMP" && OBJDUMP=objdump
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6474 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6475 if ${lt_cv_deplibs_check_method+:} false; then :
6476 $as_echo_n "(cached) " >&6
6478 lt_cv_file_magic_cmd='$MAGIC_CMD'
6479 lt_cv_file_magic_test_file=
6480 lt_cv_deplibs_check_method='unknown'
6481 # Need to set the preceding variable on all platforms that support
6482 # interlibrary dependencies.
6483 # 'none' -- dependencies not supported.
6484 # `unknown' -- same as none, but documents that we really don't know.
6485 # 'pass_all' -- all dependencies passed with no checks.
6486 # 'test_compile' -- check by making test program.
6487 # 'file_magic [[regex]]' -- check by looking for files in library path
6488 # which responds to the $file_magic_cmd with a given extended regex.
6489 # If you have `file' or equivalent on your system and you're not sure
6490 # whether `pass_all' will *always* work, you probably want this one.
6494 lt_cv_deplibs_check_method=pass_all
6498 lt_cv_deplibs_check_method=pass_all
6502 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6503 lt_cv_file_magic_cmd='/usr/bin/file -L'
6504 lt_cv_file_magic_test_file=/shlib/libc.so
6508 # func_win32_libid is a shell function defined in ltmain.sh
6509 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6510 lt_cv_file_magic_cmd='func_win32_libid'
6514 # Base MSYS/MinGW do not provide the 'file' command needed by
6515 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6516 # unless we find 'file', for example because we are cross-compiling.
6517 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6518 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6519 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6520 lt_cv_file_magic_cmd='func_win32_libid'
6522 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6523 lt_cv_file_magic_cmd='$OBJDUMP -f'
6528 # use the weaker test based on 'objdump'. See mingw*.
6529 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6530 lt_cv_file_magic_cmd='$OBJDUMP -f'
6533 darwin* | rhapsody*)
6534 lt_cv_deplibs_check_method=pass_all
6537 freebsd* | dragonfly*)
6538 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6541 # Not sure whether the presence of OpenBSD here was a mistake.
6542 # Let's accept both of them until this is cleared up.
6543 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6544 lt_cv_file_magic_cmd=/usr/bin/file
6545 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6549 lt_cv_deplibs_check_method=pass_all
6554 lt_cv_deplibs_check_method=pass_all
6558 lt_cv_deplibs_check_method=pass_all
6561 hpux10.20* | hpux11*)
6562 lt_cv_file_magic_cmd=/usr/bin/file
6565 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6566 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6569 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]'
6570 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6573 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6574 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6580 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6581 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6584 irix5* | irix6* | nonstopux*)
6586 *-32|*"-32 ") libmagic=32-bit;;
6587 *-n32|*"-n32 ") libmagic=N32;;
6588 *-64|*"-64 ") libmagic=64-bit;;
6589 *) libmagic=never-match;;
6591 lt_cv_deplibs_check_method=pass_all
6594 # This must be Linux ELF.
6595 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6596 lt_cv_deplibs_check_method=pass_all
6600 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6601 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6603 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6608 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6609 lt_cv_file_magic_cmd=/usr/bin/file
6610 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6614 lt_cv_deplibs_check_method=pass_all
6618 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6619 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6621 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6625 osf3* | osf4* | osf5*)
6626 lt_cv_deplibs_check_method=pass_all
6630 lt_cv_deplibs_check_method=pass_all
6634 lt_cv_deplibs_check_method=pass_all
6637 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6638 lt_cv_deplibs_check_method=pass_all
6642 case $host_vendor in
6644 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]'
6645 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6648 lt_cv_deplibs_check_method=pass_all
6651 lt_cv_file_magic_cmd='/bin/file'
6652 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6655 lt_cv_file_magic_cmd='/bin/file'
6656 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6657 lt_cv_file_magic_test_file=/lib/libc.so
6660 lt_cv_deplibs_check_method=pass_all
6663 lt_cv_deplibs_check_method=pass_all
6669 lt_cv_deplibs_check_method=pass_all
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6675 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6676 file_magic_cmd=$lt_cv_file_magic_cmd
6677 deplibs_check_method=$lt_cv_deplibs_check_method
6678 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6691 if test -n "$ac_tool_prefix"; then
6692 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6693 set dummy ${ac_tool_prefix}ar; ac_word=$2
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6695 $as_echo_n "checking for $ac_word... " >&6; }
6696 if ${ac_cv_prog_AR+:} false; then :
6697 $as_echo_n "(cached) " >&6
6699 if test -n "$AR"; then
6700 ac_cv_prog_AR="$AR" # Let the user override the test.
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6709 ac_cv_prog_AR="${ac_tool_prefix}ar"
6710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6720 if test -n "$AR"; then
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6722 $as_echo "$AR" >&6; }
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6725 $as_echo "no" >&6; }
6730 if test -z "$ac_cv_prog_AR"; then
6732 # Extract the first word of "ar", so it can be a program name with args.
6733 set dummy ar; ac_word=$2
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6735 $as_echo_n "checking for $ac_word... " >&6; }
6736 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6737 $as_echo_n "(cached) " >&6
6739 if test -n "$ac_ct_AR"; then
6740 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6749 ac_cv_prog_ac_ct_AR="ar"
6750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6759 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6760 if test -n "$ac_ct_AR"; then
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6762 $as_echo "$ac_ct_AR" >&6; }
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765 $as_echo "no" >&6; }
6768 if test "x$ac_ct_AR" = x; then
6771 case $cross_compiling:$ac_tool_warned in
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6775 ac_tool_warned=yes ;;
6783 test -z "$AR" && AR=ar
6784 test -z "$AR_FLAGS" && AR_FLAGS=cru
6796 if test -n "$ac_tool_prefix"; then
6797 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6798 set dummy ${ac_tool_prefix}strip; ac_word=$2
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6800 $as_echo_n "checking for $ac_word... " >&6; }
6801 if ${ac_cv_prog_STRIP+:} false; then :
6802 $as_echo_n "(cached) " >&6
6804 if test -n "$STRIP"; then
6805 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 test -z "$as_dir" && as_dir=.
6812 for ac_exec_ext in '' $ac_executable_extensions; do
6813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6814 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6824 STRIP=$ac_cv_prog_STRIP
6825 if test -n "$STRIP"; then
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6827 $as_echo "$STRIP" >&6; }
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830 $as_echo "no" >&6; }
6835 if test -z "$ac_cv_prog_STRIP"; then
6837 # Extract the first word of "strip", so it can be a program name with args.
6838 set dummy strip; ac_word=$2
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6840 $as_echo_n "checking for $ac_word... " >&6; }
6841 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6842 $as_echo_n "(cached) " >&6
6844 if test -n "$ac_ct_STRIP"; then
6845 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851 test -z "$as_dir" && as_dir=.
6852 for ac_exec_ext in '' $ac_executable_extensions; do
6853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6854 ac_cv_prog_ac_ct_STRIP="strip"
6855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6864 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6865 if test -n "$ac_ct_STRIP"; then
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6867 $as_echo "$ac_ct_STRIP" >&6; }
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6870 $as_echo "no" >&6; }
6873 if test "x$ac_ct_STRIP" = x; then
6876 case $cross_compiling:$ac_tool_warned in
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6880 ac_tool_warned=yes ;;
6885 STRIP="$ac_cv_prog_STRIP"
6888 test -z "$STRIP" && STRIP=:
6895 if test -n "$ac_tool_prefix"; then
6896 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6897 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6899 $as_echo_n "checking for $ac_word... " >&6; }
6900 if ${ac_cv_prog_RANLIB+:} false; then :
6901 $as_echo_n "(cached) " >&6
6903 if test -n "$RANLIB"; then
6904 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910 test -z "$as_dir" && as_dir=.
6911 for ac_exec_ext in '' $ac_executable_extensions; do
6912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6913 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6923 RANLIB=$ac_cv_prog_RANLIB
6924 if test -n "$RANLIB"; then
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6926 $as_echo "$RANLIB" >&6; }
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6929 $as_echo "no" >&6; }
6934 if test -z "$ac_cv_prog_RANLIB"; then
6935 ac_ct_RANLIB=$RANLIB
6936 # Extract the first word of "ranlib", so it can be a program name with args.
6937 set dummy ranlib; ac_word=$2
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6939 $as_echo_n "checking for $ac_word... " >&6; }
6940 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6941 $as_echo_n "(cached) " >&6
6943 if test -n "$ac_ct_RANLIB"; then
6944 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 test -z "$as_dir" && as_dir=.
6951 for ac_exec_ext in '' $ac_executable_extensions; do
6952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6953 ac_cv_prog_ac_ct_RANLIB="ranlib"
6954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6963 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6964 if test -n "$ac_ct_RANLIB"; then
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6966 $as_echo "$ac_ct_RANLIB" >&6; }
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6969 $as_echo "no" >&6; }
6972 if test "x$ac_ct_RANLIB" = x; then
6975 case $cross_compiling:$ac_tool_warned in
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6979 ac_tool_warned=yes ;;
6981 RANLIB=$ac_ct_RANLIB
6984 RANLIB="$ac_cv_prog_RANLIB"
6987 test -z "$RANLIB" && RANLIB=:
6994 # Determine commands to create old-style static archives.
6995 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6996 old_postinstall_cmds='chmod 644 $oldlib'
6997 old_postuninstall_cmds=
6999 if test -n "$RANLIB"; then
7002 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7005 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7008 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7013 lock_old_archive_extraction=yes ;;
7015 lock_old_archive_extraction=no ;;
7056 # If no C compiler was specified, use CC.
7059 # If no C compiler flags were specified, use CFLAGS.
7060 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7062 # Allow CC to be a program name with arguments.
7066 # Check for command to grab the raw symbol name followed by C symbol from nm.
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7068 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7069 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7070 $as_echo_n "(cached) " >&6
7073 # These are sane defaults that work on at least a few old systems.
7074 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7076 # Character class describing NM global symbol codes.
7077 symcode='[BCDEGRST]'
7079 # Regexp to match symbols that can be accessed directly from C.
7080 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7082 # Define system-specific variables.
7087 cygwin* | mingw* | pw32* | cegcc*)
7088 symcode='[ABCDGISTW]'
7091 if test "$host_cpu" = ia64; then
7092 symcode='[ABCDEGRST]'
7096 symcode='[BCDEGRST]'
7099 symcode='[BCDEGQRST]'
7110 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7118 # If we're using GNU nm, then use its standard symbol codes.
7119 case `$NM -V 2>&1` in
7120 *GNU* | *'with BFD'*)
7121 symcode='[ABCDGIRSTW]' ;;
7124 # Transform an extracted symbol line into a proper C declaration.
7125 # Some systems (esp. on ia64) link data and code symbols differently,
7126 # so use this general approach.
7127 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7129 # Transform an extracted symbol line into symbol name and symbol address
7130 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7131 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'"
7133 # Handle CRLF in mingw tool chain
7137 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7141 # Try without a prefix underscore, then with it.
7142 for ac_symprfx in "" "_"; do
7144 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7145 symxfrm="\\1 $ac_symprfx\\2 \\2"
7147 # Write the raw and C identifiers.
7148 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7149 # Fake it for dumpbin and say T for any non-static function
7150 # and D for any global variable.
7151 # Also find C++ and __fastcall symbols from MSVC++,
7152 # which start with @ or ?.
7153 lt_cv_sys_global_symbol_pipe="$AWK '"\
7154 " {last_section=section; section=\$ 3};"\
7155 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7156 " \$ 0!~/External *\|/{next};"\
7157 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7158 " {if(hide[section]) next};"\
7159 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7160 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7161 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7162 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7163 " ' prfx=^$ac_symprfx"
7165 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7168 # Check to see that the pipe works correctly.
7172 cat > conftest.$ac_ext <<_LT_EOF
7177 void nm_test_func(void);
7178 void nm_test_func(void){}
7182 int main(){nm_test_var='a';nm_test_func();return(0);}
7185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7186 (eval $ac_compile) 2>&5
7188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7189 test $ac_status = 0; }; then
7190 # Now try to grab the symbols.
7192 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7193 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7196 test $ac_status = 0; } && test -s "$nlist"; then
7197 # Try sorting and uniquifying the output.
7198 if sort "$nlist" | uniq > "$nlist"T; then
7199 mv -f "$nlist"T "$nlist"
7204 # Make sure that we snagged all the symbols we need.
7205 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7206 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7207 cat <<_LT_EOF > conftest.$ac_ext
7213 # Now generate the symbol file.
7214 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7216 cat <<_LT_EOF >> conftest.$ac_ext
7218 /* The mapping between symbol names and symbols. */
7223 lt__PROGRAM__LTX_preloaded_symbols[] =
7225 { "@PROGRAM@", (void *) 0 },
7227 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7228 cat <<\_LT_EOF >> conftest.$ac_ext
7232 /* This works around a problem in FreeBSD linker */
7233 #ifdef FREEBSD_WORKAROUND
7234 static const void *lt_preloaded_setup() {
7235 return lt__PROGRAM__LTX_preloaded_symbols;
7243 # Now try linking the two files.
7244 mv conftest.$ac_objext conftstm.$ac_objext
7245 lt_save_LIBS="$LIBS"
7246 lt_save_CFLAGS="$CFLAGS"
7247 LIBS="conftstm.$ac_objext"
7248 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7250 (eval $ac_link) 2>&5
7252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7253 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7256 LIBS="$lt_save_LIBS"
7257 CFLAGS="$lt_save_CFLAGS"
7259 echo "cannot find nm_test_func in $nlist" >&5
7262 echo "cannot find nm_test_var in $nlist" >&5
7265 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7268 echo "$progname: failed program was:" >&5
7269 cat conftest.$ac_ext >&5
7271 rm -rf conftest* conftst*
7273 # Do not use the global_symbol_pipe unless it works.
7274 if test "$pipe_works" = yes; then
7277 lt_cv_sys_global_symbol_pipe=
7283 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7284 lt_cv_sys_global_symbol_to_cdecl=
7286 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7288 $as_echo "failed" >&6; }
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7291 $as_echo "ok" >&6; }
7315 # Check whether --enable-libtool-lock was given.
7316 if test "${enable_libtool_lock+set}" = set; then :
7317 enableval=$enable_libtool_lock;
7320 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7322 # Some flags need to be propagated to the compiler or linker for good
7326 # Find out which ABI we are using.
7327 echo 'int i;' > conftest.$ac_ext
7328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7329 (eval $ac_compile) 2>&5
7331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7332 test $ac_status = 0; }; then
7333 case `/usr/bin/file conftest.$ac_objext` in
7345 # Find out which ABI we are using.
7346 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7348 (eval $ac_compile) 2>&5
7350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7351 test $ac_status = 0; }; then
7352 if test "$lt_cv_prog_gnu_ld" = yes; then
7353 case `/usr/bin/file conftest.$ac_objext` in
7355 LD="${LD-ld} -melf32bsmip"
7358 LD="${LD-ld} -melf32bmipn32"
7361 LD="${LD-ld} -melf64bmip"
7365 case `/usr/bin/file conftest.$ac_objext` in
7381 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7382 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7383 # Find out which ABI we are using.
7384 echo 'int i;' > conftest.$ac_ext
7385 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7386 (eval $ac_compile) 2>&5
7388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7389 test $ac_status = 0; }; then
7390 case `/usr/bin/file conftest.o` in
7393 x86_64-*kfreebsd*-gnu)
7394 LD="${LD-ld} -m elf_i386_fbsd"
7397 case `/usr/bin/file conftest.o` in
7399 LD="${LD-ld} -m elf32_x86_64"
7402 LD="${LD-ld} -m elf_i386"
7406 powerpc64le-*linux*)
7407 LD="${LD-ld} -m elf32lppclinux"
7410 LD="${LD-ld} -m elf32ppclinux"
7413 LD="${LD-ld} -m elf_s390"
7416 LD="${LD-ld} -m elf32_sparc"
7422 x86_64-*kfreebsd*-gnu)
7423 LD="${LD-ld} -m elf_x86_64_fbsd"
7426 LD="${LD-ld} -m elf_x86_64"
7429 LD="${LD-ld} -m elf64lppc"
7432 LD="${LD-ld} -m elf64ppc"
7434 s390*-*linux*|s390*-*tpf*)
7435 LD="${LD-ld} -m elf64_s390"
7438 LD="${LD-ld} -m elf64_sparc"
7448 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7449 SAVE_CFLAGS="$CFLAGS"
7450 CFLAGS="$CFLAGS -belf"
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7452 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7453 if ${lt_cv_cc_needs_belf+:} false; then :
7454 $as_echo_n "(cached) " >&6
7457 ac_cpp='$CPP $CPPFLAGS'
7458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463 /* end confdefs.h. */
7473 if ac_fn_c_try_link "$LINENO"; then :
7474 lt_cv_cc_needs_belf=yes
7476 lt_cv_cc_needs_belf=no
7478 rm -f core conftest.err conftest.$ac_objext \
7479 conftest$ac_exeext conftest.$ac_ext
7481 ac_cpp='$CPP $CPPFLAGS'
7482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7488 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7489 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7490 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7491 CFLAGS="$SAVE_CFLAGS"
7495 # Find out which ABI we are using.
7496 echo 'int i;' > conftest.$ac_ext
7497 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7498 (eval $ac_compile) 2>&5
7500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7501 test $ac_status = 0; }; then
7502 case `/usr/bin/file conftest.o` in
7504 case $lt_cv_prog_gnu_ld in
7505 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7507 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7519 need_locks="$enable_libtool_lock"
7523 rhapsody* | darwin*)
7524 if test -n "$ac_tool_prefix"; then
7525 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7526 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7528 $as_echo_n "checking for $ac_word... " >&6; }
7529 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7530 $as_echo_n "(cached) " >&6
7532 if test -n "$DSYMUTIL"; then
7533 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539 test -z "$as_dir" && as_dir=.
7540 for ac_exec_ext in '' $ac_executable_extensions; do
7541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7542 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7552 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7553 if test -n "$DSYMUTIL"; then
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7555 $as_echo "$DSYMUTIL" >&6; }
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558 $as_echo "no" >&6; }
7563 if test -z "$ac_cv_prog_DSYMUTIL"; then
7564 ac_ct_DSYMUTIL=$DSYMUTIL
7565 # Extract the first word of "dsymutil", so it can be a program name with args.
7566 set dummy dsymutil; ac_word=$2
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7568 $as_echo_n "checking for $ac_word... " >&6; }
7569 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7570 $as_echo_n "(cached) " >&6
7572 if test -n "$ac_ct_DSYMUTIL"; then
7573 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579 test -z "$as_dir" && as_dir=.
7580 for ac_exec_ext in '' $ac_executable_extensions; do
7581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7582 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7592 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7593 if test -n "$ac_ct_DSYMUTIL"; then
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7595 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598 $as_echo "no" >&6; }
7601 if test "x$ac_ct_DSYMUTIL" = x; then
7604 case $cross_compiling:$ac_tool_warned in
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7608 ac_tool_warned=yes ;;
7610 DSYMUTIL=$ac_ct_DSYMUTIL
7613 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7616 if test -n "$ac_tool_prefix"; then
7617 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7618 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7620 $as_echo_n "checking for $ac_word... " >&6; }
7621 if ${ac_cv_prog_NMEDIT+:} false; then :
7622 $as_echo_n "(cached) " >&6
7624 if test -n "$NMEDIT"; then
7625 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631 test -z "$as_dir" && as_dir=.
7632 for ac_exec_ext in '' $ac_executable_extensions; do
7633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7634 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7644 NMEDIT=$ac_cv_prog_NMEDIT
7645 if test -n "$NMEDIT"; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7647 $as_echo "$NMEDIT" >&6; }
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650 $as_echo "no" >&6; }
7655 if test -z "$ac_cv_prog_NMEDIT"; then
7656 ac_ct_NMEDIT=$NMEDIT
7657 # Extract the first word of "nmedit", so it can be a program name with args.
7658 set dummy nmedit; ac_word=$2
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7660 $as_echo_n "checking for $ac_word... " >&6; }
7661 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7662 $as_echo_n "(cached) " >&6
7664 if test -n "$ac_ct_NMEDIT"; then
7665 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671 test -z "$as_dir" && as_dir=.
7672 for ac_exec_ext in '' $ac_executable_extensions; do
7673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7674 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7684 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7685 if test -n "$ac_ct_NMEDIT"; then
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7687 $as_echo "$ac_ct_NMEDIT" >&6; }
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690 $as_echo "no" >&6; }
7693 if test "x$ac_ct_NMEDIT" = x; then
7696 case $cross_compiling:$ac_tool_warned in
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7700 ac_tool_warned=yes ;;
7702 NMEDIT=$ac_ct_NMEDIT
7705 NMEDIT="$ac_cv_prog_NMEDIT"
7708 if test -n "$ac_tool_prefix"; then
7709 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7710 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712 $as_echo_n "checking for $ac_word... " >&6; }
7713 if ${ac_cv_prog_LIPO+:} false; then :
7714 $as_echo_n "(cached) " >&6
7716 if test -n "$LIPO"; then
7717 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7723 test -z "$as_dir" && as_dir=.
7724 for ac_exec_ext in '' $ac_executable_extensions; do
7725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7726 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7736 LIPO=$ac_cv_prog_LIPO
7737 if test -n "$LIPO"; then
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7739 $as_echo "$LIPO" >&6; }
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742 $as_echo "no" >&6; }
7747 if test -z "$ac_cv_prog_LIPO"; then
7749 # Extract the first word of "lipo", so it can be a program name with args.
7750 set dummy lipo; ac_word=$2
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7752 $as_echo_n "checking for $ac_word... " >&6; }
7753 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7754 $as_echo_n "(cached) " >&6
7756 if test -n "$ac_ct_LIPO"; then
7757 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 test -z "$as_dir" && as_dir=.
7764 for ac_exec_ext in '' $ac_executable_extensions; do
7765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7766 ac_cv_prog_ac_ct_LIPO="lipo"
7767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7776 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7777 if test -n "$ac_ct_LIPO"; then
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7779 $as_echo "$ac_ct_LIPO" >&6; }
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7782 $as_echo "no" >&6; }
7785 if test "x$ac_ct_LIPO" = x; then
7788 case $cross_compiling:$ac_tool_warned in
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7792 ac_tool_warned=yes ;;
7797 LIPO="$ac_cv_prog_LIPO"
7800 if test -n "$ac_tool_prefix"; then
7801 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7802 set dummy ${ac_tool_prefix}otool; ac_word=$2
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7804 $as_echo_n "checking for $ac_word... " >&6; }
7805 if ${ac_cv_prog_OTOOL+:} false; then :
7806 $as_echo_n "(cached) " >&6
7808 if test -n "$OTOOL"; then
7809 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815 test -z "$as_dir" && as_dir=.
7816 for ac_exec_ext in '' $ac_executable_extensions; do
7817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7818 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7828 OTOOL=$ac_cv_prog_OTOOL
7829 if test -n "$OTOOL"; then
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7831 $as_echo "$OTOOL" >&6; }
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7834 $as_echo "no" >&6; }
7839 if test -z "$ac_cv_prog_OTOOL"; then
7841 # Extract the first word of "otool", so it can be a program name with args.
7842 set dummy otool; ac_word=$2
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7844 $as_echo_n "checking for $ac_word... " >&6; }
7845 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7846 $as_echo_n "(cached) " >&6
7848 if test -n "$ac_ct_OTOOL"; then
7849 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855 test -z "$as_dir" && as_dir=.
7856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7858 ac_cv_prog_ac_ct_OTOOL="otool"
7859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7868 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7869 if test -n "$ac_ct_OTOOL"; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7871 $as_echo "$ac_ct_OTOOL" >&6; }
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874 $as_echo "no" >&6; }
7877 if test "x$ac_ct_OTOOL" = x; then
7880 case $cross_compiling:$ac_tool_warned in
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7884 ac_tool_warned=yes ;;
7889 OTOOL="$ac_cv_prog_OTOOL"
7892 if test -n "$ac_tool_prefix"; then
7893 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7894 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7896 $as_echo_n "checking for $ac_word... " >&6; }
7897 if ${ac_cv_prog_OTOOL64+:} false; then :
7898 $as_echo_n "(cached) " >&6
7900 if test -n "$OTOOL64"; then
7901 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7907 test -z "$as_dir" && as_dir=.
7908 for ac_exec_ext in '' $ac_executable_extensions; do
7909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7910 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7920 OTOOL64=$ac_cv_prog_OTOOL64
7921 if test -n "$OTOOL64"; then
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7923 $as_echo "$OTOOL64" >&6; }
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7926 $as_echo "no" >&6; }
7931 if test -z "$ac_cv_prog_OTOOL64"; then
7932 ac_ct_OTOOL64=$OTOOL64
7933 # Extract the first word of "otool64", so it can be a program name with args.
7934 set dummy otool64; ac_word=$2
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7936 $as_echo_n "checking for $ac_word... " >&6; }
7937 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7938 $as_echo_n "(cached) " >&6
7940 if test -n "$ac_ct_OTOOL64"; then
7941 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947 test -z "$as_dir" && as_dir=.
7948 for ac_exec_ext in '' $ac_executable_extensions; do
7949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7950 ac_cv_prog_ac_ct_OTOOL64="otool64"
7951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7960 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7961 if test -n "$ac_ct_OTOOL64"; then
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7963 $as_echo "$ac_ct_OTOOL64" >&6; }
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966 $as_echo "no" >&6; }
7969 if test "x$ac_ct_OTOOL64" = x; then
7972 case $cross_compiling:$ac_tool_warned in
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7976 ac_tool_warned=yes ;;
7978 OTOOL64=$ac_ct_OTOOL64
7981 OTOOL64="$ac_cv_prog_OTOOL64"
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8011 $as_echo_n "checking for -single_module linker flag... " >&6; }
8012 if ${lt_cv_apple_cc_single_mod+:} false; then :
8013 $as_echo_n "(cached) " >&6
8015 lt_cv_apple_cc_single_mod=no
8016 if test -z "${LT_MULTI_MODULE}"; then
8017 # By default we will add the -single_module flag. You can override
8018 # by either setting the environment variable LT_MULTI_MODULE
8019 # non-empty at configure time, or by adding -multi_module to the
8021 rm -rf libconftest.dylib*
8022 echo "int foo(void){return 1;}" > conftest.c
8023 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8024 -dynamiclib -Wl,-single_module conftest.c" >&5
8025 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8026 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8028 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8029 lt_cv_apple_cc_single_mod=yes
8031 cat conftest.err >&5
8033 rm -rf libconftest.dylib*
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8038 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8040 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8041 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8042 $as_echo_n "(cached) " >&6
8044 lt_cv_ld_exported_symbols_list=no
8045 save_LDFLAGS=$LDFLAGS
8046 echo "_main" > conftest.sym
8047 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h. */
8059 if ac_fn_c_try_link "$LINENO"; then :
8060 lt_cv_ld_exported_symbols_list=yes
8062 lt_cv_ld_exported_symbols_list=no
8064 rm -f core conftest.err conftest.$ac_objext \
8065 conftest$ac_exeext conftest.$ac_ext
8066 LDFLAGS="$save_LDFLAGS"
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8070 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8072 $as_echo_n "checking for -force_load linker flag... " >&6; }
8073 if ${lt_cv_ld_force_load+:} false; then :
8074 $as_echo_n "(cached) " >&6
8076 lt_cv_ld_force_load=no
8077 cat > conftest.c << _LT_EOF
8078 int forced_loaded() { return 2;}
8080 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8081 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8082 echo "$AR cru libconftest.a conftest.o" >&5
8083 $AR cru libconftest.a conftest.o 2>&5
8084 cat > conftest.c << _LT_EOF
8085 int main() { return 0;}
8087 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8088 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8090 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8091 lt_cv_ld_force_load=yes
8093 cat conftest.err >&5
8095 rm -f conftest.err libconftest.a conftest conftest.c
8096 rm -rf conftest.dSYM
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8100 $as_echo "$lt_cv_ld_force_load" >&6; }
8102 rhapsody* | darwin1.[012])
8103 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8105 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8106 darwin*) # darwin 5.x on
8107 # if running on 10.5 or later, the deployment target defaults
8108 # to the OS version, if on x86, and 10.4, the deployment
8109 # target defaults to 10.4. Don't you love it?
8110 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8111 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8112 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8114 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8116 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8120 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8121 _lt_dar_single_mod='$single_module'
8123 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8124 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8126 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8128 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8129 _lt_dsymutil='~$DSYMUTIL $lib || :'
8136 for ac_header in dlfcn.h
8138 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8140 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8141 cat >>confdefs.h <<_ACEOF
8142 #define HAVE_DLFCN_H 1
8162 # Check whether --enable-shared was given.
8163 if test "${enable_shared+set}" = set; then :
8164 enableval=$enable_shared; p=${PACKAGE-default}
8166 yes) enable_shared=yes ;;
8167 no) enable_shared=no ;;
8170 # Look at the argument we got. We use all the common list separators.
8171 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8172 for pkg in $enableval; do
8174 if test "X$pkg" = "X$p"; then
8193 # Check whether --enable-static was given.
8194 if test "${enable_static+set}" = set; then :
8195 enableval=$enable_static; p=${PACKAGE-default}
8197 yes) enable_static=yes ;;
8198 no) enable_static=no ;;
8201 # Look at the argument we got. We use all the common list separators.
8202 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8203 for pkg in $enableval; do
8205 if test "X$pkg" = "X$p"; then
8225 # Check whether --with-pic was given.
8226 if test "${with_pic+set}" = set; then :
8227 withval=$with_pic; pic_mode="$withval"
8233 test -z "$pic_mode" && pic_mode=default
8241 # Check whether --enable-fast-install was given.
8242 if test "${enable_fast_install+set}" = set; then :
8243 enableval=$enable_fast_install; p=${PACKAGE-default}
8245 yes) enable_fast_install=yes ;;
8246 no) enable_fast_install=no ;;
8248 enable_fast_install=no
8249 # Look at the argument we got. We use all the common list separators.
8250 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8251 for pkg in $enableval; do
8253 if test "X$pkg" = "X$p"; then
8254 enable_fast_install=yes
8261 enable_fast_install=yes
8274 # This can be used to rebuild libtool when needed
8275 LIBTOOL_DEPS="$ltmain"
8277 # Always use our own libtool.
8278 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8305 test -z "$LN_S" && LN_S="ln -s"
8320 if test -n "${ZSH_VERSION+set}" ; then
8321 setopt NO_GLOB_SUBST
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8325 $as_echo_n "checking for objdir... " >&6; }
8326 if ${lt_cv_objdir+:} false; then :
8327 $as_echo_n "(cached) " >&6
8329 rm -f .libs 2>/dev/null
8330 mkdir .libs 2>/dev/null
8331 if test -d .libs; then
8334 # MS-DOS does not allow filenames that begin with a dot.
8337 rmdir .libs 2>/dev/null
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8340 $as_echo "$lt_cv_objdir" >&6; }
8341 objdir=$lt_cv_objdir
8347 cat >>confdefs.h <<_ACEOF
8348 #define LT_OBJDIR "$lt_cv_objdir/"
8356 # AIX sometimes has problems with the GCC collect2 program. For some
8357 # reason, if we set the COLLECT_NAMES environment variable, the problems
8358 # vanish in a puff of smoke.
8359 if test "X${COLLECT_NAMES+set}" != Xset; then
8361 export COLLECT_NAMES
8368 can_build_shared=yes
8370 # All known linkers require a `.a' archive for static linking (except MSVC,
8371 # which needs '.lib').
8374 with_gnu_ld="$lt_cv_prog_gnu_ld"
8377 old_CFLAGS="$CFLAGS"
8379 # Set sane defaults for various variables
8380 test -z "$CC" && CC=cc
8381 test -z "$LTCC" && LTCC=$CC
8382 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8383 test -z "$LD" && LD=ld
8384 test -z "$ac_objext" && ac_objext=o
8386 for cc_temp in $compiler""; do
8388 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8389 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8394 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8397 # Only perform the check for file, if the check method requires it
8398 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8399 case $deplibs_check_method in
8401 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8403 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8404 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8405 $as_echo_n "(cached) " >&6
8409 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8412 lt_save_MAGIC_CMD="$MAGIC_CMD"
8413 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8414 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8415 for ac_dir in $ac_dummy; do
8417 test -z "$ac_dir" && ac_dir=.
8418 if test -f $ac_dir/${ac_tool_prefix}file; then
8419 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8420 if test -n "$file_magic_test_file"; then
8421 case $deplibs_check_method in
8423 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8424 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8425 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8426 $EGREP "$file_magic_regex" > /dev/null; then
8431 *** Warning: the command libtool uses to detect shared libraries,
8432 *** $file_magic_cmd, produces output that libtool cannot recognize.
8433 *** The result is that libtool may fail to recognize shared libraries
8434 *** as such. This will affect the creation of libtool libraries that
8435 *** depend on shared libraries, but programs linked with such libtool
8436 *** libraries will work regardless of this problem. Nevertheless, you
8437 *** may want to report the problem to your system manager and/or to
8438 *** bug-libtool@gnu.org
8448 MAGIC_CMD="$lt_save_MAGIC_CMD"
8453 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8454 if test -n "$MAGIC_CMD"; then
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8456 $as_echo "$MAGIC_CMD" >&6; }
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8459 $as_echo "no" >&6; }
8466 if test -z "$lt_cv_path_MAGIC_CMD"; then
8467 if test -n "$ac_tool_prefix"; then
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8469 $as_echo_n "checking for file... " >&6; }
8470 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8471 $as_echo_n "(cached) " >&6
8475 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8478 lt_save_MAGIC_CMD="$MAGIC_CMD"
8479 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8480 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8481 for ac_dir in $ac_dummy; do
8483 test -z "$ac_dir" && ac_dir=.
8484 if test -f $ac_dir/file; then
8485 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8486 if test -n "$file_magic_test_file"; then
8487 case $deplibs_check_method in
8489 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8490 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8491 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8492 $EGREP "$file_magic_regex" > /dev/null; then
8497 *** Warning: the command libtool uses to detect shared libraries,
8498 *** $file_magic_cmd, produces output that libtool cannot recognize.
8499 *** The result is that libtool may fail to recognize shared libraries
8500 *** as such. This will affect the creation of libtool libraries that
8501 *** depend on shared libraries, but programs linked with such libtool
8502 *** libraries will work regardless of this problem. Nevertheless, you
8503 *** may want to report the problem to your system manager and/or to
8504 *** bug-libtool@gnu.org
8514 MAGIC_CMD="$lt_save_MAGIC_CMD"
8519 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8520 if test -n "$MAGIC_CMD"; then
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8522 $as_echo "$MAGIC_CMD" >&6; }
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8525 $as_echo "no" >&6; }
8538 # Use C for the default configuration in the libtool script
8542 ac_cpp='$CPP $CPPFLAGS'
8543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8548 # Source file extension for C test sources.
8551 # Object file extension for compiled C test sources.
8555 # Code to be used in simple compile tests
8556 lt_simple_compile_test_code="int some_variable = 0;"
8558 # Code to be used in simple link tests
8559 lt_simple_link_test_code='int main(){return(0);}'
8567 # If no C compiler was specified, use CC.
8570 # If no C compiler flags were specified, use CFLAGS.
8571 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8573 # Allow CC to be a program name with arguments.
8576 # Save the default compiler, since it gets overwritten when the other
8577 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8578 compiler_DEFAULT=$CC
8580 # save warnings/boilerplate of simple test code
8581 ac_outfile=conftest.$ac_objext
8582 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8583 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8584 _lt_compiler_boilerplate=`cat conftest.err`
8587 ac_outfile=conftest.$ac_objext
8588 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8589 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8590 _lt_linker_boilerplate=`cat conftest.err`
8595 ## There is no encapsulation within the following macros, do not change
8596 ## the running order or otherwise move them around unless you know exactly
8597 ## what you are doing...
8598 if test -n "$compiler"; then
8600 lt_prog_compiler_no_builtin_flag=
8602 if test "$GCC" = yes; then
8603 case $cc_basename in
8605 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8607 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8611 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8612 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8613 $as_echo_n "(cached) " >&6
8615 lt_cv_prog_compiler_rtti_exceptions=no
8616 ac_outfile=conftest.$ac_objext
8617 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8618 lt_compiler_flag="-fno-rtti -fno-exceptions"
8619 # Insert the option either (1) after the last *FLAGS variable, or
8620 # (2) before a word containing "conftest.", or (3) at the end.
8621 # Note that $ac_compile itself does not contain backslashes and begins
8622 # with a dollar sign (not a hyphen), so the echo should work correctly.
8623 # The option is referenced via a variable to avoid confusing sed.
8624 lt_compile=`echo "$ac_compile" | $SED \
8625 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8626 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8627 -e 's:$: $lt_compiler_flag:'`
8628 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8629 (eval "$lt_compile" 2>conftest.err)
8631 cat conftest.err >&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 if (exit $ac_status) && test -s "$ac_outfile"; then
8634 # The compiler can only warn and ignore the option if not recognized
8635 # So say no if there are warnings other than the usual output.
8636 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8637 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8638 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8639 lt_cv_prog_compiler_rtti_exceptions=yes
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8646 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8648 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8649 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8661 lt_prog_compiler_wl=
8662 lt_prog_compiler_pic=
8663 lt_prog_compiler_static=
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8666 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8668 if test "$GCC" = yes; then
8669 lt_prog_compiler_wl='-Wl,'
8670 lt_prog_compiler_static='-static'
8674 # All AIX code is PIC.
8675 if test "$host_cpu" = ia64; then
8676 # AIX 5 now supports IA64 processor
8677 lt_prog_compiler_static='-Bstatic'
8679 lt_prog_compiler_pic='-fPIC'
8685 # see comment about AmigaOS4 .so support
8686 lt_prog_compiler_pic='-fPIC'
8689 # FIXME: we need at least 68020 code to build shared libraries, but
8690 # adding the `-m68020' flag to GCC prevents building anything better,
8692 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8697 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8698 # PIC is the default for these OSes.
8701 mingw* | cygwin* | pw32* | os2* | cegcc*)
8702 # This hack is so that the source file can tell whether it is being
8703 # built for inclusion in a dll (and should export symbols for example).
8704 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8705 # (--disable-auto-import) libraries
8706 lt_prog_compiler_pic='-DDLL_EXPORT'
8709 darwin* | rhapsody*)
8710 # PIC is the default on this platform
8711 # Common symbols not allowed in MH_DYLIB files
8712 lt_prog_compiler_pic='-fno-common'
8716 # PIC is the default for Haiku.
8717 # The "-static" flag exists, but is broken.
8718 lt_prog_compiler_static=
8722 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8723 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8724 # sets the default TLS model and affects inlining.
8730 lt_prog_compiler_pic='-fPIC'
8736 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8737 # Instead, we relocate shared libraries at runtime.
8741 # Just because we use GCC doesn't mean we suddenly get shared libraries
8742 # on systems that don't support them.
8743 lt_prog_compiler_can_build_shared=no
8748 # QNX uses GNU C++, but need to define -shared option too, otherwise
8750 lt_prog_compiler_pic='-fPIC -shared'
8754 if test -d /usr/nec; then
8755 lt_prog_compiler_pic=-Kconform_pic
8760 lt_prog_compiler_pic='-fPIC'
8764 case $cc_basename in
8765 nvcc*) # Cuda Compiler Driver 2.2
8766 lt_prog_compiler_wl='-Xlinker '
8767 lt_prog_compiler_pic='-Xcompiler -fPIC'
8771 # PORTME Check for flag to pass linker flags through the system compiler.
8774 lt_prog_compiler_wl='-Wl,'
8775 if test "$host_cpu" = ia64; then
8776 # AIX 5 now supports IA64 processor
8777 lt_prog_compiler_static='-Bstatic'
8779 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8783 mingw* | cygwin* | pw32* | os2* | cegcc*)
8784 # This hack is so that the source file can tell whether it is being
8785 # built for inclusion in a dll (and should export symbols for example).
8786 lt_prog_compiler_pic='-DDLL_EXPORT'
8789 hpux9* | hpux10* | hpux11*)
8790 lt_prog_compiler_wl='-Wl,'
8791 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8798 lt_prog_compiler_pic='+Z'
8801 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8802 lt_prog_compiler_static='${wl}-a ${wl}archive'
8805 irix5* | irix6* | nonstopux*)
8806 lt_prog_compiler_wl='-Wl,'
8807 # PIC (with -KPIC) is the default.
8808 lt_prog_compiler_static='-non_shared'
8811 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8812 case $cc_basename in
8813 # old Intel for x86_64 which still supported -KPIC.
8815 lt_prog_compiler_wl='-Wl,'
8816 lt_prog_compiler_pic='-KPIC'
8817 lt_prog_compiler_static='-static'
8819 # icc used to be incompatible with GCC.
8820 # ICC 10 doesn't accept -KPIC any more.
8822 lt_prog_compiler_wl='-Wl,'
8823 lt_prog_compiler_pic='-fPIC'
8824 lt_prog_compiler_static='-static'
8826 # Lahey Fortran 8.1.
8828 lt_prog_compiler_wl='-Wl,'
8829 lt_prog_compiler_pic='--shared'
8830 lt_prog_compiler_static='--static'
8832 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8833 # Portland Group compilers (*not* the Pentium gcc compiler,
8834 # which looks to be a dead project)
8835 lt_prog_compiler_wl='-Wl,'
8836 lt_prog_compiler_pic='-fpic'
8837 lt_prog_compiler_static='-Bstatic'
8840 lt_prog_compiler_wl='-Wl,'
8841 # All Alpha code is PIC.
8842 lt_prog_compiler_static='-non_shared'
8844 xl* | bgxl* | bgf* | mpixl*)
8845 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8846 lt_prog_compiler_wl='-Wl,'
8847 lt_prog_compiler_pic='-qpic'
8848 lt_prog_compiler_static='-qstaticlink'
8851 case `$CC -V 2>&1 | sed 5q` in
8852 *Sun\ F* | *Sun*Fortran*)
8853 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8854 lt_prog_compiler_pic='-KPIC'
8855 lt_prog_compiler_static='-Bstatic'
8856 lt_prog_compiler_wl=''
8860 lt_prog_compiler_pic='-KPIC'
8861 lt_prog_compiler_static='-Bstatic'
8862 lt_prog_compiler_wl='-Wl,'
8870 lt_prog_compiler_pic='-KPIC'
8871 lt_prog_compiler_static='-Bstatic'
8875 # QNX uses GNU C++, but need to define -shared option too, otherwise
8877 lt_prog_compiler_pic='-fPIC -shared'
8880 osf3* | osf4* | osf5*)
8881 lt_prog_compiler_wl='-Wl,'
8882 # All OSF/1 code is PIC.
8883 lt_prog_compiler_static='-non_shared'
8887 lt_prog_compiler_static='-non_shared'
8891 lt_prog_compiler_pic='-KPIC'
8892 lt_prog_compiler_static='-Bstatic'
8893 case $cc_basename in
8895 lt_prog_compiler_wl='-Qoption ld ';;
8897 lt_prog_compiler_wl='-Wl,';;
8902 lt_prog_compiler_wl='-Qoption ld '
8903 lt_prog_compiler_pic='-PIC'
8904 lt_prog_compiler_static='-Bstatic'
8907 sysv4 | sysv4.2uw2* | sysv4.3*)
8908 lt_prog_compiler_wl='-Wl,'
8909 lt_prog_compiler_pic='-KPIC'
8910 lt_prog_compiler_static='-Bstatic'
8914 if test -d /usr/nec ;then
8915 lt_prog_compiler_pic='-Kconform_pic'
8916 lt_prog_compiler_static='-Bstatic'
8920 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8921 lt_prog_compiler_wl='-Wl,'
8922 lt_prog_compiler_pic='-KPIC'
8923 lt_prog_compiler_static='-Bstatic'
8927 lt_prog_compiler_wl='-Wl,'
8928 lt_prog_compiler_can_build_shared=no
8932 lt_prog_compiler_pic='-pic'
8933 lt_prog_compiler_static='-Bstatic'
8937 lt_prog_compiler_can_build_shared=no
8943 # For platforms which do not support PIC, -DPIC is meaningless:
8945 lt_prog_compiler_pic=
8948 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8952 $as_echo "$lt_prog_compiler_pic" >&6; }
8960 # Check to make sure the PIC flag actually works.
8962 if test -n "$lt_prog_compiler_pic"; then
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8964 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8965 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8966 $as_echo_n "(cached) " >&6
8968 lt_cv_prog_compiler_pic_works=no
8969 ac_outfile=conftest.$ac_objext
8970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8971 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8972 # Insert the option either (1) after the last *FLAGS variable, or
8973 # (2) before a word containing "conftest.", or (3) at the end.
8974 # Note that $ac_compile itself does not contain backslashes and begins
8975 # with a dollar sign (not a hyphen), so the echo should work correctly.
8976 # The option is referenced via a variable to avoid confusing sed.
8977 lt_compile=`echo "$ac_compile" | $SED \
8978 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8980 -e 's:$: $lt_compiler_flag:'`
8981 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8982 (eval "$lt_compile" 2>conftest.err)
8984 cat conftest.err >&5
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 if (exit $ac_status) && test -s "$ac_outfile"; then
8987 # The compiler can only warn and ignore the option if not recognized
8988 # So say no if there are warnings other than the usual output.
8989 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8990 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8991 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8992 lt_cv_prog_compiler_pic_works=yes
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8999 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9001 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9002 case $lt_prog_compiler_pic in
9004 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9007 lt_prog_compiler_pic=
9008 lt_prog_compiler_can_build_shared=no
9019 # Check to make sure the static flag actually works.
9021 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9023 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9024 if ${lt_cv_prog_compiler_static_works+:} false; then :
9025 $as_echo_n "(cached) " >&6
9027 lt_cv_prog_compiler_static_works=no
9028 save_LDFLAGS="$LDFLAGS"
9029 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9030 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9031 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9032 # The linker can only warn and ignore the option if not recognized
9033 # So say no if there are warnings
9034 if test -s conftest.err; then
9035 # Append any errors to the config.log.
9036 cat conftest.err 1>&5
9037 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9038 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9039 if diff conftest.exp conftest.er2 >/dev/null; then
9040 lt_cv_prog_compiler_static_works=yes
9043 lt_cv_prog_compiler_static_works=yes
9047 LDFLAGS="$save_LDFLAGS"
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9051 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9053 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9056 lt_prog_compiler_static=
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9066 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9067 if ${lt_cv_prog_compiler_c_o+:} false; then :
9068 $as_echo_n "(cached) " >&6
9070 lt_cv_prog_compiler_c_o=no
9071 $RM -r conftest 2>/dev/null
9075 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9077 lt_compiler_flag="-o out/conftest2.$ac_objext"
9078 # Insert the option either (1) after the last *FLAGS variable, or
9079 # (2) before a word containing "conftest.", or (3) at the end.
9080 # Note that $ac_compile itself does not contain backslashes and begins
9081 # with a dollar sign (not a hyphen), so the echo should work correctly.
9082 lt_compile=`echo "$ac_compile" | $SED \
9083 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9084 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9085 -e 's:$: $lt_compiler_flag:'`
9086 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9087 (eval "$lt_compile" 2>out/conftest.err)
9089 cat out/conftest.err >&5
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9093 # The compiler can only warn and ignore the option if not recognized
9094 # So say no if there are warnings
9095 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9096 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9097 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9098 lt_cv_prog_compiler_c_o=yes
9103 # SGI C++ compiler will create directory out/ii_files/ for
9104 # template instantiation
9105 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9106 $RM out/* && rmdir out
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9113 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9121 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9122 if ${lt_cv_prog_compiler_c_o+:} false; then :
9123 $as_echo_n "(cached) " >&6
9125 lt_cv_prog_compiler_c_o=no
9126 $RM -r conftest 2>/dev/null
9130 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9132 lt_compiler_flag="-o out/conftest2.$ac_objext"
9133 # Insert the option either (1) after the last *FLAGS variable, or
9134 # (2) before a word containing "conftest.", or (3) at the end.
9135 # Note that $ac_compile itself does not contain backslashes and begins
9136 # with a dollar sign (not a hyphen), so the echo should work correctly.
9137 lt_compile=`echo "$ac_compile" | $SED \
9138 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9139 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9140 -e 's:$: $lt_compiler_flag:'`
9141 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9142 (eval "$lt_compile" 2>out/conftest.err)
9144 cat out/conftest.err >&5
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9148 # The compiler can only warn and ignore the option if not recognized
9149 # So say no if there are warnings
9150 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9151 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9152 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9153 lt_cv_prog_compiler_c_o=yes
9158 # SGI C++ compiler will create directory out/ii_files/ for
9159 # template instantiation
9160 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9161 $RM out/* && rmdir out
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9168 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9173 hard_links="nottested"
9174 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9175 # do not overwrite the value of need_locks provided by the user
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9177 $as_echo_n "checking if we can lock with hard links... " >&6; }
9180 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9182 ln conftest.a conftest.b 2>&5 || hard_links=no
9183 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9185 $as_echo "$hard_links" >&6; }
9186 if test "$hard_links" = no; then
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9188 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9201 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9204 allow_undefined_flag=
9205 always_export_symbols=no
9207 archive_expsym_cmds=
9208 compiler_needs_object=no
9209 enable_shared_with_static_runtimes=no
9210 export_dynamic_flag_spec=
9211 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9212 hardcode_automatic=no
9214 hardcode_direct_absolute=no
9215 hardcode_libdir_flag_spec=
9216 hardcode_libdir_flag_spec_ld=
9217 hardcode_libdir_separator=
9219 hardcode_shlibpath_var=unsupported
9221 link_all_deplibs=unknown
9224 old_archive_from_new_cmds=
9225 old_archive_from_expsyms_cmds=
9226 thread_safe_flag_spec=
9227 whole_archive_flag_spec=
9228 # include_expsyms should be a list of space-separated symbols to be *always*
9229 # included in the symbol list
9231 # exclude_expsyms can be an extended regexp of symbols to exclude
9232 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9233 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9234 # as well as any symbol that contains `d'.
9235 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9236 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9237 # platforms (ab)use it in PIC code, but their linkers get confused if
9238 # the symbol is explicitly referenced. Since portable code cannot
9239 # rely on this symbol name, it's probably fine to never include it in
9240 # preloaded symbol tables.
9241 # Exclude shared library initialization/finalization symbols.
9242 extract_expsyms_cmds=
9245 cygwin* | mingw* | pw32* | cegcc*)
9246 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9247 # When not using gcc, we currently assume that we are using
9248 # Microsoft Visual C++.
9249 if test "$GCC" != yes; then
9254 # we just hope/assume this is gcc and not c89 (= MSVC++)
9264 # On some targets, GNU ld is compatible enough with the native linker
9265 # that we're better off using the native interface for both.
9266 lt_use_gnu_ld_interface=no
9267 if test "$with_gnu_ld" = yes; then
9270 # The AIX port of GNU ld has always aspired to compatibility
9271 # with the native linker. However, as the warning in the GNU ld
9272 # block says, versions before 2.19.5* couldn't really create working
9273 # shared libraries, regardless of the interface used.
9274 case `$LD -v 2>&1` in
9275 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9276 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9277 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9279 lt_use_gnu_ld_interface=yes
9284 lt_use_gnu_ld_interface=yes
9289 if test "$lt_use_gnu_ld_interface" = yes; then
9290 # If archive_cmds runs LD, not CC, wlarc should be empty
9293 # Set some defaults for GNU ld with shared library support. These
9294 # are reset later if shared libraries are not supported. Putting them
9295 # here allows them to be overridden if necessary.
9296 runpath_var=LD_RUN_PATH
9297 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9298 export_dynamic_flag_spec='${wl}--export-dynamic'
9299 # ancient GNU ld didn't support --whole-archive et. al.
9300 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9301 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9303 whole_archive_flag_spec=
9305 supports_anon_versioning=no
9306 case `$LD -v 2>&1` in
9307 *GNU\ gold*) supports_anon_versioning=yes ;;
9308 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9309 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9310 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9311 *\ 2.11.*) ;; # other 2.11 versions
9312 *) supports_anon_versioning=yes ;;
9315 # See if GNU ld supports shared libraries.
9318 # On AIX/PPC, the GNU linker is very broken
9319 if test "$host_cpu" != ia64; then
9323 *** Warning: the GNU linker, at least up to release 2.19, is reported
9324 *** to be unable to reliably create shared libraries on AIX.
9325 *** Therefore, libtool is disabling shared libraries support. If you
9326 *** really care for shared libraries, you may want to install binutils
9327 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9328 *** You will then need to restart the configuration process.
9337 # see comment about AmigaOS4 .so support
9338 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9339 archive_expsym_cmds=''
9342 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)'
9343 hardcode_libdir_flag_spec='-L$libdir'
9344 hardcode_minus_L=yes
9350 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9351 allow_undefined_flag=unsupported
9352 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9353 # support --undefined. This deserves some investigation. FIXME
9354 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9360 cygwin* | mingw* | pw32* | cegcc*)
9361 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9362 # as there is no search path for DLLs.
9363 hardcode_libdir_flag_spec='-L$libdir'
9364 export_dynamic_flag_spec='${wl}--export-all-symbols'
9365 allow_undefined_flag=unsupported
9366 always_export_symbols=no
9367 enable_shared_with_static_runtimes=yes
9368 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9370 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9371 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9372 # If the export-symbols file already is a .def file (1st line
9373 # is EXPORTS), use it as is; otherwise, prepend...
9374 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9375 cp $export_symbols $output_objdir/$soname.def;
9377 echo EXPORTS > $output_objdir/$soname.def;
9378 cat $export_symbols >> $output_objdir/$soname.def;
9380 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9387 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9388 link_all_deplibs=yes
9393 hardcode_shlibpath_var=no
9394 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9395 export_dynamic_flag_spec='${wl}-E'
9396 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9397 # Instead, shared libraries are loaded at an image base (0x10000000 by
9398 # default) and relocated if they conflict, which is a slow very memory
9399 # consuming and fragmenting process. To avoid this, we pick a random,
9400 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9401 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9402 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9403 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'
9406 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9408 if test "$host_os" = linux-dietlibc; then
9409 case $cc_basename in
9410 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9413 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9414 && test "$tmp_diet" = no
9416 tmp_addflag=' $pic_flag'
9417 tmp_sharedflag='-shared'
9418 case $cc_basename,$host_cpu in
9419 pgcc*) # Portland Group C compiler
9420 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'
9421 tmp_addflag=' $pic_flag'
9423 pgf77* | pgf90* | pgf95* | pgfortran*)
9424 # Portland Group f77 and f90 compilers
9425 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'
9426 tmp_addflag=' $pic_flag -Mnomain' ;;
9427 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9428 tmp_addflag=' -i_dynamic' ;;
9429 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9430 tmp_addflag=' -i_dynamic -nofor_main' ;;
9431 ifc* | ifort*) # Intel Fortran compiler
9432 tmp_addflag=' -nofor_main' ;;
9433 lf95*) # Lahey Fortran 8.1
9434 whole_archive_flag_spec=
9435 tmp_sharedflag='--shared' ;;
9436 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9437 tmp_sharedflag='-qmkshrobj'
9439 nvcc*) # Cuda Compiler Driver 2.2
9440 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'
9441 compiler_needs_object=yes
9444 case `$CC -V 2>&1 | sed 5q` in
9445 *Sun\ C*) # Sun C 5.9
9446 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'
9447 compiler_needs_object=yes
9448 tmp_sharedflag='-G' ;;
9449 *Sun\ F*) # Sun Fortran 8.3
9450 tmp_sharedflag='-G' ;;
9452 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9454 if test "x$supports_anon_versioning" = xyes; then
9455 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9456 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9457 echo "local: *; };" >> $output_objdir/$libname.ver~
9458 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9461 case $cc_basename in
9462 xlf* | bgf* | bgxlf* | mpixlf*)
9463 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9464 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9465 hardcode_libdir_flag_spec=
9466 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9467 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9468 if test "x$supports_anon_versioning" = xyes; then
9469 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9470 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9471 echo "local: *; };" >> $output_objdir/$libname.ver~
9472 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9482 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9483 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9486 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9487 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9492 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9496 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9497 *** create shared libraries on Solaris systems. Therefore, libtool
9498 *** is disabling shared libraries support. We urge you to upgrade GNU
9499 *** binutils to release 2.9.1 or newer. Another option is to modify
9500 *** your PATH or compiler configuration so that the native linker is
9501 *** used, and then restart.
9504 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9505 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9506 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9512 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9513 case `$LD -v 2>&1` in
9514 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9518 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9519 *** reliably create shared libraries on SCO systems. Therefore, libtool
9520 *** is disabling shared libraries support. We urge you to upgrade GNU
9521 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9522 *** your PATH or compiler configuration so that the native linker is
9523 *** used, and then restart.
9528 # For security reasons, it is highly recommended that you always
9529 # use absolute paths for naming shared libraries, and exclude the
9530 # DT_RUNPATH tag from executables and libraries. But doing so
9531 # requires that you compile everything twice, which is a pain.
9532 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9533 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9534 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9535 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9544 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9547 hardcode_shlibpath_var=no
9551 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9552 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9553 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9560 if test "$ld_shlibs" = no; then
9562 hardcode_libdir_flag_spec=
9563 export_dynamic_flag_spec=
9564 whole_archive_flag_spec=
9567 # PORTME fill in a description of your system's linker (not GNU ld)
9570 allow_undefined_flag=unsupported
9571 always_export_symbols=yes
9572 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'
9573 # Note: this linker hardcodes the directories in LIBPATH if there
9574 # are no directories specified by -L.
9575 hardcode_minus_L=yes
9576 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9577 # Neither direct hardcoding nor static linking is supported with a
9579 hardcode_direct=unsupported
9584 if test "$host_cpu" = ia64; then
9585 # On IA64, the linker does run time linking by default, so we don't
9586 # have to do anything special.
9587 aix_use_runtimelinking=no
9588 exp_sym_flag='-Bexport'
9591 # If we're using GNU nm, then we don't want the "-C" option.
9592 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9593 # Also, AIX nm treats weak defined symbols like other global
9594 # defined symbols, whereas GNU nm marks them as "W".
9595 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9596 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'
9598 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'
9600 aix_use_runtimelinking=no
9602 # Test if we are trying to use run time linking or normal
9603 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9604 # need to do runtime linking.
9605 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9606 for ld_flag in $LDFLAGS; do
9607 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9608 aix_use_runtimelinking=yes
9615 exp_sym_flag='-bexport'
9616 no_entry_flag='-bnoentry'
9619 # When large executables or shared objects are built, AIX ld can
9620 # have problems creating the table of contents. If linking a library
9621 # or program results in "error TOC overflow" add -mminimal-toc to
9622 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9623 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9627 hardcode_direct_absolute=yes
9628 hardcode_libdir_separator=':'
9629 link_all_deplibs=yes
9630 file_list_spec='${wl}-f,'
9632 if test "$GCC" = yes; then
9633 case $host_os in aix4.[012]|aix4.[012].*)
9634 # We only want to do this on AIX 4.2 and lower, the check
9635 # below for broken collect2 doesn't work under 4.3+
9636 collect2name=`${CC} -print-prog-name=collect2`
9637 if test -f "$collect2name" &&
9638 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9640 # We have reworked collect2
9643 # We have old collect2
9644 hardcode_direct=unsupported
9645 # It fails to find uninstalled libraries when the uninstalled
9646 # path is not listed in the libpath. Setting hardcode_minus_L
9647 # to unsupported forces relinking
9648 hardcode_minus_L=yes
9649 hardcode_libdir_flag_spec='-L$libdir'
9650 hardcode_libdir_separator=
9654 shared_flag='-shared'
9655 if test "$aix_use_runtimelinking" = yes; then
9656 shared_flag="$shared_flag "'${wl}-G'
9660 if test "$host_cpu" = ia64; then
9661 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9662 # chokes on -Wl,-G. The following line is correct:
9665 if test "$aix_use_runtimelinking" = yes; then
9666 shared_flag='${wl}-G'
9668 shared_flag='${wl}-bM:SRE'
9673 export_dynamic_flag_spec='${wl}-bexpall'
9674 # It seems that -bexpall does not export symbols beginning with
9675 # underscore (_), so it is better to generate a list of symbols to export.
9676 always_export_symbols=yes
9677 if test "$aix_use_runtimelinking" = yes; then
9678 # Warning - without using the other runtime loading flags (-brtl),
9679 # -berok will link without error, but may produce a broken library.
9680 allow_undefined_flag='-berok'
9681 # Determine the default libpath from the value encoded in an
9683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9684 /* end confdefs.h. */
9694 if ac_fn_c_try_link "$LINENO"; then :
9696 lt_aix_libpath_sed='
9697 /Import File Strings/,/^$/ {
9703 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9704 # Check for a 64-bit object if we didn't find anything.
9705 if test -z "$aix_libpath"; then
9706 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9709 rm -f core conftest.err conftest.$ac_objext \
9710 conftest$ac_exeext conftest.$ac_ext
9711 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9713 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9714 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"
9716 if test "$host_cpu" = ia64; then
9717 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9718 allow_undefined_flag="-z nodefs"
9719 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"
9721 # Determine the default libpath from the value encoded in an
9723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9724 /* end confdefs.h. */
9734 if ac_fn_c_try_link "$LINENO"; then :
9736 lt_aix_libpath_sed='
9737 /Import File Strings/,/^$/ {
9743 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9744 # Check for a 64-bit object if we didn't find anything.
9745 if test -z "$aix_libpath"; then
9746 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9749 rm -f core conftest.err conftest.$ac_objext \
9750 conftest$ac_exeext conftest.$ac_ext
9751 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9753 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9754 # Warning - without using the other run time loading flags,
9755 # -berok will link without error, but may produce a broken library.
9756 no_undefined_flag=' ${wl}-bernotok'
9757 allow_undefined_flag=' ${wl}-berok'
9758 if test "$with_gnu_ld" = yes; then
9759 # We only use this code for GNU lds that support --whole-archive.
9760 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9762 # Exported symbols can be pulled into shared objects from archives
9763 whole_archive_flag_spec='$convenience'
9765 archive_cmds_need_lc=yes
9766 # This is similar to how AIX traditionally builds its shared libraries.
9767 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'
9775 # see comment about AmigaOS4 .so support
9776 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9777 archive_expsym_cmds=''
9780 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)'
9781 hardcode_libdir_flag_spec='-L$libdir'
9782 hardcode_minus_L=yes
9788 export_dynamic_flag_spec=-rdynamic
9791 cygwin* | mingw* | pw32* | cegcc*)
9792 # When not using gcc, we currently assume that we are using
9793 # Microsoft Visual C++.
9794 # hardcode_libdir_flag_spec is actually meaningless, as there is
9795 # no search path for DLLs.
9796 hardcode_libdir_flag_spec=' '
9797 allow_undefined_flag=unsupported
9798 # Tell ltmain to make .lib files, not .a files.
9800 # Tell ltmain to make .dll files, not .so files.
9802 # FIXME: Setting linknames here is a bad hack.
9803 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9804 # The linker will automatically build a .lib file if we build a DLL.
9805 old_archive_from_new_cmds='true'
9806 # FIXME: Should let the user specify the lib program.
9807 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9808 fix_srcfile_path='`cygpath -w "$srcfile"`'
9809 enable_shared_with_static_runtimes=yes
9812 darwin* | rhapsody*)
9815 archive_cmds_need_lc=no
9817 hardcode_automatic=yes
9818 hardcode_shlibpath_var=unsupported
9819 if test "$lt_cv_ld_force_load" = "yes"; then
9820 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\"`'
9822 whole_archive_flag_spec=''
9824 link_all_deplibs=yes
9825 allow_undefined_flag="$_lt_dar_allow_undefined"
9826 case $cc_basename in
9827 ifort*) _lt_dar_can_shared=yes ;;
9828 *) _lt_dar_can_shared=$GCC ;;
9830 if test "$_lt_dar_can_shared" = "yes"; then
9831 output_verbose_link_cmd=func_echo_all
9832 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9833 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9834 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}"
9835 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}"
9844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9845 hardcode_libdir_flag_spec='-L$libdir'
9846 hardcode_shlibpath_var=no
9849 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9850 # support. Future versions do this automatically, but an explicit c++rt0.o
9851 # does not break anything, and helps significantly (at the cost of a little
9854 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9855 hardcode_libdir_flag_spec='-R$libdir'
9857 hardcode_shlibpath_var=no
9860 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9862 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9864 hardcode_minus_L=yes
9865 hardcode_shlibpath_var=no
9868 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9869 freebsd* | dragonfly*)
9870 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9871 hardcode_libdir_flag_spec='-R$libdir'
9873 hardcode_shlibpath_var=no
9877 if test "$GCC" = yes; then
9878 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'
9880 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'
9882 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9883 hardcode_libdir_separator=:
9886 # hardcode_minus_L: Not really in the search PATH,
9887 # but as the default location of the library.
9888 hardcode_minus_L=yes
9889 export_dynamic_flag_spec='${wl}-E'
9893 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9894 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9896 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9898 if test "$with_gnu_ld" = no; then
9899 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9900 hardcode_libdir_flag_spec_ld='+b $libdir'
9901 hardcode_libdir_separator=:
9903 hardcode_direct_absolute=yes
9904 export_dynamic_flag_spec='${wl}-E'
9905 # hardcode_minus_L: Not really in the search PATH,
9906 # but as the default location of the library.
9907 hardcode_minus_L=yes
9912 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9915 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9918 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9921 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9927 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9930 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9934 # Older versions of the 11.00 compiler do not understand -b yet
9935 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9937 $as_echo_n "checking if $CC understands -b... " >&6; }
9938 if ${lt_cv_prog_compiler__b+:} false; then :
9939 $as_echo_n "(cached) " >&6
9941 lt_cv_prog_compiler__b=no
9942 save_LDFLAGS="$LDFLAGS"
9943 LDFLAGS="$LDFLAGS -b"
9944 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9945 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9946 # The linker can only warn and ignore the option if not recognized
9947 # So say no if there are warnings
9948 if test -s conftest.err; then
9949 # Append any errors to the config.log.
9950 cat conftest.err 1>&5
9951 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9952 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9953 if diff conftest.exp conftest.er2 >/dev/null; then
9954 lt_cv_prog_compiler__b=yes
9957 lt_cv_prog_compiler__b=yes
9961 LDFLAGS="$save_LDFLAGS"
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9965 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9967 if test x"$lt_cv_prog_compiler__b" = xyes; then
9968 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9970 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9976 if test "$with_gnu_ld" = no; then
9977 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9978 hardcode_libdir_separator=:
9983 hardcode_shlibpath_var=no
9987 hardcode_direct_absolute=yes
9988 export_dynamic_flag_spec='${wl}-E'
9990 # hardcode_minus_L: Not really in the search PATH,
9991 # but as the default location of the library.
9992 hardcode_minus_L=yes
9998 irix5* | irix6* | nonstopux*)
9999 if test "$GCC" = yes; then
10000 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'
10001 # Try to use the -exported_symbol ld option, if it does not
10002 # work, assume that -exports_file does not work either and
10003 # implicitly export all symbols.
10004 save_LDFLAGS="$LDFLAGS"
10005 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10007 /* end confdefs.h. */
10010 if ac_fn_c_try_link "$LINENO"; then :
10011 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'
10014 rm -f core conftest.err conftest.$ac_objext \
10015 conftest$ac_exeext conftest.$ac_ext
10016 LDFLAGS="$save_LDFLAGS"
10018 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'
10019 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'
10021 archive_cmds_need_lc='no'
10022 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10023 hardcode_libdir_separator=:
10025 link_all_deplibs=yes
10029 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10030 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10032 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10034 hardcode_libdir_flag_spec='-R$libdir'
10035 hardcode_direct=yes
10036 hardcode_shlibpath_var=no
10040 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10041 hardcode_direct=yes
10042 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10043 hardcode_libdir_separator=:
10044 hardcode_shlibpath_var=no
10051 if test -f /usr/libexec/ld.so; then
10052 hardcode_direct=yes
10053 hardcode_shlibpath_var=no
10054 hardcode_direct_absolute=yes
10055 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10056 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10057 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10058 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10059 export_dynamic_flag_spec='${wl}-E'
10062 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10063 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10064 hardcode_libdir_flag_spec='-R$libdir'
10067 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10068 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10078 hardcode_libdir_flag_spec='-L$libdir'
10079 hardcode_minus_L=yes
10080 allow_undefined_flag=unsupported
10081 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'
10082 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10086 if test "$GCC" = yes; then
10087 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10088 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'
10090 allow_undefined_flag=' -expect_unresolved \*'
10091 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'
10093 archive_cmds_need_lc='no'
10094 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10095 hardcode_libdir_separator=:
10098 osf4* | osf5*) # as osf3* with the addition of -msym flag
10099 if test "$GCC" = yes; then
10100 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10101 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'
10102 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10104 allow_undefined_flag=' -expect_unresolved \*'
10105 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'
10106 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~
10107 $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'
10109 # Both c and cxx compiler support -rpath directly
10110 hardcode_libdir_flag_spec='-rpath $libdir'
10112 archive_cmds_need_lc='no'
10113 hardcode_libdir_separator=:
10117 no_undefined_flag=' -z defs'
10118 if test "$GCC" = yes; then
10120 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10121 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10122 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10124 case `$CC -V 2>&1` in
10127 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10128 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10129 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10133 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10134 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10135 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10139 hardcode_libdir_flag_spec='-R$libdir'
10140 hardcode_shlibpath_var=no
10142 solaris2.[0-5] | solaris2.[0-5].*) ;;
10144 # The compiler driver will combine and reorder linker options,
10145 # but understands `-z linker_flag'. GCC discards it without `$wl',
10146 # but is careful enough not to reorder.
10147 # Supported since Solaris 2.6 (maybe 2.5.1?)
10148 if test "$GCC" = yes; then
10149 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10151 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10155 link_all_deplibs=yes
10159 if test "x$host_vendor" = xsequent; then
10160 # Use $CC to link under sequent, because it throws in some extra .o
10161 # files that make .init and .fini sections work.
10162 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10164 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10166 hardcode_libdir_flag_spec='-L$libdir'
10167 hardcode_direct=yes
10168 hardcode_minus_L=yes
10169 hardcode_shlibpath_var=no
10173 case $host_vendor in
10175 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10176 hardcode_direct=yes # is this really true???
10179 ## LD is ld it makes a PLAMLIB
10180 ## CC just makes a GrossModule.
10181 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10182 reload_cmds='$CC -r -o $output$reload_objs'
10186 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10187 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10190 runpath_var='LD_RUN_PATH'
10191 hardcode_shlibpath_var=no
10195 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10196 hardcode_shlibpath_var=no
10197 export_dynamic_flag_spec='-Bexport'
10201 if test -d /usr/nec; then
10202 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10203 hardcode_shlibpath_var=no
10204 runpath_var=LD_RUN_PATH
10205 hardcode_runpath_var=yes
10210 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10211 no_undefined_flag='${wl}-z,text'
10212 archive_cmds_need_lc=no
10213 hardcode_shlibpath_var=no
10214 runpath_var='LD_RUN_PATH'
10216 if test "$GCC" = yes; then
10217 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10218 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10220 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10221 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10225 sysv5* | sco3.2v5* | sco5v6*)
10226 # Note: We can NOT use -z defs as we might desire, because we do not
10227 # link with -lc, and that would cause any symbols used from libc to
10228 # always be unresolved, which means just about no library would
10229 # ever link correctly. If we're not using GNU ld we use -z text
10230 # though, which does catch some bad symbols but isn't as heavy-handed
10232 no_undefined_flag='${wl}-z,text'
10233 allow_undefined_flag='${wl}-z,nodefs'
10234 archive_cmds_need_lc=no
10235 hardcode_shlibpath_var=no
10236 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10237 hardcode_libdir_separator=':'
10238 link_all_deplibs=yes
10239 export_dynamic_flag_spec='${wl}-Bexport'
10240 runpath_var='LD_RUN_PATH'
10242 if test "$GCC" = yes; then
10243 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10244 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10246 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10247 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10252 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10253 hardcode_libdir_flag_spec='-L$libdir'
10254 hardcode_shlibpath_var=no
10262 if test x$host_vendor = xsni; then
10264 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10265 export_dynamic_flag_spec='${wl}-Blargedynsym'
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10272 $as_echo "$ld_shlibs" >&6; }
10273 test "$ld_shlibs" = no && can_build_shared=no
10275 with_gnu_ld=$with_gnu_ld
10292 # Do we need to explicitly link libc?
10294 case "x$archive_cmds_need_lc" in
10296 # Assume -lc should be added
10297 archive_cmds_need_lc=yes
10299 if test "$enable_shared" = yes && test "$GCC" = yes; then
10300 case $archive_cmds in
10302 # FIXME: we may have to deal with multi-command sequences.
10305 # Test whether the compiler implicitly links with -lc since on some
10306 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10307 # to ld, don't add -lc before -lgcc.
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10309 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10310 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10311 $as_echo_n "(cached) " >&6
10314 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10316 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10317 (eval $ac_compile) 2>&5
10319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10320 test $ac_status = 0; } 2>conftest.err; then
10323 libobjs=conftest.$ac_objext
10325 wl=$lt_prog_compiler_wl
10326 pic_flag=$lt_prog_compiler_pic
10332 lt_save_allow_undefined_flag=$allow_undefined_flag
10333 allow_undefined_flag=
10334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10335 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10338 test $ac_status = 0; }
10340 lt_cv_archive_cmds_need_lc=no
10342 lt_cv_archive_cmds_need_lc=yes
10344 allow_undefined_flag=$lt_save_allow_undefined_flag
10346 cat conftest.err 1>&5
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10352 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10353 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10517 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10519 if test "$GCC" = yes; then
10521 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10522 *) lt_awk_arg="/^libraries:/" ;;
10525 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10526 *) lt_sed_strip_eq="s,=/,/,g" ;;
10528 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10529 case $lt_search_path_spec in
10531 # if the path contains ";" then we assume it to be the separator
10532 # otherwise default to the standard path separator (i.e. ":") - it is
10533 # assumed that no part of a normal pathname contains ";" but that should
10534 # okay in the real world where ";" in dirpaths is itself problematic.
10535 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10538 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10541 # Ok, now we have the path, separated by spaces, we can step through it
10542 # and add multilib dir if necessary.
10543 lt_tmp_lt_search_path_spec=
10544 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10545 for lt_sys_path in $lt_search_path_spec; do
10546 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10547 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10549 test -d "$lt_sys_path" && \
10550 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10553 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10554 BEGIN {RS=" "; FS="/|\n";} {
10557 for (lt_i = NF; lt_i > 0; lt_i--) {
10558 if ($lt_i != "" && $lt_i != ".") {
10559 if ($lt_i == "..") {
10562 if (lt_count == 0) {
10563 lt_foo="/" $lt_i lt_foo;
10570 if (lt_foo != "") { lt_freq[lt_foo]++; }
10571 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10573 # AWK program above erroneously prepends '/' to C:/dos/paths
10576 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10577 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10579 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10581 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10583 library_names_spec=
10584 libname_spec='lib$name'
10588 postuninstall_cmds=
10592 shlibpath_overrides_runpath=unknown
10594 dynamic_linker="$host_os ld.so"
10595 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10596 need_lib_prefix=unknown
10597 hardcode_into_libs=no
10599 # when you set need_version to no, make sure it does not cause -set_version
10600 # flags to be left without arguments
10601 need_version=unknown
10606 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10607 shlibpath_var=LIBPATH
10609 # AIX 3 has no versioning support, so we append a major version to the name.
10610 soname_spec='${libname}${release}${shared_ext}$major'
10617 hardcode_into_libs=yes
10618 if test "$host_cpu" = ia64; then
10619 # AIX 5 supports IA64
10620 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10621 shlibpath_var=LD_LIBRARY_PATH
10623 # With GCC up to 2.95.x, collect2 would create an import file
10624 # for dependence libraries. The import file would start with
10625 # the line `#! .'. This would cause the generated library to
10626 # depend on `.', always an invalid library. This was fixed in
10627 # development snapshots of GCC prior to 3.0.
10629 aix4 | aix4.[01] | aix4.[01].*)
10630 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10632 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10635 can_build_shared=no
10639 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10640 # soname into executable. Probably we can add versioning support to
10641 # collect2, so additional links can be useful in future.
10642 if test "$aix_use_runtimelinking" = yes; then
10643 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10644 # instead of lib<name>.a to let people know that these are not
10645 # typical AIX shared libraries.
10646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10648 # We preserve .a as extension for shared libraries through AIX4.2
10649 # and later when we are not doing run time linking.
10650 library_names_spec='${libname}${release}.a $libname.a'
10651 soname_spec='${libname}${release}${shared_ext}$major'
10653 shlibpath_var=LIBPATH
10660 # Since July 2007 AmigaOS4 officially supports .so libraries.
10661 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10665 library_names_spec='$libname.ixlibrary $libname.a'
10666 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10667 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'
10673 library_names_spec='${libname}${shared_ext}'
10674 dynamic_linker="$host_os ld.so"
10675 shlibpath_var=LIBRARY_PATH
10681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10682 soname_spec='${libname}${release}${shared_ext}$major'
10683 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10684 shlibpath_var=LD_LIBRARY_PATH
10685 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10686 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10687 # the default ld.so.conf also contains /usr/contrib/lib and
10688 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10689 # libtool to hard-code these into programs
10692 cygwin* | mingw* | pw32* | cegcc*)
10693 version_type=windows
10698 case $GCC,$host_os in
10699 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10700 library_names_spec='$libname.dll.a'
10701 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10702 postinstall_cmds='base_file=`basename \${file}`~
10703 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10704 dldir=$destdir/`dirname \$dlpath`~
10705 test -d \$dldir || mkdir -p \$dldir~
10706 $install_prog $dir/$dlname \$dldir/$dlname~
10707 chmod a+x \$dldir/$dlname~
10708 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10709 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10711 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10712 dlpath=$dir/\$dldll~
10714 shlibpath_overrides_runpath=yes
10718 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10719 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10721 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10724 # MinGW DLLs use traditional 'lib' prefix
10725 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10728 # pw32 DLLs use 'pw' prefix rather than 'lib'
10729 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10735 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10738 dynamic_linker='Win32 ld.exe'
10739 # FIXME: first we should search . and the directory the executable is in
10743 darwin* | rhapsody*)
10744 dynamic_linker="$host_os dyld"
10745 version_type=darwin
10748 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10749 soname_spec='${libname}${release}${major}$shared_ext'
10750 shlibpath_overrides_runpath=yes
10751 shlibpath_var=DYLD_LIBRARY_PATH
10752 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10754 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10755 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10763 soname_spec='${libname}${release}${shared_ext}$major'
10764 shlibpath_var=LD_LIBRARY_PATH
10767 freebsd* | dragonfly*)
10768 # DragonFly does not have aout. When/if they implement a new
10769 # versioning mechanism, adjust this.
10770 if test -x /usr/bin/objformat; then
10771 objformat=`/usr/bin/objformat`
10774 freebsd[23].*) objformat=aout ;;
10775 *) objformat=elf ;;
10778 version_type=freebsd-$objformat
10779 case $version_type in
10781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10786 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10790 shlibpath_var=LD_LIBRARY_PATH
10793 shlibpath_overrides_runpath=yes
10795 freebsd3.[01]* | freebsdelf3.[01]*)
10796 shlibpath_overrides_runpath=yes
10797 hardcode_into_libs=yes
10799 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10800 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10801 shlibpath_overrides_runpath=no
10802 hardcode_into_libs=yes
10804 *) # from 4.6 on, and DragonFly
10805 shlibpath_overrides_runpath=yes
10806 hardcode_into_libs=yes
10815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10816 soname_spec='${libname}${release}${shared_ext}$major'
10817 shlibpath_var=LD_LIBRARY_PATH
10818 hardcode_into_libs=yes
10825 dynamic_linker="$host_os runtime_loader"
10826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10827 soname_spec='${libname}${release}${shared_ext}$major'
10828 shlibpath_var=LIBRARY_PATH
10829 shlibpath_overrides_runpath=yes
10830 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10831 hardcode_into_libs=yes
10834 hpux9* | hpux10* | hpux11*)
10835 # Give a soname corresponding to the major version so that dld.sl refuses to
10836 # link against other versions.
10843 hardcode_into_libs=yes
10844 dynamic_linker="$host_os dld.so"
10845 shlibpath_var=LD_LIBRARY_PATH
10846 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10848 soname_spec='${libname}${release}${shared_ext}$major'
10849 if test "X$HPUX_IA64_MODE" = X32; then
10850 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10852 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10854 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10858 hardcode_into_libs=yes
10859 dynamic_linker="$host_os dld.sl"
10860 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10861 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10863 soname_spec='${libname}${release}${shared_ext}$major'
10864 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10865 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10869 dynamic_linker="$host_os dld.sl"
10870 shlibpath_var=SHLIB_PATH
10871 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10873 soname_spec='${libname}${release}${shared_ext}$major'
10876 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10877 postinstall_cmds='chmod 555 $lib'
10878 # or fails outright, so override atomically:
10879 install_override_mode=555
10886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10887 soname_spec='${libname}${release}${shared_ext}$major'
10888 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10889 shlibpath_var=LD_LIBRARY_PATH
10890 shlibpath_overrides_runpath=no
10891 hardcode_into_libs=yes
10894 irix5* | irix6* | nonstopux*)
10896 nonstopux*) version_type=nonstopux ;;
10898 if test "$lt_cv_prog_gnu_ld" = yes; then
10906 soname_spec='${libname}${release}${shared_ext}$major'
10907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10909 irix5* | nonstopux*)
10910 libsuff= shlibsuff=
10913 case $LD in # libtool.m4 will add one of these switches to LD
10914 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10915 libsuff= shlibsuff= libmagic=32-bit;;
10916 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10917 libsuff=32 shlibsuff=N32 libmagic=N32;;
10918 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10919 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10920 *) libsuff= shlibsuff= libmagic=never-match;;
10924 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10925 shlibpath_overrides_runpath=no
10926 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10927 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10928 hardcode_into_libs=yes
10931 # No shared lib support for Linux oldld, aout, or coff.
10932 linux*oldld* | linux*aout* | linux*coff*)
10936 # This must be Linux ELF.
10937 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10942 soname_spec='${libname}${release}${shared_ext}$major'
10943 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10944 shlibpath_var=LD_LIBRARY_PATH
10945 shlibpath_overrides_runpath=no
10947 # Some binutils ld are patched to set DT_RUNPATH
10948 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10949 $as_echo_n "(cached) " >&6
10951 lt_cv_shlibpath_overrides_runpath=no
10952 save_LDFLAGS=$LDFLAGS
10953 save_libdir=$libdir
10954 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10955 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10957 /* end confdefs.h. */
10967 if ac_fn_c_try_link "$LINENO"; then :
10968 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10969 lt_cv_shlibpath_overrides_runpath=yes
10972 rm -f core conftest.err conftest.$ac_objext \
10973 conftest$ac_exeext conftest.$ac_ext
10974 LDFLAGS=$save_LDFLAGS
10975 libdir=$save_libdir
10979 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10981 # This implies no fast_install, which is unacceptable.
10982 # Some rework will be needed to allow for fast_install
10983 # before this can be enabled.
10984 hardcode_into_libs=yes
10986 # Append ld.so.conf contents to the search path
10987 if test -f /etc/ld.so.conf; then
10988 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' ' '`
10989 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10992 # We used to test for /lib/ld.so.1 and disable shared libraries on
10993 # powerpc, because MkLinux only supported shared libraries with the
10994 # GNU dynamic linker. Since this was broken with cross compilers,
10995 # most powerpc-linux boxes support dynamic linking these days and
10996 # people can always --disable-shared, the test was removed, and we
10997 # assume the GNU/Linux dynamic linker is in use.
10998 dynamic_linker='GNU/Linux ld.so'
11005 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11007 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11008 dynamic_linker='NetBSD (a.out) ld.so'
11010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11011 soname_spec='${libname}${release}${shared_ext}$major'
11012 dynamic_linker='NetBSD ld.elf_so'
11014 shlibpath_var=LD_LIBRARY_PATH
11015 shlibpath_overrides_runpath=yes
11016 hardcode_into_libs=yes
11021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11022 shlibpath_var=LD_LIBRARY_PATH
11023 shlibpath_overrides_runpath=yes
11030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11031 soname_spec='${libname}${release}${shared_ext}$major'
11032 shlibpath_var=LD_LIBRARY_PATH
11033 shlibpath_overrides_runpath=no
11034 hardcode_into_libs=yes
11035 dynamic_linker='ldqnx.so'
11040 sys_lib_dlsearch_path_spec="/usr/lib"
11042 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11044 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11045 *) need_version=no ;;
11047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11049 shlibpath_var=LD_LIBRARY_PATH
11050 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11052 openbsd2.[89] | openbsd2.[89].*)
11053 shlibpath_overrides_runpath=no
11056 shlibpath_overrides_runpath=yes
11060 shlibpath_overrides_runpath=yes
11065 libname_spec='$name'
11068 library_names_spec='$libname${shared_ext} $libname.a'
11069 dynamic_linker='OS/2 ld.exe'
11070 shlibpath_var=LIBPATH
11073 osf3* | osf4* | osf5*)
11077 soname_spec='${libname}${release}${shared_ext}$major'
11078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11079 shlibpath_var=LD_LIBRARY_PATH
11080 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11081 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11093 soname_spec='${libname}${release}${shared_ext}$major'
11094 shlibpath_var=LD_LIBRARY_PATH
11095 shlibpath_overrides_runpath=yes
11096 hardcode_into_libs=yes
11097 # ldd complains unless libraries are executable
11098 postinstall_cmds='chmod +x $lib'
11103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11104 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11105 shlibpath_var=LD_LIBRARY_PATH
11106 shlibpath_overrides_runpath=yes
11107 if test "$with_gnu_ld" = yes; then
11115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11116 soname_spec='${libname}${release}${shared_ext}$major'
11117 shlibpath_var=LD_LIBRARY_PATH
11118 case $host_vendor in
11120 shlibpath_overrides_runpath=no
11122 runpath_var=LD_RUN_PATH
11130 shlibpath_overrides_runpath=no
11131 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11137 if test -d /usr/nec ;then
11139 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11140 soname_spec='$libname${shared_ext}.$major'
11141 shlibpath_var=LD_LIBRARY_PATH
11145 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11146 version_type=freebsd-elf
11149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11150 soname_spec='${libname}${release}${shared_ext}$major'
11151 shlibpath_var=LD_LIBRARY_PATH
11152 shlibpath_overrides_runpath=yes
11153 hardcode_into_libs=yes
11154 if test "$with_gnu_ld" = yes; then
11155 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11157 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11160 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11164 sys_lib_dlsearch_path_spec='/usr/lib'
11168 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11173 shlibpath_var=LD_LIBRARY_PATH
11174 shlibpath_overrides_runpath=no
11175 hardcode_into_libs=yes
11180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11181 soname_spec='${libname}${release}${shared_ext}$major'
11182 shlibpath_var=LD_LIBRARY_PATH
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11190 $as_echo "$dynamic_linker" >&6; }
11191 test "$dynamic_linker" = no && can_build_shared=no
11193 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11194 if test "$GCC" = yes; then
11195 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11198 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11199 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11201 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11202 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11297 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11299 if test -n "$hardcode_libdir_flag_spec" ||
11300 test -n "$runpath_var" ||
11301 test "X$hardcode_automatic" = "Xyes" ; then
11303 # We can hardcode non-existent directories.
11304 if test "$hardcode_direct" != no &&
11305 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11306 # have to relink, otherwise we might link with an installed library
11307 # when we should be linking with a yet-to-be-installed one
11308 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11309 test "$hardcode_minus_L" != no; then
11310 # Linking always hardcodes the temporary library directory.
11311 hardcode_action=relink
11313 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11314 hardcode_action=immediate
11317 # We cannot hardcode anything, or else we can only hardcode existing
11319 hardcode_action=unsupported
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11322 $as_echo "$hardcode_action" >&6; }
11324 if test "$hardcode_action" = relink ||
11325 test "$inherit_rpath" = yes; then
11326 # Fast installation is not supported
11327 enable_fast_install=no
11328 elif test "$shlibpath_overrides_runpath" = yes ||
11329 test "$enable_shared" = no; then
11330 # Fast installation is not necessary
11331 enable_fast_install=needless
11339 if test "x$enable_dlopen" != xyes; then
11340 enable_dlopen=unknown
11341 enable_dlopen_self=unknown
11342 enable_dlopen_self_static=unknown
11349 lt_cv_dlopen="load_add_on"
11351 lt_cv_dlopen_self=yes
11354 mingw* | pw32* | cegcc*)
11355 lt_cv_dlopen="LoadLibrary"
11360 lt_cv_dlopen="dlopen"
11365 # if libdl is installed we need to link against it
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11367 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11368 if ${ac_cv_lib_dl_dlopen+:} false; then :
11369 $as_echo_n "(cached) " >&6
11371 ac_check_lib_save_LIBS=$LIBS
11373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11374 /* end confdefs.h. */
11376 /* Override any GCC internal prototype to avoid an error.
11377 Use char because int might match the return type of a GCC
11378 builtin and then its argument prototype would still apply. */
11391 if ac_fn_c_try_link "$LINENO"; then :
11392 ac_cv_lib_dl_dlopen=yes
11394 ac_cv_lib_dl_dlopen=no
11396 rm -f core conftest.err conftest.$ac_objext \
11397 conftest$ac_exeext conftest.$ac_ext
11398 LIBS=$ac_check_lib_save_LIBS
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11401 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11402 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11403 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11406 lt_cv_dlopen="dyld"
11408 lt_cv_dlopen_self=yes
11415 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11416 if test "x$ac_cv_func_shl_load" = xyes; then :
11417 lt_cv_dlopen="shl_load"
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11420 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11421 if ${ac_cv_lib_dld_shl_load+:} false; then :
11422 $as_echo_n "(cached) " >&6
11424 ac_check_lib_save_LIBS=$LIBS
11426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11427 /* end confdefs.h. */
11429 /* Override any GCC internal prototype to avoid an error.
11430 Use char because int might match the return type of a GCC
11431 builtin and then its argument prototype would still apply. */
11439 return shl_load ();
11444 if ac_fn_c_try_link "$LINENO"; then :
11445 ac_cv_lib_dld_shl_load=yes
11447 ac_cv_lib_dld_shl_load=no
11449 rm -f core conftest.err conftest.$ac_objext \
11450 conftest$ac_exeext conftest.$ac_ext
11451 LIBS=$ac_check_lib_save_LIBS
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11454 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11455 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11456 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11458 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11459 if test "x$ac_cv_func_dlopen" = xyes; then :
11460 lt_cv_dlopen="dlopen"
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11463 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11464 if ${ac_cv_lib_dl_dlopen+:} false; then :
11465 $as_echo_n "(cached) " >&6
11467 ac_check_lib_save_LIBS=$LIBS
11469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11470 /* end confdefs.h. */
11472 /* Override any GCC internal prototype to avoid an error.
11473 Use char because int might match the return type of a GCC
11474 builtin and then its argument prototype would still apply. */
11487 if ac_fn_c_try_link "$LINENO"; then :
11488 ac_cv_lib_dl_dlopen=yes
11490 ac_cv_lib_dl_dlopen=no
11492 rm -f core conftest.err conftest.$ac_objext \
11493 conftest$ac_exeext conftest.$ac_ext
11494 LIBS=$ac_check_lib_save_LIBS
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11497 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11498 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11499 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11502 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11503 if ${ac_cv_lib_svld_dlopen+:} false; then :
11504 $as_echo_n "(cached) " >&6
11506 ac_check_lib_save_LIBS=$LIBS
11507 LIBS="-lsvld $LIBS"
11508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11509 /* end confdefs.h. */
11511 /* Override any GCC internal prototype to avoid an error.
11512 Use char because int might match the return type of a GCC
11513 builtin and then its argument prototype would still apply. */
11526 if ac_fn_c_try_link "$LINENO"; then :
11527 ac_cv_lib_svld_dlopen=yes
11529 ac_cv_lib_svld_dlopen=no
11531 rm -f core conftest.err conftest.$ac_objext \
11532 conftest$ac_exeext conftest.$ac_ext
11533 LIBS=$ac_check_lib_save_LIBS
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11536 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11537 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11538 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11541 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11542 if ${ac_cv_lib_dld_dld_link+:} false; then :
11543 $as_echo_n "(cached) " >&6
11545 ac_check_lib_save_LIBS=$LIBS
11547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11548 /* end confdefs.h. */
11550 /* Override any GCC internal prototype to avoid an error.
11551 Use char because int might match the return type of a GCC
11552 builtin and then its argument prototype would still apply. */
11560 return dld_link ();
11565 if ac_fn_c_try_link "$LINENO"; then :
11566 ac_cv_lib_dld_dld_link=yes
11568 ac_cv_lib_dld_dld_link=no
11570 rm -f core conftest.err conftest.$ac_objext \
11571 conftest$ac_exeext conftest.$ac_ext
11572 LIBS=$ac_check_lib_save_LIBS
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11575 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11576 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11577 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11598 if test "x$lt_cv_dlopen" != xno; then
11604 case $lt_cv_dlopen in
11606 save_CPPFLAGS="$CPPFLAGS"
11607 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11609 save_LDFLAGS="$LDFLAGS"
11610 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11613 LIBS="$lt_cv_dlopen_libs $LIBS"
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11616 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11617 if ${lt_cv_dlopen_self+:} false; then :
11618 $as_echo_n "(cached) " >&6
11620 if test "$cross_compiling" = yes; then :
11621 lt_cv_dlopen_self=cross
11623 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11624 lt_status=$lt_dlunknown
11625 cat > conftest.$ac_ext <<_LT_EOF
11626 #line 11626 "configure"
11627 #include "confdefs.h"
11636 # define LT_DLGLOBAL RTLD_GLOBAL
11639 # define LT_DLGLOBAL DL_GLOBAL
11641 # define LT_DLGLOBAL 0
11645 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11646 find out it does not work in some platform. */
11647 #ifndef LT_DLLAZY_OR_NOW
11649 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11652 # define LT_DLLAZY_OR_NOW DL_LAZY
11655 # define LT_DLLAZY_OR_NOW RTLD_NOW
11658 # define LT_DLLAZY_OR_NOW DL_NOW
11660 # define LT_DLLAZY_OR_NOW 0
11667 /* When -fvisbility=hidden is used, assume the code has been annotated
11668 correspondingly for the symbols needed. */
11669 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11670 void fnord () __attribute__((visibility("default")));
11673 void fnord () { int i=42; }
11676 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11677 int status = $lt_dlunknown;
11681 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11684 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11685 else puts (dlerror ());
11687 /* dlclose (self); */
11695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11696 (eval $ac_link) 2>&5
11698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11699 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11700 (./conftest; exit; ) >&5 2>/dev/null
11702 case x$lt_status in
11703 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11704 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11705 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11708 # compilation failed
11709 lt_cv_dlopen_self=no
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11717 $as_echo "$lt_cv_dlopen_self" >&6; }
11719 if test "x$lt_cv_dlopen_self" = xyes; then
11720 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11722 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11723 if ${lt_cv_dlopen_self_static+:} false; then :
11724 $as_echo_n "(cached) " >&6
11726 if test "$cross_compiling" = yes; then :
11727 lt_cv_dlopen_self_static=cross
11729 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11730 lt_status=$lt_dlunknown
11731 cat > conftest.$ac_ext <<_LT_EOF
11732 #line 11732 "configure"
11733 #include "confdefs.h"
11742 # define LT_DLGLOBAL RTLD_GLOBAL
11745 # define LT_DLGLOBAL DL_GLOBAL
11747 # define LT_DLGLOBAL 0
11751 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11752 find out it does not work in some platform. */
11753 #ifndef LT_DLLAZY_OR_NOW
11755 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11758 # define LT_DLLAZY_OR_NOW DL_LAZY
11761 # define LT_DLLAZY_OR_NOW RTLD_NOW
11764 # define LT_DLLAZY_OR_NOW DL_NOW
11766 # define LT_DLLAZY_OR_NOW 0
11773 /* When -fvisbility=hidden is used, assume the code has been annotated
11774 correspondingly for the symbols needed. */
11775 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11776 void fnord () __attribute__((visibility("default")));
11779 void fnord () { int i=42; }
11782 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11783 int status = $lt_dlunknown;
11787 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11790 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11791 else puts (dlerror ());
11793 /* dlclose (self); */
11801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11802 (eval $ac_link) 2>&5
11804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11805 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11806 (./conftest; exit; ) >&5 2>/dev/null
11808 case x$lt_status in
11809 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11810 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11811 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11814 # compilation failed
11815 lt_cv_dlopen_self_static=no
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11823 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11826 CPPFLAGS="$save_CPPFLAGS"
11827 LDFLAGS="$save_LDFLAGS"
11832 case $lt_cv_dlopen_self in
11833 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11834 *) enable_dlopen_self=unknown ;;
11837 case $lt_cv_dlopen_self_static in
11838 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11839 *) enable_dlopen_self_static=unknown ;;
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11862 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11863 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11864 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11865 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11867 $as_echo "yes" >&6; }
11869 # FIXME - insert some real tests, host_os isn't really good enough
11872 if test -n "$STRIP" ; then
11873 striplib="$STRIP -x"
11874 old_striplib="$STRIP -S"
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11876 $as_echo "yes" >&6; }
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11879 $as_echo "no" >&6; }
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11884 $as_echo "no" >&6; }
11900 # Report which library types will actually be built
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11902 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11904 $as_echo "$can_build_shared" >&6; }
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11907 $as_echo_n "checking whether to build shared libraries... " >&6; }
11908 test "$can_build_shared" = "no" && enable_shared=no
11910 # On AIX, shared libraries and static libraries use the same namespace, and
11911 # are all built from PIC.
11914 test "$enable_shared" = yes && enable_static=no
11915 if test -n "$RANLIB"; then
11916 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11917 postinstall_cmds='$RANLIB $lib'
11922 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11923 test "$enable_shared" = yes && enable_static=no
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11928 $as_echo "$enable_shared" >&6; }
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11931 $as_echo_n "checking whether to build static libraries... " >&6; }
11932 # Make sure either enable_shared or enable_static is yes.
11933 test "$enable_shared" = yes || enable_static=yes
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11935 $as_echo "$enable_static" >&6; }
11942 ac_cpp='$CPP $CPPFLAGS'
11943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11961 ac_config_commands="$ac_config_commands libtool"
11966 # Only expand once:
11972 gdc_save_DFLAGS=$GDCFLAGS
11973 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
11976 # Source file extension for D test sources.
11979 # Object file extension for compiled D test sources.
11983 # Code to be used in simple compile tests
11984 lt_simple_compile_test_code="\
11986 shared int some_variable = 0;
11989 # Code to be used in simple link tests
11990 lt_simple_link_test_code="\
11992 extern(C) int main() { return 0; }
11995 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12002 # If no C compiler was specified, use CC.
12005 # If no C compiler flags were specified, use CFLAGS.
12006 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12008 # Allow CC to be a program name with arguments.
12012 # save warnings/boilerplate of simple test code
12013 ac_outfile=conftest.$ac_objext
12014 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12015 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12016 _lt_compiler_boilerplate=`cat conftest.err`
12019 ac_outfile=conftest.$ac_objext
12020 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12021 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12022 _lt_linker_boilerplate=`cat conftest.err`
12026 # Allow CC to be a program name with arguments.
12028 lt_save_CFLAGS=$CFLAGS
12036 for cc_temp in $compiler""; do
12038 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12039 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12044 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12047 # GDC did not exist at the time GCC didn't implicitly link libc in.
12048 archive_cmds_need_lc_D=no
12050 old_archive_cmds_D=$old_archive_cmds
12051 reload_flag_D=$reload_flag
12052 reload_cmds_D=$reload_cmds
12055 ## There is no encapsulation within the following macros, do not change
12056 ## the running order or otherwise move them around unless you know exactly
12057 ## what you are doing...
12058 if test -n "$compiler"; then
12060 lt_prog_compiler_no_builtin_flag_D=
12062 if test "$GCC" = yes; then
12063 case $cc_basename in
12065 lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
12067 lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12071 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12072 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12073 $as_echo_n "(cached) " >&6
12075 lt_cv_prog_compiler_rtti_exceptions=no
12076 ac_outfile=conftest.$ac_objext
12077 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12078 lt_compiler_flag="-fno-rtti -fno-exceptions"
12079 # Insert the option either (1) after the last *FLAGS variable, or
12080 # (2) before a word containing "conftest.", or (3) at the end.
12081 # Note that $ac_compile itself does not contain backslashes and begins
12082 # with a dollar sign (not a hyphen), so the echo should work correctly.
12083 # The option is referenced via a variable to avoid confusing sed.
12084 lt_compile=`echo "$ac_compile" | $SED \
12085 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12086 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12087 -e 's:$: $lt_compiler_flag:'`
12088 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12089 (eval "$lt_compile" 2>conftest.err)
12091 cat conftest.err >&5
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 if (exit $ac_status) && test -s "$ac_outfile"; then
12094 # The compiler can only warn and ignore the option if not recognized
12095 # So say no if there are warnings other than the usual output.
12096 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12097 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12098 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12099 lt_cv_prog_compiler_rtti_exceptions=yes
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12106 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12108 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12109 lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12118 lt_prog_compiler_wl_D=
12119 lt_prog_compiler_pic_D=
12120 lt_prog_compiler_static_D=
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12123 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12125 if test "$GCC" = yes; then
12126 lt_prog_compiler_wl_D='-Wl,'
12127 lt_prog_compiler_static_D='-static'
12131 # All AIX code is PIC.
12132 if test "$host_cpu" = ia64; then
12133 # AIX 5 now supports IA64 processor
12134 lt_prog_compiler_static_D='-Bstatic'
12136 lt_prog_compiler_pic_D='-fPIC'
12142 # see comment about AmigaOS4 .so support
12143 lt_prog_compiler_pic_D='-fPIC'
12146 # FIXME: we need at least 68020 code to build shared libraries, but
12147 # adding the `-m68020' flag to GCC prevents building anything better,
12149 lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12154 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12155 # PIC is the default for these OSes.
12158 mingw* | cygwin* | pw32* | os2* | cegcc*)
12159 # This hack is so that the source file can tell whether it is being
12160 # built for inclusion in a dll (and should export symbols for example).
12161 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12162 # (--disable-auto-import) libraries
12163 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12166 darwin* | rhapsody*)
12167 # PIC is the default on this platform
12168 # Common symbols not allowed in MH_DYLIB files
12169 lt_prog_compiler_pic_D='-fno-common'
12173 # PIC is the default for Haiku.
12174 # The "-static" flag exists, but is broken.
12175 lt_prog_compiler_static_D=
12179 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12180 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12181 # sets the default TLS model and affects inlining.
12187 lt_prog_compiler_pic_D='-fPIC'
12193 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12194 # Instead, we relocate shared libraries at runtime.
12198 # Just because we use GCC doesn't mean we suddenly get shared libraries
12199 # on systems that don't support them.
12200 lt_prog_compiler_can_build_shared_D=no
12205 # QNX uses GNU C++, but need to define -shared option too, otherwise
12206 # it will coredump.
12207 lt_prog_compiler_pic_D='-fPIC -shared'
12211 if test -d /usr/nec; then
12212 lt_prog_compiler_pic_D=-Kconform_pic
12217 lt_prog_compiler_pic_D='-fPIC'
12221 case $cc_basename in
12222 nvcc*) # Cuda Compiler Driver 2.2
12223 lt_prog_compiler_wl_D='-Xlinker '
12224 lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12228 # PORTME Check for flag to pass linker flags through the system compiler.
12231 lt_prog_compiler_wl_D='-Wl,'
12232 if test "$host_cpu" = ia64; then
12233 # AIX 5 now supports IA64 processor
12234 lt_prog_compiler_static_D='-Bstatic'
12236 lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12240 mingw* | cygwin* | pw32* | os2* | cegcc*)
12241 # This hack is so that the source file can tell whether it is being
12242 # built for inclusion in a dll (and should export symbols for example).
12243 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12246 hpux9* | hpux10* | hpux11*)
12247 lt_prog_compiler_wl_D='-Wl,'
12248 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12249 # not for PA HP-UX.
12255 lt_prog_compiler_pic_D='+Z'
12258 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12259 lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12262 irix5* | irix6* | nonstopux*)
12263 lt_prog_compiler_wl_D='-Wl,'
12264 # PIC (with -KPIC) is the default.
12265 lt_prog_compiler_static_D='-non_shared'
12268 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12269 case $cc_basename in
12270 # old Intel for x86_64 which still supported -KPIC.
12272 lt_prog_compiler_wl_D='-Wl,'
12273 lt_prog_compiler_pic_D='-KPIC'
12274 lt_prog_compiler_static_D='-static'
12276 # icc used to be incompatible with GCC.
12277 # ICC 10 doesn't accept -KPIC any more.
12279 lt_prog_compiler_wl_D='-Wl,'
12280 lt_prog_compiler_pic_D='-fPIC'
12281 lt_prog_compiler_static_D='-static'
12283 # Lahey Fortran 8.1.
12285 lt_prog_compiler_wl_D='-Wl,'
12286 lt_prog_compiler_pic_D='--shared'
12287 lt_prog_compiler_static_D='--static'
12289 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12290 # Portland Group compilers (*not* the Pentium gcc compiler,
12291 # which looks to be a dead project)
12292 lt_prog_compiler_wl_D='-Wl,'
12293 lt_prog_compiler_pic_D='-fpic'
12294 lt_prog_compiler_static_D='-Bstatic'
12297 lt_prog_compiler_wl_D='-Wl,'
12298 # All Alpha code is PIC.
12299 lt_prog_compiler_static_D='-non_shared'
12301 xl* | bgxl* | bgf* | mpixl*)
12302 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12303 lt_prog_compiler_wl_D='-Wl,'
12304 lt_prog_compiler_pic_D='-qpic'
12305 lt_prog_compiler_static_D='-qstaticlink'
12308 case `$CC -V 2>&1 | sed 5q` in
12309 *Sun\ F* | *Sun*Fortran*)
12310 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12311 lt_prog_compiler_pic_D='-KPIC'
12312 lt_prog_compiler_static_D='-Bstatic'
12313 lt_prog_compiler_wl_D=''
12317 lt_prog_compiler_pic_D='-KPIC'
12318 lt_prog_compiler_static_D='-Bstatic'
12319 lt_prog_compiler_wl_D='-Wl,'
12327 lt_prog_compiler_pic_D='-KPIC'
12328 lt_prog_compiler_static_D='-Bstatic'
12332 # QNX uses GNU C++, but need to define -shared option too, otherwise
12333 # it will coredump.
12334 lt_prog_compiler_pic_D='-fPIC -shared'
12337 osf3* | osf4* | osf5*)
12338 lt_prog_compiler_wl_D='-Wl,'
12339 # All OSF/1 code is PIC.
12340 lt_prog_compiler_static_D='-non_shared'
12344 lt_prog_compiler_static_D='-non_shared'
12348 lt_prog_compiler_pic_D='-KPIC'
12349 lt_prog_compiler_static_D='-Bstatic'
12350 case $cc_basename in
12351 f77* | f90* | f95*)
12352 lt_prog_compiler_wl_D='-Qoption ld ';;
12354 lt_prog_compiler_wl_D='-Wl,';;
12359 lt_prog_compiler_wl_D='-Qoption ld '
12360 lt_prog_compiler_pic_D='-PIC'
12361 lt_prog_compiler_static_D='-Bstatic'
12364 sysv4 | sysv4.2uw2* | sysv4.3*)
12365 lt_prog_compiler_wl_D='-Wl,'
12366 lt_prog_compiler_pic_D='-KPIC'
12367 lt_prog_compiler_static_D='-Bstatic'
12371 if test -d /usr/nec ;then
12372 lt_prog_compiler_pic_D='-Kconform_pic'
12373 lt_prog_compiler_static_D='-Bstatic'
12377 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12378 lt_prog_compiler_wl_D='-Wl,'
12379 lt_prog_compiler_pic_D='-KPIC'
12380 lt_prog_compiler_static_D='-Bstatic'
12384 lt_prog_compiler_wl_D='-Wl,'
12385 lt_prog_compiler_can_build_shared_D=no
12389 lt_prog_compiler_pic_D='-pic'
12390 lt_prog_compiler_static_D='-Bstatic'
12394 lt_prog_compiler_can_build_shared_D=no
12400 # For platforms which do not support PIC, -DPIC is meaningless:
12402 lt_prog_compiler_pic_D=
12405 lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12409 $as_echo "$lt_prog_compiler_pic_D" >&6; }
12414 # Check to make sure the PIC flag actually works.
12416 if test -n "$lt_prog_compiler_pic_D"; then
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12418 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
12419 if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
12420 $as_echo_n "(cached) " >&6
12422 lt_cv_prog_compiler_pic_works_D=no
12423 ac_outfile=conftest.$ac_objext
12424 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12425 lt_compiler_flag="$lt_prog_compiler_pic_D"
12426 # Insert the option either (1) after the last *FLAGS variable, or
12427 # (2) before a word containing "conftest.", or (3) at the end.
12428 # Note that $ac_compile itself does not contain backslashes and begins
12429 # with a dollar sign (not a hyphen), so the echo should work correctly.
12430 # The option is referenced via a variable to avoid confusing sed.
12431 lt_compile=`echo "$ac_compile" | $SED \
12432 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12433 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12434 -e 's:$: $lt_compiler_flag:'`
12435 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12436 (eval "$lt_compile" 2>conftest.err)
12438 cat conftest.err >&5
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 if (exit $ac_status) && test -s "$ac_outfile"; then
12441 # The compiler can only warn and ignore the option if not recognized
12442 # So say no if there are warnings other than the usual output.
12443 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12444 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12445 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12446 lt_cv_prog_compiler_pic_works_D=yes
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12453 $as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12455 if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12456 case $lt_prog_compiler_pic_D in
12458 *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12461 lt_prog_compiler_pic_D=
12462 lt_prog_compiler_can_build_shared_D=no
12470 # Check to make sure the static flag actually works.
12472 wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12474 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12475 if ${lt_cv_prog_compiler_static_works_D+:} false; then :
12476 $as_echo_n "(cached) " >&6
12478 lt_cv_prog_compiler_static_works_D=no
12479 save_LDFLAGS="$LDFLAGS"
12480 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12481 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12482 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12483 # The linker can only warn and ignore the option if not recognized
12484 # So say no if there are warnings
12485 if test -s conftest.err; then
12486 # Append any errors to the config.log.
12487 cat conftest.err 1>&5
12488 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12489 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12490 if diff conftest.exp conftest.er2 >/dev/null; then
12491 lt_cv_prog_compiler_static_works_D=yes
12494 lt_cv_prog_compiler_static_works_D=yes
12498 LDFLAGS="$save_LDFLAGS"
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12502 $as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12504 if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12507 lt_prog_compiler_static_D=
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12514 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12515 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12516 $as_echo_n "(cached) " >&6
12518 lt_cv_prog_compiler_c_o_D=no
12519 $RM -r conftest 2>/dev/null
12523 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12525 lt_compiler_flag="-o out/conftest2.$ac_objext"
12526 # Insert the option either (1) after the last *FLAGS variable, or
12527 # (2) before a word containing "conftest.", or (3) at the end.
12528 # Note that $ac_compile itself does not contain backslashes and begins
12529 # with a dollar sign (not a hyphen), so the echo should work correctly.
12530 lt_compile=`echo "$ac_compile" | $SED \
12531 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12532 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12533 -e 's:$: $lt_compiler_flag:'`
12534 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12535 (eval "$lt_compile" 2>out/conftest.err)
12537 cat out/conftest.err >&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12541 # The compiler can only warn and ignore the option if not recognized
12542 # So say no if there are warnings
12543 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12544 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12545 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12546 lt_cv_prog_compiler_c_o_D=yes
12551 # SGI C++ compiler will create directory out/ii_files/ for
12552 # template instantiation
12553 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12554 $RM out/* && rmdir out
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12561 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12566 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12567 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12568 $as_echo_n "(cached) " >&6
12570 lt_cv_prog_compiler_c_o_D=no
12571 $RM -r conftest 2>/dev/null
12575 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12577 lt_compiler_flag="-o out/conftest2.$ac_objext"
12578 # Insert the option either (1) after the last *FLAGS variable, or
12579 # (2) before a word containing "conftest.", or (3) at the end.
12580 # Note that $ac_compile itself does not contain backslashes and begins
12581 # with a dollar sign (not a hyphen), so the echo should work correctly.
12582 lt_compile=`echo "$ac_compile" | $SED \
12583 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12584 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12585 -e 's:$: $lt_compiler_flag:'`
12586 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12587 (eval "$lt_compile" 2>out/conftest.err)
12589 cat out/conftest.err >&5
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12593 # The compiler can only warn and ignore the option if not recognized
12594 # So say no if there are warnings
12595 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12596 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12597 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12598 lt_cv_prog_compiler_c_o_D=yes
12603 # SGI C++ compiler will create directory out/ii_files/ for
12604 # template instantiation
12605 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12606 $RM out/* && rmdir out
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12613 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12618 hard_links="nottested"
12619 if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12620 # do not overwrite the value of need_locks provided by the user
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12622 $as_echo_n "checking if we can lock with hard links... " >&6; }
12625 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12627 ln conftest.a conftest.b 2>&5 || hard_links=no
12628 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12630 $as_echo "$hard_links" >&6; }
12631 if test "$hard_links" = no; then
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12633 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12643 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12646 allow_undefined_flag_D=
12647 always_export_symbols_D=no
12649 archive_expsym_cmds_D=
12650 compiler_needs_object_D=no
12651 enable_shared_with_static_runtimes_D=no
12652 export_dynamic_flag_spec_D=
12653 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12654 hardcode_automatic_D=no
12655 hardcode_direct_D=no
12656 hardcode_direct_absolute_D=no
12657 hardcode_libdir_flag_spec_D=
12658 hardcode_libdir_flag_spec_ld_D=
12659 hardcode_libdir_separator_D=
12660 hardcode_minus_L_D=no
12661 hardcode_shlibpath_var_D=unsupported
12663 link_all_deplibs_D=unknown
12665 module_expsym_cmds_D=
12666 old_archive_from_new_cmds_D=
12667 old_archive_from_expsyms_cmds_D=
12668 thread_safe_flag_spec_D=
12669 whole_archive_flag_spec_D=
12670 # include_expsyms should be a list of space-separated symbols to be *always*
12671 # included in the symbol list
12673 # exclude_expsyms can be an extended regexp of symbols to exclude
12674 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12675 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12676 # as well as any symbol that contains `d'.
12677 exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12678 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12679 # platforms (ab)use it in PIC code, but their linkers get confused if
12680 # the symbol is explicitly referenced. Since portable code cannot
12681 # rely on this symbol name, it's probably fine to never include it in
12682 # preloaded symbol tables.
12683 # Exclude shared library initialization/finalization symbols.
12684 extract_expsyms_cmds=
12687 cygwin* | mingw* | pw32* | cegcc*)
12688 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12689 # When not using gcc, we currently assume that we are using
12690 # Microsoft Visual C++.
12691 if test "$GCC" != yes; then
12696 # we just hope/assume this is gcc and not c89 (= MSVC++)
12706 # On some targets, GNU ld is compatible enough with the native linker
12707 # that we're better off using the native interface for both.
12708 lt_use_gnu_ld_interface=no
12709 if test "$with_gnu_ld" = yes; then
12712 # The AIX port of GNU ld has always aspired to compatibility
12713 # with the native linker. However, as the warning in the GNU ld
12714 # block says, versions before 2.19.5* couldn't really create working
12715 # shared libraries, regardless of the interface used.
12716 case `$LD -v 2>&1` in
12717 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12718 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12719 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12721 lt_use_gnu_ld_interface=yes
12726 lt_use_gnu_ld_interface=yes
12731 if test "$lt_use_gnu_ld_interface" = yes; then
12732 # If archive_cmds runs LD, not CC, wlarc should be empty
12735 # Set some defaults for GNU ld with shared library support. These
12736 # are reset later if shared libraries are not supported. Putting them
12737 # here allows them to be overridden if necessary.
12738 runpath_var=LD_RUN_PATH
12739 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12740 export_dynamic_flag_spec_D='${wl}--export-dynamic'
12741 # ancient GNU ld didn't support --whole-archive et. al.
12742 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12743 whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12745 whole_archive_flag_spec_D=
12747 supports_anon_versioning=no
12748 case `$LD -v 2>&1` in
12749 *GNU\ gold*) supports_anon_versioning=yes ;;
12750 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12751 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12752 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12753 *\ 2.11.*) ;; # other 2.11 versions
12754 *) supports_anon_versioning=yes ;;
12757 # See if GNU ld supports shared libraries.
12760 # On AIX/PPC, the GNU linker is very broken
12761 if test "$host_cpu" != ia64; then
12765 *** Warning: the GNU linker, at least up to release 2.19, is reported
12766 *** to be unable to reliably create shared libraries on AIX.
12767 *** Therefore, libtool is disabling shared libraries support. If you
12768 *** really care for shared libraries, you may want to install binutils
12769 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12770 *** You will then need to restart the configuration process.
12779 # see comment about AmigaOS4 .so support
12780 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12781 archive_expsym_cmds_D=''
12784 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)'
12785 hardcode_libdir_flag_spec_D='-L$libdir'
12786 hardcode_minus_L_D=yes
12792 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12793 allow_undefined_flag_D=unsupported
12794 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12795 # support --undefined. This deserves some investigation. FIXME
12796 archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12802 cygwin* | mingw* | pw32* | cegcc*)
12803 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12804 # as there is no search path for DLLs.
12805 hardcode_libdir_flag_spec_D='-L$libdir'
12806 export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12807 allow_undefined_flag_D=unsupported
12808 always_export_symbols_D=no
12809 enable_shared_with_static_runtimes_D=yes
12810 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12812 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12813 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12814 # If the export-symbols file already is a .def file (1st line
12815 # is EXPORTS), use it as is; otherwise, prepend...
12816 archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12817 cp $export_symbols $output_objdir/$soname.def;
12819 echo EXPORTS > $output_objdir/$soname.def;
12820 cat $export_symbols >> $output_objdir/$soname.def;
12822 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12829 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12830 link_all_deplibs_D=yes
12834 hardcode_direct_D=no
12835 hardcode_shlibpath_var_D=no
12836 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12837 export_dynamic_flag_spec_D='${wl}-E'
12838 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12839 # Instead, shared libraries are loaded at an image base (0x10000000 by
12840 # default) and relocated if they conflict, which is a slow very memory
12841 # consuming and fragmenting process. To avoid this, we pick a random,
12842 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12843 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12844 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'
12845 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'
12848 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12850 if test "$host_os" = linux-dietlibc; then
12851 case $cc_basename in
12852 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12855 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12856 && test "$tmp_diet" = no
12858 tmp_addflag=' $pic_flag'
12859 tmp_sharedflag='-shared'
12860 case $cc_basename,$host_cpu in
12861 pgcc*) # Portland Group C compiler
12862 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'
12863 tmp_addflag=' $pic_flag'
12865 pgf77* | pgf90* | pgf95* | pgfortran*)
12866 # Portland Group f77 and f90 compilers
12867 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'
12868 tmp_addflag=' $pic_flag -Mnomain' ;;
12869 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12870 tmp_addflag=' -i_dynamic' ;;
12871 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12872 tmp_addflag=' -i_dynamic -nofor_main' ;;
12873 ifc* | ifort*) # Intel Fortran compiler
12874 tmp_addflag=' -nofor_main' ;;
12875 lf95*) # Lahey Fortran 8.1
12876 whole_archive_flag_spec_D=
12877 tmp_sharedflag='--shared' ;;
12878 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12879 tmp_sharedflag='-qmkshrobj'
12881 nvcc*) # Cuda Compiler Driver 2.2
12882 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'
12883 compiler_needs_object_D=yes
12886 case `$CC -V 2>&1 | sed 5q` in
12887 *Sun\ C*) # Sun C 5.9
12888 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'
12889 compiler_needs_object_D=yes
12890 tmp_sharedflag='-G' ;;
12891 *Sun\ F*) # Sun Fortran 8.3
12892 tmp_sharedflag='-G' ;;
12894 archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12896 if test "x$supports_anon_versioning" = xyes; then
12897 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12898 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12899 echo "local: *; };" >> $output_objdir/$libname.ver~
12900 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12903 case $cc_basename in
12904 xlf* | bgf* | bgxlf* | mpixlf*)
12905 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12906 whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
12907 hardcode_libdir_flag_spec_D=
12908 hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
12909 archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12910 if test "x$supports_anon_versioning" = xyes; then
12911 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12912 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12913 echo "local: *; };" >> $output_objdir/$libname.ver~
12914 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12924 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12925 archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12928 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12929 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12934 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12938 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12939 *** create shared libraries on Solaris systems. Therefore, libtool
12940 *** is disabling shared libraries support. We urge you to upgrade GNU
12941 *** binutils to release 2.9.1 or newer. Another option is to modify
12942 *** your PATH or compiler configuration so that the native linker is
12943 *** used, and then restart.
12946 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12947 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12948 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12954 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12955 case `$LD -v 2>&1` in
12956 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12960 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12961 *** reliably create shared libraries on SCO systems. Therefore, libtool
12962 *** is disabling shared libraries support. We urge you to upgrade GNU
12963 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12964 *** your PATH or compiler configuration so that the native linker is
12965 *** used, and then restart.
12970 # For security reasons, it is highly recommended that you always
12971 # use absolute paths for naming shared libraries, and exclude the
12972 # DT_RUNPATH tag from executables and libraries. But doing so
12973 # requires that you compile everything twice, which is a pain.
12974 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12975 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12976 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12977 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12986 archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12988 hardcode_direct_D=yes
12989 hardcode_shlibpath_var_D=no
12993 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12994 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12995 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13002 if test "$ld_shlibs_D" = no; then
13004 hardcode_libdir_flag_spec_D=
13005 export_dynamic_flag_spec_D=
13006 whole_archive_flag_spec_D=
13009 # PORTME fill in a description of your system's linker (not GNU ld)
13012 allow_undefined_flag_D=unsupported
13013 always_export_symbols_D=yes
13014 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'
13015 # Note: this linker hardcodes the directories in LIBPATH if there
13016 # are no directories specified by -L.
13017 hardcode_minus_L_D=yes
13018 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13019 # Neither direct hardcoding nor static linking is supported with a
13021 hardcode_direct_D=unsupported
13026 if test "$host_cpu" = ia64; then
13027 # On IA64, the linker does run time linking by default, so we don't
13028 # have to do anything special.
13029 aix_use_runtimelinking=no
13030 exp_sym_flag='-Bexport'
13033 # If we're using GNU nm, then we don't want the "-C" option.
13034 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13035 # Also, AIX nm treats weak defined symbols like other global
13036 # defined symbols, whereas GNU nm marks them as "W".
13037 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13038 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'
13040 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'
13042 aix_use_runtimelinking=no
13044 # Test if we are trying to use run time linking or normal
13045 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13046 # need to do runtime linking.
13047 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13048 for ld_flag in $LDFLAGS; do
13049 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13050 aix_use_runtimelinking=yes
13057 exp_sym_flag='-bexport'
13058 no_entry_flag='-bnoentry'
13061 # When large executables or shared objects are built, AIX ld can
13062 # have problems creating the table of contents. If linking a library
13063 # or program results in "error TOC overflow" add -mminimal-toc to
13064 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13065 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13068 hardcode_direct_D=yes
13069 hardcode_direct_absolute_D=yes
13070 hardcode_libdir_separator_D=':'
13071 link_all_deplibs_D=yes
13072 file_list_spec_D='${wl}-f,'
13074 if test "$GCC" = yes; then
13075 case $host_os in aix4.[012]|aix4.[012].*)
13076 # We only want to do this on AIX 4.2 and lower, the check
13077 # below for broken collect2 doesn't work under 4.3+
13078 collect2name=`${CC} -print-prog-name=collect2`
13079 if test -f "$collect2name" &&
13080 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13082 # We have reworked collect2
13085 # We have old collect2
13086 hardcode_direct_D=unsupported
13087 # It fails to find uninstalled libraries when the uninstalled
13088 # path is not listed in the libpath. Setting hardcode_minus_L
13089 # to unsupported forces relinking
13090 hardcode_minus_L_D=yes
13091 hardcode_libdir_flag_spec_D='-L$libdir'
13092 hardcode_libdir_separator_D=
13096 shared_flag='-shared'
13097 if test "$aix_use_runtimelinking" = yes; then
13098 shared_flag="$shared_flag "'${wl}-G'
13102 if test "$host_cpu" = ia64; then
13103 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13104 # chokes on -Wl,-G. The following line is correct:
13107 if test "$aix_use_runtimelinking" = yes; then
13108 shared_flag='${wl}-G'
13110 shared_flag='${wl}-bM:SRE'
13115 export_dynamic_flag_spec_D='${wl}-bexpall'
13116 # It seems that -bexpall does not export symbols beginning with
13117 # underscore (_), so it is better to generate a list of symbols to export.
13118 always_export_symbols_D=yes
13119 if test "$aix_use_runtimelinking" = yes; then
13120 # Warning - without using the other runtime loading flags (-brtl),
13121 # -berok will link without error, but may produce a broken library.
13122 allow_undefined_flag_D='-berok'
13123 # Determine the default libpath from the value encoded in an
13124 # empty executable.
13125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13126 /* end confdefs.h. */
13136 if ac_fn_c_try_link "$LINENO"; then :
13138 lt_aix_libpath_sed='
13139 /Import File Strings/,/^$/ {
13145 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13146 # Check for a 64-bit object if we didn't find anything.
13147 if test -z "$aix_libpath"; then
13148 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13151 rm -f core conftest.err conftest.$ac_objext \
13152 conftest$ac_exeext conftest.$ac_ext
13153 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13155 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13156 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"
13158 if test "$host_cpu" = ia64; then
13159 hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13160 allow_undefined_flag_D="-z nodefs"
13161 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"
13163 # Determine the default libpath from the value encoded in an
13164 # empty executable.
13165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13166 /* end confdefs.h. */
13176 if ac_fn_c_try_link "$LINENO"; then :
13178 lt_aix_libpath_sed='
13179 /Import File Strings/,/^$/ {
13185 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13186 # Check for a 64-bit object if we didn't find anything.
13187 if test -z "$aix_libpath"; then
13188 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13191 rm -f core conftest.err conftest.$ac_objext \
13192 conftest$ac_exeext conftest.$ac_ext
13193 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13195 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13196 # Warning - without using the other run time loading flags,
13197 # -berok will link without error, but may produce a broken library.
13198 no_undefined_flag_D=' ${wl}-bernotok'
13199 allow_undefined_flag_D=' ${wl}-berok'
13200 if test "$with_gnu_ld" = yes; then
13201 # We only use this code for GNU lds that support --whole-archive.
13202 whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13204 # Exported symbols can be pulled into shared objects from archives
13205 whole_archive_flag_spec_D='$convenience'
13207 archive_cmds_need_lc_D=yes
13208 # This is similar to how AIX traditionally builds its shared libraries.
13209 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'
13217 # see comment about AmigaOS4 .so support
13218 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13219 archive_expsym_cmds_D=''
13222 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)'
13223 hardcode_libdir_flag_spec_D='-L$libdir'
13224 hardcode_minus_L_D=yes
13230 export_dynamic_flag_spec_D=-rdynamic
13233 cygwin* | mingw* | pw32* | cegcc*)
13234 # When not using gcc, we currently assume that we are using
13235 # Microsoft Visual C++.
13236 # hardcode_libdir_flag_spec is actually meaningless, as there is
13237 # no search path for DLLs.
13238 hardcode_libdir_flag_spec_D=' '
13239 allow_undefined_flag_D=unsupported
13240 # Tell ltmain to make .lib files, not .a files.
13242 # Tell ltmain to make .dll files, not .so files.
13244 # FIXME: Setting linknames here is a bad hack.
13245 archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13246 # The linker will automatically build a .lib file if we build a DLL.
13247 old_archive_from_new_cmds_D='true'
13248 # FIXME: Should let the user specify the lib program.
13249 old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13250 fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13251 enable_shared_with_static_runtimes_D=yes
13254 darwin* | rhapsody*)
13257 archive_cmds_need_lc_D=no
13258 hardcode_direct_D=no
13259 hardcode_automatic_D=yes
13260 hardcode_shlibpath_var_D=unsupported
13261 if test "$lt_cv_ld_force_load" = "yes"; then
13262 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\"`'
13264 whole_archive_flag_spec_D=''
13266 link_all_deplibs_D=yes
13267 allow_undefined_flag_D="$_lt_dar_allow_undefined"
13268 case $cc_basename in
13269 ifort*) _lt_dar_can_shared=yes ;;
13270 *) _lt_dar_can_shared=$GCC ;;
13272 if test "$_lt_dar_can_shared" = "yes"; then
13273 output_verbose_link_cmd=func_echo_all
13274 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}"
13275 module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13276 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}"
13277 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}"
13286 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13287 hardcode_libdir_flag_spec_D='-L$libdir'
13288 hardcode_shlibpath_var_D=no
13291 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13292 # support. Future versions do this automatically, but an explicit c++rt0.o
13293 # does not break anything, and helps significantly (at the cost of a little
13296 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13297 hardcode_libdir_flag_spec_D='-R$libdir'
13298 hardcode_direct_D=yes
13299 hardcode_shlibpath_var_D=no
13302 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13304 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13305 hardcode_direct_D=yes
13306 hardcode_minus_L_D=yes
13307 hardcode_shlibpath_var_D=no
13310 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13311 freebsd* | dragonfly*)
13312 archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13313 hardcode_libdir_flag_spec_D='-R$libdir'
13314 hardcode_direct_D=yes
13315 hardcode_shlibpath_var_D=no
13319 if test "$GCC" = yes; then
13320 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'
13322 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'
13324 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13325 hardcode_libdir_separator_D=:
13326 hardcode_direct_D=yes
13328 # hardcode_minus_L: Not really in the search PATH,
13329 # but as the default location of the library.
13330 hardcode_minus_L_D=yes
13331 export_dynamic_flag_spec_D='${wl}-E'
13335 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13336 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13338 archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13340 if test "$with_gnu_ld" = no; then
13341 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13342 hardcode_libdir_flag_spec_ld_D='+b $libdir'
13343 hardcode_libdir_separator_D=:
13344 hardcode_direct_D=yes
13345 hardcode_direct_absolute_D=yes
13346 export_dynamic_flag_spec_D='${wl}-E'
13347 # hardcode_minus_L: Not really in the search PATH,
13348 # but as the default location of the library.
13349 hardcode_minus_L_D=yes
13354 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13357 archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13360 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13363 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13369 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13372 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13375 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13379 if test "$with_gnu_ld" = no; then
13380 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13381 hardcode_libdir_separator_D=:
13385 hardcode_direct_D=no
13386 hardcode_shlibpath_var_D=no
13389 hardcode_direct_D=yes
13390 hardcode_direct_absolute_D=yes
13391 export_dynamic_flag_spec_D='${wl}-E'
13393 # hardcode_minus_L: Not really in the search PATH,
13394 # but as the default location of the library.
13395 hardcode_minus_L_D=yes
13401 irix5* | irix6* | nonstopux*)
13402 if test "$GCC" = yes; then
13403 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'
13404 # Try to use the -exported_symbol ld option, if it does not
13405 # work, assume that -exports_file does not work either and
13406 # implicitly export all symbols.
13407 save_LDFLAGS="$LDFLAGS"
13408 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13410 /* end confdefs.h. */
13413 if ac_fn_c_try_link "$LINENO"; then :
13414 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'
13417 rm -f core conftest.err conftest.$ac_objext \
13418 conftest$ac_exeext conftest.$ac_ext
13419 LDFLAGS="$save_LDFLAGS"
13421 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'
13422 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'
13424 archive_cmds_need_lc_D='no'
13425 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13426 hardcode_libdir_separator_D=:
13427 inherit_rpath_D=yes
13428 link_all_deplibs_D=yes
13432 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13433 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13435 archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13437 hardcode_libdir_flag_spec_D='-R$libdir'
13438 hardcode_direct_D=yes
13439 hardcode_shlibpath_var_D=no
13443 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13444 hardcode_direct_D=yes
13445 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13446 hardcode_libdir_separator_D=:
13447 hardcode_shlibpath_var_D=no
13454 if test -f /usr/libexec/ld.so; then
13455 hardcode_direct_D=yes
13456 hardcode_shlibpath_var_D=no
13457 hardcode_direct_absolute_D=yes
13458 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13459 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13460 archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13461 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13462 export_dynamic_flag_spec_D='${wl}-E'
13465 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13466 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13467 hardcode_libdir_flag_spec_D='-R$libdir'
13470 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13471 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13481 hardcode_libdir_flag_spec_D='-L$libdir'
13482 hardcode_minus_L_D=yes
13483 allow_undefined_flag_D=unsupported
13484 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'
13485 old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13489 if test "$GCC" = yes; then
13490 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13491 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'
13493 allow_undefined_flag_D=' -expect_unresolved \*'
13494 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'
13496 archive_cmds_need_lc_D='no'
13497 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13498 hardcode_libdir_separator_D=:
13501 osf4* | osf5*) # as osf3* with the addition of -msym flag
13502 if test "$GCC" = yes; then
13503 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13504 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'
13505 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13507 allow_undefined_flag_D=' -expect_unresolved \*'
13508 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'
13509 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~
13510 $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'
13512 # Both c and cxx compiler support -rpath directly
13513 hardcode_libdir_flag_spec_D='-rpath $libdir'
13515 archive_cmds_need_lc_D='no'
13516 hardcode_libdir_separator_D=:
13520 no_undefined_flag_D=' -z defs'
13521 if test "$GCC" = yes; then
13523 archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13524 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13525 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13527 case `$CC -V 2>&1` in
13530 archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13531 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13532 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13536 archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13537 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13538 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13542 hardcode_libdir_flag_spec_D='-R$libdir'
13543 hardcode_shlibpath_var_D=no
13545 solaris2.[0-5] | solaris2.[0-5].*) ;;
13547 # The compiler driver will combine and reorder linker options,
13548 # but understands `-z linker_flag'. GCC discards it without `$wl',
13549 # but is careful enough not to reorder.
13550 # Supported since Solaris 2.6 (maybe 2.5.1?)
13551 if test "$GCC" = yes; then
13552 whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13554 whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13558 link_all_deplibs_D=yes
13562 if test "x$host_vendor" = xsequent; then
13563 # Use $CC to link under sequent, because it throws in some extra .o
13564 # files that make .init and .fini sections work.
13565 archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13567 archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13569 hardcode_libdir_flag_spec_D='-L$libdir'
13570 hardcode_direct_D=yes
13571 hardcode_minus_L_D=yes
13572 hardcode_shlibpath_var_D=no
13576 case $host_vendor in
13578 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13579 hardcode_direct_D=yes # is this really true???
13582 ## LD is ld it makes a PLAMLIB
13583 ## CC just makes a GrossModule.
13584 archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13585 reload_cmds_D='$CC -r -o $output$reload_objs'
13586 hardcode_direct_D=no
13589 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13590 hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13593 runpath_var='LD_RUN_PATH'
13594 hardcode_shlibpath_var_D=no
13598 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13599 hardcode_shlibpath_var_D=no
13600 export_dynamic_flag_spec_D='-Bexport'
13604 if test -d /usr/nec; then
13605 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13606 hardcode_shlibpath_var_D=no
13607 runpath_var=LD_RUN_PATH
13608 hardcode_runpath_var=yes
13613 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13614 no_undefined_flag_D='${wl}-z,text'
13615 archive_cmds_need_lc_D=no
13616 hardcode_shlibpath_var_D=no
13617 runpath_var='LD_RUN_PATH'
13619 if test "$GCC" = yes; then
13620 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13621 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13623 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13624 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13628 sysv5* | sco3.2v5* | sco5v6*)
13629 # Note: We can NOT use -z defs as we might desire, because we do not
13630 # link with -lc, and that would cause any symbols used from libc to
13631 # always be unresolved, which means just about no library would
13632 # ever link correctly. If we're not using GNU ld we use -z text
13633 # though, which does catch some bad symbols but isn't as heavy-handed
13635 no_undefined_flag_D='${wl}-z,text'
13636 allow_undefined_flag_D='${wl}-z,nodefs'
13637 archive_cmds_need_lc_D=no
13638 hardcode_shlibpath_var_D=no
13639 hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13640 hardcode_libdir_separator_D=':'
13641 link_all_deplibs_D=yes
13642 export_dynamic_flag_spec_D='${wl}-Bexport'
13643 runpath_var='LD_RUN_PATH'
13645 if test "$GCC" = yes; then
13646 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13647 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13649 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13650 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13655 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13656 hardcode_libdir_flag_spec_D='-L$libdir'
13657 hardcode_shlibpath_var_D=no
13665 if test x$host_vendor = xsni; then
13667 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13668 export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13675 $as_echo "$ld_shlibs_D" >&6; }
13676 test "$ld_shlibs_D" = no && can_build_shared=no
13678 with_gnu_ld_D=$with_gnu_ld
13686 # Do we need to explicitly link libc?
13688 case "x$archive_cmds_need_lc_D" in
13690 # Assume -lc should be added
13691 archive_cmds_need_lc_D=yes
13693 if test "$enable_shared" = yes && test "$GCC" = yes; then
13694 case $archive_cmds_D in
13696 # FIXME: we may have to deal with multi-command sequences.
13699 # Test whether the compiler implicitly links with -lc since on some
13700 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13701 # to ld, don't add -lc before -lgcc.
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13703 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13704 if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
13705 $as_echo_n "(cached) " >&6
13708 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13710 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13711 (eval $ac_compile) 2>&5
13713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13714 test $ac_status = 0; } 2>conftest.err; then
13717 libobjs=conftest.$ac_objext
13719 wl=$lt_prog_compiler_wl_D
13720 pic_flag=$lt_prog_compiler_pic_D
13726 lt_save_allow_undefined_flag=$allow_undefined_flag_D
13727 allow_undefined_flag_D=
13728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13729 (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13732 test $ac_status = 0; }
13734 lt_cv_archive_cmds_need_lc_D=no
13736 lt_cv_archive_cmds_need_lc_D=yes
13738 allow_undefined_flag_D=$lt_save_allow_undefined_flag
13740 cat conftest.err 1>&5
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13746 $as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13747 archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13818 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13820 if test -n "$hardcode_libdir_flag_spec_D" ||
13821 test -n "$runpath_var_D" ||
13822 test "X$hardcode_automatic_D" = "Xyes" ; then
13824 # We can hardcode non-existent directories.
13825 if test "$hardcode_direct_D" != no &&
13826 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13827 # have to relink, otherwise we might link with an installed library
13828 # when we should be linking with a yet-to-be-installed one
13829 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13830 test "$hardcode_minus_L_D" != no; then
13831 # Linking always hardcodes the temporary library directory.
13832 hardcode_action_D=relink
13834 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13835 hardcode_action_D=immediate
13838 # We cannot hardcode anything, or else we can only hardcode existing
13840 hardcode_action_D=unsupported
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13843 $as_echo "$hardcode_action_D" >&6; }
13845 if test "$hardcode_action_D" = relink ||
13846 test "$inherit_rpath_D" = yes; then
13847 # Fast installation is not supported
13848 enable_fast_install=no
13849 elif test "$shlibpath_overrides_runpath" = yes ||
13850 test "$enable_shared" = no; then
13851 # Fast installation is not necessary
13852 enable_fast_install=needless
13864 ac_cpp='$CPP $CPPFLAGS'
13865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13872 CFLAGS=$lt_save_CFLAGS
13874 GDCFLAGS=$gdc_save_DFLAGS
13877 # libtool variables for Phobos shared and position-independent compiles.
13879 # Use phobos_compiler_shared_flag to designate the compile-time flags for
13880 # creating shared objects. Default: -fversion=Shared.
13882 # Use phobos_compiler_pic_flag to designate the compile-time flags for
13883 # creating position-independent objects. This varies with the target
13884 # hardware and operating system, but is often: -fPIC.
13886 # The distinction between pic and shared compilation flags is not present in
13887 # libtool, and so we make it here. How it is handled is that in shared
13888 # compilations the `lt_prog_compiler_pic_D' variable is used to instead
13889 # ensure that conditional compilation of shared runtime code is compiled in.
13890 # The original PIC flags are then used in the compilation of every object.
13892 # Why are objects destined for libgphobos.a compiled with -fPIC?
13893 # Because -fPIC is not harmful to use for objects destined for static
13894 # libraries. In addition, using -fPIC will allow the use of static
13895 # libgphobos.a in the creation of other D shared libraries.
13896 if test "$enable_shared" = yes; then
13897 phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
13898 phobos_compiler_shared_flag="-fversion=Shared"
13900 phobos_compiler_pic_flag=
13901 phobos_compiler_shared_flag=
13906 # Override the libtool's pic_flag and pic_mode.
13907 # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
13908 # NB: this impacts --with-pic and --without-pic.
13909 lt_prog_compiler_pic_D="$phobos_compiler_shared_flag"
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5
13913 $as_echo_n "checking for --enable-libphobos... " >&6; }
13914 # Check whether --enable-libphobos was given.
13915 if test "${enable_libphobos+set}" = set; then :
13916 enableval=$enable_libphobos;
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5
13920 $as_echo "$enable_libphobos" >&6; }
13922 # See if supported.
13923 unset LIBPHOBOS_SUPPORTED
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5
13925 $as_echo_n "checking for host support for libphobos... " >&6; }
13926 . ${srcdir}/configure.tgt
13928 x86_64-*-solaris2.* | i?86-*-solaris2.*)
13929 # libphobos doesn't compile with the Solaris/x86 assembler due to a
13930 # relatively low linelength limit.
13931 as_prog=`$CC -print-prog-name=as`
13932 if test -n "$as_prog" && $as_prog -v /dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
13933 druntime_cv_use_gas=yes;
13935 druntime_cv_use_gas=no;
13938 if test x$druntime_cv_use_gas = xno; then
13939 LIBPHOBOS_SUPPORTED=no
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5
13944 $as_echo "$LIBPHOBOS_SUPPORTED" >&6; }
13946 # Decide if it's usable.
13947 case $LIBPHOBOS_SUPPORTED:$enable_libphobos in
13948 *:no) use_libphobos=no ;;
13949 *:yes) use_libphobos=yes ;;
13950 yes:*) use_libphobos=yes ;;
13951 *:*) use_libphobos=no ;;
13953 if test x$use_libphobos = xyes; then
13954 ENABLE_LIBPHOBOS_TRUE=
13955 ENABLE_LIBPHOBOS_FALSE='#'
13957 ENABLE_LIBPHOBOS_TRUE='#'
13958 ENABLE_LIBPHOBOS_FALSE=
13962 # Determine what GCC version number to use in filesystem paths.
13964 get_gcc_base_ver="cat"
13966 # Check whether --with-gcc-major-version-only was given.
13967 if test "${with_gcc_major_version_only+set}" = set; then :
13968 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13969 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13977 # libphobos/libdruntime specific options and feature detection
13979 # These need to be absolute paths, yet at the same time need to
13980 # canonicalize only relative paths, because then amd will not unmount
13981 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
13982 libphobos_builddir=`${PWDCMD-pwd}`
13984 \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
13985 *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
13991 if test ${multilib} = yes; then
13992 multilib_arg="--enable-multilib"
13998 # Check whether --enable-werror was given.
13999 if test "${enable_werror+set}" = set; then :
14000 enableval=$enable_werror;
14004 if test "x$enable_werror" = "xyes"; then
14005 WERROR_FLAG="-Werror"
14009 # Check whether --enable-druntime-gc was given.
14010 if test "${enable_druntime_gc+set}" = set; then :
14011 enableval=$enable_druntime_gc; enable_druntime_gc=no
14013 enable_druntime_gc=yes
14017 if test "$enable_druntime_gc" = "yes"; then
14018 DRUNTIME_GC_ENABLE_TRUE=
14019 DRUNTIME_GC_ENABLE_FALSE='#'
14021 DRUNTIME_GC_ENABLE_TRUE='#'
14022 DRUNTIME_GC_ENABLE_FALSE=
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
14028 $as_echo_n "checking for target OS... " >&6; }
14029 if ${druntime_cv_target_os+:} false; then :
14030 $as_echo_n "(cached) " >&6
14032 druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
14035 $as_echo "$druntime_cv_target_os" >&6; }
14036 if test -z "$druntime_cv_target_os"; then :
14037 as_fn_error $? "can't detect target OS" "$LINENO" 5
14042 # Check whether --enable-unix was given.
14043 if test "${enable_unix+set}" = set; then :
14044 enableval=$enable_unix; :
14050 case "$druntime_cv_target_os" in
14051 aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*) d_have_unix=1 ;;
14053 if test -n "$d_have_unix" && test "$enable_unix" = auto ; then
14056 if test "$enable_unix" = "yes"; then
14057 DRUNTIME_OS_UNIX_TRUE=
14058 DRUNTIME_OS_UNIX_FALSE='#'
14060 DRUNTIME_OS_UNIX_TRUE='#'
14061 DRUNTIME_OS_UNIX_FALSE=
14068 druntime_target_os_parsed=""
14069 case "$druntime_cv_target_os" in
14070 aix*) druntime_target_os_parsed="aix"
14073 druntime_target_os_parsed="android"
14075 darwin*) druntime_target_os_parsed="darwin"
14078 druntime_target_os_parsed="dragonflybsd"
14080 freebsd*|k*bsd*-gnu)
14081 druntime_target_os_parsed="freebsd"
14084 druntime_target_os_parsed="openbsd"
14087 druntime_target_os_parsed="netbsd"
14089 linux*) druntime_target_os_parsed="linux"
14091 mingw*) druntime_target_os_parsed="mingw"
14093 *solaris*) druntime_target_os_parsed="solaris"
14095 if test "$druntime_target_os_parsed" = "aix"; then
14096 DRUNTIME_OS_AIX_TRUE=
14097 DRUNTIME_OS_AIX_FALSE='#'
14099 DRUNTIME_OS_AIX_TRUE='#'
14100 DRUNTIME_OS_AIX_FALSE=
14103 if test "$druntime_target_os_parsed" = "android"; then
14104 DRUNTIME_OS_ANDROID_TRUE=
14105 DRUNTIME_OS_ANDROID_FALSE='#'
14107 DRUNTIME_OS_ANDROID_TRUE='#'
14108 DRUNTIME_OS_ANDROID_FALSE=
14111 if test "$druntime_target_os_parsed" = "darwin"; then
14112 DRUNTIME_OS_DARWIN_TRUE=
14113 DRUNTIME_OS_DARWIN_FALSE='#'
14115 DRUNTIME_OS_DARWIN_TRUE='#'
14116 DRUNTIME_OS_DARWIN_FALSE=
14119 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14120 DRUNTIME_OS_DRAGONFLYBSD_TRUE=
14121 DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
14123 DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
14124 DRUNTIME_OS_DRAGONFLYBSD_FALSE=
14127 if test "$druntime_target_os_parsed" = "freebsd"; then
14128 DRUNTIME_OS_FREEBSD_TRUE=
14129 DRUNTIME_OS_FREEBSD_FALSE='#'
14131 DRUNTIME_OS_FREEBSD_TRUE='#'
14132 DRUNTIME_OS_FREEBSD_FALSE=
14135 if test "$druntime_target_os_parsed" = "netbsd"; then
14136 DRUNTIME_OS_NETBSD_TRUE=
14137 DRUNTIME_OS_NETBSD_FALSE='#'
14139 DRUNTIME_OS_NETBSD_TRUE='#'
14140 DRUNTIME_OS_NETBSD_FALSE=
14143 if test "$druntime_target_os_parsed" = "openbsd"; then
14144 DRUNTIME_OS_OPENBSD_TRUE=
14145 DRUNTIME_OS_OPENBSD_FALSE='#'
14147 DRUNTIME_OS_OPENBSD_TRUE='#'
14148 DRUNTIME_OS_OPENBSD_FALSE=
14151 if test "$druntime_target_os_parsed" = "linux"; then
14152 DRUNTIME_OS_LINUX_TRUE=
14153 DRUNTIME_OS_LINUX_FALSE='#'
14155 DRUNTIME_OS_LINUX_TRUE='#'
14156 DRUNTIME_OS_LINUX_FALSE=
14159 if test "$druntime_target_os_parsed" = "mingw"; then
14160 DRUNTIME_OS_MINGW_TRUE=
14161 DRUNTIME_OS_MINGW_FALSE='#'
14163 DRUNTIME_OS_MINGW_TRUE='#'
14164 DRUNTIME_OS_MINGW_FALSE=
14167 if test "$druntime_target_os_parsed" = "solaris"; then
14168 DRUNTIME_OS_SOLARIS_TRUE=
14169 DRUNTIME_OS_SOLARIS_FALSE='#'
14171 DRUNTIME_OS_SOLARIS_TRUE='#'
14172 DRUNTIME_OS_SOLARIS_FALSE=
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14179 $as_echo_n "checking for thread model used by GDC... " >&6; }
14180 d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14182 $as_echo "$d_thread_model" >&6; }
14184 # Map from thread model to thread interface.
14186 case $d_thread_model in
14187 aix) DCFG_THREAD_MODEL="Posix" ;;
14188 lynx) DCFG_THREAD_MODEL="Posix" ;;
14189 posix) DCFG_THREAD_MODEL="Posix" ;;
14190 single) DCFG_THREAD_MODEL="Single" ;;
14191 win32) DCFG_THREAD_MODEL="Win32" ;;
14192 # TODO: These targets need porting.
14193 dce|mipssde|rtems|tpf|vxworks)
14194 DCFG_THREAD_MODEL="Single" ;;
14195 *) as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14202 ac_cpp='$CPP $CPPFLAGS'
14203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14208 $as_echo_n "checking for ARM unwinder... " >&6; }
14209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14210 /* end confdefs.h. */
14211 #include <unwind.h>
14216 #if __ARM_EABI_UNWINDER__
14224 if ac_fn_c_try_compile "$LINENO"; then :
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14226 $as_echo "no" >&6; }
14227 DCFG_ARM_EABI_UNWINDER=false
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14230 $as_echo "yes" >&6; }
14231 DCFG_ARM_EABI_UNWINDER=true
14233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14235 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14236 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14237 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14239 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14240 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14244 ac_cpp='$CPP $CPPFLAGS'
14245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14252 ac_cpp='$CPP $CPPFLAGS'
14253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14258 $as_echo_n "checking for minfo section bracketing... " >&6; }
14259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14260 /* end confdefs.h. */
14262 void* module_info_ptr __attribute__((section ("minfo")));
14263 extern void* __start_minfo __attribute__((visibility ("hidden")));
14264 extern void* __stop_minfo __attribute__((visibility ("hidden")));
14268 // Never run, just to prevent compiler from optimizing access
14269 return &__start_minfo == &__stop_minfo;
14273 if ac_fn_c_try_link "$LINENO"; then :
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14275 $as_echo "yes" >&6; }
14276 DCFG_MINFO_BRACKETING=true
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14279 $as_echo "no" >&6; }
14280 DCFG_MINFO_BRACKETING=false
14282 rm -f core conftest.err conftest.$ac_objext \
14283 conftest$ac_exeext conftest.$ac_ext
14285 if test "$DCFG_MINFO_BRACKETING" = "true"; then
14286 DRUNTIME_OS_MINFO_BRACKETING_TRUE=
14287 DRUNTIME_OS_MINFO_BRACKETING_FALSE='#'
14289 DRUNTIME_OS_MINFO_BRACKETING_TRUE='#'
14290 DRUNTIME_OS_MINFO_BRACKETING_FALSE=
14294 ac_cpp='$CPP $CPPFLAGS'
14295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14302 ac_cpp='$CPP $CPPFLAGS'
14303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14307 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>
14309 if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes; then :
14310 DCFG_DLPI_TLS_MODID=true
14312 DCFG_DLPI_TLS_MODID=false
14317 ac_cpp='$CPP $CPPFLAGS'
14318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14325 i?86-*-solaris2.* | x86_64-*-solaris2.*)
14326 # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14327 # relocs. Work around by disabling TLS transitions. Not necessary
14328 # on 32-bit x86, but cannot be distinguished reliably in specs.
14329 druntime_ld_prog=`$CC -print-prog-name=ld`
14330 if test -n "$druntime_ld_prog" \
14331 && $druntime_ld_prog -v 2>&1 | grep GNU > /dev/null 2>&1; then
14334 OS_LINK_SPEC='-z relax=transtls'
14342 ac_cpp='$CPP $CPPFLAGS'
14343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14347 DCFG_HAVE_QSORT_R=false
14348 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14349 if test "x$ac_cv_func_qsort_r" = xyes; then :
14350 DCFG_HAVE_QSORT_R=true
14355 ac_cpp='$CPP $CPPFLAGS'
14356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14364 gdc_save_DFLAGS=$GDCFLAGS
14365 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14368 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14369 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14370 ac_compiler_gnu=yes
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14373 $as_echo_n "checking for library containing malloc... " >&6; }
14374 if ${ac_cv_search_malloc+:} false; then :
14375 $as_echo_n "(cached) " >&6
14377 ac_func_search_save_LIBS=$LIBS
14378 cat > conftest.$ac_ext <<_ACEOF
14380 extern(C) int malloc();
14382 extern(C) int main() {
14383 malloc(); return 0;
14386 for ac_lib in '' c; do
14387 if test -z "$ac_lib"; then
14388 ac_res="none required"
14391 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14393 if ac_fn_d_try_link "$LINENO"; then :
14394 ac_cv_search_malloc=$ac_res
14396 rm -f core conftest.err conftest.$ac_objext \
14398 if ${ac_cv_search_malloc+:} false; then :
14402 if ${ac_cv_search_malloc+:} false; then :
14405 ac_cv_search_malloc=no
14407 rm conftest.$ac_ext
14408 LIBS=$ac_func_search_save_LIBS
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14411 $as_echo "$ac_cv_search_malloc" >&6; }
14412 ac_res=$ac_cv_search_malloc
14413 if test "$ac_res" != no; then :
14414 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14419 enable_thread_lib=yes
14420 # Check whether --enable-thread-lib was given.
14421 if test "${enable_thread_lib+set}" = set; then :
14422 enableval=$enable_thread_lib;
14426 if test "x$enable_thread_lib" = "xyes"; then :
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14429 $as_echo_n "checking for library containing pthread_create... " >&6; }
14430 if ${ac_cv_search_pthread_create+:} false; then :
14431 $as_echo_n "(cached) " >&6
14433 ac_func_search_save_LIBS=$LIBS
14434 cat > conftest.$ac_ext <<_ACEOF
14436 extern(C) int pthread_create();
14438 extern(C) int main() {
14439 pthread_create(); return 0;
14442 for ac_lib in '' pthread; do
14443 if test -z "$ac_lib"; then
14444 ac_res="none required"
14447 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14449 if ac_fn_d_try_link "$LINENO"; then :
14450 ac_cv_search_pthread_create=$ac_res
14452 rm -f core conftest.err conftest.$ac_objext \
14454 if ${ac_cv_search_pthread_create+:} false; then :
14458 if ${ac_cv_search_pthread_create+:} false; then :
14461 ac_cv_search_pthread_create=no
14463 rm conftest.$ac_ext
14464 LIBS=$ac_func_search_save_LIBS
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14467 $as_echo "$ac_cv_search_pthread_create" >&6; }
14468 ac_res=$ac_cv_search_pthread_create
14469 if test "$ac_res" != no; then :
14470 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14477 if test "x$enable_thread_lib" = "xno"; then :
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread library" >&5
14480 $as_echo_n "checking for thread library... " >&6; }
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14482 $as_echo "disabled" >&6; }
14486 as_ac_Lib=`$as_echo "ac_cv_lib_$enable_thread_lib''_pthread_create" | $as_tr_sh`
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -l$enable_thread_lib" >&5
14488 $as_echo_n "checking for pthread_create in -l$enable_thread_lib... " >&6; }
14489 if eval \${$as_ac_Lib+:} false; then :
14490 $as_echo_n "(cached) " >&6
14492 ac_check_lib_save_LIBS=$LIBS
14493 LIBS="-l$enable_thread_lib $LIBS"
14494 cat > conftest.$ac_ext <<_ACEOF
14496 extern(C) int pthread_create();
14498 extern(C) int main() {
14499 pthread_create(); return 0;
14502 if ac_fn_d_try_link "$LINENO"; then :
14503 eval "$as_ac_Lib=yes"
14505 eval "$as_ac_Lib=no"
14507 rm -f core conftest.err conftest.$ac_objext \
14508 conftest$ac_exeext conftest.$ac_ext
14509 LIBS=$ac_check_lib_save_LIBS
14511 eval ac_res=\$$as_ac_Lib
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14513 $as_echo "$ac_res" >&6; }
14514 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
14515 cat >>confdefs.h <<_ACEOF
14516 #define `$as_echo "HAVE_LIB$enable_thread_lib" | $as_tr_cpp` 1
14519 LIBS="-l$enable_thread_lib $LIBS"
14523 as_fn_error $? "Thread library not found" "$LINENO" 5
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14533 $as_echo_n "checking for library containing cosf... " >&6; }
14534 if ${ac_cv_search_cosf+:} false; then :
14535 $as_echo_n "(cached) " >&6
14537 ac_func_search_save_LIBS=$LIBS
14538 cat > conftest.$ac_ext <<_ACEOF
14540 extern(C) int cosf();
14542 extern(C) int main() {
14546 for ac_lib in '' m; do
14547 if test -z "$ac_lib"; then
14548 ac_res="none required"
14551 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14553 if ac_fn_d_try_link "$LINENO"; then :
14554 ac_cv_search_cosf=$ac_res
14556 rm -f core conftest.err conftest.$ac_objext \
14558 if ${ac_cv_search_cosf+:} false; then :
14562 if ${ac_cv_search_cosf+:} false; then :
14565 ac_cv_search_cosf=no
14567 rm conftest.$ac_ext
14568 LIBS=$ac_func_search_save_LIBS
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14571 $as_echo "$ac_cv_search_cosf" >&6; }
14572 ac_res=$ac_cv_search_cosf
14573 if test "$ac_res" != no; then :
14574 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14579 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14580 if ${ac_cv_search_clock_gettime+:} false; then :
14581 $as_echo_n "(cached) " >&6
14583 ac_func_search_save_LIBS=$LIBS
14584 cat > conftest.$ac_ext <<_ACEOF
14586 extern(C) int clock_gettime();
14588 extern(C) int main() {
14589 clock_gettime(); return 0;
14592 for ac_lib in '' rt; do
14593 if test -z "$ac_lib"; then
14594 ac_res="none required"
14597 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14599 if ac_fn_d_try_link "$LINENO"; then :
14600 ac_cv_search_clock_gettime=$ac_res
14602 rm -f core conftest.err conftest.$ac_objext \
14604 if ${ac_cv_search_clock_gettime+:} false; then :
14608 if ${ac_cv_search_clock_gettime+:} false; then :
14611 ac_cv_search_clock_gettime=no
14613 rm conftest.$ac_ext
14614 LIBS=$ac_func_search_save_LIBS
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14617 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14618 ac_res=$ac_cv_search_clock_gettime
14619 if test "$ac_res" != no; then :
14620 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14625 # This checks to see if the host supports the compiler-generated builtins
14626 # for atomic operations for various integral sizes. Note, this is intended
14627 # to be an all-or-nothing switch, so all the atomic operations that are
14628 # used should be checked.
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14630 $as_echo_n "checking for atomic builtins for byte... " >&6; }
14631 if ${druntime_cv_atomic_byte+:} false; then :
14632 $as_echo_n "(cached) " >&6
14635 cat > conftest.$ac_ext <<_ACEOF
14637 import gcc.builtins;
14639 extern(C) int main() {
14643 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14644 __atomic_load_1(&c1, 5);
14645 __atomic_store_1(&c1, c2, 5);
14650 if ac_fn_d_try_link "$LINENO"; then :
14651 druntime_cv_atomic_byte=yes
14653 druntime_cv_atomic_byte=no
14655 rm -f core conftest.err conftest.$ac_objext \
14656 conftest$ac_exeext conftest.$ac_ext
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14661 $as_echo "$druntime_cv_atomic_byte" >&6; }
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14664 $as_echo_n "checking for atomic builtins for short... " >&6; }
14665 if ${druntime_cv_atomic_short+:} false; then :
14666 $as_echo_n "(cached) " >&6
14669 cat > conftest.$ac_ext <<_ACEOF
14671 import gcc.builtins;
14673 extern(C) int main() {
14677 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14678 __atomic_load_2(&c1, 5);
14679 __atomic_store_2(&c1, c2, 5);
14684 if ac_fn_d_try_link "$LINENO"; then :
14685 druntime_cv_atomic_short=yes
14687 druntime_cv_atomic_short=no
14689 rm -f core conftest.err conftest.$ac_objext \
14690 conftest$ac_exeext conftest.$ac_ext
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14695 $as_echo "$druntime_cv_atomic_short" >&6; }
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14698 $as_echo_n "checking for atomic builtins for int... " >&6; }
14699 if ${druntime_cv_atomic_int+:} false; then :
14700 $as_echo_n "(cached) " >&6
14703 cat > conftest.$ac_ext <<_ACEOF
14705 import gcc.builtins;
14707 extern(C) int main() {
14711 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14712 __atomic_load_4(&c1, 5);
14713 __atomic_store_4(&c1, c2, 5);
14718 if ac_fn_d_try_link "$LINENO"; then :
14719 druntime_cv_atomic_int=yes
14721 druntime_cv_atomic_int=no
14723 rm -f core conftest.err conftest.$ac_objext \
14724 conftest$ac_exeext conftest.$ac_ext
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14729 $as_echo "$druntime_cv_atomic_int" >&6; }
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14732 $as_echo_n "checking for atomic builtins for long... " >&6; }
14733 if ${druntime_cv_atomic_long+:} false; then :
14734 $as_echo_n "(cached) " >&6
14737 cat > conftest.$ac_ext <<_ACEOF
14739 import gcc.builtins;
14741 extern(C) int main() {
14745 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14746 __atomic_load_8(&c1, 5);
14747 __atomic_store_8(&c1, c2, 5);
14752 if ac_fn_d_try_link "$LINENO"; then :
14753 druntime_cv_atomic_long=yes
14755 druntime_cv_atomic_long=no
14757 rm -f core conftest.err conftest.$ac_objext \
14758 conftest$ac_exeext conftest.$ac_ext
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14763 $as_echo "$druntime_cv_atomic_long" >&6; }
14765 # Have atomic builtin support if all but the long test above passes.
14766 DCFG_HAVE_ATOMIC_BUILTINS=false
14767 if test "$druntime_cv_atomic_byte" = yes \
14768 && test "$druntime_cv_atomic_short" = yes \
14769 && test "$druntime_cv_atomic_int" = yes; then \
14770 DCFG_HAVE_ATOMIC_BUILTINS=true
14773 # Have 64-bit atomic support if the long test above passes.
14774 DCFG_HAVE_64BIT_ATOMICS=false
14775 if test "$druntime_cv_atomic_long" = yes; then
14776 DCFG_HAVE_64BIT_ATOMICS=true
14783 ac_cpp='$CPP $CPPFLAGS'
14784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14789 GDCFLAGS=$gdc_save_DFLAGS
14794 # Check whether --with-libatomic was given.
14795 if test "${with_libatomic+set}" = set; then :
14796 withval=$with_libatomic;
14800 DCFG_HAVE_LIBATOMIC=false
14802 if test "x$with_libatomic" != "xno"; then :
14804 DCFG_HAVE_LIBATOMIC=true
14805 LIBATOMIC=../../libatomic/libatomic_convenience.la
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14810 $as_echo_n "checking for libatomic... " >&6; }
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14812 $as_echo "disabled" >&6; }
14821 ac_cpp='$CPP $CPPFLAGS'
14822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14826 BACKTRACE_SUPPORTED=false
14827 BACKTRACE_USES_MALLOC=false
14828 BACKTRACE_SUPPORTS_THREADS=false
14832 # Check whether --with-libbacktrace was given.
14833 if test "${with_libbacktrace+set}" = set; then :
14834 withval=$with_libbacktrace;
14838 if test "x$with_libbacktrace" != "xno"; then :
14840 LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14842 gdc_save_CPPFLAGS=$CPPFLAGS
14843 CPPFLAGS="$CPPFLAGS -I../libbacktrace "
14845 ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
14846 if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
14847 have_libbacktrace_h=true
14849 have_libbacktrace_h=false
14854 if $have_libbacktrace_h; then
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14856 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14858 /* end confdefs.h. */
14860 #include <backtrace-supported.h>
14861 #if BACKTRACE_SUPPORTED
14862 FOUND_LIBBACKTRACE_RESULT_GDC
14866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14867 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14868 BACKTRACE_SUPPORTED=true
14870 BACKTRACE_SUPPORTED=false
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14875 $as_echo "$BACKTRACE_SUPPORTED" >&6; }
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14878 $as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14880 /* end confdefs.h. */
14882 #include <backtrace-supported.h>
14883 #if BACKTRACE_USES_MALLOC
14884 FOUND_LIBBACKTRACE_RESULT_GDC
14888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14889 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14890 BACKTRACE_USES_MALLOC=true
14892 BACKTRACE_USES_MALLOC=false
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14897 $as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14900 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14902 /* end confdefs.h. */
14904 #include <backtrace-supported.h>
14905 #if BACKTRACE_SUPPORTS_THREADS
14906 FOUND_LIBBACKTRACE_RESULT_GDC
14910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14911 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14912 BACKTRACE_SUPPORTS_THREADS=true
14914 BACKTRACE_SUPPORTS_THREADS=false
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14919 $as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14921 CPPFLAGS=$gdc_save_CPPFLAGS
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14926 $as_echo_n "checking for libbacktrace... " >&6; }
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14928 $as_echo "disabled" >&6; }
14937 ac_cpp='$CPP $CPPFLAGS'
14938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14944 # Libtool has already checked this, so re-use the inferred dlopen lib.
14945 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
14947 LIBS="$LIBS $lt_cv_dlopen_libs"
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14953 $as_echo_n "checking for socket libraries... " >&6; }
14954 if ${druntime_cv_lib_sockets+:} false; then :
14955 $as_echo_n "(cached) " >&6
14957 druntime_cv_lib_sockets=
14958 druntime_check_both=no
14959 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14960 if test "x$ac_cv_func_connect" = xyes; then :
14961 druntime_check_socket=no
14963 druntime_check_socket=yes
14966 if test "$druntime_check_socket" = "yes"; then
14967 unset ac_cv_func_connect
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14969 $as_echo_n "checking for main in -lsocket... " >&6; }
14970 if ${ac_cv_lib_socket_main+:} false; then :
14971 $as_echo_n "(cached) " >&6
14973 ac_check_lib_save_LIBS=$LIBS
14974 LIBS="-lsocket $LIBS"
14975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14976 /* end confdefs.h. */
14987 if ac_fn_c_try_link "$LINENO"; then :
14988 ac_cv_lib_socket_main=yes
14990 ac_cv_lib_socket_main=no
14992 rm -f core conftest.err conftest.$ac_objext \
14993 conftest$ac_exeext conftest.$ac_ext
14994 LIBS=$ac_check_lib_save_LIBS
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14997 $as_echo "$ac_cv_lib_socket_main" >&6; }
14998 if test "x$ac_cv_lib_socket_main" = xyes; then :
14999 druntime_cv_lib_sockets="-lsocket"
15001 druntime_check_both=yes
15005 if test "$druntime_check_both" = "yes"; then
15006 druntime_old_libs=$LIBS
15007 LIBS="$LIBS -lsocket -lnsl"
15008 unset ac_cv_func_accept
15009 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
15010 if test "x$ac_cv_func_accept" = xyes; then :
15011 druntime_check_nsl=no
15012 druntime_cv_lib_sockets="-lsocket -lnsl"
15015 unset ac_cv_func_accept
15016 LIBS=$druntime_old_libs
15018 unset ac_cv_func_gethostbyname
15019 druntime_old_libs="$LIBS"
15020 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15021 if test "x$ac_cv_func_gethostbyname" = xyes; then :
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
15025 $as_echo_n "checking for main in -lnsl... " >&6; }
15026 if ${ac_cv_lib_nsl_main+:} false; then :
15027 $as_echo_n "(cached) " >&6
15029 ac_check_lib_save_LIBS=$LIBS
15031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15032 /* end confdefs.h. */
15043 if ac_fn_c_try_link "$LINENO"; then :
15044 ac_cv_lib_nsl_main=yes
15046 ac_cv_lib_nsl_main=no
15048 rm -f core conftest.err conftest.$ac_objext \
15049 conftest$ac_exeext conftest.$ac_ext
15050 LIBS=$ac_check_lib_save_LIBS
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
15053 $as_echo "$ac_cv_lib_nsl_main" >&6; }
15054 if test "x$ac_cv_lib_nsl_main" = xyes; then :
15055 druntime_cv_lib_sockets="$druntime_cv_lib_sockets -lnsl"
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_lib_sockets" >&5
15063 $as_echo "$druntime_cv_lib_sockets" >&6; }
15064 LIBS="$LIBS $druntime_cv_lib_sockets"
15068 ac_cpp='$CPP $CPPFLAGS'
15069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15076 # Check whether --with-target-system-zlib was given.
15077 if test "${with_target_system_zlib+set}" = set; then :
15078 withval=$with_target_system_zlib;
15080 with_target_system_zlib=no
15084 case "$with_target_system_zlib" in
15086 *) as_fn_error $? "Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15090 $as_echo_n "checking for system zlib... " >&6; }
15093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15094 /* end confdefs.h. */
15099 gzopen("none", "rb")
15104 if ac_fn_c_try_link "$LINENO"; then :
15106 if test "$cross_compiling" = yes; then :
15107 system_zlib_found=no
15110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15111 /* end confdefs.h. */
15115 gzFile file = gzopen("none", "rb");
15120 if ac_fn_c_try_run "$LINENO"; then :
15121 system_zlib_found=yes
15123 system_zlib_found=no
15125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15126 conftest.$ac_objext conftest.beam conftest.$ac_ext
15131 system_zlib_found=no
15133 rm -f core conftest.err conftest.$ac_objext \
15134 conftest$ac_exeext conftest.$ac_ext
15137 if test x$system_zlib_found = xyes && test x$with_target_system_zlib != xno; then
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15139 $as_echo "found" >&6; }
15141 elif test x$system_zlib_found = xno && test x$with_target_system_zlib = xyes; then
15142 as_fn_error $? "system zlib required but not found" "$LINENO" 5
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15145 $as_echo "just compiled" >&6; }
15146 LIBZ=../../zlib/libz_convenience.la
15151 ac_cpp='$CPP $CPPFLAGS'
15152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15161 $as_echo_n "checking D GCC version... " >&6; }
15162 gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15164 $as_echo "$gcc_version" >&6; }
15168 # Check whether --with-cross-host was given.
15169 if test "${with_cross_host+set}" = set; then :
15170 withval=$with_cross_host;
15174 libphobos_toolexecdir=no
15175 libphobos_toolexeclibdir=no
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15178 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15179 # Check whether --enable-version-specific-runtime-libs was given.
15180 if test "${enable_version_specific_runtime_libs+set}" = set; then :
15181 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
15182 yes) version_specific_libs=yes ;;
15183 no) version_specific_libs=no ;;
15184 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15187 version_specific_libs=no
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15191 $as_echo "$version_specific_libs" >&6; }
15193 # Version-specific runtime libs processing.
15194 if test $version_specific_libs = yes; then
15195 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15196 libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
15198 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15199 # Install a library built with a cross compiler in tooldir, not libdir.
15200 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
15201 libphobos_toolexecdir='${exec_prefix}/${host_alias}'
15202 libphobos_toolexeclibdir='${toolexecdir}/lib'
15204 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15205 libphobos_toolexeclibdir='${libdir}'
15207 multi_os_directory=`$GDC -print-multi-os-directory`
15208 case $multi_os_directory in
15209 .) ;; # Avoid trailing /.
15210 *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15216 # Default case for install directory for D sources files.
15217 gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15221 # Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15222 if test "$DCFG_MINFO_BRACKETING" = "false"; then
15223 DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec
15225 DRTSTUFF_SPEC=/dev/null
15229 # Add dependencies for libgphobos.spec file
15230 SPEC_PHOBOS_DEPS="$LIBS"
15233 # Libdruntime / phobos soname version
15234 libtool_VERSION=76:3:0
15237 # Set default flags (after DRUNTIME_WERROR!)
15238 if test -z "$GDCFLAGS"; then
15239 GDCFLAGS="-Wall $WERROR_FLAG -g -frelease -O2"
15243 if test -z "$GDCFLAGSX"; then
15244 GDCFLAGSX="-Wall $WERROR_FLAG -g -fno-release -funittest"
15248 # Sanity check for the cross-compilation case:
15249 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
15250 if test "x$ac_cv_header_stdio_h" = xyes; then :
15253 as_fn_error $? "cannot find stdio.h." "$LINENO" 5
15258 ac_config_files="$ac_config_files Makefile"
15261 ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15263 ac_config_files="$ac_config_files src/libgphobos.spec"
15265 ac_config_files="$ac_config_files testsuite/testsuite_flags"
15268 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15269 # that multilib installs will end up installed in the correct place.
15270 # The testsuite needs it for multilib-aware ABI baseline files.
15271 # To work around this not being passed down from config-ml.in ->
15272 # srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15273 # append it here. Only modify Makefiles that have just been created.
15275 # Also, get rid of this simulated-VPATH thing that automake does.
15276 ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
15279 cat >confcache <<\_ACEOF
15280 # This file is a shell script that caches the results of configure
15281 # tests run on this system so they can be shared between configure
15282 # scripts and configure runs, see configure's option --config-cache.
15283 # It is not useful on other systems. If it contains results you don't
15284 # want to keep, you may remove or edit it.
15286 # config.status only pays attention to the cache file if you give it
15287 # the --recheck option to rerun configure.
15289 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15290 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15291 # following values.
15295 # The following way of writing the cache mishandles newlines in values,
15296 # but we know of no workaround that is simple, portable, and efficient.
15297 # So, we kill variables containing newlines.
15298 # Ultrix sh set writes to stderr and can't be redirected directly,
15299 # and sets the high bit in the cache file unless we assign to the vars.
15301 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15302 eval ac_val=\$$ac_var
15306 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15307 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15310 _ | IFS | as_nl) ;; #(
15311 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15312 *) { eval $ac_var=; unset $ac_var;} ;;
15318 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15319 *${as_nl}ac_space=\ *)
15320 # `set' does not quote correctly, so add quotes: double-quote
15321 # substitution turns \\\\ into \\, and sed turns \\ into \.
15324 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15327 # `set' quotes correctly as required by POSIX, so do not add quotes.
15328 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15337 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15339 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15341 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15342 if test -w "$cache_file"; then
15343 if test "x$cache_file" != "x/dev/null"; then
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15345 $as_echo "$as_me: updating cache $cache_file" >&6;}
15346 if test ! -f "$cache_file" || test -h "$cache_file"; then
15347 cat confcache >"$cache_file"
15349 case $cache_file in #(
15351 mv -f confcache "$cache_file"$$ &&
15352 mv -f "$cache_file"$$ "$cache_file" ;; #(
15354 mv -f confcache "$cache_file" ;;
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15360 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15365 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15366 # Let make expand exec_prefix.
15367 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15369 DEFS=-DHAVE_CONFIG_H
15374 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15375 # 1. Remove the extension, and $U if already installed.
15376 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15377 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15378 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15379 # will be set to the directory where LIBOBJS objects are built.
15380 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15381 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15383 LIBOBJS=$ac_libobjs
15385 LTLIBOBJS=$ac_ltlibobjs
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15389 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15390 if test -n "$am_sleep_pid"; then
15391 # Hide warnings about reused PIDs.
15392 wait $am_sleep_pid 2>/dev/null
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15395 $as_echo "done" >&6; }
15396 if test -n "$EXEEXT"; then
15398 am__EXEEXT_FALSE='#'
15400 am__EXEEXT_TRUE='#'
15404 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15405 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15406 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15408 if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then
15409 as_fn_error $? "conditional \"ENABLE_LIBPHOBOS\" was never defined.
15410 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15412 if test -z "${DRUNTIME_GC_ENABLE_TRUE}" && test -z "${DRUNTIME_GC_ENABLE_FALSE}"; then
15413 as_fn_error $? "conditional \"DRUNTIME_GC_ENABLE\" was never defined.
15414 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15416 if test -z "${DRUNTIME_OS_UNIX_TRUE}" && test -z "${DRUNTIME_OS_UNIX_FALSE}"; then
15417 as_fn_error $? "conditional \"DRUNTIME_OS_UNIX\" was never defined.
15418 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15420 if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
15421 as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
15422 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15424 if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
15425 as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
15426 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15428 if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
15429 as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
15430 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15432 if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
15433 as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
15434 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15436 if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
15437 as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
15438 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15440 if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
15441 as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
15442 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15444 if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
15445 as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
15446 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15448 if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
15449 as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
15450 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15452 if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
15453 as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
15454 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15456 if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
15457 as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
15458 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15460 if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
15461 as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
15462 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15464 if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15465 as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15466 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15469 : "${CONFIG_STATUS=./config.status}"
15471 ac_clean_files_save=$ac_clean_files
15472 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15474 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15476 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15478 # Generated by $as_me.
15479 # Run this file to recreate the current configuration.
15480 # Compiler output produced by configure, useful for debugging
15481 # configure, is in config.log if it exists.
15484 ac_cs_recheck=false
15487 SHELL=\${CONFIG_SHELL-$SHELL}
15490 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15491 ## -------------------- ##
15492 ## M4sh Initialization. ##
15493 ## -------------------- ##
15495 # Be more Bourne compatible
15496 DUALCASE=1; export DUALCASE # for MKS sh
15497 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15500 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15501 # is contrary to our usage. Disable this feature.
15502 alias -g '${1+"$@"}'='"$@"'
15503 setopt NO_GLOB_SUBST
15505 case `(set -o) 2>/dev/null` in #(
15517 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15518 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15519 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15520 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15521 # Prefer a ksh shell builtin over an external printf program on Solaris,
15522 # but without wasting forks for bash or zsh.
15523 if test -z "$BASH_VERSION$ZSH_VERSION" \
15524 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15525 as_echo='print -r --'
15526 as_echo_n='print -rn --'
15527 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15528 as_echo='printf %s\n'
15529 as_echo_n='printf %s'
15531 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15532 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15533 as_echo_n='/usr/ucb/echo -n'
15535 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15536 as_echo_n_body='eval
15540 expr "X$arg" : "X\\(.*\\)$as_nl";
15541 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15543 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15545 export as_echo_n_body
15546 as_echo_n='sh -c $as_echo_n_body as_echo'
15548 export as_echo_body
15549 as_echo='sh -c $as_echo_body as_echo'
15552 # The user is always right.
15553 if test "${PATH_SEPARATOR+set}" != set; then
15555 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15556 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15563 # We need space, tab and new line, in precisely that order. Quoting is
15564 # there to prevent editors from complaining about space-tab.
15565 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15566 # splitting by setting IFS to empty value.)
15569 # Find who we are. Look in the path if we contain no directory separator.
15572 *[\\/]* ) as_myself=$0 ;;
15573 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15574 for as_dir in $PATH
15577 test -z "$as_dir" && as_dir=.
15578 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15584 # We did not find ourselves, most probably we were run as `sh COMMAND'
15585 # in which case we are not to be found in the path.
15586 if test "x$as_myself" = x; then
15589 if test ! -f "$as_myself"; then
15590 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15594 # Unset variables that we do not need and which cause bugs (e.g. in
15595 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15596 # suppresses any "Segmentation fault" message there. '((' could
15597 # trigger a bug in pdksh 5.2.14.
15598 for as_var in BASH_ENV ENV MAIL MAILPATH
15599 do eval test x\${$as_var+set} = xset \
15600 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15616 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15617 # ----------------------------------------
15618 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15619 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15620 # script with STATUS, using 1 if that was 0.
15623 as_status=$1; test $as_status -eq 0 && as_status=1
15625 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15626 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15628 $as_echo "$as_me: error: $2" >&2
15629 as_fn_exit $as_status
15633 # as_fn_set_status STATUS
15634 # -----------------------
15635 # Set $? to STATUS, without forking.
15636 as_fn_set_status ()
15639 } # as_fn_set_status
15641 # as_fn_exit STATUS
15642 # -----------------
15643 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15647 as_fn_set_status $1
15653 # Portably unset VAR.
15656 { eval $1=; unset $1;}
15658 as_unset=as_fn_unset
15659 # as_fn_append VAR VALUE
15660 # ----------------------
15661 # Append the text in VALUE to the end of the definition contained in VAR. Take
15662 # advantage of any shell optimizations that allow amortized linear growth over
15663 # repeated appends, instead of the typical quadratic growth present in naive
15665 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15666 eval 'as_fn_append ()
15677 # as_fn_arith ARG...
15678 # ------------------
15679 # Perform arithmetic evaluation on the ARGs, and store the result in the
15680 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15681 # must be portable across $(()) and expr.
15682 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15683 eval 'as_fn_arith ()
15690 as_val=`expr "$@" || test $? -eq 1`
15695 if expr a : '\(a\)' >/dev/null 2>&1 &&
15696 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15702 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15703 as_basename=basename
15708 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15714 as_me=`$as_basename -- "$0" ||
15715 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15716 X"$0" : 'X\(//\)$' \| \
15717 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15719 sed '/^.*\/\([^/][^/]*\)\/*$/{
15733 # Avoid depending upon Character Ranges.
15734 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15735 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15736 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15737 as_cr_digits='0123456789'
15738 as_cr_alnum=$as_cr_Letters$as_cr_digits
15740 ECHO_C= ECHO_N= ECHO_T=
15741 case `echo -n x` in #(((((
15743 case `echo 'xy\c'` in
15744 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15746 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15753 rm -f conf$$ conf$$.exe conf$$.file
15754 if test -d conf$$.dir; then
15755 rm -f conf$$.dir/conf$$.file
15758 mkdir conf$$.dir 2>/dev/null
15760 if (echo >conf$$.file) 2>/dev/null; then
15761 if ln -s conf$$.file conf$$ 2>/dev/null; then
15763 # ... but there are two gotchas:
15764 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15765 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15766 # In both cases, we have to default to `cp -pR'.
15767 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15769 elif ln conf$$.file conf$$ 2>/dev/null; then
15777 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15778 rmdir conf$$.dir 2>/dev/null
15783 # Create "$as_dir" as a directory, including parents if necessary.
15788 -*) as_dir=./$as_dir;;
15790 test -d "$as_dir" || eval $as_mkdir_p || {
15794 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15795 *) as_qdir=$as_dir;;
15797 as_dirs="'$as_qdir' $as_dirs"
15798 as_dir=`$as_dirname -- "$as_dir" ||
15799 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15800 X"$as_dir" : 'X\(//\)[^/]' \| \
15801 X"$as_dir" : 'X\(//\)$' \| \
15802 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15803 $as_echo X"$as_dir" |
15804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15808 /^X\(\/\/\)[^/].*/{
15821 test -d "$as_dir" && break
15823 test -z "$as_dirs" || eval "mkdir $as_dirs"
15824 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15828 if mkdir -p . 2>/dev/null; then
15829 as_mkdir_p='mkdir -p "$as_dir"'
15831 test -d ./-p && rmdir ./-p
15836 # as_fn_executable_p FILE
15837 # -----------------------
15838 # Test if FILE is an executable regular file.
15839 as_fn_executable_p ()
15841 test -f "$1" && test -x "$1"
15842 } # as_fn_executable_p
15843 as_test_x='test -x'
15844 as_executable_p=as_fn_executable_p
15846 # Sed expression to map a string onto a valid CPP name.
15847 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15849 # Sed expression to map a string onto a valid variable name.
15850 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15854 ## ----------------------------------- ##
15855 ## Main body of $CONFIG_STATUS script. ##
15856 ## ----------------------------------- ##
15858 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15861 # Save the log message, to keep $0 and so on meaningful, and to
15862 # report actual input values of CONFIG_FILES etc. instead of their
15863 # values after options handling.
15865 This file was extended by package-unused $as_me version-unused, which was
15866 generated by GNU Autoconf 2.69. Invocation command line was
15868 CONFIG_FILES = $CONFIG_FILES
15869 CONFIG_HEADERS = $CONFIG_HEADERS
15870 CONFIG_LINKS = $CONFIG_LINKS
15871 CONFIG_COMMANDS = $CONFIG_COMMANDS
15874 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15879 case $ac_config_files in *"
15880 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15883 case $ac_config_headers in *"
15884 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15889 # Files that config.status was made for.
15890 config_files="$ac_config_files"
15891 config_headers="$ac_config_headers"
15892 config_commands="$ac_config_commands"
15896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15898 \`$as_me' instantiates files and other configuration actions
15899 from templates according to the current configuration. Unless the files
15900 and actions are specified as TAGs, all are instantiated by default.
15902 Usage: $0 [OPTION]... [TAG]...
15904 -h, --help print this help, then exit
15905 -V, --version print version number and configuration settings, then exit
15906 --config print configuration, then exit
15907 -q, --quiet, --silent
15908 do not print progress messages
15909 -d, --debug don't remove temporary files
15910 --recheck update $as_me by reconfiguring in the same conditions
15911 --file=FILE[:TEMPLATE]
15912 instantiate the configuration file FILE
15913 --header=FILE[:TEMPLATE]
15914 instantiate the configuration header FILE
15916 Configuration files:
15919 Configuration headers:
15922 Configuration commands:
15925 Report bugs to the package provider."
15928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15929 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15931 package-unused config.status version-unused
15932 configured by $0, generated by GNU Autoconf 2.69,
15933 with options \\"\$ac_cs_config\\"
15935 Copyright (C) 2012 Free Software Foundation, Inc.
15936 This config.status script is free software; the Free Software Foundation
15937 gives unlimited permission to copy, distribute and modify it."
15944 test -n "\$AWK" || AWK=awk
15947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15948 # The default lists apply if the user does not specify any file.
15954 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15955 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15959 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15971 # Handling of the options.
15972 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15974 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15975 $as_echo "$ac_cs_version"; exit ;;
15976 --config | --confi | --conf | --con | --co | --c )
15977 $as_echo "$ac_cs_config"; exit ;;
15978 --debug | --debu | --deb | --de | --d | -d )
15980 --file | --fil | --fi | --f )
15983 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15984 '') as_fn_error $? "missing file argument" ;;
15986 as_fn_append CONFIG_FILES " '$ac_optarg'"
15987 ac_need_defaults=false;;
15988 --header | --heade | --head | --hea )
15991 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15993 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15994 ac_need_defaults=false;;
15996 # Conflict between --help and --header
15997 as_fn_error $? "ambiguous option: \`$1'
15998 Try \`$0 --help' for more information.";;
15999 --help | --hel | -h )
16000 $as_echo "$ac_cs_usage"; exit ;;
16001 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16002 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16005 # This is an error.
16006 -*) as_fn_error $? "unrecognized option: \`$1'
16007 Try \`$0 --help' for more information." ;;
16009 *) as_fn_append ac_config_targets " $1"
16010 ac_need_defaults=false ;;
16016 ac_configure_extra_args=
16018 if $ac_cs_silent; then
16020 ac_configure_extra_args="$ac_configure_extra_args --silent"
16024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16025 if \$ac_cs_recheck; then
16026 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16028 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16029 CONFIG_SHELL='$SHELL'
16030 export CONFIG_SHELL
16035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16039 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16040 ## Running $as_me. ##
16046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16054 with_multisubdir="$with_multisubdir"
16055 with_multisrctop="$with_multisrctop"
16056 with_target_subdir="$with_target_subdir"
16057 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16058 multi_basedir="$multi_basedir"
16059 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16062 GFORTRAN="$GFORTRAN"
16066 # The HP-UX ksh and POSIX shell print the target directory to stdout
16067 # if CDPATH is set.
16068 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16070 sed_quote_subst='$sed_quote_subst'
16071 double_quote_subst='$double_quote_subst'
16072 delay_variable_subst='$delay_variable_subst'
16073 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16074 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16075 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16076 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16077 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16078 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16079 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16080 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16081 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16082 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16083 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16084 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16085 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16086 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16087 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16088 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16089 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16090 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16091 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16092 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16093 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16094 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16095 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16096 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16097 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16098 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16099 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16100 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16101 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16102 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16103 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16104 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16105 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16106 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16107 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16108 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16109 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16110 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16111 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16112 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16113 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16114 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16115 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16116 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16117 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16118 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16119 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16120 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16121 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"`'
16122 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16123 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16124 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16125 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16126 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16127 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16128 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16129 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16130 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16131 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16132 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16133 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16134 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16135 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16136 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16137 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16138 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16139 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16140 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16141 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16142 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16143 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16144 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16145 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16146 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16147 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16148 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16149 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16150 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16151 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16152 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16153 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16154 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16155 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16156 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16157 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16158 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16159 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16160 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16161 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16162 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16163 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16164 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16165 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16166 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16167 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16168 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16169 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16170 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16171 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16172 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16173 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16174 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16175 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16176 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16177 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16178 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16179 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16180 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16181 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16182 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16183 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16184 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16185 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16186 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16187 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16188 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16189 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16190 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16191 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16192 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16193 LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16194 reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16195 reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16196 old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16197 compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16198 GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16199 lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16200 lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16201 lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16202 lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16203 lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16204 archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16205 enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16206 export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16207 whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16208 compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16209 old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16210 old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16211 archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16212 archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16213 module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16214 module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16215 with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16216 allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16217 no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16218 hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16219 hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16220 hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16221 hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16222 hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16223 hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16224 hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16225 hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16226 inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16227 link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16228 fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16229 always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16230 export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16231 exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16232 include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16233 prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16234 file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16235 hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16238 LTCFLAGS='$LTCFLAGS'
16239 compiler='$compiler_DEFAULT'
16241 # A function that is used when there is no print builtin or printf.
16242 func_fallback_echo ()
16244 eval 'cat <<_LTECHO_EOF
16249 # Quote evaled strings.
16263 deplibs_check_method \
16272 lt_cv_sys_global_symbol_pipe \
16273 lt_cv_sys_global_symbol_to_cdecl \
16274 lt_cv_sys_global_symbol_to_c_name_address \
16275 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16276 lt_prog_compiler_no_builtin_flag \
16277 lt_prog_compiler_wl \
16278 lt_prog_compiler_pic \
16279 lt_prog_compiler_static \
16280 lt_cv_prog_compiler_c_o \
16288 export_dynamic_flag_spec \
16289 whole_archive_flag_spec \
16290 compiler_needs_object \
16292 allow_undefined_flag \
16293 no_undefined_flag \
16294 hardcode_libdir_flag_spec \
16295 hardcode_libdir_flag_spec_ld \
16296 hardcode_libdir_separator \
16301 variables_saved_for_relink \
16303 library_names_spec \
16305 install_override_mode \
16312 lt_prog_compiler_no_builtin_flag_D \
16313 lt_prog_compiler_wl_D \
16314 lt_prog_compiler_pic_D \
16315 lt_prog_compiler_static_D \
16316 lt_cv_prog_compiler_c_o_D \
16317 export_dynamic_flag_spec_D \
16318 whole_archive_flag_spec_D \
16319 compiler_needs_object_D \
16321 allow_undefined_flag_D \
16322 no_undefined_flag_D \
16323 hardcode_libdir_flag_spec_D \
16324 hardcode_libdir_flag_spec_ld_D \
16325 hardcode_libdir_separator_D \
16326 fix_srcfile_path_D \
16327 exclude_expsyms_D \
16328 include_expsyms_D \
16329 file_list_spec_D; do
16330 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16331 *[\\\\\\\`\\"\\\$]*)
16332 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16335 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16340 # Double-quote double-evaled strings.
16341 for var in reload_cmds \
16342 old_postinstall_cmds \
16343 old_postuninstall_cmds \
16345 extract_expsyms_cmds \
16346 old_archive_from_new_cmds \
16347 old_archive_from_expsyms_cmds \
16349 archive_expsym_cmds \
16351 module_expsym_cmds \
16352 export_symbols_cmds \
16355 postuninstall_cmds \
16357 sys_lib_search_path_spec \
16358 sys_lib_dlsearch_path_spec \
16360 old_archive_cmds_D \
16361 old_archive_from_new_cmds_D \
16362 old_archive_from_expsyms_cmds_D \
16364 archive_expsym_cmds_D \
16366 module_expsym_cmds_D \
16367 export_symbols_cmds_D \
16369 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16370 *[\\\\\\\`\\"\\\$]*)
16371 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16374 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16379 ac_aux_dir='$ac_aux_dir'
16380 xsi_shell='$xsi_shell'
16381 lt_shell_append='$lt_shell_append'
16383 # See if we are running on zsh, and set the options which allow our
16384 # commands through without removal of \ escapes INIT.
16385 if test -n "\${ZSH_VERSION+set}" ; then
16386 setopt NO_GLOB_SUBST
16392 TIMESTAMP='$TIMESTAMP'
16403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16405 # Handling of arguments.
16406 for ac_config_target in $ac_config_targets
16408 case $ac_config_target in
16409 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16410 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16411 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16412 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16413 "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16414 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16415 "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16416 "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
16417 "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16418 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16419 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16421 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16426 # If the user did not use the arguments to specify the items to instantiate,
16427 # then the envvar interface is used. Set only those that are not.
16428 # We use the long form for the default assignment because of an extremely
16429 # bizarre bug on SunOS 4.1.3.
16430 if $ac_need_defaults; then
16431 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16432 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16433 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16436 # Have a temporary directory for convenience. Make it in the build tree
16437 # simply because there is no reason against having it here, and in addition,
16438 # creating and moving files from /tmp can sometimes cause problems.
16439 # Hook for its removal unless debugging.
16440 # Note that there is a small window in which the directory will not be cleaned:
16441 # after its creation but before its name has been assigned to `$tmp'.
16445 trap 'exit_status=$?
16446 : "${ac_tmp:=$tmp}"
16447 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16449 trap 'as_fn_exit 1' 1 2 13 15
16451 # Create a (secure) tmp directory for tmp files.
16454 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16458 tmp=./conf$$-$RANDOM
16459 (umask 077 && mkdir "$tmp")
16460 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16463 # Set up the scripts for CONFIG_FILES section.
16464 # No need to generate them if there are no CONFIG_FILES.
16465 # This happens for instance with `./config.status config.h'.
16466 if test -n "$CONFIG_FILES"; then
16468 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16469 ac_cs_awk_getline=:
16470 ac_cs_awk_pipe_init=
16471 ac_cs_awk_read_file='
16472 while ((getline aline < (F[key])) > 0)
16475 ac_cs_awk_pipe_fini=
16477 ac_cs_awk_getline=false
16478 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16479 ac_cs_awk_read_file='
16481 print "cat " F[key] " &&"
16482 '$ac_cs_awk_pipe_init
16483 # The final `:' finishes the AND list.
16484 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16486 ac_cr=`echo X | tr X '\015'`
16487 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16488 # But we know of no other shell where ac_cr would be empty at this
16489 # point, so we can use a bashism as a fallback.
16490 if test "x$ac_cr" = x; then
16491 eval ac_cr=\$\'\\r\'
16493 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16494 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16497 ac_cs_awk_cr=$ac_cr
16500 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16503 # Create commands to substitute file output variables.
16505 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16506 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16507 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16510 } >conf$$files.sh &&
16511 . ./conf$$files.sh ||
16512 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16513 rm -f conf$$files.sh
16516 echo "cat >conf$$subs.awk <<_ACEOF" &&
16517 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16519 } >conf$$subs.sh ||
16520 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16521 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16523 for ac_last_try in false false false false false :; do
16524 . ./conf$$subs.sh ||
16525 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16527 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16528 if test $ac_delim_n = $ac_delim_num; then
16530 elif $ac_last_try; then
16531 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16533 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16536 rm -f conf$$subs.sh
16538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16539 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16543 s/^/S["/; s/!.*/"]=/
16553 s/\(.\{148\}\)..*/\1/
16555 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16560 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16567 s/\(.\{148\}\)..*/\1/
16569 s/["\\]/\\&/g; s/^/"/; s/$/"/
16573 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16578 ' <conf$$subs.awk | sed '
16583 ' >>$CONFIG_STATUS || ac_write_fail=1
16584 rm -f conf$$subs.awk
16585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16587 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16588 for (key in S) S_is_set[key] = 1
16590 \$ac_cs_awk_pipe_init
16594 nfields = split(line, field, "@")
16596 len = length(field[1])
16597 for (i = 2; i < nfields; i++) {
16599 keylen = length(key)
16600 if (S_is_set[key]) {
16602 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16603 len += length(value) + length(field[++i])
16608 if (nfields == 3 && !substed) {
16610 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16611 \$ac_cs_awk_read_file
16617 \$ac_cs_awk_pipe_fini
16620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16621 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16622 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16625 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16626 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16629 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16630 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16631 # trailing colons and then remove the whole line if VPATH becomes empty
16632 # (actually we leave an empty line to preserve line numbers).
16633 if test "x$srcdir" = x.; then
16634 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16653 fi # test -n "$CONFIG_FILES"
16655 # Set up the scripts for CONFIG_HEADERS section.
16656 # No need to generate them if there are no CONFIG_HEADERS.
16657 # This happens for instance with `./config.status Makefile'.
16658 if test -n "$CONFIG_HEADERS"; then
16659 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16663 # Transform confdefs.h into an awk script `defines.awk', embedded as
16664 # here-document in config.status, that substitutes the proper values into
16665 # config.h.in to produce config.h.
16667 # Create a delimiter string that does not exist in confdefs.h, to ease
16668 # handling of long lines.
16670 for ac_last_try in false false :; do
16671 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16672 if test -z "$ac_tt"; then
16674 elif $ac_last_try; then
16675 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16677 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16681 # For the awk script, D is an array of macro values keyed by name,
16682 # likewise P contains macro parameters if any. Preserve backslash
16683 # newline sequences.
16685 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16687 s/.\{148\}/&'"$ac_delim"'/g
16690 s/^[ ]*#[ ]*define[ ][ ]*/ /
16697 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16699 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16703 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16704 D["\1"]=" \3\\\\\\n"\\/p
16706 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16711 s/.\{148\}/&'"$ac_delim"'/g
16716 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16719 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16721 ' <confdefs.h | sed '
16722 s/'"$ac_delim"'/"\\\
16723 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16726 for (key in D) D_is_set[key] = 1
16729 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16731 split(line, arg, " ")
16732 if (arg[1] == "#") {
16736 defundef = substr(arg[1], 2)
16739 split(mac1, mac2, "(") #)
16741 prefix = substr(line, 1, index(line, defundef) - 1)
16742 if (D_is_set[macro]) {
16743 # Preserve the white space surrounding the "#".
16744 print prefix "define", macro P[macro] D[macro]
16747 # Replace #undef with comments. This is necessary, for example,
16748 # in the case of _POSIX_SOURCE, which is predefined and required
16749 # on some systems where configure will not decide to define it.
16750 if (defundef == "undef") {
16751 print "/*", prefix defundef, macro, "*/"
16759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16760 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16761 fi # test -n "$CONFIG_HEADERS"
16764 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16769 :[FHLC]) ac_mode=$ac_tag; continue;;
16771 case $ac_mode$ac_tag in
16773 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16774 :[FH]-) ac_tag=-:-;;
16775 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16792 -) ac_f="$ac_tmp/stdin";;
16793 *) # Look for the file first in the build tree, then in the source tree
16794 # (if the path is not absolute). The absolute path cannot be DOS-style,
16795 # because $ac_f cannot contain `:'.
16799 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16801 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16803 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16804 as_fn_append ac_file_inputs " '$ac_f'"
16807 # Let's still pretend it is `configure' which instantiates (i.e., don't
16808 # use $as_me), people would be surprised to read:
16809 # /* config.h. Generated by config.status. */
16810 configure_input='Generated from '`
16811 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16813 if test x"$ac_file" != x-; then
16814 configure_input="$ac_file. $configure_input"
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16816 $as_echo "$as_me: creating $ac_file" >&6;}
16818 # Neutralize special characters interpreted by sed in replacement strings.
16819 case $configure_input in #(
16820 *\&* | *\|* | *\\* )
16821 ac_sed_conf_input=`$as_echo "$configure_input" |
16822 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16823 *) ac_sed_conf_input=$configure_input;;
16827 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16828 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16833 ac_dir=`$as_dirname -- "$ac_file" ||
16834 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16835 X"$ac_file" : 'X\(//\)[^/]' \| \
16836 X"$ac_file" : 'X\(//\)$' \| \
16837 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16838 $as_echo X"$ac_file" |
16839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16843 /^X\(\/\/\)[^/].*/{
16856 as_dir="$ac_dir"; as_fn_mkdir_p
16860 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16862 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16863 # A ".." for each directory in $ac_dir_suffix.
16864 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16865 case $ac_top_builddir_sub in
16866 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16867 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16870 ac_abs_top_builddir=$ac_pwd
16871 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16872 # for backward compatibility:
16873 ac_top_builddir=$ac_top_build_prefix
16876 .) # We are building in place.
16878 ac_top_srcdir=$ac_top_builddir_sub
16879 ac_abs_top_srcdir=$ac_pwd ;;
16880 [\\/]* | ?:[\\/]* ) # Absolute name.
16881 ac_srcdir=$srcdir$ac_dir_suffix;
16882 ac_top_srcdir=$srcdir
16883 ac_abs_top_srcdir=$srcdir ;;
16884 *) # Relative name.
16885 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16886 ac_top_srcdir=$ac_top_build_prefix$srcdir
16887 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16889 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16899 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16900 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16902 ac_MKDIR_P=$MKDIR_P
16904 [\\/$]* | ?:[\\/]* ) ;;
16905 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16910 # If the template does not know about datarootdir, expand it.
16911 # FIXME: This hack should be removed a few years after 2.60.
16912 ac_datarootdir_hack=; ac_datarootdir_seen=
16923 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16924 *datarootdir*) ac_datarootdir_seen=yes;;
16925 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16927 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16929 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16930 ac_datarootdir_hack='
16931 s&@datadir@&$datadir&g
16932 s&@docdir@&$docdir&g
16933 s&@infodir@&$infodir&g
16934 s&@localedir@&$localedir&g
16935 s&@mandir@&$mandir&g
16936 s&\\\${datarootdir}&$datarootdir&g' ;;
16940 # Neutralize VPATH when `$srcdir' = `.'.
16941 # Shell code in configure.ac might set extrasub.
16942 # FIXME: do we really want to maintain this feature?
16943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16944 ac_sed_extra="$ac_vpsub
16947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16949 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16950 s|@configure_input@|$ac_sed_conf_input|;t t
16951 s&@top_builddir@&$ac_top_builddir_sub&;t t
16952 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16953 s&@srcdir@&$ac_srcdir&;t t
16954 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16955 s&@top_srcdir@&$ac_top_srcdir&;t t
16956 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16957 s&@builddir@&$ac_builddir&;t t
16958 s&@abs_builddir@&$ac_abs_builddir&;t t
16959 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16960 s&@INSTALL@&$ac_INSTALL&;t t
16961 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16962 $ac_datarootdir_hack
16964 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16965 if $ac_cs_awk_getline; then
16966 $AWK -f "$ac_tmp/subs.awk"
16968 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16970 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16972 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16973 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16974 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16975 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16977 which seems to be undefined. Please make sure it is defined" >&5
16978 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16979 which seems to be undefined. Please make sure it is defined" >&2;}
16981 rm -f "$ac_tmp/stdin"
16983 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16984 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16986 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16992 if test x"$ac_file" != x-; then
16994 $as_echo "/* $configure_input */" \
16995 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16996 } >"$ac_tmp/config.h" \
16997 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16998 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17000 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17003 mv "$ac_tmp/config.h" "$ac_file" \
17004 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17007 $as_echo "/* $configure_input */" \
17008 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17009 || as_fn_error $? "could not create -" "$LINENO" 5
17011 # Compute "$ac_file"'s index in $config_headers.
17014 for _am_header in $config_headers :; do
17015 case $_am_header in
17016 $_am_arg | $_am_arg:* )
17019 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17022 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17023 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17024 X"$_am_arg" : 'X\(//\)[^/]' \| \
17025 X"$_am_arg" : 'X\(//\)$' \| \
17026 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17027 $as_echo X"$_am_arg" |
17028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17032 /^X\(\/\/\)[^/].*/{
17044 s/.*/./; q'`/stamp-h$_am_stamp_count
17047 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17048 $as_echo "$as_me: executing $ac_file commands" >&6;}
17053 case $ac_file$ac_mode in
17055 # Only add multilib support code if we just rebuilt the top-level
17057 case " $CONFIG_FILES " in
17059 ac_file=Makefile . ${multi_basedir}/config-ml.in
17064 # See if we are running on zsh, and set the options which allow our
17065 # commands through without removal of \ escapes.
17066 if test -n "${ZSH_VERSION+set}" ; then
17067 setopt NO_GLOB_SUBST
17070 cfgfile="${ofile}T"
17071 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17074 cat <<_LT_EOF >> "$cfgfile"
17077 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17078 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17079 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17080 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17082 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17083 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17084 # Written by Gordon Matzigkeit, 1996
17086 # This file is part of GNU Libtool.
17088 # GNU Libtool is free software; you can redistribute it and/or
17089 # modify it under the terms of the GNU General Public License as
17090 # published by the Free Software Foundation; either version 2 of
17091 # the License, or (at your option) any later version.
17093 # As a special exception to the GNU General Public License,
17094 # if you distribute this file as part of a program or library that
17095 # is built using GNU Libtool, you may include this file under the
17096 # same distribution terms that you use for the rest of that program.
17098 # GNU Libtool is distributed in the hope that it will be useful,
17099 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17100 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17101 # GNU General Public License for more details.
17103 # You should have received a copy of the GNU General Public License
17104 # along with GNU Libtool; see the file COPYING. If not, a copy
17105 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17106 # obtained by writing to the Free Software Foundation, Inc.,
17107 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17110 # The names of the tagged configurations supported by this script.
17111 available_tags="D "
17113 # ### BEGIN LIBTOOL CONFIG
17115 # Which release of libtool.m4 was used?
17116 macro_version=$macro_version
17117 macro_revision=$macro_revision
17119 # Whether or not to build shared libraries.
17120 build_libtool_libs=$enable_shared
17122 # Whether or not to build static libraries.
17123 build_old_libs=$enable_static
17125 # What type of objects to build.
17128 # Whether or not to optimize for fast installation.
17129 fast_install=$enable_fast_install
17131 # Shell to use when invoking shell scripts.
17134 # An echo program that protects backslashes.
17138 host_alias=$host_alias
17142 # The build system.
17143 build_alias=$build_alias
17147 # A sed program that does not truncate output.
17150 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17151 Xsed="\$SED -e 1s/^X//"
17153 # A grep program that handles long lines.
17159 # A literal string matcher.
17162 # A BSD- or MS-compatible name lister.
17165 # Whether we need soft or hard links.
17168 # What is the maximum length of a command?
17169 max_cmd_len=$max_cmd_len
17171 # Object file suffix (normally "o").
17174 # Executable file suffix (normally "").
17177 # whether the shell understands "unset".
17180 # turn spaces into newlines.
17183 # turn newlines into spaces.
17186 # An object symbol dumper.
17187 OBJDUMP=$lt_OBJDUMP
17189 # Method to check whether dependent libraries are shared objects.
17190 deplibs_check_method=$lt_deplibs_check_method
17192 # Command to use when deplibs_check_method == "file_magic".
17193 file_magic_cmd=$lt_file_magic_cmd
17197 AR_FLAGS=$lt_AR_FLAGS
17199 # A symbol stripping program.
17202 # Commands used to install an old-style archive.
17204 old_postinstall_cmds=$lt_old_postinstall_cmds
17205 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17207 # Whether to use a lock for old archive extraction.
17208 lock_old_archive_extraction=$lock_old_archive_extraction
17213 # LTCC compiler flags.
17214 LTCFLAGS=$lt_CFLAGS
17216 # Take the output of nm and produce a listing of raw symbols and C names.
17217 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17219 # Transform the output of nm in a proper C declaration.
17220 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17222 # Transform the output of nm in a C name address pair.
17223 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17225 # Transform the output of nm in a C name address pair when lib prefix is needed.
17226 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17228 # The name of the directory that contains temporary libtool files.
17231 # Used to examine libraries when file_magic_cmd begins with "file".
17232 MAGIC_CMD=$MAGIC_CMD
17234 # Must we lock files when doing compilation?
17235 need_locks=$lt_need_locks
17237 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17238 DSYMUTIL=$lt_DSYMUTIL
17240 # Tool to change global to local symbols on Mac OS X.
17243 # Tool to manipulate fat objects and archives on Mac OS X.
17246 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17249 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17250 OTOOL64=$lt_OTOOL64
17252 # Old archive suffix (normally "a").
17255 # Shared library suffix (normally ".so").
17256 shrext_cmds=$lt_shrext_cmds
17258 # The commands to extract the exported symbol list from a shared archive.
17259 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17261 # Variables whose values should be saved in libtool wrapper scripts and
17262 # restored at link time.
17263 variables_saved_for_relink=$lt_variables_saved_for_relink
17265 # Do we need the "lib" prefix for modules?
17266 need_lib_prefix=$need_lib_prefix
17268 # Do we need a version for libraries?
17269 need_version=$need_version
17271 # Library versioning type.
17272 version_type=$version_type
17274 # Shared library runtime path variable.
17275 runpath_var=$runpath_var
17277 # Shared library path variable.
17278 shlibpath_var=$shlibpath_var
17280 # Is shlibpath searched before the hard-coded library search path?
17281 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17283 # Format of library name prefix.
17284 libname_spec=$lt_libname_spec
17286 # List of archive names. First name is the real one, the rest are links.
17287 # The last name is the one that the linker finds with -lNAME
17288 library_names_spec=$lt_library_names_spec
17290 # The coded name of the library, if different from the real name.
17291 soname_spec=$lt_soname_spec
17293 # Permission mode override for installation of shared libraries.
17294 install_override_mode=$lt_install_override_mode
17296 # Command to use after installation of a shared archive.
17297 postinstall_cmds=$lt_postinstall_cmds
17299 # Command to use after uninstallation of a shared archive.
17300 postuninstall_cmds=$lt_postuninstall_cmds
17302 # Commands used to finish a libtool library installation in a directory.
17303 finish_cmds=$lt_finish_cmds
17305 # As "finish_cmds", except a single script fragment to be evaled but
17307 finish_eval=$lt_finish_eval
17309 # Whether we should hardcode library paths into libraries.
17310 hardcode_into_libs=$hardcode_into_libs
17312 # Compile-time system search path for libraries.
17313 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17315 # Run-time system search path for libraries.
17316 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17318 # Whether dlopen is supported.
17319 dlopen_support=$enable_dlopen
17321 # Whether dlopen of programs is supported.
17322 dlopen_self=$enable_dlopen_self
17324 # Whether dlopen of statically linked programs is supported.
17325 dlopen_self_static=$enable_dlopen_self_static
17327 # Commands to strip libraries.
17328 old_striplib=$lt_old_striplib
17329 striplib=$lt_striplib
17332 # The linker used to build libraries.
17335 # How to create reloadable object files.
17336 reload_flag=$lt_reload_flag
17337 reload_cmds=$lt_reload_cmds
17339 # Commands used to build an old-style archive.
17340 old_archive_cmds=$lt_old_archive_cmds
17342 # A language specific compiler.
17345 # Is the compiler the GNU compiler?
17348 # Compiler flag to turn off builtin functions.
17349 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17351 # How to pass a linker flag through the compiler.
17352 wl=$lt_lt_prog_compiler_wl
17354 # Additional compiler flags for building library objects.
17355 pic_flag=$lt_lt_prog_compiler_pic
17357 # Compiler flag to prevent dynamic linking.
17358 link_static_flag=$lt_lt_prog_compiler_static
17360 # Does compiler simultaneously support -c and -o options?
17361 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17363 # Whether or not to add -lc for building shared libraries.
17364 build_libtool_need_lc=$archive_cmds_need_lc
17366 # Whether or not to disallow shared libs when runtime libs are static.
17367 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17369 # Compiler flag to allow reflexive dlopens.
17370 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17372 # Compiler flag to generate shared objects directly from archives.
17373 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17375 # Whether the compiler copes with passing no objects directly.
17376 compiler_needs_object=$lt_compiler_needs_object
17378 # Create an old-style archive from a shared archive.
17379 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17381 # Create a temporary old-style archive to link instead of a shared archive.
17382 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17384 # Commands used to build a shared archive.
17385 archive_cmds=$lt_archive_cmds
17386 archive_expsym_cmds=$lt_archive_expsym_cmds
17388 # Commands used to build a loadable module if different from building
17389 # a shared archive.
17390 module_cmds=$lt_module_cmds
17391 module_expsym_cmds=$lt_module_expsym_cmds
17393 # Whether we are building with GNU ld or not.
17394 with_gnu_ld=$lt_with_gnu_ld
17396 # Flag that allows shared libraries with undefined symbols to be built.
17397 allow_undefined_flag=$lt_allow_undefined_flag
17399 # Flag that enforces no undefined symbols.
17400 no_undefined_flag=$lt_no_undefined_flag
17402 # Flag to hardcode \$libdir into a binary during linking.
17403 # This must work even if \$libdir does not exist
17404 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17406 # If ld is used when linking, flag to hardcode \$libdir into a binary
17407 # during linking. This must work even if \$libdir does not exist.
17408 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17410 # Whether we need a single "-rpath" flag with a separated argument.
17411 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17413 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17414 # DIR into the resulting binary.
17415 hardcode_direct=$hardcode_direct
17417 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17418 # DIR into the resulting binary and the resulting library dependency is
17419 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17420 # library is relocated.
17421 hardcode_direct_absolute=$hardcode_direct_absolute
17423 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17424 # into the resulting binary.
17425 hardcode_minus_L=$hardcode_minus_L
17427 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17428 # into the resulting binary.
17429 hardcode_shlibpath_var=$hardcode_shlibpath_var
17431 # Set to "yes" if building a shared library automatically hardcodes DIR
17432 # into the library and all subsequent libraries and executables linked
17434 hardcode_automatic=$hardcode_automatic
17436 # Set to yes if linker adds runtime paths of dependent libraries
17437 # to runtime path list.
17438 inherit_rpath=$inherit_rpath
17440 # Whether libtool must link a program against all its dependency libraries.
17441 link_all_deplibs=$link_all_deplibs
17443 # Fix the shell variable \$srcfile for the compiler.
17444 fix_srcfile_path=$lt_fix_srcfile_path
17446 # Set to "yes" if exported symbols are required.
17447 always_export_symbols=$always_export_symbols
17449 # The commands to list exported symbols.
17450 export_symbols_cmds=$lt_export_symbols_cmds
17452 # Symbols that should not be listed in the preloaded symbols.
17453 exclude_expsyms=$lt_exclude_expsyms
17455 # Symbols that must always be exported.
17456 include_expsyms=$lt_include_expsyms
17458 # Commands necessary for linking programs (against libraries) with templates.
17459 prelink_cmds=$lt_prelink_cmds
17461 # Specify filename containing input files.
17462 file_list_spec=$lt_file_list_spec
17464 # How to hardcode a shared library path into an executable.
17465 hardcode_action=$hardcode_action
17467 # ### END LIBTOOL CONFIG
17473 cat <<\_LT_EOF >> "$cfgfile"
17474 # AIX sometimes has problems with the GCC collect2 program. For some
17475 # reason, if we set the COLLECT_NAMES environment variable, the problems
17476 # vanish in a puff of smoke.
17477 if test "X${COLLECT_NAMES+set}" != Xset; then
17479 export COLLECT_NAMES
17486 ltmain="$ac_aux_dir/ltmain.sh"
17489 # We use sed instead of cat because bash on DJGPP gets confused if
17490 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17491 # text mode, it properly converts lines to CR/LF. This bash problem
17492 # is reportedly fixed, but why not run on old versions too?
17493 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17494 || (rm -f "$cfgfile"; exit 1)
17498 cat << \_LT_EOF >> "$cfgfile"
17500 # func_dirname file append nondir_replacement
17501 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17502 # otherwise set result to NONDIR_REPLACEMENT.
17506 */*) func_dirname_result="${1%/*}${2}" ;;
17507 * ) func_dirname_result="${3}" ;;
17511 # func_basename file
17514 func_basename_result="${1##*/}"
17517 # func_dirname_and_basename file append nondir_replacement
17518 # perform func_basename and func_dirname in a single function
17520 # dirname: Compute the dirname of FILE. If nonempty,
17521 # add APPEND to the result, otherwise set result
17522 # to NONDIR_REPLACEMENT.
17523 # value returned in "$func_dirname_result"
17524 # basename: Compute filename of FILE.
17525 # value retuned in "$func_basename_result"
17526 # Implementation must be kept synchronized with func_dirname
17527 # and func_basename. For efficiency, we do not delegate to
17528 # those functions but instead duplicate the functionality here.
17529 func_dirname_and_basename ()
17532 */*) func_dirname_result="${1%/*}${2}" ;;
17533 * ) func_dirname_result="${3}" ;;
17535 func_basename_result="${1##*/}"
17538 # func_stripname prefix suffix name
17539 # strip PREFIX and SUFFIX off of NAME.
17540 # PREFIX and SUFFIX must not contain globbing or regex special
17541 # characters, hashes, percent signs, but SUFFIX may contain a leading
17542 # dot (in which case that matches only a dot).
17545 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17546 # positional parameters, so assign one to ordinary parameter first.
17547 func_stripname_result=${3}
17548 func_stripname_result=${func_stripname_result#"${1}"}
17549 func_stripname_result=${func_stripname_result%"${2}"}
17555 func_opt_split_opt=${1%%=*}
17556 func_opt_split_arg=${1#*=}
17563 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17564 *) func_lo2o_result=${1} ;;
17568 # func_xform libobj-or-source
17571 func_xform_result=${1%.*}.lo
17574 # func_arith arithmetic-term...
17577 func_arith_result=$(( $* ))
17581 # STRING may not start with a hyphen.
17584 func_len_result=${#1}
17589 *) # Bourne compatible functions.
17590 cat << \_LT_EOF >> "$cfgfile"
17592 # func_dirname file append nondir_replacement
17593 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17594 # otherwise set result to NONDIR_REPLACEMENT.
17597 # Extract subdirectory from the argument.
17598 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17599 if test "X$func_dirname_result" = "X${1}"; then
17600 func_dirname_result="${3}"
17602 func_dirname_result="$func_dirname_result${2}"
17606 # func_basename file
17609 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17613 # func_stripname prefix suffix name
17614 # strip PREFIX and SUFFIX off of NAME.
17615 # PREFIX and SUFFIX must not contain globbing or regex special
17616 # characters, hashes, percent signs, but SUFFIX may contain a leading
17617 # dot (in which case that matches only a dot).
17618 # func_strip_suffix prefix name
17622 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17623 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17628 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17629 my_sed_long_arg='1s/^-[^=]*=//'
17634 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17635 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17641 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17644 # func_xform libobj-or-source
17647 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17650 # func_arith arithmetic-term...
17653 func_arith_result=`expr "$@"`
17657 # STRING may not start with a hyphen.
17660 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17666 case $lt_shell_append in
17668 cat << \_LT_EOF >> "$cfgfile"
17670 # func_append var value
17671 # Append VALUE to the end of shell variable VAR.
17679 cat << \_LT_EOF >> "$cfgfile"
17681 # func_append var value
17682 # Append VALUE to the end of shell variable VAR.
17693 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17694 || (rm -f "$cfgfile"; exit 1)
17696 mv -f "$cfgfile" "$ofile" ||
17697 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17701 cat <<_LT_EOF >> "$ofile"
17703 # ### BEGIN LIBTOOL TAG CONFIG: D
17705 # The linker used to build libraries.
17708 # How to create reloadable object files.
17709 reload_flag=$lt_reload_flag_D
17710 reload_cmds=$lt_reload_cmds_D
17712 # Commands used to build an old-style archive.
17713 old_archive_cmds=$lt_old_archive_cmds_D
17715 # A language specific compiler.
17718 # Is the compiler the GNU compiler?
17721 # Compiler flag to turn off builtin functions.
17722 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
17724 # How to pass a linker flag through the compiler.
17725 wl=$lt_lt_prog_compiler_wl_D
17727 # Additional compiler flags for building library objects.
17728 pic_flag=$lt_lt_prog_compiler_pic_D
17730 # Compiler flag to prevent dynamic linking.
17731 link_static_flag=$lt_lt_prog_compiler_static_D
17733 # Does compiler simultaneously support -c and -o options?
17734 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
17736 # Whether or not to add -lc for building shared libraries.
17737 build_libtool_need_lc=$archive_cmds_need_lc_D
17739 # Whether or not to disallow shared libs when runtime libs are static.
17740 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
17742 # Compiler flag to allow reflexive dlopens.
17743 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
17745 # Compiler flag to generate shared objects directly from archives.
17746 whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
17748 # Whether the compiler copes with passing no objects directly.
17749 compiler_needs_object=$lt_compiler_needs_object_D
17751 # Create an old-style archive from a shared archive.
17752 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
17754 # Create a temporary old-style archive to link instead of a shared archive.
17755 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
17757 # Commands used to build a shared archive.
17758 archive_cmds=$lt_archive_cmds_D
17759 archive_expsym_cmds=$lt_archive_expsym_cmds_D
17761 # Commands used to build a loadable module if different from building
17762 # a shared archive.
17763 module_cmds=$lt_module_cmds_D
17764 module_expsym_cmds=$lt_module_expsym_cmds_D
17766 # Whether we are building with GNU ld or not.
17767 with_gnu_ld=$lt_with_gnu_ld_D
17769 # Flag that allows shared libraries with undefined symbols to be built.
17770 allow_undefined_flag=$lt_allow_undefined_flag_D
17772 # Flag that enforces no undefined symbols.
17773 no_undefined_flag=$lt_no_undefined_flag_D
17775 # Flag to hardcode \$libdir into a binary during linking.
17776 # This must work even if \$libdir does not exist
17777 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
17779 # If ld is used when linking, flag to hardcode \$libdir into a binary
17780 # during linking. This must work even if \$libdir does not exist.
17781 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
17783 # Whether we need a single "-rpath" flag with a separated argument.
17784 hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
17786 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17787 # DIR into the resulting binary.
17788 hardcode_direct=$hardcode_direct_D
17790 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17791 # DIR into the resulting binary and the resulting library dependency is
17792 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17793 # library is relocated.
17794 hardcode_direct_absolute=$hardcode_direct_absolute_D
17796 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17797 # into the resulting binary.
17798 hardcode_minus_L=$hardcode_minus_L_D
17800 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17801 # into the resulting binary.
17802 hardcode_shlibpath_var=$hardcode_shlibpath_var_D
17804 # Set to "yes" if building a shared library automatically hardcodes DIR
17805 # into the library and all subsequent libraries and executables linked
17807 hardcode_automatic=$hardcode_automatic_D
17809 # Set to yes if linker adds runtime paths of dependent libraries
17810 # to runtime path list.
17811 inherit_rpath=$inherit_rpath_D
17813 # Whether libtool must link a program against all its dependency libraries.
17814 link_all_deplibs=$link_all_deplibs_D
17816 # Fix the shell variable \$srcfile for the compiler.
17817 fix_srcfile_path=$lt_fix_srcfile_path_D
17819 # Set to "yes" if exported symbols are required.
17820 always_export_symbols=$always_export_symbols_D
17822 # The commands to list exported symbols.
17823 export_symbols_cmds=$lt_export_symbols_cmds_D
17825 # Symbols that should not be listed in the preloaded symbols.
17826 exclude_expsyms=$lt_exclude_expsyms_D
17828 # Symbols that must always be exported.
17829 include_expsyms=$lt_include_expsyms_D
17831 # Commands necessary for linking programs (against libraries) with templates.
17832 prelink_cmds=$lt_prelink_cmds_D
17834 # Specify filename containing input files.
17835 file_list_spec=$lt_file_list_spec_D
17837 # How to hardcode a shared library path into an executable.
17838 hardcode_action=$hardcode_action_D
17840 # ### END LIBTOOL TAG CONFIG: D
17844 "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
17845 "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
17846 s!`test -f '$<' || echo '$(srcdir)/'`!!
17848 sed -f vpsed$$ $ac_file > tmp$$
17851 echo 'MULTISUBDIR =' >> $ac_file
17853 . ${multi_basedir}/config-ml.in
17854 { ml_norecursion=; unset ml_norecursion;}
17856 "src/Makefile":F) cat > vpsed$$ << \_EOF
17857 s!`test -f '$<' || echo '$(srcdir)/'`!!
17859 sed -f vpsed$$ $ac_file > tmp$$
17862 echo 'MULTISUBDIR =' >> $ac_file
17864 . ${multi_basedir}/config-ml.in
17865 { ml_norecursion=; unset ml_norecursion;}
17867 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
17868 s!`test -f '$<' || echo '$(srcdir)/'`!!
17870 sed -f vpsed$$ $ac_file > tmp$$
17873 echo 'MULTISUBDIR =' >> $ac_file
17875 . ${multi_basedir}/config-ml.in
17876 { ml_norecursion=; unset ml_norecursion;}
17885 ac_clean_files=$ac_clean_files_save
17887 test $ac_write_fail = 0 ||
17888 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17891 # configure is writing to config.log, and then calls config.status.
17892 # config.status does its own redirection, appending to config.log.
17893 # Unfortunately, on DOS this fails, as config.log is still kept open
17894 # by configure, so config.status won't be able to write to it; its
17895 # output is simply discarded. So we exec the FD to /dev/null,
17896 # effectively closing config.log, so it can be properly (re)opened and
17897 # appended to by config.status. When coming back to configure, we
17898 # need to make the FD available again.
17899 if test "$no_create" != yes; then
17901 ac_config_status_args=
17902 test "$silent" = yes &&
17903 ac_config_status_args="$ac_config_status_args --quiet"
17905 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17907 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17908 # would make configure fail if this is the last instruction.
17909 $ac_cs_success || as_fn_exit 1
17911 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17913 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}