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 phobos_compiler_shared_flag
690 phobos_compiler_pic_flag
710 MAINTAINER_MODE_FALSE
728 INSTALL_STRIP_PROGRAM
793 program_transform_name
804 ac_subst_files='DRTSTUFF_SPEC'
806 enable_option_checking
809 enable_maintainer_mode
816 with_gcc_major_version_only
823 with_target_system_zlib
825 enable_version_specific_runtime_libs
827 ac_precious_vars='build_alias
838 # Initialize some variables set by options.
840 ac_init_version=false
841 ac_unrecognized_opts=
843 # The variables have the same names as the options, with
844 # dashes changed to underlines.
852 program_transform_name=s,x,x,
860 # Installation directory options.
861 # These are left unexpanded so users can "make install exec_prefix=/foo"
862 # and all the variables that are supposed to be based on exec_prefix
863 # by default will actually change.
864 # Use braces instead of parens because sh, perl, etc. also accept them.
865 # (The list follows the same order as the GNU Coding Standards.)
866 bindir='${exec_prefix}/bin'
867 sbindir='${exec_prefix}/sbin'
868 libexecdir='${exec_prefix}/libexec'
869 datarootdir='${prefix}/share'
870 datadir='${datarootdir}'
871 sysconfdir='${prefix}/etc'
872 sharedstatedir='${prefix}/com'
873 localstatedir='${prefix}/var'
874 includedir='${prefix}/include'
875 oldincludedir='/usr/include'
876 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
877 infodir='${datarootdir}/info'
882 libdir='${exec_prefix}/lib'
883 localedir='${datarootdir}/locale'
884 mandir='${datarootdir}/man'
890 # If the previous option needs an argument, assign it.
891 if test -n "$ac_prev"; then
892 eval $ac_prev=\$ac_option
898 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903 # Accept the important Cygnus configure options, so we can diagnose typos.
905 case $ac_dashdash$ac_option in
909 -bindir | --bindir | --bindi | --bind | --bin | --bi)
911 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914 -build | --build | --buil | --bui | --bu)
915 ac_prev=build_alias ;;
916 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
917 build_alias=$ac_optarg ;;
919 -cache-file | --cache-file | --cache-fil | --cache-fi \
920 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921 ac_prev=cache_file ;;
922 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
924 cache_file=$ac_optarg ;;
927 cache_file=config.cache ;;
929 -datadir | --datadir | --datadi | --datad)
931 -datadir=* | --datadir=* | --datadi=* | --datad=*)
932 datadir=$ac_optarg ;;
934 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935 | --dataroo | --dataro | --datar)
936 ac_prev=datarootdir ;;
937 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939 datarootdir=$ac_optarg ;;
941 -disable-* | --disable-*)
942 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945 as_fn_error $? "invalid feature name: $ac_useropt"
946 ac_useropt_orig=$ac_useropt
947 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
953 ac_unrecognized_sep=', ';;
955 eval enable_$ac_useropt=no ;;
957 -docdir | --docdir | --docdi | --doc | --do)
959 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
964 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967 -enable-* | --enable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error $? "invalid feature name: $ac_useropt"
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
981 eval enable_$ac_useropt=\$ac_optarg ;;
983 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
984 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
985 | --exec | --exe | --ex)
986 ac_prev=exec_prefix ;;
987 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
988 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
989 | --exec=* | --exe=* | --ex=*)
990 exec_prefix=$ac_optarg ;;
992 -gas | --gas | --ga | --g)
993 # Obsolete; use --with-gas.
996 -help | --help | --hel | --he | -h)
998 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
999 ac_init_help=recursive ;;
1000 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1001 ac_init_help=short ;;
1003 -host | --host | --hos | --ho)
1004 ac_prev=host_alias ;;
1005 -host=* | --host=* | --hos=* | --ho=*)
1006 host_alias=$ac_optarg ;;
1008 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1010 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1012 htmldir=$ac_optarg ;;
1014 -includedir | --includedir | --includedi | --included | --include \
1015 | --includ | --inclu | --incl | --inc)
1016 ac_prev=includedir ;;
1017 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1018 | --includ=* | --inclu=* | --incl=* | --inc=*)
1019 includedir=$ac_optarg ;;
1021 -infodir | --infodir | --infodi | --infod | --info | --inf)
1023 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1024 infodir=$ac_optarg ;;
1026 -libdir | --libdir | --libdi | --libd)
1028 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1029 libdir=$ac_optarg ;;
1031 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1032 | --libexe | --libex | --libe)
1033 ac_prev=libexecdir ;;
1034 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1035 | --libexe=* | --libex=* | --libe=*)
1036 libexecdir=$ac_optarg ;;
1038 -localedir | --localedir | --localedi | --localed | --locale)
1039 ac_prev=localedir ;;
1040 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1041 localedir=$ac_optarg ;;
1043 -localstatedir | --localstatedir | --localstatedi | --localstated \
1044 | --localstate | --localstat | --localsta | --localst | --locals)
1045 ac_prev=localstatedir ;;
1046 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1047 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1048 localstatedir=$ac_optarg ;;
1050 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1052 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1053 mandir=$ac_optarg ;;
1055 -nfp | --nfp | --nf)
1056 # Obsolete; use --without-fp.
1059 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1060 | --no-cr | --no-c | -n)
1063 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1064 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1068 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1069 | --oldin | --oldi | --old | --ol | --o)
1070 ac_prev=oldincludedir ;;
1071 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1072 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1073 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1074 oldincludedir=$ac_optarg ;;
1076 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1078 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1079 prefix=$ac_optarg ;;
1081 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1082 | --program-pre | --program-pr | --program-p)
1083 ac_prev=program_prefix ;;
1084 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1085 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1086 program_prefix=$ac_optarg ;;
1088 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1089 | --program-suf | --program-su | --program-s)
1090 ac_prev=program_suffix ;;
1091 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1092 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1093 program_suffix=$ac_optarg ;;
1095 -program-transform-name | --program-transform-name \
1096 | --program-transform-nam | --program-transform-na \
1097 | --program-transform-n | --program-transform- \
1098 | --program-transform | --program-transfor \
1099 | --program-transfo | --program-transf \
1100 | --program-trans | --program-tran \
1101 | --progr-tra | --program-tr | --program-t)
1102 ac_prev=program_transform_name ;;
1103 -program-transform-name=* | --program-transform-name=* \
1104 | --program-transform-nam=* | --program-transform-na=* \
1105 | --program-transform-n=* | --program-transform-=* \
1106 | --program-transform=* | --program-transfor=* \
1107 | --program-transfo=* | --program-transf=* \
1108 | --program-trans=* | --program-tran=* \
1109 | --progr-tra=* | --program-tr=* | --program-t=*)
1110 program_transform_name=$ac_optarg ;;
1112 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1114 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1115 pdfdir=$ac_optarg ;;
1117 -psdir | --psdir | --psdi | --psd | --ps)
1119 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123 | -silent | --silent | --silen | --sile | --sil)
1126 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1128 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1130 sbindir=$ac_optarg ;;
1132 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1133 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1134 | --sharedst | --shareds | --shared | --share | --shar \
1136 ac_prev=sharedstatedir ;;
1137 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1138 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1139 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1141 sharedstatedir=$ac_optarg ;;
1143 -site | --site | --sit)
1145 -site=* | --site=* | --sit=*)
1148 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1150 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1151 srcdir=$ac_optarg ;;
1153 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1154 | --syscon | --sysco | --sysc | --sys | --sy)
1155 ac_prev=sysconfdir ;;
1156 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1157 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1158 sysconfdir=$ac_optarg ;;
1160 -target | --target | --targe | --targ | --tar | --ta | --t)
1161 ac_prev=target_alias ;;
1162 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1163 target_alias=$ac_optarg ;;
1165 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1168 -version | --version | --versio | --versi | --vers | -V)
1169 ac_init_version=: ;;
1172 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error $? "invalid package name: $ac_useropt"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1185 eval with_$ac_useropt=\$ac_optarg ;;
1187 -without-* | --without-*)
1188 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191 as_fn_error $? "invalid package name: $ac_useropt"
1192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1201 eval with_$ac_useropt=no ;;
1204 # Obsolete; use --with-x.
1207 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1208 | --x-incl | --x-inc | --x-in | --x-i)
1209 ac_prev=x_includes ;;
1210 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1211 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1212 x_includes=$ac_optarg ;;
1214 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1215 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1216 ac_prev=x_libraries ;;
1217 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1218 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1219 x_libraries=$ac_optarg ;;
1221 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1222 Try \`$0 --help' for more information"
1226 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1227 # Reject names that are not valid shell variable names.
1228 case $ac_envvar in #(
1229 '' | [0-9]* | *[!_$as_cr_alnum]* )
1230 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1232 eval $ac_envvar=\$ac_optarg
1233 export $ac_envvar ;;
1236 # FIXME: should be removed in autoconf 3.0.
1237 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1238 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1240 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1246 if test -n "$ac_prev"; then
1247 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1248 as_fn_error $? "missing argument to $ac_option"
1251 if test -n "$ac_unrecognized_opts"; then
1252 case $enable_option_checking in
1254 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1255 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1259 # Check all directory arguments for consistency.
1260 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1261 datadir sysconfdir sharedstatedir localstatedir includedir \
1262 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1263 libdir localedir mandir
1265 eval ac_val=\$$ac_var
1266 # Remove trailing slashes.
1269 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1270 eval $ac_var=\$ac_val;;
1272 # Be sure to have absolute directory names.
1274 [\\/$]* | ?:[\\/]* ) continue;;
1275 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1277 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1280 # There might be people who depend on the old broken behavior: `$host'
1281 # used to hold the argument of --host etc.
1282 # FIXME: To remove some day.
1285 target=$target_alias
1287 # FIXME: To remove some day.
1288 if test "x$host_alias" != x; then
1289 if test "x$build_alias" = x; then
1290 cross_compiling=maybe
1291 elif test "x$build_alias" != "x$host_alias"; then
1297 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1299 test "$silent" = yes && exec 6>/dev/null
1302 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1303 ac_ls_di=`ls -di .` &&
1304 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1305 as_fn_error $? "working directory cannot be determined"
1306 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307 as_fn_error $? "pwd does not report name of working directory"
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312 ac_srcdir_defaulted=yes
1313 # Try the directory containing this script, then the parent directory.
1314 ac_confdir=`$as_dirname -- "$as_myself" ||
1315 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316 X"$as_myself" : 'X\(//\)[^/]' \| \
1317 X"$as_myself" : 'X\(//\)$' \| \
1318 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319 $as_echo X"$as_myself" |
1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1342 ac_srcdir_defaulted=no
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1348 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1350 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1352 # When building in place, set srcdir=.
1353 if test "$ac_abs_confdir" = "$ac_pwd"; then
1356 # Remove unnecessary trailing slashes from srcdir.
1357 # Double slashes in file names in object file debugging info
1358 # mess up M-x gdb in Emacs.
1360 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1362 for ac_var in $ac_precious_vars; do
1363 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_env_${ac_var}_value=\$${ac_var}
1365 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1370 # Report the --help message.
1372 if test "$ac_init_help" = "long"; then
1373 # Omit some internal or obsolete options to make the list less imposing.
1374 # This message is too long to be a string in the A/UX 3.1 sh.
1376 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1378 Usage: $0 [OPTION]... [VAR=VALUE]...
1380 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1381 VAR=VALUE. See below for descriptions of some of the useful variables.
1383 Defaults for the options are specified in brackets.
1386 -h, --help display this help and exit
1387 --help=short display options specific to this package
1388 --help=recursive display the short help of all the included packages
1389 -V, --version display version information and exit
1390 -q, --quiet, --silent do not print \`checking ...' messages
1391 --cache-file=FILE cache test results in FILE [disabled]
1392 -C, --config-cache alias for \`--cache-file=config.cache'
1393 -n, --no-create do not create output files
1394 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1396 Installation directories:
1397 --prefix=PREFIX install architecture-independent files in PREFIX
1398 [$ac_default_prefix]
1399 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1402 By default, \`make install' will install all the files in
1403 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1404 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1405 for instance \`--prefix=\$HOME'.
1407 For better control, use the options below.
1409 Fine tuning of the installation directories:
1410 --bindir=DIR user executables [EPREFIX/bin]
1411 --sbindir=DIR system admin executables [EPREFIX/sbin]
1412 --libexecdir=DIR program executables [EPREFIX/libexec]
1413 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1414 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1415 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1416 --libdir=DIR object code libraries [EPREFIX/lib]
1417 --includedir=DIR C header files [PREFIX/include]
1418 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1419 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1420 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1421 --infodir=DIR info documentation [DATAROOTDIR/info]
1422 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1423 --mandir=DIR man documentation [DATAROOTDIR/man]
1424 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1425 --htmldir=DIR html documentation [DOCDIR]
1426 --dvidir=DIR dvi documentation [DOCDIR]
1427 --pdfdir=DIR pdf documentation [DOCDIR]
1428 --psdir=DIR ps documentation [DOCDIR]
1434 --program-prefix=PREFIX prepend PREFIX to installed program names
1435 --program-suffix=SUFFIX append SUFFIX to installed program names
1436 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1439 --build=BUILD configure for building on BUILD [guessed]
1440 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1441 --target=TARGET configure for building compilers for TARGET [HOST]
1445 if test -n "$ac_init_help"; then
1446 case $ac_init_help in
1447 short | recursive ) echo "Configuration of package-unused version-unused:";;
1452 --disable-option-checking ignore unrecognized --enable/--with options
1453 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1454 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1455 --enable-multilib build many library versions (default)
1456 --enable-silent-rules less verbose build output (undo: "make V=1")
1457 --disable-silent-rules verbose build output (undo: "make V=0")
1458 --enable-maintainer-mode
1459 enable make rules and dependencies not useful (and
1460 sometimes confusing) to the casual installer
1461 --enable-shared[=PKGS] build shared libraries [default=yes]
1462 --enable-static[=PKGS] build static libraries [default=yes]
1463 --enable-fast-install[=PKGS]
1464 optimize for fast installation [default=yes]
1465 --disable-libtool-lock avoid locking (might break parallel builds)
1466 --enable-werror turns on -Werror [default=no]
1467 --enable-druntime-gc enable D runtime garbage collector (default: yes)
1468 --enable-unix enables Unix runtime (default: yes, for Unix
1470 --enable-thread-lib=<arg>
1471 specify linker option for the system thread library
1472 (default: autodetect)
1473 --enable-version-specific-runtime-libs
1474 Specify that runtime libraries should be installed
1475 in a compiler-specific directory
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --with-pic try to use only PIC/non-PIC objects [default=use
1482 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1483 --with-gcc-major-version-only
1484 use only GCC major number in filesystem paths
1485 --without-libatomic Do not use libatomic in core.atomic (default: auto)
1486 --without-libbacktrace Do not use libbacktrace in core.runtime (default:
1488 --with-target-system-zlib={yes,no,auto}
1489 use installed libz (default: no)
1490 --with-cross-host=HOST configuring with a cross compiler
1492 Some influential environment variables:
1493 CC C compiler command
1494 CFLAGS C compiler flags
1495 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1496 nonstandard directory <lib dir>
1497 LIBS libraries to pass to the linker, e.g. -l<library>
1498 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1499 you have headers in a nonstandard directory <include dir>
1501 CCAS assembler compiler command (defaults to CC)
1502 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1503 GDC D compiler command
1504 GDCFLAGS D compiler flags
1506 Use these variables to override the choices made by `configure' or to help
1507 it to find libraries and programs with nonstandard names/locations.
1509 Report bugs to the package provider.
1514 if test "$ac_init_help" = "recursive"; then
1515 # If there are subdirs, report their specific --help.
1516 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1517 test -d "$ac_dir" ||
1518 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1523 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1526 # A ".." for each directory in $ac_dir_suffix.
1527 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1528 case $ac_top_builddir_sub in
1529 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1533 ac_abs_top_builddir=$ac_pwd
1534 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1535 # for backward compatibility:
1536 ac_top_builddir=$ac_top_build_prefix
1539 .) # We are building in place.
1541 ac_top_srcdir=$ac_top_builddir_sub
1542 ac_abs_top_srcdir=$ac_pwd ;;
1543 [\\/]* | ?:[\\/]* ) # Absolute name.
1544 ac_srcdir=$srcdir$ac_dir_suffix;
1545 ac_top_srcdir=$srcdir
1546 ac_abs_top_srcdir=$srcdir ;;
1548 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1549 ac_top_srcdir=$ac_top_build_prefix$srcdir
1550 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1552 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1554 cd "$ac_dir" || { ac_status=$?; continue; }
1555 # Check for guested configure.
1556 if test -f "$ac_srcdir/configure.gnu"; then
1558 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1559 elif test -f "$ac_srcdir/configure"; then
1561 $SHELL "$ac_srcdir/configure" --help=recursive
1563 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1565 cd "$ac_pwd" || { ac_status=$?; break; }
1569 test -n "$ac_init_help" && exit $ac_status
1570 if $ac_init_version; then
1572 package-unused configure version-unused
1573 generated by GNU Autoconf 2.69
1575 Copyright (C) 2012 Free Software Foundation, Inc.
1576 This configure script is free software; the Free Software Foundation
1577 gives unlimited permission to copy, distribute and modify it.
1582 ## ------------------------ ##
1583 ## Autoconf initialization. ##
1584 ## ------------------------ ##
1586 # ac_fn_c_try_compile LINENO
1587 # --------------------------
1588 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1589 ac_fn_c_try_compile ()
1591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592 rm -f conftest.$ac_objext
1593 if { { ac_try="$ac_compile"
1595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596 *) ac_try_echo=$ac_try;;
1598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599 $as_echo "$ac_try_echo"; } >&5
1600 (eval "$ac_compile") 2>conftest.err
1602 if test -s conftest.err; then
1603 grep -v '^ *+' conftest.err >conftest.er1
1604 cat conftest.er1 >&5
1605 mv -f conftest.er1 conftest.err
1607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1608 test $ac_status = 0; } && {
1609 test -z "$ac_c_werror_flag" ||
1610 test ! -s conftest.err
1611 } && test -s conftest.$ac_objext; then :
1614 $as_echo "$as_me: failed program was:" >&5
1615 sed 's/^/| /' conftest.$ac_ext >&5
1619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620 as_fn_set_status $ac_retval
1622 } # ac_fn_c_try_compile
1624 # ac_fn_c_try_cpp LINENO
1625 # ----------------------
1626 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 if { { ac_try="$ac_cpp conftest.$ac_ext"
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1639 if test -s conftest.err; then
1640 grep -v '^ *+' conftest.err >conftest.er1
1641 cat conftest.er1 >&5
1642 mv -f conftest.er1 conftest.err
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } > conftest.i && {
1646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1647 test ! -s conftest.err
1651 $as_echo "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657 as_fn_set_status $ac_retval
1661 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1662 # -------------------------------------------------------
1663 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1664 # the include files in INCLUDES and setting the cache variable VAR
1666 ac_fn_c_check_header_mongrel ()
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 if eval \${$3+:} false; then :
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1671 $as_echo_n "checking for $2... " >&6; }
1672 if eval \${$3+:} false; then :
1673 $as_echo_n "(cached) " >&6
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677 $as_echo "$ac_res" >&6; }
1679 # Is the header compilable?
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1681 $as_echo_n "checking $2 usability... " >&6; }
1682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683 /* end confdefs.h. */
1687 if ac_fn_c_try_compile "$LINENO"; then :
1688 ac_header_compiler=yes
1690 ac_header_compiler=no
1692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1694 $as_echo "$ac_header_compiler" >&6; }
1696 # Is the header present?
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1698 $as_echo_n "checking $2 presence... " >&6; }
1699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700 /* end confdefs.h. */
1703 if ac_fn_c_try_cpp "$LINENO"; then :
1704 ac_header_preproc=yes
1706 ac_header_preproc=no
1708 rm -f conftest.err conftest.i conftest.$ac_ext
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1710 $as_echo "$ac_header_preproc" >&6; }
1712 # So? What about this header?
1713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1716 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1718 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1722 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1724 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1726 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1728 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1730 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734 $as_echo_n "checking for $2... " >&6; }
1735 if eval \${$3+:} false; then :
1736 $as_echo_n "(cached) " >&6
1738 eval "$3=\$ac_header_compiler"
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1742 $as_echo "$ac_res" >&6; }
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746 } # ac_fn_c_check_header_mongrel
1748 # ac_fn_c_try_run LINENO
1749 # ----------------------
1750 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1751 # that executables *can* be run.
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 if { { ac_try="$ac_link"
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_link") 2>&5
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1766 { { case "(($ac_try" in
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_try") 2>&5
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; }; }; then :
1778 $as_echo "$as_me: program exited with status $ac_status" >&5
1779 $as_echo "$as_me: failed program was:" >&5
1780 sed 's/^/| /' conftest.$ac_ext >&5
1782 ac_retval=$ac_status
1784 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786 as_fn_set_status $ac_retval
1790 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1791 # -------------------------------------------------------
1792 # Tests whether HEADER exists and can be compiled using the include files in
1793 # INCLUDES, setting the cache variable VAR accordingly.
1794 ac_fn_c_check_header_compile ()
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 $as_echo_n "checking for $2... " >&6; }
1799 if eval \${$3+:} false; then :
1800 $as_echo_n "(cached) " >&6
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1807 if ac_fn_c_try_compile "$LINENO"; then :
1812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819 } # ac_fn_c_check_header_compile
1821 # ac_fn_d_try_compile LINENO
1822 # --------------------------
1823 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1824 ac_fn_d_try_compile ()
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 rm -f conftest.$ac_objext
1828 if { { ac_try="$ac_compile"
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_compile") 2>conftest.err
1837 if test -s conftest.err; then
1838 grep -v '^ *+' conftest.err >conftest.er1
1839 cat conftest.er1 >&5
1840 mv -f conftest.er1 conftest.err
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; } && {
1844 test -z "$ac_d_werror_flag" ||
1845 test ! -s conftest.err
1846 } && test -s conftest.$ac_objext; then :
1849 $as_echo "$as_me: failed program was:" >&5
1850 sed 's/^/| /' conftest.$ac_ext >&5
1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855 as_fn_set_status $ac_retval
1857 } # ac_fn_d_try_compile
1859 # ac_fn_c_try_link LINENO
1860 # -----------------------
1861 # Try to link conftest.$ac_ext, and return whether this succeeded.
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 rm -f conftest.$ac_objext conftest$ac_exeext
1866 if { { ac_try="$ac_link"
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_link") 2>conftest.err
1875 if test -s conftest.err; then
1876 grep -v '^ *+' conftest.err >conftest.er1
1877 cat conftest.er1 >&5
1878 mv -f conftest.er1 conftest.err
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; } && {
1882 test -z "$ac_c_werror_flag" ||
1883 test ! -s conftest.err
1884 } && test -s conftest$ac_exeext && {
1885 test "$cross_compiling" = yes ||
1886 test -x conftest$ac_exeext
1890 $as_echo "$as_me: failed program was:" >&5
1891 sed 's/^/| /' conftest.$ac_ext >&5
1895 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1896 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1897 # interfere with the next link command; also delete a directory that is
1898 # left behind by Apple's compiler. We do this before executing the actions.
1899 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901 as_fn_set_status $ac_retval
1903 } # ac_fn_c_try_link
1905 # ac_fn_c_check_func LINENO FUNC VAR
1906 # ----------------------------------
1907 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1908 ac_fn_c_check_func ()
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912 $as_echo_n "checking for $2... " >&6; }
1913 if eval \${$3+:} false; then :
1914 $as_echo_n "(cached) " >&6
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1918 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1920 #define $2 innocuous_$2
1922 /* System header to define __stub macros and hopefully few prototypes,
1923 which can conflict with char $2 (); below.
1924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1925 <limits.h> exists even on freestanding compilers. */
1928 # include <limits.h>
1930 # include <assert.h>
1935 /* Override any GCC internal prototype to avoid an error.
1936 Use char because int might match the return type of a GCC
1937 builtin and then its argument prototype would still apply. */
1942 /* The GNU C library defines this for functions which it implements
1943 to always fail with ENOSYS. Some functions are actually named
1944 something starting with __ and the normal name is an alias. */
1945 #if defined __stub_$2 || defined __stub___$2
1957 if ac_fn_c_try_link "$LINENO"; then :
1962 rm -f core conftest.err conftest.$ac_objext \
1963 conftest$ac_exeext conftest.$ac_ext
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 $as_echo "$ac_res" >&6; }
1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970 } # ac_fn_c_check_func
1972 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1973 # ----------------------------------------------------
1974 # Tries to find if the field MEMBER exists in type AGGR, after including
1975 # INCLUDES, setting cache variable VAR accordingly.
1976 ac_fn_c_check_member ()
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1980 $as_echo_n "checking for $2.$3... " >&6; }
1981 if eval \${$4+:} false; then :
1982 $as_echo_n "(cached) " >&6
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h. */
1997 if ac_fn_c_try_compile "$LINENO"; then :
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2007 if (sizeof ac_aggr.$3)
2013 if ac_fn_c_try_compile "$LINENO"; then :
2018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2024 $as_echo "$ac_res" >&6; }
2025 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2027 } # ac_fn_c_check_member
2029 # ac_fn_d_try_link LINENO
2030 # -----------------------
2031 # Try to link conftest.$ac_ext, and return whether this succeeded.
2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035 rm -f conftest.$ac_objext conftest$ac_exeext
2036 if { { ac_try="$ac_link"
2038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2039 *) ac_try_echo=$ac_try;;
2041 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2042 $as_echo "$ac_try_echo"; } >&5
2043 (eval "$ac_link") 2>conftest.err
2045 if test -s conftest.err; then
2046 grep -v '^ *+' conftest.err >conftest.er1
2047 cat conftest.er1 >&5
2048 mv -f conftest.er1 conftest.err
2050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2051 test $ac_status = 0; } && {
2052 test -z "$ac_d_werror_flag" ||
2053 test ! -s conftest.err
2054 } && test -s conftest$ac_exeext && {
2055 test "$cross_compiling" = yes ||
2056 test -x conftest$ac_exeext
2060 $as_echo "$as_me: failed program was:" >&5
2061 sed 's/^/| /' conftest.$ac_ext >&5
2065 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2066 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2067 # interfere with the next link command; also delete a directory that is
2068 # left behind by Apple's compiler. We do this before executing the actions.
2069 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071 as_fn_set_status $ac_retval
2073 } # ac_fn_d_try_link
2074 cat >config.log <<_ACEOF
2075 This file contains any messages produced by compilers while
2076 running configure, to aid debugging if configure makes a mistake.
2078 It was created by package-unused $as_me version-unused, which was
2079 generated by GNU Autoconf 2.69. Invocation command line was
2091 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2092 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2093 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2094 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2095 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2097 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2098 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2100 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2101 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2102 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2103 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2104 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2105 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2106 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2114 test -z "$as_dir" && as_dir=.
2115 $as_echo "PATH: $as_dir"
2131 # Keep a trace of the command line.
2132 # Strip out --no-create and --no-recursion so they do not pile up.
2133 # Strip out --silent because we don't want to record it for future runs.
2134 # Also quote any args containing shell meta-characters.
2135 # Make two passes to allow for proper duplicate-argument suppression.
2139 ac_must_keep_next=false
2145 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2147 | -silent | --silent | --silen | --sile | --sil)
2150 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2153 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2155 as_fn_append ac_configure_args1 " '$ac_arg'"
2156 if test $ac_must_keep_next = true; then
2157 ac_must_keep_next=false # Got value, back to normal.
2160 *=* | --config-cache | -C | -disable-* | --disable-* \
2161 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2162 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2163 | -with-* | --with-* | -without-* | --without-* | --x)
2164 case "$ac_configure_args0 " in
2165 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2168 -* ) ac_must_keep_next=true ;;
2171 as_fn_append ac_configure_args " '$ac_arg'"
2176 { ac_configure_args0=; unset ac_configure_args0;}
2177 { ac_configure_args1=; unset ac_configure_args1;}
2179 # When interrupted or exit'd, cleanup temporary files, and complete
2180 # config.log. We remove comments because anyway the quotes in there
2181 # would cause problems or look ugly.
2182 # WARNING: Use '\'' to represent an apostrophe within the trap.
2183 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2184 trap 'exit_status=$?
2185 # Save into config.log some information that might help in debugging.
2189 $as_echo "## ---------------- ##
2190 ## Cache variables. ##
2191 ## ---------------- ##"
2193 # The following way of writing the cache mishandles newlines in values,
2195 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2196 eval ac_val=\$$ac_var
2200 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2201 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2204 _ | IFS | as_nl) ;; #(
2205 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2206 *) { eval $ac_var=; unset $ac_var;} ;;
2211 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2212 *${as_nl}ac_space=\ *)
2214 "s/'\''/'\''\\\\'\'''\''/g;
2215 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2218 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2225 $as_echo "## ----------------- ##
2226 ## Output variables. ##
2227 ## ----------------- ##"
2229 for ac_var in $ac_subst_vars
2231 eval ac_val=\$$ac_var
2233 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2235 $as_echo "$ac_var='\''$ac_val'\''"
2239 if test -n "$ac_subst_files"; then
2240 $as_echo "## ------------------- ##
2241 ## File substitutions. ##
2242 ## ------------------- ##"
2244 for ac_var in $ac_subst_files
2246 eval ac_val=\$$ac_var
2248 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2250 $as_echo "$ac_var='\''$ac_val'\''"
2255 if test -s confdefs.h; then
2256 $as_echo "## ----------- ##
2263 test "$ac_signal" != 0 &&
2264 $as_echo "$as_me: caught signal $ac_signal"
2265 $as_echo "$as_me: exit $exit_status"
2267 rm -f core *.core core.conftest.* &&
2268 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2271 for ac_signal in 1 2 13 15; do
2272 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2276 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2277 rm -f -r conftest* confdefs.h
2279 $as_echo "/* confdefs.h */" > confdefs.h
2281 # Predefined preprocessor variables.
2283 cat >>confdefs.h <<_ACEOF
2284 #define PACKAGE_NAME "$PACKAGE_NAME"
2287 cat >>confdefs.h <<_ACEOF
2288 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2291 cat >>confdefs.h <<_ACEOF
2292 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2295 cat >>confdefs.h <<_ACEOF
2296 #define PACKAGE_STRING "$PACKAGE_STRING"
2299 cat >>confdefs.h <<_ACEOF
2300 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2303 cat >>confdefs.h <<_ACEOF
2304 #define PACKAGE_URL "$PACKAGE_URL"
2308 # Let the site file select an alternate cache file if it wants to.
2309 # Prefer an explicitly selected file to automatically selected ones.
2312 if test -n "$CONFIG_SITE"; then
2313 # We do not want a PATH search for config.site.
2314 case $CONFIG_SITE in #((
2315 -*) ac_site_file1=./$CONFIG_SITE;;
2316 */*) ac_site_file1=$CONFIG_SITE;;
2317 *) ac_site_file1=./$CONFIG_SITE;;
2319 elif test "x$prefix" != xNONE; then
2320 ac_site_file1=$prefix/share/config.site
2321 ac_site_file2=$prefix/etc/config.site
2323 ac_site_file1=$ac_default_prefix/share/config.site
2324 ac_site_file2=$ac_default_prefix/etc/config.site
2326 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2328 test "x$ac_site_file" = xNONE && continue
2329 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2331 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2332 sed 's/^/| /' "$ac_site_file" >&5
2334 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2336 as_fn_error $? "failed to load site script $ac_site_file
2337 See \`config.log' for more details" "$LINENO" 5; }
2341 if test -r "$cache_file"; then
2342 # Some versions of bash will fail to source /dev/null (special files
2343 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2344 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2346 $as_echo "$as_me: loading cache $cache_file" >&6;}
2348 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2349 *) . "./$cache_file";;
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2354 $as_echo "$as_me: creating cache $cache_file" >&6;}
2358 # Check that the precious variables saved in the cache have kept the same
2360 ac_cache_corrupted=false
2361 for ac_var in $ac_precious_vars; do
2362 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2363 eval ac_new_set=\$ac_env_${ac_var}_set
2364 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2365 eval ac_new_val=\$ac_env_${ac_var}_value
2366 case $ac_old_set,$ac_new_set in
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2369 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2370 ac_cache_corrupted=: ;;
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2373 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2374 ac_cache_corrupted=: ;;
2377 if test "x$ac_old_val" != "x$ac_new_val"; then
2378 # differences in whitespace do not lead to failure.
2379 ac_old_val_w=`echo x $ac_old_val`
2380 ac_new_val_w=`echo x $ac_new_val`
2381 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2383 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2384 ac_cache_corrupted=:
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2387 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2388 eval $ac_var=\$ac_old_val
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2391 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2393 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2396 # Pass precious variables to config.status.
2397 if test "$ac_new_set" = set; then
2399 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2400 *) ac_arg=$ac_var=$ac_new_val ;;
2402 case " $ac_configure_args " in
2403 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2404 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2408 if $ac_cache_corrupted; then
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2412 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2413 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2415 ## -------------------- ##
2416 ## Main body of script. ##
2417 ## -------------------- ##
2420 ac_cpp='$CPP $CPPFLAGS'
2421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2430 ac_config_headers="$ac_config_headers config.h"
2433 # Default to --enable-multilib
2434 # Check whether --enable-multilib was given.
2435 if test "${enable_multilib+set}" = set; then :
2436 enableval=$enable_multilib; case "$enableval" in
2437 yes) multilib=yes ;;
2439 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2446 # We may get other options which we leave undocumented:
2447 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2448 # See config-ml.in if you want the gory details.
2450 if test "$srcdir" = "."; then
2451 if test "$with_target_subdir" != "."; then
2452 multi_basedir="$srcdir/$with_multisrctop../.."
2454 multi_basedir="$srcdir/$with_multisrctop.."
2457 multi_basedir="$srcdir/.."
2461 # Even if the default multilib is not a cross compilation,
2462 # it may be that some of the other multilibs are.
2463 if test $cross_compiling = no && test $multilib = yes \
2464 && test "x${with_multisubdir}" != x ; then
2465 cross_compiling=maybe
2468 ac_config_commands="$ac_config_commands default-1"
2471 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2472 if test -f "$ac_dir/install-sh"; then
2474 ac_install_sh="$ac_aux_dir/install-sh -c"
2476 elif test -f "$ac_dir/install.sh"; then
2478 ac_install_sh="$ac_aux_dir/install.sh -c"
2480 elif test -f "$ac_dir/shtool"; then
2482 ac_install_sh="$ac_aux_dir/shtool install -c"
2486 if test -z "$ac_aux_dir"; then
2487 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2490 # These three variables are undocumented and unsupported,
2491 # and are intended to be withdrawn in a future Autoconf release.
2492 # They can cause serious problems if a builder's source tree is in a directory
2493 # whose full name contains unusual characters.
2494 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2495 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2496 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2499 # Make sure we can run config.sub.
2500 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2501 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2504 $as_echo_n "checking build system type... " >&6; }
2505 if ${ac_cv_build+:} false; then :
2506 $as_echo_n "(cached) " >&6
2508 ac_build_alias=$build_alias
2509 test "x$ac_build_alias" = x &&
2510 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2511 test "x$ac_build_alias" = x &&
2512 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2513 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2514 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2518 $as_echo "$ac_cv_build" >&6; }
2519 case $ac_cv_build in
2521 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2524 ac_save_IFS=$IFS; IFS='-'
2530 # Remember, the first character of IFS is used to create $*,
2531 # except with old shells:
2534 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2538 $as_echo_n "checking host system type... " >&6; }
2539 if ${ac_cv_host+:} false; then :
2540 $as_echo_n "(cached) " >&6
2542 if test "x$host_alias" = x; then
2543 ac_cv_host=$ac_cv_build
2545 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2546 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2551 $as_echo "$ac_cv_host" >&6; }
2554 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2557 ac_save_IFS=$IFS; IFS='-'
2563 # Remember, the first character of IFS is used to create $*,
2564 # except with old shells:
2567 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2571 $as_echo_n "checking target system type... " >&6; }
2572 if ${ac_cv_target+:} false; then :
2573 $as_echo_n "(cached) " >&6
2575 if test "x$target_alias" = x; then
2576 ac_cv_target=$ac_cv_host
2578 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2579 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2584 $as_echo "$ac_cv_target" >&6; }
2585 case $ac_cv_target in
2587 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2589 target=$ac_cv_target
2590 ac_save_IFS=$IFS; IFS='-'
2596 # Remember, the first character of IFS is used to create $*,
2597 # except with old shells:
2600 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2603 # The aliases save the names the user supplied, while $host etc.
2604 # will get canonicalized.
2605 test -n "$target_alias" &&
2606 test "$program_prefix$program_suffix$program_transform_name" = \
2608 program_prefix=${target_alias}-
2610 # Expand $ac_aux_dir to an absolute path.
2611 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2614 ac_cpp='$CPP $CPPFLAGS'
2615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2618 if test -n "$ac_tool_prefix"; then
2619 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2620 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2622 $as_echo_n "checking for $ac_word... " >&6; }
2623 if ${ac_cv_prog_CC+:} false; then :
2624 $as_echo_n "(cached) " >&6
2626 if test -n "$CC"; then
2627 ac_cv_prog_CC="$CC" # Let the user override the test.
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2647 if test -n "$CC"; then
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2649 $as_echo "$CC" >&6; }
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2652 $as_echo "no" >&6; }
2657 if test -z "$ac_cv_prog_CC"; then
2659 # Extract the first word of "gcc", so it can be a program name with args.
2660 set dummy gcc; ac_word=$2
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2662 $as_echo_n "checking for $ac_word... " >&6; }
2663 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2664 $as_echo_n "(cached) " >&6
2666 if test -n "$ac_ct_CC"; then
2667 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 test -z "$as_dir" && as_dir=.
2674 for ac_exec_ext in '' $ac_executable_extensions; do
2675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2676 ac_cv_prog_ac_ct_CC="gcc"
2677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2686 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2687 if test -n "$ac_ct_CC"; then
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2689 $as_echo "$ac_ct_CC" >&6; }
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2692 $as_echo "no" >&6; }
2695 if test "x$ac_ct_CC" = x; then
2698 case $cross_compiling:$ac_tool_warned in
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2702 ac_tool_warned=yes ;;
2710 if test -z "$CC"; then
2711 if test -n "$ac_tool_prefix"; then
2712 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2713 set dummy ${ac_tool_prefix}cc; ac_word=$2
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715 $as_echo_n "checking for $ac_word... " >&6; }
2716 if ${ac_cv_prog_CC+:} false; then :
2717 $as_echo_n "(cached) " >&6
2719 if test -n "$CC"; then
2720 ac_cv_prog_CC="$CC" # Let the user override the test.
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 test -z "$as_dir" && as_dir=.
2727 for ac_exec_ext in '' $ac_executable_extensions; do
2728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2729 ac_cv_prog_CC="${ac_tool_prefix}cc"
2730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2740 if test -n "$CC"; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2742 $as_echo "$CC" >&6; }
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745 $as_echo "no" >&6; }
2751 if test -z "$CC"; then
2752 # Extract the first word of "cc", so it can be a program name with args.
2753 set dummy cc; ac_word=$2
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2755 $as_echo_n "checking for $ac_word... " >&6; }
2756 if ${ac_cv_prog_CC+:} false; then :
2757 $as_echo_n "(cached) " >&6
2759 if test -n "$CC"; then
2760 ac_cv_prog_CC="$CC" # Let the user override the test.
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767 test -z "$as_dir" && as_dir=.
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2770 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2771 ac_prog_rejected=yes
2775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2782 if test $ac_prog_rejected = yes; then
2783 # We found a bogon in the path, so make sure we never use it.
2784 set dummy $ac_cv_prog_CC
2786 if test $# != 0; then
2787 # We chose a different compiler from the bogus one.
2788 # However, it has the same basename, so the bogon will be chosen
2789 # first if we set CC to just the basename; use the full file name.
2791 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2797 if test -n "$CC"; then
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2799 $as_echo "$CC" >&6; }
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2807 if test -z "$CC"; then
2808 if test -n "$ac_tool_prefix"; then
2809 for ac_prog in cl.exe
2811 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2812 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if ${ac_cv_prog_CC+:} false; then :
2816 $as_echo_n "(cached) " >&6
2818 if test -n "$CC"; then
2819 ac_cv_prog_CC="$CC" # Let the user override the test.
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 if test -n "$CC"; then
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2841 $as_echo "$CC" >&6; }
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844 $as_echo "no" >&6; }
2848 test -n "$CC" && break
2851 if test -z "$CC"; then
2853 for ac_prog in cl.exe
2855 # Extract the first word of "$ac_prog", so it can be a program name with args.
2856 set dummy $ac_prog; ac_word=$2
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858 $as_echo_n "checking for $ac_word... " >&6; }
2859 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2860 $as_echo_n "(cached) " >&6
2862 if test -n "$ac_ct_CC"; then
2863 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2872 ac_cv_prog_ac_ct_CC="$ac_prog"
2873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2882 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2883 if test -n "$ac_ct_CC"; then
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2885 $as_echo "$ac_ct_CC" >&6; }
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888 $as_echo "no" >&6; }
2892 test -n "$ac_ct_CC" && break
2895 if test "x$ac_ct_CC" = x; then
2898 case $cross_compiling:$ac_tool_warned in
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2902 ac_tool_warned=yes ;;
2911 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2913 as_fn_error $? "no acceptable C compiler found in \$PATH
2914 See \`config.log' for more details" "$LINENO" 5; }
2916 # Provide some information about the compiler.
2917 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2920 for ac_option in --version -v -V -qversion; do
2921 { { ac_try="$ac_compiler $ac_option >&5"
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2927 $as_echo "$ac_try_echo"; } >&5
2928 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2930 if test -s conftest.err; then
2932 ... rest of stderr output deleted ...
2933 10q' conftest.err >conftest.er1
2934 cat conftest.er1 >&5
2936 rm -f conftest.er1 conftest.err
2937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2938 test $ac_status = 0; }
2941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2942 /* end confdefs.h. */
2952 ac_clean_files_save=$ac_clean_files
2953 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2954 # Try to create an executable without -o first, disregard a.out.
2955 # It will help us diagnose broken compilers, and finding out an intuition
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2958 $as_echo_n "checking whether the C compiler works... " >&6; }
2959 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2961 # The possible output files:
2962 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2965 for ac_file in $ac_files
2968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2969 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2974 if { { ac_try="$ac_link_default"
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2980 $as_echo "$ac_try_echo"; } >&5
2981 (eval "$ac_link_default") 2>&5
2983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2984 test $ac_status = 0; }; then :
2985 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2986 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2987 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2988 # so that the user can short-circuit this test for compilers unknown to
2990 for ac_file in $ac_files ''
2992 test -f "$ac_file" || continue
2994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2997 # We found the default executable, but exeext='' is most
3001 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3003 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3005 # We set ac_cv_exeext here because the later test for it is not
3006 # safe: cross compilers may not add the suffix if given an `-o'
3007 # argument, so we may need to know it at that point already.
3008 # Even if this section looks crufty: it has the advantage of
3015 test "$ac_cv_exeext" = no && ac_cv_exeext=
3020 if test -z "$ac_file"; then :
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022 $as_echo "no" >&6; }
3023 $as_echo "$as_me: failed program was:" >&5
3024 sed 's/^/| /' conftest.$ac_ext >&5
3026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3028 as_fn_error 77 "C compiler cannot create executables
3029 See \`config.log' for more details" "$LINENO" 5; }
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3032 $as_echo "yes" >&6; }
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3035 $as_echo_n "checking for C compiler default output file name... " >&6; }
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3037 $as_echo "$ac_file" >&6; }
3038 ac_exeext=$ac_cv_exeext
3040 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3041 ac_clean_files=$ac_clean_files_save
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3043 $as_echo_n "checking for suffix of executables... " >&6; }
3044 if { { ac_try="$ac_link"
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3050 $as_echo "$ac_try_echo"; } >&5
3051 (eval "$ac_link") 2>&5
3053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3054 test $ac_status = 0; }; then :
3055 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3056 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3057 # work properly (i.e., refer to `conftest.exe'), while it won't with
3059 for ac_file in conftest.exe conftest conftest.*; do
3060 test -f "$ac_file" || continue
3062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3063 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3071 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3072 See \`config.log' for more details" "$LINENO" 5; }
3074 rm -f conftest conftest$ac_cv_exeext
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3076 $as_echo "$ac_cv_exeext" >&6; }
3078 rm -f conftest.$ac_ext
3079 EXEEXT=$ac_cv_exeext
3081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3082 /* end confdefs.h. */
3087 FILE *f = fopen ("conftest.out", "w");
3088 return ferror (f) || fclose (f) != 0;
3094 ac_clean_files="$ac_clean_files conftest.out"
3095 # Check that the compiler produces executables we can run. If not, either
3096 # the compiler is broken, or we cross compile.
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3098 $as_echo_n "checking whether we are cross compiling... " >&6; }
3099 if test "$cross_compiling" != yes; then
3100 { { ac_try="$ac_link"
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3106 $as_echo "$ac_try_echo"; } >&5
3107 (eval "$ac_link") 2>&5
3109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3110 test $ac_status = 0; }
3111 if { ac_try='./conftest$ac_cv_exeext'
3112 { { case "(($ac_try" in
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3117 $as_echo "$ac_try_echo"; } >&5
3118 (eval "$ac_try") 2>&5
3120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3121 test $ac_status = 0; }; }; then
3124 if test "$cross_compiling" = maybe; then
3127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3129 as_fn_error $? "cannot run C compiled programs.
3130 If you meant to cross compile, use \`--host'.
3131 See \`config.log' for more details" "$LINENO" 5; }
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3136 $as_echo "$cross_compiling" >&6; }
3138 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3139 ac_clean_files=$ac_clean_files_save
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3141 $as_echo_n "checking for suffix of object files... " >&6; }
3142 if ${ac_cv_objext+:} false; then :
3143 $as_echo_n "(cached) " >&6
3145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3146 /* end confdefs.h. */
3156 rm -f conftest.o conftest.obj
3157 if { { ac_try="$ac_compile"
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163 $as_echo "$ac_try_echo"; } >&5
3164 (eval "$ac_compile") 2>&5
3166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167 test $ac_status = 0; }; then :
3168 for ac_file in conftest.o conftest.obj conftest.*; do
3169 test -f "$ac_file" || continue;
3171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3172 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3177 $as_echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3182 as_fn_error $? "cannot compute suffix of object files: cannot compile
3183 See \`config.log' for more details" "$LINENO" 5; }
3185 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3188 $as_echo "$ac_cv_objext" >&6; }
3189 OBJEXT=$ac_cv_objext
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3192 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3193 if ${ac_cv_c_compiler_gnu+:} false; then :
3194 $as_echo_n "(cached) " >&6
3196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197 /* end confdefs.h. */
3210 if ac_fn_c_try_compile "$LINENO"; then :
3215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3216 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3220 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3221 if test $ac_compiler_gnu = yes; then
3226 ac_test_CFLAGS=${CFLAGS+set}
3227 ac_save_CFLAGS=$CFLAGS
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3229 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3230 if ${ac_cv_prog_cc_g+:} false; then :
3231 $as_echo_n "(cached) " >&6
3233 ac_save_c_werror_flag=$ac_c_werror_flag
3234 ac_c_werror_flag=yes
3237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3238 /* end confdefs.h. */
3248 if ac_fn_c_try_compile "$LINENO"; then :
3252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253 /* end confdefs.h. */
3263 if ac_fn_c_try_compile "$LINENO"; then :
3266 ac_c_werror_flag=$ac_save_c_werror_flag
3268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269 /* end confdefs.h. */
3279 if ac_fn_c_try_compile "$LINENO"; then :
3282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3287 ac_c_werror_flag=$ac_save_c_werror_flag
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3290 $as_echo "$ac_cv_prog_cc_g" >&6; }
3291 if test "$ac_test_CFLAGS" = set; then
3292 CFLAGS=$ac_save_CFLAGS
3293 elif test $ac_cv_prog_cc_g = yes; then
3294 if test "$GCC" = yes; then
3300 if test "$GCC" = yes; then
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3307 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3308 if ${ac_cv_prog_cc_c89+:} false; then :
3309 $as_echo_n "(cached) " >&6
3311 ac_cv_prog_cc_c89=no
3313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314 /* end confdefs.h. */
3318 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3319 struct buf { int x; };
3320 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3321 static char *e (p, i)
3327 static char *f (char * (*g) (char **, int), char **p, ...)
3332 s = g (p, va_arg (v,int));
3337 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3338 function prototypes and stuff, but not '\xHH' hex character constants.
3339 These don't provoke an error unfortunately, instead are silently treated
3340 as 'x'. The following induces an error, until -std is added to get
3341 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3342 array size at least. It's necessary to write '\x00'==0 to get something
3343 that's true only with -std. */
3344 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3346 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3347 inside strings and character constants. */
3349 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3351 int test (int i, double x);
3352 struct s1 {int (*f) (int a);};
3353 struct s2 {int (*f) (double a);};
3354 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3360 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3365 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3366 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3368 CC="$ac_save_CC $ac_arg"
3369 if ac_fn_c_try_compile "$LINENO"; then :
3370 ac_cv_prog_cc_c89=$ac_arg
3372 rm -f core conftest.err conftest.$ac_objext
3373 test "x$ac_cv_prog_cc_c89" != "xno" && break
3375 rm -f conftest.$ac_ext
3380 case "x$ac_cv_prog_cc_c89" in
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3383 $as_echo "none needed" >&6; } ;;
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3386 $as_echo "unsupported" >&6; } ;;
3388 CC="$CC $ac_cv_prog_cc_c89"
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3390 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3392 if test "x$ac_cv_prog_cc_c89" != xno; then :
3397 ac_cpp='$CPP $CPPFLAGS'
3398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3403 ac_cpp='$CPP $CPPFLAGS'
3404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3408 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3409 if ${am_cv_prog_cc_c_o+:} false; then :
3410 $as_echo_n "(cached) " >&6
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h. */
3423 # Make sure it works both with $CC and with simple cc.
3424 # Following AC_PROG_CC_C_O, we do the test twice because some
3425 # compilers refuse to overwrite an existing .o file with -o,
3426 # though they will create one.
3427 am_cv_prog_cc_c_o=yes
3429 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3430 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } \
3434 && test -f conftest2.$ac_objext; then
3437 am_cv_prog_cc_c_o=no
3441 rm -f core conftest*
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3445 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3446 if test "$am_cv_prog_cc_c_o" != yes; then
3447 # Losing compiler, so override with the script.
3448 # FIXME: It is wrong to rewrite CC.
3449 # But if we don't then we get into trouble of one sort or another.
3450 # A longer-term fix would be to have automake use am__CC in this case,
3451 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3452 CC="$am_aux_dir/compile $CC"
3455 ac_cpp='$CPP $CPPFLAGS'
3456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463 ac_cpp='$CPP $CPPFLAGS'
3464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3468 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3469 # On Suns, sometimes $CPP names a directory.
3470 if test -n "$CPP" && test -d "$CPP"; then
3473 if test -z "$CPP"; then
3474 if ${ac_cv_prog_CPP+:} false; then :
3475 $as_echo_n "(cached) " >&6
3477 # Double quotes because CPP needs to be expanded
3478 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3481 for ac_c_preproc_warn_flag in '' yes
3483 # Use a header file that comes with gcc, so configuring glibc
3484 # with a fresh cross-compiler works.
3485 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3486 # <limits.h> exists even on freestanding compilers.
3487 # On the NeXT, cc -E runs the code through the compiler's parser,
3488 # not just through cpp. "Syntax error" is here to catch this case.
3489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490 /* end confdefs.h. */
3492 # include <limits.h>
3494 # include <assert.h>
3498 if ac_fn_c_try_cpp "$LINENO"; then :
3501 # Broken: fails on valid input.
3504 rm -f conftest.err conftest.i conftest.$ac_ext
3506 # OK, works on sane cases. Now check whether nonexistent headers
3507 # can be detected and how.
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h. */
3510 #include <ac_nonexistent.h>
3512 if ac_fn_c_try_cpp "$LINENO"; then :
3513 # Broken: success on invalid input.
3516 # Passes both tests.
3520 rm -f conftest.err conftest.i conftest.$ac_ext
3523 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3524 rm -f conftest.i conftest.err conftest.$ac_ext
3525 if $ac_preproc_ok; then :
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3538 $as_echo "$CPP" >&6; }
3540 for ac_c_preproc_warn_flag in '' yes
3542 # Use a header file that comes with gcc, so configuring glibc
3543 # with a fresh cross-compiler works.
3544 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3545 # <limits.h> exists even on freestanding compilers.
3546 # On the NeXT, cc -E runs the code through the compiler's parser,
3547 # not just through cpp. "Syntax error" is here to catch this case.
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3551 # include <limits.h>
3553 # include <assert.h>
3557 if ac_fn_c_try_cpp "$LINENO"; then :
3560 # Broken: fails on valid input.
3563 rm -f conftest.err conftest.i conftest.$ac_ext
3565 # OK, works on sane cases. Now check whether nonexistent headers
3566 # can be detected and how.
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3569 #include <ac_nonexistent.h>
3571 if ac_fn_c_try_cpp "$LINENO"; then :
3572 # Broken: success on invalid input.
3575 # Passes both tests.
3579 rm -f conftest.err conftest.i conftest.$ac_ext
3582 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3583 rm -f conftest.i conftest.err conftest.$ac_ext
3584 if $ac_preproc_ok; then :
3587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3590 See \`config.log' for more details" "$LINENO" 5; }
3594 ac_cpp='$CPP $CPPFLAGS'
3595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3601 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3602 if ${ac_cv_path_GREP+:} false; then :
3603 $as_echo_n "(cached) " >&6
3605 if test -z "$GREP"; then
3606 ac_path_GREP_found=false
3607 # Loop through the user's path and test for each of PROGNAME-LIST
3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3612 test -z "$as_dir" && as_dir=.
3613 for ac_prog in grep ggrep; do
3614 for ac_exec_ext in '' $ac_executable_extensions; do
3615 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3616 as_fn_executable_p "$ac_path_GREP" || continue
3617 # Check for GNU ac_path_GREP and select it if it is found.
3618 # Check for GNU $ac_path_GREP
3619 case `"$ac_path_GREP" --version 2>&1` in
3621 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3624 $as_echo_n 0123456789 >"conftest.in"
3627 cat "conftest.in" "conftest.in" >"conftest.tmp"
3628 mv "conftest.tmp" "conftest.in"
3629 cp "conftest.in" "conftest.nl"
3630 $as_echo 'GREP' >> "conftest.nl"
3631 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3632 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3633 as_fn_arith $ac_count + 1 && ac_count=$as_val
3634 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3635 # Best one so far, save it but keep looking for a better one
3636 ac_cv_path_GREP="$ac_path_GREP"
3637 ac_path_GREP_max=$ac_count
3639 # 10*(2^10) chars as input seems more than enough
3640 test $ac_count -gt 10 && break
3642 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3645 $ac_path_GREP_found && break 3
3650 if test -z "$ac_cv_path_GREP"; then
3651 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3654 ac_cv_path_GREP=$GREP
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3659 $as_echo "$ac_cv_path_GREP" >&6; }
3660 GREP="$ac_cv_path_GREP"
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3664 $as_echo_n "checking for egrep... " >&6; }
3665 if ${ac_cv_path_EGREP+:} false; then :
3666 $as_echo_n "(cached) " >&6
3668 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3669 then ac_cv_path_EGREP="$GREP -E"
3671 if test -z "$EGREP"; then
3672 ac_path_EGREP_found=false
3673 # Loop through the user's path and test for each of PROGNAME-LIST
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3678 test -z "$as_dir" && as_dir=.
3679 for ac_prog in egrep; do
3680 for ac_exec_ext in '' $ac_executable_extensions; do
3681 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3682 as_fn_executable_p "$ac_path_EGREP" || continue
3683 # Check for GNU ac_path_EGREP and select it if it is found.
3684 # Check for GNU $ac_path_EGREP
3685 case `"$ac_path_EGREP" --version 2>&1` in
3687 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3690 $as_echo_n 0123456789 >"conftest.in"
3693 cat "conftest.in" "conftest.in" >"conftest.tmp"
3694 mv "conftest.tmp" "conftest.in"
3695 cp "conftest.in" "conftest.nl"
3696 $as_echo 'EGREP' >> "conftest.nl"
3697 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3698 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3699 as_fn_arith $ac_count + 1 && ac_count=$as_val
3700 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3701 # Best one so far, save it but keep looking for a better one
3702 ac_cv_path_EGREP="$ac_path_EGREP"
3703 ac_path_EGREP_max=$ac_count
3705 # 10*(2^10) chars as input seems more than enough
3706 test $ac_count -gt 10 && break
3708 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3711 $ac_path_EGREP_found && break 3
3716 if test -z "$ac_cv_path_EGREP"; then
3717 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3720 ac_cv_path_EGREP=$EGREP
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3726 $as_echo "$ac_cv_path_EGREP" >&6; }
3727 EGREP="$ac_cv_path_EGREP"
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3731 $as_echo_n "checking for ANSI C header files... " >&6; }
3732 if ${ac_cv_header_stdc+:} false; then :
3733 $as_echo_n "(cached) " >&6
3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h. */
3750 if ac_fn_c_try_compile "$LINENO"; then :
3751 ac_cv_header_stdc=yes
3753 ac_cv_header_stdc=no
3755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3757 if test $ac_cv_header_stdc = yes; then
3758 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h. */
3764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3765 $EGREP "memchr" >/dev/null 2>&1; then :
3768 ac_cv_header_stdc=no
3774 if test $ac_cv_header_stdc = yes; then
3775 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h. */
3781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3782 $EGREP "free" >/dev/null 2>&1; then :
3785 ac_cv_header_stdc=no
3791 if test $ac_cv_header_stdc = yes; then
3792 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3793 if test "$cross_compiling" = yes; then :
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h. */
3800 #if ((' ' & 0x0FF) == 0x020)
3801 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3802 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3804 # define ISLOWER(c) \
3805 (('a' <= (c) && (c) <= 'i') \
3806 || ('j' <= (c) && (c) <= 'r') \
3807 || ('s' <= (c) && (c) <= 'z'))
3808 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3811 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3816 for (i = 0; i < 256; i++)
3817 if (XOR (islower (i), ISLOWER (i))
3818 || toupper (i) != TOUPPER (i))
3823 if ac_fn_c_try_run "$LINENO"; then :
3826 ac_cv_header_stdc=no
3828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3829 conftest.$ac_objext conftest.beam conftest.$ac_ext
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3835 $as_echo "$ac_cv_header_stdc" >&6; }
3836 if test $ac_cv_header_stdc = yes; then
3838 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3842 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3843 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3844 inttypes.h stdint.h unistd.h
3846 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3847 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3849 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3850 cat >>confdefs.h <<_ACEOF
3851 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3860 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3861 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3868 if test "$MINIX" = yes; then
3870 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3873 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3876 $as_echo "#define _MINIX 1" >>confdefs.h
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3882 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3883 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3884 $as_echo_n "(cached) " >&6
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h. */
3889 # define __EXTENSIONS__ 1
3890 $ac_includes_default
3899 if ac_fn_c_try_compile "$LINENO"; then :
3900 ac_cv_safe_to_define___extensions__=yes
3902 ac_cv_safe_to_define___extensions__=no
3904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3907 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3908 test $ac_cv_safe_to_define___extensions__ = yes &&
3909 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3911 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3913 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3915 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3917 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3921 target_alias=${target_alias-$target}
3924 # 1.11.1: Require that version of automake.
3925 # foreign: Don't require README, INSTALL, NEWS, etc.
3926 # no-define: Don't define PACKAGE and VERSION.
3927 # no-dependencies: Don't generate automatic dependencies.
3928 # (because it breaks when using bootstrap-lean, since some of the
3929 # headers are gone at "make install" time).
3930 # subdir-objects: Build objects in sub-directories.
3931 # -Wall: Issue all automake warnings.
3932 # -Wno-portability: Don't warn about constructs supported by GNU make.
3933 # (because GCC requires GNU make anyhow).
3934 # -Wno-override: Overrides used in testsuite.
3935 am__api_version='1.15'
3937 # Find a good install program. We prefer a C program (faster),
3938 # so one script is as good as another. But avoid the broken or
3939 # incompatible versions:
3940 # SysV /etc/install, /usr/sbin/install
3941 # SunOS /usr/etc/install
3942 # IRIX /sbin/install
3944 # AmigaOS /C/install, which installs bootblocks on floppy discs
3945 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3946 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3947 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3948 # OS/2's system install, which has a completely different semantic
3949 # ./install, which can be erroneously created by make from ./install.sh.
3950 # Reject install programs that cannot install multiple files.
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3952 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3953 if test -z "$INSTALL"; then
3954 if ${ac_cv_path_install+:} false; then :
3955 $as_echo_n "(cached) " >&6
3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961 test -z "$as_dir" && as_dir=.
3962 # Account for people who put trailing slashes in PATH elements.
3963 case $as_dir/ in #((
3964 ./ | .// | /[cC]/* | \
3965 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3966 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3969 # OSF1 and SCO ODT 3.0 have their own names for install.
3970 # Don't use installbsd from OSF since it installs stuff as root
3972 for ac_prog in ginstall scoinst install; do
3973 for ac_exec_ext in '' $ac_executable_extensions; do
3974 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3975 if test $ac_prog = install &&
3976 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3977 # AIX install. It has an incompatible calling convention.
3979 elif test $ac_prog = install &&
3980 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3981 # program-specific install script used by HP pwplus--don't use.
3984 rm -rf conftest.one conftest.two conftest.dir
3985 echo one > conftest.one
3986 echo two > conftest.two
3988 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3989 test -s conftest.one && test -s conftest.two &&
3990 test -s conftest.dir/conftest.one &&
3991 test -s conftest.dir/conftest.two
3993 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4006 rm -rf conftest.one conftest.two conftest.dir
4009 if test "${ac_cv_path_install+set}" = set; then
4010 INSTALL=$ac_cv_path_install
4012 # As a last resort, use the slow shell script. Don't cache a
4013 # value for INSTALL within a source directory, because that will
4014 # break other packages using the cache if that directory is
4015 # removed, or if the value is a relative name.
4016 INSTALL=$ac_install_sh
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4020 $as_echo "$INSTALL" >&6; }
4022 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4023 # It thinks the first close brace ends the variable substitution.
4024 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4026 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4028 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4031 $as_echo_n "checking whether build environment is sane... " >&6; }
4032 # Reject unsafe characters in $srcdir or the absolute working directory
4033 # name. Accept space and tab only in the latter.
4037 *[\\\"\#\$\&\'\`$am_lf]*)
4038 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4041 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4042 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4045 # Do 'set' in a subshell so we don't clobber the current shell's
4046 # arguments. Must try -L first in case configure is actually a
4047 # symlink; some systems play weird games with the mod time of symlinks
4048 # (eg FreeBSD returns the mod time of the symlink's containing
4052 for am_try in 1 2; do
4053 echo "timestamp, slept: $am_has_slept" > conftest.file
4054 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4055 if test "$*" = "X"; then
4057 set X `ls -t "$srcdir/configure" conftest.file`
4059 if test "$*" != "X $srcdir/configure conftest.file" \
4060 && test "$*" != "X conftest.file $srcdir/configure"; then
4062 # If neither matched, then we have a broken ls. This can happen
4063 # if, for instance, CONFIG_SHELL is bash and it inherits a
4064 # broken ls alias from the environment. This has actually
4065 # happened. Such a system could not be considered "sane".
4066 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4067 alias in your environment" "$LINENO" 5
4069 if test "$2" = conftest.file || test $am_try -eq 2; then
4076 test "$2" = conftest.file
4082 as_fn_error $? "newly created file is older than distributed files!
4083 Check your system clock" "$LINENO" 5
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4086 $as_echo "yes" >&6; }
4087 # If we didn't sleep, we still need to ensure time stamps of config.status and
4088 # generated files are strictly newer.
4090 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4097 test "$program_prefix" != NONE &&
4098 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4099 # Use a double $ so make ignores it.
4100 test "$program_suffix" != NONE &&
4101 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4102 # Double any \ or $.
4103 # By default was `s,x,x', remove it if useless.
4104 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4105 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4107 if test x"${MISSING+set}" != xset; then
4110 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4112 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4115 # Use eval to expand $SHELL
4116 if eval "$MISSING --is-lightweight"; then
4117 am_missing_run="$MISSING "
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4121 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4124 if test x"${install_sh+set}" != xset; then
4127 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4129 install_sh="\${SHELL} $am_aux_dir/install-sh"
4133 # Installed binaries are usually stripped using 'strip' when the user
4134 # run "make install-strip". However 'strip' might not be the right
4135 # tool to use in cross-compilation environments, therefore Automake
4136 # will honor the 'STRIP' environment variable to overrule this program.
4137 if test "$cross_compiling" != no; then
4138 if test -n "$ac_tool_prefix"; then
4139 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4140 set dummy ${ac_tool_prefix}strip; ac_word=$2
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142 $as_echo_n "checking for $ac_word... " >&6; }
4143 if ${ac_cv_prog_STRIP+:} false; then :
4144 $as_echo_n "(cached) " >&6
4146 if test -n "$STRIP"; then
4147 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153 test -z "$as_dir" && as_dir=.
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4156 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4166 STRIP=$ac_cv_prog_STRIP
4167 if test -n "$STRIP"; then
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4169 $as_echo "$STRIP" >&6; }
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172 $as_echo "no" >&6; }
4177 if test -z "$ac_cv_prog_STRIP"; then
4179 # Extract the first word of "strip", so it can be a program name with args.
4180 set dummy strip; ac_word=$2
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4182 $as_echo_n "checking for $ac_word... " >&6; }
4183 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4184 $as_echo_n "(cached) " >&6
4186 if test -n "$ac_ct_STRIP"; then
4187 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193 test -z "$as_dir" && as_dir=.
4194 for ac_exec_ext in '' $ac_executable_extensions; do
4195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4196 ac_cv_prog_ac_ct_STRIP="strip"
4197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4207 if test -n "$ac_ct_STRIP"; then
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4209 $as_echo "$ac_ct_STRIP" >&6; }
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4212 $as_echo "no" >&6; }
4215 if test "x$ac_ct_STRIP" = x; then
4218 case $cross_compiling:$ac_tool_warned in
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4222 ac_tool_warned=yes ;;
4227 STRIP="$ac_cv_prog_STRIP"
4231 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4234 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4235 if test -z "$MKDIR_P"; then
4236 if ${ac_cv_path_mkdir+:} false; then :
4237 $as_echo_n "(cached) " >&6
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4243 test -z "$as_dir" && as_dir=.
4244 for ac_prog in mkdir gmkdir; do
4245 for ac_exec_ext in '' $ac_executable_extensions; do
4246 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4247 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4248 'mkdir (GNU coreutils) '* | \
4249 'mkdir (coreutils) '* | \
4250 'mkdir (fileutils) '4.1*)
4251 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4261 test -d ./--version && rmdir ./--version
4262 if test "${ac_cv_path_mkdir+set}" = set; then
4263 MKDIR_P="$ac_cv_path_mkdir -p"
4265 # As a last resort, use the slow shell script. Don't cache a
4266 # value for MKDIR_P within a source directory, because that will
4267 # break other packages using the cache if that directory is
4268 # removed, or if the value is a relative name.
4269 MKDIR_P="$ac_install_sh -d"
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4273 $as_echo "$MKDIR_P" >&6; }
4275 for ac_prog in gawk mawk nawk awk
4277 # Extract the first word of "$ac_prog", so it can be a program name with args.
4278 set dummy $ac_prog; ac_word=$2
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4280 $as_echo_n "checking for $ac_word... " >&6; }
4281 if ${ac_cv_prog_AWK+:} false; then :
4282 $as_echo_n "(cached) " >&6
4284 if test -n "$AWK"; then
4285 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 test -z "$as_dir" && as_dir=.
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4294 ac_cv_prog_AWK="$ac_prog"
4295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4305 if test -n "$AWK"; then
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4307 $as_echo "$AWK" >&6; }
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 $as_echo "no" >&6; }
4314 test -n "$AWK" && break
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4318 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4320 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4321 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4322 $as_echo_n "(cached) " >&6
4324 cat >conftest.make <<\_ACEOF
4327 @echo '@@@%%%=$(MAKE)=@@@%%%'
4329 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4330 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4332 eval ac_cv_prog_make_${ac_make}_set=yes;;
4334 eval ac_cv_prog_make_${ac_make}_set=no;;
4338 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4340 $as_echo "yes" >&6; }
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4344 $as_echo "no" >&6; }
4345 SET_MAKE="MAKE=${MAKE-make}"
4348 rm -rf .tst 2>/dev/null
4349 mkdir .tst 2>/dev/null
4350 if test -d .tst; then
4355 rmdir .tst 2>/dev/null
4357 # Check whether --enable-silent-rules was given.
4358 if test "${enable_silent_rules+set}" = set; then :
4359 enableval=$enable_silent_rules;
4362 case $enable_silent_rules in # (((
4363 yes) AM_DEFAULT_VERBOSITY=0;;
4364 no) AM_DEFAULT_VERBOSITY=1;;
4365 *) AM_DEFAULT_VERBOSITY=1;;
4367 am_make=${MAKE-make}
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4369 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4370 if ${am_cv_make_support_nested_variables+:} false; then :
4371 $as_echo_n "(cached) " >&6
4373 if $as_echo 'TRUE=$(BAR$(V))
4379 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4380 am_cv_make_support_nested_variables=yes
4382 am_cv_make_support_nested_variables=no
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4386 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4387 if test $am_cv_make_support_nested_variables = yes; then
4389 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4391 AM_V=$AM_DEFAULT_VERBOSITY
4392 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4396 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4397 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4398 # is not polluted with repeated "-I."
4399 am__isrc=' -I$(srcdir)'
4400 # test to see if srcdir already configured
4401 if test -f $srcdir/config.status; then
4402 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4406 # test whether we have cygpath
4407 if test -z "$CYGPATH_W"; then
4408 if (cygpath --version) >/dev/null 2>/dev/null; then
4409 CYGPATH_W='cygpath -w'
4416 # Define the identity of the package.
4418 VERSION='version-unused'
4421 # Some tools Automake needs.
4423 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4426 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4429 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4432 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4435 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4437 # For better backward compatibility. To be removed once Automake 1.9.x
4438 # dies out for good. For more background, see:
4439 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4440 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4441 mkdir_p='$(MKDIR_P)'
4443 # We need awk for the "check" target (and possibly the TAP driver). The
4444 # system "awk" is bad on some platforms.
4445 # Always define AMTAR for backward compatibility. Yes, it's still used
4446 # in the wild :-( We should find a proper way to deprecate it ...
4450 # We'll loop over all known methods to create a tar archive until one works.
4451 _am_tools='gnutar pax cpio none'
4453 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4460 # POSIX will say in a future version that running "rm -f" with no argument
4461 # is OK; and we want to be able to make that assumption in our Makefile
4462 # recipes. So use an aggressive probe to check that the usage we want is
4463 # actually supported "in the wild" to an acceptable degree.
4464 # See automake bug#10828.
4465 # To make any issue more visible, cause the running configure to be aborted
4466 # by default if the 'rm' program in use doesn't match our expectations; the
4467 # user can still override this though.
4468 if rm -f && rm -fr && rm -rf; then : OK; else
4472 Your 'rm' program seems unable to run without file operands specified
4473 on the command line, even when the '-f' option is present. This is contrary
4474 to the behaviour of most rm programs out there, and not conforming with
4475 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4477 Please tell bug-automake@gnu.org about your system, including the value
4478 of your $PATH and any error possibly output before this message. This
4479 can help us improve future automake versions.
4482 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4483 echo 'Configuration will proceed anyway, since you have set the' >&2
4484 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4488 Aborting the configuration process, to ensure you take notice of the issue.
4490 You can download and install GNU coreutils to get an 'rm' implementation
4491 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4493 If you want to complete the configuration process using your problematic
4494 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4495 to "yes", and re-run configure.
4498 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4505 # By default we simply use the C compiler to build assembly code.
4507 test "${CCAS+set}" = set || CCAS=$CC
4508 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4513 ac_cpp='$CPP $CPPFLAGS'
4514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4517 if test -n "$ac_tool_prefix"; then
4518 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4519 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4521 $as_echo_n "checking for $ac_word... " >&6; }
4522 if ${ac_cv_prog_CC+:} false; then :
4523 $as_echo_n "(cached) " >&6
4525 if test -n "$CC"; then
4526 ac_cv_prog_CC="$CC" # Let the user override the test.
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532 test -z "$as_dir" && as_dir=.
4533 for ac_exec_ext in '' $ac_executable_extensions; do
4534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4535 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4546 if test -n "$CC"; then
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4548 $as_echo "$CC" >&6; }
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4551 $as_echo "no" >&6; }
4556 if test -z "$ac_cv_prog_CC"; then
4558 # Extract the first word of "gcc", so it can be a program name with args.
4559 set dummy gcc; ac_word=$2
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4561 $as_echo_n "checking for $ac_word... " >&6; }
4562 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4563 $as_echo_n "(cached) " >&6
4565 if test -n "$ac_ct_CC"; then
4566 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 test -z "$as_dir" && as_dir=.
4573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4575 ac_cv_prog_ac_ct_CC="gcc"
4576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4585 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4586 if test -n "$ac_ct_CC"; then
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4588 $as_echo "$ac_ct_CC" >&6; }
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4591 $as_echo "no" >&6; }
4594 if test "x$ac_ct_CC" = x; then
4597 case $cross_compiling:$ac_tool_warned in
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4601 ac_tool_warned=yes ;;
4609 if test -z "$CC"; then
4610 if test -n "$ac_tool_prefix"; then
4611 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4612 set dummy ${ac_tool_prefix}cc; ac_word=$2
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4614 $as_echo_n "checking for $ac_word... " >&6; }
4615 if ${ac_cv_prog_CC+:} false; then :
4616 $as_echo_n "(cached) " >&6
4618 if test -n "$CC"; then
4619 ac_cv_prog_CC="$CC" # Let the user override the test.
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 test -z "$as_dir" && as_dir=.
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4628 ac_cv_prog_CC="${ac_tool_prefix}cc"
4629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4639 if test -n "$CC"; then
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4641 $as_echo "$CC" >&6; }
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4644 $as_echo "no" >&6; }
4650 if test -z "$CC"; then
4651 # Extract the first word of "cc", so it can be a program name with args.
4652 set dummy cc; ac_word=$2
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654 $as_echo_n "checking for $ac_word... " >&6; }
4655 if ${ac_cv_prog_CC+:} false; then :
4656 $as_echo_n "(cached) " >&6
4658 if test -n "$CC"; then
4659 ac_cv_prog_CC="$CC" # Let the user override the test.
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 test -z "$as_dir" && as_dir=.
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4669 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4670 ac_prog_rejected=yes
4674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4681 if test $ac_prog_rejected = yes; then
4682 # We found a bogon in the path, so make sure we never use it.
4683 set dummy $ac_cv_prog_CC
4685 if test $# != 0; then
4686 # We chose a different compiler from the bogus one.
4687 # However, it has the same basename, so the bogon will be chosen
4688 # first if we set CC to just the basename; use the full file name.
4690 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4696 if test -n "$CC"; then
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4698 $as_echo "$CC" >&6; }
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4701 $as_echo "no" >&6; }
4706 if test -z "$CC"; then
4707 if test -n "$ac_tool_prefix"; then
4708 for ac_prog in cl.exe
4710 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4711 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4713 $as_echo_n "checking for $ac_word... " >&6; }
4714 if ${ac_cv_prog_CC+:} false; then :
4715 $as_echo_n "(cached) " >&6
4717 if test -n "$CC"; then
4718 ac_cv_prog_CC="$CC" # Let the user override the test.
4720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724 test -z "$as_dir" && as_dir=.
4725 for ac_exec_ext in '' $ac_executable_extensions; do
4726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4727 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4738 if test -n "$CC"; then
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4740 $as_echo "$CC" >&6; }
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4743 $as_echo "no" >&6; }
4747 test -n "$CC" && break
4750 if test -z "$CC"; then
4752 for ac_prog in cl.exe
4754 # Extract the first word of "$ac_prog", so it can be a program name with args.
4755 set dummy $ac_prog; ac_word=$2
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4757 $as_echo_n "checking for $ac_word... " >&6; }
4758 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4759 $as_echo_n "(cached) " >&6
4761 if test -n "$ac_ct_CC"; then
4762 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4771 ac_cv_prog_ac_ct_CC="$ac_prog"
4772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4781 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4782 if test -n "$ac_ct_CC"; then
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4784 $as_echo "$ac_ct_CC" >&6; }
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4787 $as_echo "no" >&6; }
4791 test -n "$ac_ct_CC" && break
4794 if test "x$ac_ct_CC" = x; then
4797 case $cross_compiling:$ac_tool_warned in
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4801 ac_tool_warned=yes ;;
4810 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4812 as_fn_error $? "no acceptable C compiler found in \$PATH
4813 See \`config.log' for more details" "$LINENO" 5; }
4815 # Provide some information about the compiler.
4816 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4819 for ac_option in --version -v -V -qversion; do
4820 { { ac_try="$ac_compiler $ac_option >&5"
4822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4823 *) ac_try_echo=$ac_try;;
4825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4826 $as_echo "$ac_try_echo"; } >&5
4827 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4829 if test -s conftest.err; then
4831 ... rest of stderr output deleted ...
4832 10q' conftest.err >conftest.er1
4833 cat conftest.er1 >&5
4835 rm -f conftest.er1 conftest.err
4836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4837 test $ac_status = 0; }
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4841 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4842 if ${ac_cv_c_compiler_gnu+:} false; then :
4843 $as_echo_n "(cached) " >&6
4845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4846 /* end confdefs.h. */
4859 if ac_fn_c_try_compile "$LINENO"; then :
4864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4865 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4869 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4870 if test $ac_compiler_gnu = yes; then
4875 ac_test_CFLAGS=${CFLAGS+set}
4876 ac_save_CFLAGS=$CFLAGS
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4878 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4879 if ${ac_cv_prog_cc_g+:} false; then :
4880 $as_echo_n "(cached) " >&6
4882 ac_save_c_werror_flag=$ac_c_werror_flag
4883 ac_c_werror_flag=yes
4886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887 /* end confdefs.h. */
4897 if ac_fn_c_try_compile "$LINENO"; then :
4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902 /* end confdefs.h. */
4912 if ac_fn_c_try_compile "$LINENO"; then :
4915 ac_c_werror_flag=$ac_save_c_werror_flag
4917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4918 /* end confdefs.h. */
4928 if ac_fn_c_try_compile "$LINENO"; then :
4931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4936 ac_c_werror_flag=$ac_save_c_werror_flag
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4939 $as_echo "$ac_cv_prog_cc_g" >&6; }
4940 if test "$ac_test_CFLAGS" = set; then
4941 CFLAGS=$ac_save_CFLAGS
4942 elif test $ac_cv_prog_cc_g = yes; then
4943 if test "$GCC" = yes; then
4949 if test "$GCC" = yes; then
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4956 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4957 if ${ac_cv_prog_cc_c89+:} false; then :
4958 $as_echo_n "(cached) " >&6
4960 ac_cv_prog_cc_c89=no
4962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963 /* end confdefs.h. */
4967 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4968 struct buf { int x; };
4969 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4970 static char *e (p, i)
4976 static char *f (char * (*g) (char **, int), char **p, ...)
4981 s = g (p, va_arg (v,int));
4986 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4987 function prototypes and stuff, but not '\xHH' hex character constants.
4988 These don't provoke an error unfortunately, instead are silently treated
4989 as 'x'. The following induces an error, until -std is added to get
4990 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4991 array size at least. It's necessary to write '\x00'==0 to get something
4992 that's true only with -std. */
4993 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4995 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4996 inside strings and character constants. */
4998 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5000 int test (int i, double x);
5001 struct s1 {int (*f) (int a);};
5002 struct s2 {int (*f) (double a);};
5003 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5009 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5014 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5015 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5017 CC="$ac_save_CC $ac_arg"
5018 if ac_fn_c_try_compile "$LINENO"; then :
5019 ac_cv_prog_cc_c89=$ac_arg
5021 rm -f core conftest.err conftest.$ac_objext
5022 test "x$ac_cv_prog_cc_c89" != "xno" && break
5024 rm -f conftest.$ac_ext
5029 case "x$ac_cv_prog_cc_c89" in
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5032 $as_echo "none needed" >&6; } ;;
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5035 $as_echo "unsupported" >&6; } ;;
5037 CC="$CC $ac_cv_prog_cc_c89"
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5039 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5041 if test "x$ac_cv_prog_cc_c89" != xno; then :
5046 ac_cpp='$CPP $CPPFLAGS'
5047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5052 ac_cpp='$CPP $CPPFLAGS'
5053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5057 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5058 if ${am_cv_prog_cc_c_o+:} false; then :
5059 $as_echo_n "(cached) " >&6
5061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5062 /* end confdefs.h. */
5072 # Make sure it works both with $CC and with simple cc.
5073 # Following AC_PROG_CC_C_O, we do the test twice because some
5074 # compilers refuse to overwrite an existing .o file with -o,
5075 # though they will create one.
5076 am_cv_prog_cc_c_o=yes
5078 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5079 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } \
5083 && test -f conftest2.$ac_objext; then
5086 am_cv_prog_cc_c_o=no
5090 rm -f core conftest*
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5094 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5095 if test "$am_cv_prog_cc_c_o" != yes; then
5096 # Losing compiler, so override with the script.
5097 # FIXME: It is wrong to rewrite CC.
5098 # But if we don't then we get into trouble of one sort or another.
5099 # A longer-term fix would be to have automake use am__CC in this case,
5100 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5101 CC="$am_aux_dir/compile $CC"
5104 ac_cpp='$CPP $CPPFLAGS'
5105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5111 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5112 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5114 if test -n "$ac_tool_prefix"; then
5115 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5116 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5118 $as_echo_n "checking for $ac_word... " >&6; }
5119 if ${ac_cv_prog_GDC+:} false; then :
5120 $as_echo_n "(cached) " >&6
5122 if test -n "$GDC"; then
5123 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 test -z "$as_dir" && as_dir=.
5130 for ac_exec_ext in '' $ac_executable_extensions; do
5131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5132 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5143 if test -n "$GDC"; then
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5145 $as_echo "$GDC" >&6; }
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148 $as_echo "no" >&6; }
5153 if test -z "$ac_cv_prog_GDC"; then
5155 # Extract the first word of "gdc", so it can be a program name with args.
5156 set dummy gdc; ac_word=$2
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5158 $as_echo_n "checking for $ac_word... " >&6; }
5159 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5160 $as_echo_n "(cached) " >&6
5162 if test -n "$ac_ct_GDC"; then
5163 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 test -z "$as_dir" && as_dir=.
5170 for ac_exec_ext in '' $ac_executable_extensions; do
5171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5172 ac_cv_prog_ac_ct_GDC="gdc"
5173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5183 if test -n "$ac_ct_GDC"; then
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5185 $as_echo "$ac_ct_GDC" >&6; }
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5188 $as_echo "no" >&6; }
5191 if test "x$ac_ct_GDC" = x; then
5194 case $cross_compiling:$ac_tool_warned in
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5198 ac_tool_warned=yes ;;
5203 GDC="$ac_cv_prog_GDC"
5206 if test -z "$GDC"; then
5207 if test -n "$ac_tool_prefix"; then
5208 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5209 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5211 $as_echo_n "checking for $ac_word... " >&6; }
5212 if ${ac_cv_prog_GDC+:} false; then :
5213 $as_echo_n "(cached) " >&6
5215 if test -n "$GDC"; then
5216 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 test -z "$as_dir" && as_dir=.
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
5226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5236 if test -n "$GDC"; then
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5238 $as_echo "$GDC" >&6; }
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 $as_echo "no" >&6; }
5247 if test -z "$GDC"; then
5248 # Extract the first word of "gdc", so it can be a program name with args.
5249 set dummy gdc; ac_word=$2
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5251 $as_echo_n "checking for $ac_word... " >&6; }
5252 if ${ac_cv_prog_GDC+:} false; then :
5253 $as_echo_n "(cached) " >&6
5255 if test -n "$GDC"; then
5256 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263 test -z "$as_dir" && as_dir=.
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5266 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
5267 ac_prog_rejected=yes
5270 ac_cv_prog_GDC="gdc"
5271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5278 if test $ac_prog_rejected = yes; then
5279 # We found a bogon in the path, so make sure we never use it.
5280 set dummy $ac_cv_prog_GDC
5282 if test $# != 0; then
5283 # We chose a different compiler from the bogus one.
5284 # However, it has the same basename, so the bogon will be chosen
5285 # first if we set GDC to just the basename; use the full file name.
5287 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
5293 if test -n "$GDC"; then
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5295 $as_echo "$GDC" >&6; }
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298 $as_echo "no" >&6; }
5305 # Provide some information about the compiler.
5306 $as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
5309 { { ac_try="$ac_compiler --version >&5"
5311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5312 *) ac_try_echo=$ac_try;;
5314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5315 $as_echo "$ac_try_echo"; } >&5
5316 (eval "$ac_compiler --version >&5") 2>conftest.err
5318 if test -s conftest.err; then
5320 ... rest of stderr output deleted ...
5321 10q' conftest.err >conftest.er1
5322 cat conftest.er1 >&5
5324 rm -f conftest.er1 conftest.err
5325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5326 test $ac_status = 0; }
5328 ac_cpp='$CPP $CPPFLAGS'
5329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
5335 $as_echo_n "checking for absolute libphobos source path... " >&6; }
5336 if ${phobos_cv_abs_srcdir+:} false; then :
5337 $as_echo_n "(cached) " >&6
5339 phobos_cv_abs_srcdir=`cd $srcdir && pwd`
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
5342 $as_echo "$phobos_cv_abs_srcdir" >&6; }
5343 if test -d "$phobos_cv_abs_srcdir"; then :
5346 as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
5352 gdc_save_DFLAGS=$GDCFLAGS
5353 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
5356 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5357 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
5361 $as_echo_n "checking If $GDC can compile D sources... " >&6; }
5362 cat > conftest.$ac_ext <<_ACEOF
5366 extern(C) int main() {
5370 if ac_fn_d_try_compile "$LINENO"; then :
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5372 $as_echo "yes" >&6; }
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375 $as_echo "no" >&6; }
5376 as_fn_error $? "can't compile D sources!" "$LINENO" 5
5378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5380 ac_cpp='$CPP $CPPFLAGS'
5381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5386 GDCFLAGS=$gdc_save_DFLAGS
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5394 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5395 # Check whether --enable-maintainer-mode was given.
5396 if test "${enable_maintainer_mode+set}" = set; then :
5397 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5399 USE_MAINTAINER_MODE=no
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5403 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5404 if test $USE_MAINTAINER_MODE = yes; then
5405 MAINTAINER_MODE_TRUE=
5406 MAINTAINER_MODE_FALSE='#'
5408 MAINTAINER_MODE_TRUE='#'
5409 MAINTAINER_MODE_FALSE=
5412 MAINT=$MAINTAINER_MODE_TRUE
5415 if test -n "$ac_tool_prefix"; then
5416 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5417 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5419 $as_echo_n "checking for $ac_word... " >&6; }
5420 if ${ac_cv_prog_RANLIB+:} false; then :
5421 $as_echo_n "(cached) " >&6
5423 if test -n "$RANLIB"; then
5424 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 test -z "$as_dir" && as_dir=.
5431 for ac_exec_ext in '' $ac_executable_extensions; do
5432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5433 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5443 RANLIB=$ac_cv_prog_RANLIB
5444 if test -n "$RANLIB"; then
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5446 $as_echo "$RANLIB" >&6; }
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449 $as_echo "no" >&6; }
5454 if test -z "$ac_cv_prog_RANLIB"; then
5455 ac_ct_RANLIB=$RANLIB
5456 # Extract the first word of "ranlib", so it can be a program name with args.
5457 set dummy ranlib; ac_word=$2
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5459 $as_echo_n "checking for $ac_word... " >&6; }
5460 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5461 $as_echo_n "(cached) " >&6
5463 if test -n "$ac_ct_RANLIB"; then
5464 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 test -z "$as_dir" && as_dir=.
5471 for ac_exec_ext in '' $ac_executable_extensions; do
5472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5473 ac_cv_prog_ac_ct_RANLIB="ranlib"
5474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5483 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5484 if test -n "$ac_ct_RANLIB"; then
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5486 $as_echo "$ac_ct_RANLIB" >&6; }
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5489 $as_echo "no" >&6; }
5492 if test "x$ac_ct_RANLIB" = x; then
5495 case $cross_compiling:$ac_tool_warned in
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5499 ac_tool_warned=yes ;;
5501 RANLIB=$ac_ct_RANLIB
5504 RANLIB="$ac_cv_prog_RANLIB"
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5509 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5511 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5512 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5513 $as_echo_n "(cached) " >&6
5515 cat >conftest.make <<\_ACEOF
5518 @echo '@@@%%%=$(MAKE)=@@@%%%'
5520 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5521 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5523 eval ac_cv_prog_make_${ac_make}_set=yes;;
5525 eval ac_cv_prog_make_${ac_make}_set=no;;
5529 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5531 $as_echo "yes" >&6; }
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535 $as_echo "no" >&6; }
5536 SET_MAKE="MAKE=${MAKE-make}"
5540 # This should be inherited in the recursive make, but ensure it is defined.
5544 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5552 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5557 macro_version='2.2.7a'
5558 macro_revision='1.3134'
5572 ltmain="$ac_aux_dir/ltmain.sh"
5574 # Backslashify metacharacters that are still active within
5575 # double-quoted strings.
5576 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5578 # Same as above, but do not quote variable references.
5579 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5581 # Sed substitution to delay expansion of an escaped shell variable in a
5582 # double_quote_subst'ed string.
5583 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5585 # Sed substitution to delay expansion of an escaped single quote.
5586 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5588 # Sed substitution to avoid accidental globbing in evaled expressions
5589 no_glob_subst='s/\*/\\\*/g'
5591 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5592 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5593 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5596 $as_echo_n "checking how to print strings... " >&6; }
5597 # Test print first, because it will be a builtin if present.
5598 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5599 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5601 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5604 # Use this function as a fallback that always works.
5605 func_fallback_echo ()
5607 eval 'cat <<_LTECHO_EOF
5611 ECHO='func_fallback_echo'
5614 # func_echo_all arg...
5615 # Invoke $ECHO with all args, space-separated.
5622 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5623 $as_echo "printf" >&6; } ;;
5624 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5625 $as_echo "print -r" >&6; } ;;
5626 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5627 $as_echo "cat" >&6; } ;;
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5644 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5645 if ${ac_cv_path_SED+:} false; then :
5646 $as_echo_n "(cached) " >&6
5648 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5649 for ac_i in 1 2 3 4 5 6 7; do
5650 ac_script="$ac_script$as_nl$ac_script"
5652 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5653 { ac_script=; unset ac_script;}
5654 if test -z "$SED"; then
5655 ac_path_SED_found=false
5656 # Loop through the user's path and test for each of PROGNAME-LIST
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661 test -z "$as_dir" && as_dir=.
5662 for ac_prog in sed gsed; do
5663 for ac_exec_ext in '' $ac_executable_extensions; do
5664 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5665 as_fn_executable_p "$ac_path_SED" || continue
5666 # Check for GNU ac_path_SED and select it if it is found.
5667 # Check for GNU $ac_path_SED
5668 case `"$ac_path_SED" --version 2>&1` in
5670 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5673 $as_echo_n 0123456789 >"conftest.in"
5676 cat "conftest.in" "conftest.in" >"conftest.tmp"
5677 mv "conftest.tmp" "conftest.in"
5678 cp "conftest.in" "conftest.nl"
5679 $as_echo '' >> "conftest.nl"
5680 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5681 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5682 as_fn_arith $ac_count + 1 && ac_count=$as_val
5683 if test $ac_count -gt ${ac_path_SED_max-0}; then
5684 # Best one so far, save it but keep looking for a better one
5685 ac_cv_path_SED="$ac_path_SED"
5686 ac_path_SED_max=$ac_count
5688 # 10*(2^10) chars as input seems more than enough
5689 test $ac_count -gt 10 && break
5691 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5694 $ac_path_SED_found && break 3
5699 if test -z "$ac_cv_path_SED"; then
5700 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5708 $as_echo "$ac_cv_path_SED" >&6; }
5709 SED="$ac_cv_path_SED"
5712 test -z "$SED" && SED=sed
5713 Xsed="$SED -e 1s/^X//"
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5726 $as_echo_n "checking for fgrep... " >&6; }
5727 if ${ac_cv_path_FGREP+:} false; then :
5728 $as_echo_n "(cached) " >&6
5730 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5731 then ac_cv_path_FGREP="$GREP -F"
5733 if test -z "$FGREP"; then
5734 ac_path_FGREP_found=false
5735 # Loop through the user's path and test for each of PROGNAME-LIST
5736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5740 test -z "$as_dir" && as_dir=.
5741 for ac_prog in fgrep; do
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5744 as_fn_executable_p "$ac_path_FGREP" || continue
5745 # Check for GNU ac_path_FGREP and select it if it is found.
5746 # Check for GNU $ac_path_FGREP
5747 case `"$ac_path_FGREP" --version 2>&1` in
5749 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5752 $as_echo_n 0123456789 >"conftest.in"
5755 cat "conftest.in" "conftest.in" >"conftest.tmp"
5756 mv "conftest.tmp" "conftest.in"
5757 cp "conftest.in" "conftest.nl"
5758 $as_echo 'FGREP' >> "conftest.nl"
5759 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5760 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5761 as_fn_arith $ac_count + 1 && ac_count=$as_val
5762 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5763 # Best one so far, save it but keep looking for a better one
5764 ac_cv_path_FGREP="$ac_path_FGREP"
5765 ac_path_FGREP_max=$ac_count
5767 # 10*(2^10) chars as input seems more than enough
5768 test $ac_count -gt 10 && break
5770 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5773 $ac_path_FGREP_found && break 3
5778 if test -z "$ac_cv_path_FGREP"; then
5779 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5782 ac_cv_path_FGREP=$FGREP
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5788 $as_echo "$ac_cv_path_FGREP" >&6; }
5789 FGREP="$ac_cv_path_FGREP"
5792 test -z "$GREP" && GREP=grep
5812 # Check whether --with-gnu-ld was given.
5813 if test "${with_gnu_ld+set}" = set; then :
5814 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5820 if test "$GCC" = yes; then
5821 # Check if gcc -print-prog-name=ld gives a path.
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5823 $as_echo_n "checking for ld used by $CC... " >&6; }
5826 # gcc leaves a trailing carriage return which upsets mingw
5827 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5829 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5832 # Accept absolute paths.
5834 re_direlt='/[^/][^/]*/\.\./'
5835 # Canonicalize the pathname of ld
5836 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5837 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5838 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5840 test -z "$LD" && LD="$ac_prog"
5843 # If it fails, then pretend we aren't using GCC.
5847 # If it is relative, then search for the first ld in PATH.
5851 elif test "$with_gnu_ld" = yes; then
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5853 $as_echo_n "checking for GNU ld... " >&6; }
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5856 $as_echo_n "checking for non-GNU ld... " >&6; }
5858 if ${lt_cv_path_LD+:} false; then :
5859 $as_echo_n "(cached) " >&6
5861 if test -z "$LD"; then
5862 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5863 for ac_dir in $PATH; do
5865 test -z "$ac_dir" && ac_dir=.
5866 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5867 lt_cv_path_LD="$ac_dir/$ac_prog"
5868 # Check to see if the program is GNU ld. I'd rather use --version,
5869 # but apparently some variants of GNU ld only accept -v.
5870 # Break only if it was the GNU/non-GNU ld that we prefer.
5871 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5872 *GNU* | *'with BFD'*)
5873 test "$with_gnu_ld" != no && break
5876 test "$with_gnu_ld" != yes && break
5883 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5888 if test -n "$LD"; then
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5890 $as_echo "$LD" >&6; }
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5893 $as_echo "no" >&6; }
5895 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5897 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5898 if ${lt_cv_prog_gnu_ld+:} false; then :
5899 $as_echo_n "(cached) " >&6
5901 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5902 case `$LD -v 2>&1 </dev/null` in
5903 *GNU* | *'with BFD'*)
5904 lt_cv_prog_gnu_ld=yes
5907 lt_cv_prog_gnu_ld=no
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5912 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5913 with_gnu_ld=$lt_cv_prog_gnu_ld
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5924 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5925 if ${lt_cv_path_NM+:} false; then :
5926 $as_echo_n "(cached) " >&6
5928 if test -n "$NM"; then
5929 # Let the user override the test.
5932 lt_nm_to_check="${ac_tool_prefix}nm"
5933 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5934 lt_nm_to_check="$lt_nm_to_check nm"
5936 for lt_tmp_nm in $lt_nm_to_check; do
5937 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5938 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5940 test -z "$ac_dir" && ac_dir=.
5941 tmp_nm="$ac_dir/$lt_tmp_nm"
5942 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5943 # Check to see if the nm accepts a BSD-compat flag.
5944 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5945 # nm: unknown option "B" ignored
5946 # Tru64's nm complains that /dev/null is an invalid object file
5947 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5948 */dev/null* | *'Invalid file or object type'*)
5949 lt_cv_path_NM="$tmp_nm -B"
5953 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5955 lt_cv_path_NM="$tmp_nm -p"
5959 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5960 continue # so that we can try to find one that supports BSD flags
5969 : ${lt_cv_path_NM=no}
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5973 $as_echo "$lt_cv_path_NM" >&6; }
5974 if test "$lt_cv_path_NM" != "no"; then
5977 # Didn't find any BSD compatible name lister, look for dumpbin.
5978 if test -n "$DUMPBIN"; then :
5979 # Let the user override the test.
5981 if test -n "$ac_tool_prefix"; then
5982 for ac_prog in dumpbin "link -dump"
5984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5985 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5987 $as_echo_n "checking for $ac_word... " >&6; }
5988 if ${ac_cv_prog_DUMPBIN+:} false; then :
5989 $as_echo_n "(cached) " >&6
5991 if test -n "$DUMPBIN"; then
5992 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998 test -z "$as_dir" && as_dir=.
5999 for ac_exec_ext in '' $ac_executable_extensions; do
6000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6001 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6011 DUMPBIN=$ac_cv_prog_DUMPBIN
6012 if test -n "$DUMPBIN"; then
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6014 $as_echo "$DUMPBIN" >&6; }
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6017 $as_echo "no" >&6; }
6021 test -n "$DUMPBIN" && break
6024 if test -z "$DUMPBIN"; then
6025 ac_ct_DUMPBIN=$DUMPBIN
6026 for ac_prog in dumpbin "link -dump"
6028 # Extract the first word of "$ac_prog", so it can be a program name with args.
6029 set dummy $ac_prog; ac_word=$2
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6031 $as_echo_n "checking for $ac_word... " >&6; }
6032 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6033 $as_echo_n "(cached) " >&6
6035 if test -n "$ac_ct_DUMPBIN"; then
6036 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 test -z "$as_dir" && as_dir=.
6043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6045 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6055 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6056 if test -n "$ac_ct_DUMPBIN"; then
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6058 $as_echo "$ac_ct_DUMPBIN" >&6; }
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6061 $as_echo "no" >&6; }
6065 test -n "$ac_ct_DUMPBIN" && break
6068 if test "x$ac_ct_DUMPBIN" = x; then
6071 case $cross_compiling:$ac_tool_warned in
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6075 ac_tool_warned=yes ;;
6077 DUMPBIN=$ac_ct_DUMPBIN
6081 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6083 DUMPBIN="$DUMPBIN -symbols"
6091 if test "$DUMPBIN" != ":"; then
6095 test -z "$NM" && NM=nm
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6103 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6104 if ${lt_cv_nm_interface+:} false; then :
6105 $as_echo_n "(cached) " >&6
6107 lt_cv_nm_interface="BSD nm"
6108 echo "int some_variable = 0;" > conftest.$ac_ext
6109 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6110 (eval "$ac_compile" 2>conftest.err)
6111 cat conftest.err >&5
6112 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6113 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6114 cat conftest.err >&5
6115 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6116 cat conftest.out >&5
6117 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6118 lt_cv_nm_interface="MS dumpbin"
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6123 $as_echo "$lt_cv_nm_interface" >&6; }
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6126 $as_echo_n "checking whether ln -s works... " >&6; }
6128 if test "$LN_S" = "ln -s"; then
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6130 $as_echo "yes" >&6; }
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6133 $as_echo "no, using $LN_S" >&6; }
6136 # find the maximum length of command line arguments
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6138 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6139 if ${lt_cv_sys_max_cmd_len+:} false; then :
6140 $as_echo_n "(cached) " >&6
6147 # On DJGPP, this test can blow up pretty badly due to problems in libc
6148 # (any single argument exceeding 2000 bytes causes a buffer overrun
6149 # during glob expansion). Even if it were fixed, the result of this
6150 # check would be larger than it should be.
6151 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6155 # Under GNU Hurd, this test is not required because there is
6156 # no limit to the length of command line arguments.
6157 # Libtool will interpret -1 as no limit whatsoever
6158 lt_cv_sys_max_cmd_len=-1;
6161 cygwin* | mingw* | cegcc*)
6162 # On Win9x/ME, this test blows up -- it succeeds, but takes
6163 # about 5 minutes as the teststring grows exponentially.
6164 # Worse, since 9x/ME are not pre-emptively multitasking,
6165 # you end up with a "frozen" computer, even though with patience
6166 # the test eventually succeeds (with a max line length of 256k).
6167 # Instead, let's just punt: use the minimum linelength reported by
6168 # all of the supported platforms: 8192 (on NT/2K/XP).
6169 lt_cv_sys_max_cmd_len=8192;
6173 # On MiNT this can take a long time and run out of memory.
6174 lt_cv_sys_max_cmd_len=8192;
6178 # On AmigaOS with pdksh, this test takes hours, literally.
6179 # So we just punt and use a minimum line length of 8192.
6180 lt_cv_sys_max_cmd_len=8192;
6183 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6184 # This has been around since 386BSD, at least. Likely further.
6185 if test -x /sbin/sysctl; then
6186 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6187 elif test -x /usr/sbin/sysctl; then
6188 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6190 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6192 # And add a safety zone
6193 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6194 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6198 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6199 lt_cv_sys_max_cmd_len=196608
6203 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6204 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6205 # nice to cause kernel panics so lets avoid the loop below.
6206 # First set a reasonable default.
6207 lt_cv_sys_max_cmd_len=16384
6209 if test -x /sbin/sysconfig; then
6210 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6211 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6216 lt_cv_sys_max_cmd_len=102400
6218 sysv5* | sco5v6* | sysv4.2uw2*)
6219 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6220 if test -n "$kargmax"; then
6221 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6223 lt_cv_sys_max_cmd_len=32768
6227 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6228 if test -n "$lt_cv_sys_max_cmd_len"; then
6229 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6230 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6232 # Make teststring a little bigger before we do anything with it.
6233 # a 1K string should be a reasonable start.
6234 for i in 1 2 3 4 5 6 7 8 ; do
6235 teststring=$teststring$teststring
6237 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6238 # If test is not a shell built-in, we'll probably end up computing a
6239 # maximum length that is only half of the actual maximum length, but
6241 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6242 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6243 test $i != 17 # 1/2 MB should be enough
6246 teststring=$teststring$teststring
6248 # Only check the string length outside the loop.
6249 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6251 # Add a significant safety factor because C++ compilers can tack on
6252 # massive amounts of additional arguments before passing them to the
6253 # linker. It appears as though 1/2 is a usable value.
6254 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6261 if test -n $lt_cv_sys_max_cmd_len ; then
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6263 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6266 $as_echo "none" >&6; }
6268 max_cmd_len=$lt_cv_sys_max_cmd_len
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6280 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6281 # Try some XSI features
6284 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6286 && eval 'test $(( 1 + 1 )) -eq 2 \
6287 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6290 $as_echo "$xsi_shell" >&6; }
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6294 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6296 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6298 && lt_shell_append=yes
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6300 $as_echo "$lt_shell_append" >&6; }
6303 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6313 # test EBCDIC or ASCII
6314 case `echo X|tr X '\101'` in
6315 A) # ASCII based system
6316 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6317 lt_SP2NL='tr \040 \012'
6318 lt_NL2SP='tr \015\012 \040\040'
6320 *) # EBCDIC based system
6321 lt_SP2NL='tr \100 \n'
6322 lt_NL2SP='tr \r\n \100\100'
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6335 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6336 if ${lt_cv_ld_reload_flag+:} false; then :
6337 $as_echo_n "(cached) " >&6
6339 lt_cv_ld_reload_flag='-r'
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6342 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6343 reload_flag=$lt_cv_ld_reload_flag
6344 case $reload_flag in
6346 *) reload_flag=" $reload_flag" ;;
6348 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6351 if test "$GCC" = yes; then
6352 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6354 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6367 if test -n "$ac_tool_prefix"; then
6368 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6369 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6371 $as_echo_n "checking for $ac_word... " >&6; }
6372 if ${ac_cv_prog_OBJDUMP+:} false; then :
6373 $as_echo_n "(cached) " >&6
6375 if test -n "$OBJDUMP"; then
6376 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382 test -z "$as_dir" && as_dir=.
6383 for ac_exec_ext in '' $ac_executable_extensions; do
6384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6385 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6395 OBJDUMP=$ac_cv_prog_OBJDUMP
6396 if test -n "$OBJDUMP"; then
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6398 $as_echo "$OBJDUMP" >&6; }
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6401 $as_echo "no" >&6; }
6406 if test -z "$ac_cv_prog_OBJDUMP"; then
6407 ac_ct_OBJDUMP=$OBJDUMP
6408 # Extract the first word of "objdump", so it can be a program name with args.
6409 set dummy objdump; ac_word=$2
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6411 $as_echo_n "checking for $ac_word... " >&6; }
6412 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6413 $as_echo_n "(cached) " >&6
6415 if test -n "$ac_ct_OBJDUMP"; then
6416 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422 test -z "$as_dir" && as_dir=.
6423 for ac_exec_ext in '' $ac_executable_extensions; do
6424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6425 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6435 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6436 if test -n "$ac_ct_OBJDUMP"; then
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6438 $as_echo "$ac_ct_OBJDUMP" >&6; }
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6441 $as_echo "no" >&6; }
6444 if test "x$ac_ct_OBJDUMP" = x; then
6447 case $cross_compiling:$ac_tool_warned in
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6451 ac_tool_warned=yes ;;
6453 OBJDUMP=$ac_ct_OBJDUMP
6456 OBJDUMP="$ac_cv_prog_OBJDUMP"
6459 test -z "$OBJDUMP" && OBJDUMP=objdump
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6470 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6471 if ${lt_cv_deplibs_check_method+:} false; then :
6472 $as_echo_n "(cached) " >&6
6474 lt_cv_file_magic_cmd='$MAGIC_CMD'
6475 lt_cv_file_magic_test_file=
6476 lt_cv_deplibs_check_method='unknown'
6477 # Need to set the preceding variable on all platforms that support
6478 # interlibrary dependencies.
6479 # 'none' -- dependencies not supported.
6480 # `unknown' -- same as none, but documents that we really don't know.
6481 # 'pass_all' -- all dependencies passed with no checks.
6482 # 'test_compile' -- check by making test program.
6483 # 'file_magic [[regex]]' -- check by looking for files in library path
6484 # which responds to the $file_magic_cmd with a given extended regex.
6485 # If you have `file' or equivalent on your system and you're not sure
6486 # whether `pass_all' will *always* work, you probably want this one.
6490 lt_cv_deplibs_check_method=pass_all
6494 lt_cv_deplibs_check_method=pass_all
6498 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6499 lt_cv_file_magic_cmd='/usr/bin/file -L'
6500 lt_cv_file_magic_test_file=/shlib/libc.so
6504 # func_win32_libid is a shell function defined in ltmain.sh
6505 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6506 lt_cv_file_magic_cmd='func_win32_libid'
6510 # Base MSYS/MinGW do not provide the 'file' command needed by
6511 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6512 # unless we find 'file', for example because we are cross-compiling.
6513 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6514 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6515 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6516 lt_cv_file_magic_cmd='func_win32_libid'
6518 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6519 lt_cv_file_magic_cmd='$OBJDUMP -f'
6524 # use the weaker test based on 'objdump'. See mingw*.
6525 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6526 lt_cv_file_magic_cmd='$OBJDUMP -f'
6529 darwin* | rhapsody*)
6530 lt_cv_deplibs_check_method=pass_all
6533 freebsd* | dragonfly*)
6534 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6537 # Not sure whether the presence of OpenBSD here was a mistake.
6538 # Let's accept both of them until this is cleared up.
6539 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6540 lt_cv_file_magic_cmd=/usr/bin/file
6541 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6545 lt_cv_deplibs_check_method=pass_all
6550 lt_cv_deplibs_check_method=pass_all
6554 lt_cv_deplibs_check_method=pass_all
6557 hpux10.20* | hpux11*)
6558 lt_cv_file_magic_cmd=/usr/bin/file
6561 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6562 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6565 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]'
6566 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6569 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6570 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6576 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6577 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6580 irix5* | irix6* | nonstopux*)
6582 *-32|*"-32 ") libmagic=32-bit;;
6583 *-n32|*"-n32 ") libmagic=N32;;
6584 *-64|*"-64 ") libmagic=64-bit;;
6585 *) libmagic=never-match;;
6587 lt_cv_deplibs_check_method=pass_all
6590 # This must be Linux ELF.
6591 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6592 lt_cv_deplibs_check_method=pass_all
6596 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6597 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6599 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6604 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6605 lt_cv_file_magic_cmd=/usr/bin/file
6606 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6610 lt_cv_deplibs_check_method=pass_all
6614 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6615 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6617 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6621 osf3* | osf4* | osf5*)
6622 lt_cv_deplibs_check_method=pass_all
6626 lt_cv_deplibs_check_method=pass_all
6630 lt_cv_deplibs_check_method=pass_all
6633 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6634 lt_cv_deplibs_check_method=pass_all
6638 case $host_vendor in
6640 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]'
6641 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6644 lt_cv_deplibs_check_method=pass_all
6647 lt_cv_file_magic_cmd='/bin/file'
6648 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6651 lt_cv_file_magic_cmd='/bin/file'
6652 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6653 lt_cv_file_magic_test_file=/lib/libc.so
6656 lt_cv_deplibs_check_method=pass_all
6659 lt_cv_deplibs_check_method=pass_all
6665 lt_cv_deplibs_check_method=pass_all
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6671 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6672 file_magic_cmd=$lt_cv_file_magic_cmd
6673 deplibs_check_method=$lt_cv_deplibs_check_method
6674 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6687 if test -n "$ac_tool_prefix"; then
6688 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6689 set dummy ${ac_tool_prefix}ar; ac_word=$2
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691 $as_echo_n "checking for $ac_word... " >&6; }
6692 if ${ac_cv_prog_AR+:} false; then :
6693 $as_echo_n "(cached) " >&6
6695 if test -n "$AR"; then
6696 ac_cv_prog_AR="$AR" # Let the user override the test.
6698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702 test -z "$as_dir" && as_dir=.
6703 for ac_exec_ext in '' $ac_executable_extensions; do
6704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6705 ac_cv_prog_AR="${ac_tool_prefix}ar"
6706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6716 if test -n "$AR"; then
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6718 $as_echo "$AR" >&6; }
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6721 $as_echo "no" >&6; }
6726 if test -z "$ac_cv_prog_AR"; then
6728 # Extract the first word of "ar", so it can be a program name with args.
6729 set dummy ar; ac_word=$2
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6731 $as_echo_n "checking for $ac_word... " >&6; }
6732 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6733 $as_echo_n "(cached) " >&6
6735 if test -n "$ac_ct_AR"; then
6736 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742 test -z "$as_dir" && as_dir=.
6743 for ac_exec_ext in '' $ac_executable_extensions; do
6744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6745 ac_cv_prog_ac_ct_AR="ar"
6746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6755 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6756 if test -n "$ac_ct_AR"; then
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6758 $as_echo "$ac_ct_AR" >&6; }
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761 $as_echo "no" >&6; }
6764 if test "x$ac_ct_AR" = x; then
6767 case $cross_compiling:$ac_tool_warned in
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6771 ac_tool_warned=yes ;;
6779 test -z "$AR" && AR=ar
6780 test -z "$AR_FLAGS" && AR_FLAGS=cru
6792 if test -n "$ac_tool_prefix"; then
6793 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6794 set dummy ${ac_tool_prefix}strip; ac_word=$2
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6796 $as_echo_n "checking for $ac_word... " >&6; }
6797 if ${ac_cv_prog_STRIP+:} false; then :
6798 $as_echo_n "(cached) " >&6
6800 if test -n "$STRIP"; then
6801 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 test -z "$as_dir" && as_dir=.
6808 for ac_exec_ext in '' $ac_executable_extensions; do
6809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6810 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6820 STRIP=$ac_cv_prog_STRIP
6821 if test -n "$STRIP"; then
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6823 $as_echo "$STRIP" >&6; }
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6826 $as_echo "no" >&6; }
6831 if test -z "$ac_cv_prog_STRIP"; then
6833 # Extract the first word of "strip", so it can be a program name with args.
6834 set dummy strip; ac_word=$2
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6836 $as_echo_n "checking for $ac_word... " >&6; }
6837 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6838 $as_echo_n "(cached) " >&6
6840 if test -n "$ac_ct_STRIP"; then
6841 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 test -z "$as_dir" && as_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
6849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6850 ac_cv_prog_ac_ct_STRIP="strip"
6851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6860 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6861 if test -n "$ac_ct_STRIP"; then
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6863 $as_echo "$ac_ct_STRIP" >&6; }
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6866 $as_echo "no" >&6; }
6869 if test "x$ac_ct_STRIP" = x; then
6872 case $cross_compiling:$ac_tool_warned in
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6876 ac_tool_warned=yes ;;
6881 STRIP="$ac_cv_prog_STRIP"
6884 test -z "$STRIP" && STRIP=:
6891 if test -n "$ac_tool_prefix"; then
6892 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6893 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6895 $as_echo_n "checking for $ac_word... " >&6; }
6896 if ${ac_cv_prog_RANLIB+:} false; then :
6897 $as_echo_n "(cached) " >&6
6899 if test -n "$RANLIB"; then
6900 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906 test -z "$as_dir" && as_dir=.
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6909 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6919 RANLIB=$ac_cv_prog_RANLIB
6920 if test -n "$RANLIB"; then
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6922 $as_echo "$RANLIB" >&6; }
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925 $as_echo "no" >&6; }
6930 if test -z "$ac_cv_prog_RANLIB"; then
6931 ac_ct_RANLIB=$RANLIB
6932 # Extract the first word of "ranlib", so it can be a program name with args.
6933 set dummy ranlib; ac_word=$2
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935 $as_echo_n "checking for $ac_word... " >&6; }
6936 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6937 $as_echo_n "(cached) " >&6
6939 if test -n "$ac_ct_RANLIB"; then
6940 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6949 ac_cv_prog_ac_ct_RANLIB="ranlib"
6950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6959 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6960 if test -n "$ac_ct_RANLIB"; then
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6962 $as_echo "$ac_ct_RANLIB" >&6; }
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965 $as_echo "no" >&6; }
6968 if test "x$ac_ct_RANLIB" = x; then
6971 case $cross_compiling:$ac_tool_warned in
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6975 ac_tool_warned=yes ;;
6977 RANLIB=$ac_ct_RANLIB
6980 RANLIB="$ac_cv_prog_RANLIB"
6983 test -z "$RANLIB" && RANLIB=:
6990 # Determine commands to create old-style static archives.
6991 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6992 old_postinstall_cmds='chmod 644 $oldlib'
6993 old_postuninstall_cmds=
6995 if test -n "$RANLIB"; then
6998 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7001 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7004 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7009 lock_old_archive_extraction=yes ;;
7011 lock_old_archive_extraction=no ;;
7052 # If no C compiler was specified, use CC.
7055 # If no C compiler flags were specified, use CFLAGS.
7056 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7058 # Allow CC to be a program name with arguments.
7062 # Check for command to grab the raw symbol name followed by C symbol from nm.
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7064 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7065 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7066 $as_echo_n "(cached) " >&6
7069 # These are sane defaults that work on at least a few old systems.
7070 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7072 # Character class describing NM global symbol codes.
7073 symcode='[BCDEGRST]'
7075 # Regexp to match symbols that can be accessed directly from C.
7076 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7078 # Define system-specific variables.
7083 cygwin* | mingw* | pw32* | cegcc*)
7084 symcode='[ABCDGISTW]'
7087 if test "$host_cpu" = ia64; then
7088 symcode='[ABCDEGRST]'
7092 symcode='[BCDEGRST]'
7095 symcode='[BCDEGQRST]'
7106 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7114 # If we're using GNU nm, then use its standard symbol codes.
7115 case `$NM -V 2>&1` in
7116 *GNU* | *'with BFD'*)
7117 symcode='[ABCDGIRSTW]' ;;
7120 # Transform an extracted symbol line into a proper C declaration.
7121 # Some systems (esp. on ia64) link data and code symbols differently,
7122 # so use this general approach.
7123 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7125 # Transform an extracted symbol line into symbol name and symbol address
7126 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7127 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'"
7129 # Handle CRLF in mingw tool chain
7133 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7137 # Try without a prefix underscore, then with it.
7138 for ac_symprfx in "" "_"; do
7140 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7141 symxfrm="\\1 $ac_symprfx\\2 \\2"
7143 # Write the raw and C identifiers.
7144 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7145 # Fake it for dumpbin and say T for any non-static function
7146 # and D for any global variable.
7147 # Also find C++ and __fastcall symbols from MSVC++,
7148 # which start with @ or ?.
7149 lt_cv_sys_global_symbol_pipe="$AWK '"\
7150 " {last_section=section; section=\$ 3};"\
7151 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7152 " \$ 0!~/External *\|/{next};"\
7153 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7154 " {if(hide[section]) next};"\
7155 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7156 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7157 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7158 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7159 " ' prfx=^$ac_symprfx"
7161 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7164 # Check to see that the pipe works correctly.
7168 cat > conftest.$ac_ext <<_LT_EOF
7173 void nm_test_func(void);
7174 void nm_test_func(void){}
7178 int main(){nm_test_var='a';nm_test_func();return(0);}
7181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7182 (eval $ac_compile) 2>&5
7184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7185 test $ac_status = 0; }; then
7186 # Now try to grab the symbols.
7188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7189 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7192 test $ac_status = 0; } && test -s "$nlist"; then
7193 # Try sorting and uniquifying the output.
7194 if sort "$nlist" | uniq > "$nlist"T; then
7195 mv -f "$nlist"T "$nlist"
7200 # Make sure that we snagged all the symbols we need.
7201 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7202 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7203 cat <<_LT_EOF > conftest.$ac_ext
7209 # Now generate the symbol file.
7210 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7212 cat <<_LT_EOF >> conftest.$ac_ext
7214 /* The mapping between symbol names and symbols. */
7219 lt__PROGRAM__LTX_preloaded_symbols[] =
7221 { "@PROGRAM@", (void *) 0 },
7223 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7224 cat <<\_LT_EOF >> conftest.$ac_ext
7228 /* This works around a problem in FreeBSD linker */
7229 #ifdef FREEBSD_WORKAROUND
7230 static const void *lt_preloaded_setup() {
7231 return lt__PROGRAM__LTX_preloaded_symbols;
7239 # Now try linking the two files.
7240 mv conftest.$ac_objext conftstm.$ac_objext
7241 lt_save_LIBS="$LIBS"
7242 lt_save_CFLAGS="$CFLAGS"
7243 LIBS="conftstm.$ac_objext"
7244 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7246 (eval $ac_link) 2>&5
7248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7249 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7252 LIBS="$lt_save_LIBS"
7253 CFLAGS="$lt_save_CFLAGS"
7255 echo "cannot find nm_test_func in $nlist" >&5
7258 echo "cannot find nm_test_var in $nlist" >&5
7261 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7264 echo "$progname: failed program was:" >&5
7265 cat conftest.$ac_ext >&5
7267 rm -rf conftest* conftst*
7269 # Do not use the global_symbol_pipe unless it works.
7270 if test "$pipe_works" = yes; then
7273 lt_cv_sys_global_symbol_pipe=
7279 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7280 lt_cv_sys_global_symbol_to_cdecl=
7282 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7284 $as_echo "failed" >&6; }
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7287 $as_echo "ok" >&6; }
7311 # Check whether --enable-libtool-lock was given.
7312 if test "${enable_libtool_lock+set}" = set; then :
7313 enableval=$enable_libtool_lock;
7316 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7318 # Some flags need to be propagated to the compiler or linker for good
7322 # Find out which ABI we are using.
7323 echo 'int i;' > conftest.$ac_ext
7324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7325 (eval $ac_compile) 2>&5
7327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7328 test $ac_status = 0; }; then
7329 case `/usr/bin/file conftest.$ac_objext` in
7341 # Find out which ABI we are using.
7342 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7343 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7344 (eval $ac_compile) 2>&5
7346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7347 test $ac_status = 0; }; then
7348 if test "$lt_cv_prog_gnu_ld" = yes; then
7349 case `/usr/bin/file conftest.$ac_objext` in
7351 LD="${LD-ld} -melf32bsmip"
7354 LD="${LD-ld} -melf32bmipn32"
7357 LD="${LD-ld} -melf64bmip"
7361 case `/usr/bin/file conftest.$ac_objext` in
7377 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7378 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7379 # Find out which ABI we are using.
7380 echo 'int i;' > conftest.$ac_ext
7381 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7382 (eval $ac_compile) 2>&5
7384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7385 test $ac_status = 0; }; then
7386 case `/usr/bin/file conftest.o` in
7389 x86_64-*kfreebsd*-gnu)
7390 LD="${LD-ld} -m elf_i386_fbsd"
7393 case `/usr/bin/file conftest.o` in
7395 LD="${LD-ld} -m elf32_x86_64"
7398 LD="${LD-ld} -m elf_i386"
7402 powerpc64le-*linux*)
7403 LD="${LD-ld} -m elf32lppclinux"
7406 LD="${LD-ld} -m elf32ppclinux"
7409 LD="${LD-ld} -m elf_s390"
7412 LD="${LD-ld} -m elf32_sparc"
7418 x86_64-*kfreebsd*-gnu)
7419 LD="${LD-ld} -m elf_x86_64_fbsd"
7422 LD="${LD-ld} -m elf_x86_64"
7425 LD="${LD-ld} -m elf64lppc"
7428 LD="${LD-ld} -m elf64ppc"
7430 s390*-*linux*|s390*-*tpf*)
7431 LD="${LD-ld} -m elf64_s390"
7434 LD="${LD-ld} -m elf64_sparc"
7444 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7445 SAVE_CFLAGS="$CFLAGS"
7446 CFLAGS="$CFLAGS -belf"
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7448 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7449 if ${lt_cv_cc_needs_belf+:} false; then :
7450 $as_echo_n "(cached) " >&6
7453 ac_cpp='$CPP $CPPFLAGS'
7454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7459 /* end confdefs.h. */
7469 if ac_fn_c_try_link "$LINENO"; then :
7470 lt_cv_cc_needs_belf=yes
7472 lt_cv_cc_needs_belf=no
7474 rm -f core conftest.err conftest.$ac_objext \
7475 conftest$ac_exeext conftest.$ac_ext
7477 ac_cpp='$CPP $CPPFLAGS'
7478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7484 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7485 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7486 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7487 CFLAGS="$SAVE_CFLAGS"
7491 # Find out which ABI we are using.
7492 echo 'int i;' > conftest.$ac_ext
7493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7494 (eval $ac_compile) 2>&5
7496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7497 test $ac_status = 0; }; then
7498 case `/usr/bin/file conftest.o` in
7500 case $lt_cv_prog_gnu_ld in
7501 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7503 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7515 need_locks="$enable_libtool_lock"
7519 rhapsody* | darwin*)
7520 if test -n "$ac_tool_prefix"; then
7521 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7522 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7524 $as_echo_n "checking for $ac_word... " >&6; }
7525 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7526 $as_echo_n "(cached) " >&6
7528 if test -n "$DSYMUTIL"; then
7529 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535 test -z "$as_dir" && as_dir=.
7536 for ac_exec_ext in '' $ac_executable_extensions; do
7537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7538 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7548 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7549 if test -n "$DSYMUTIL"; then
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7551 $as_echo "$DSYMUTIL" >&6; }
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7554 $as_echo "no" >&6; }
7559 if test -z "$ac_cv_prog_DSYMUTIL"; then
7560 ac_ct_DSYMUTIL=$DSYMUTIL
7561 # Extract the first word of "dsymutil", so it can be a program name with args.
7562 set dummy dsymutil; ac_word=$2
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7564 $as_echo_n "checking for $ac_word... " >&6; }
7565 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7566 $as_echo_n "(cached) " >&6
7568 if test -n "$ac_ct_DSYMUTIL"; then
7569 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7575 test -z "$as_dir" && as_dir=.
7576 for ac_exec_ext in '' $ac_executable_extensions; do
7577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7578 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7588 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7589 if test -n "$ac_ct_DSYMUTIL"; then
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7591 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7594 $as_echo "no" >&6; }
7597 if test "x$ac_ct_DSYMUTIL" = x; then
7600 case $cross_compiling:$ac_tool_warned in
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7604 ac_tool_warned=yes ;;
7606 DSYMUTIL=$ac_ct_DSYMUTIL
7609 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7612 if test -n "$ac_tool_prefix"; then
7613 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7614 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616 $as_echo_n "checking for $ac_word... " >&6; }
7617 if ${ac_cv_prog_NMEDIT+:} false; then :
7618 $as_echo_n "(cached) " >&6
7620 if test -n "$NMEDIT"; then
7621 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627 test -z "$as_dir" && as_dir=.
7628 for ac_exec_ext in '' $ac_executable_extensions; do
7629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7630 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7640 NMEDIT=$ac_cv_prog_NMEDIT
7641 if test -n "$NMEDIT"; then
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7643 $as_echo "$NMEDIT" >&6; }
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646 $as_echo "no" >&6; }
7651 if test -z "$ac_cv_prog_NMEDIT"; then
7652 ac_ct_NMEDIT=$NMEDIT
7653 # Extract the first word of "nmedit", so it can be a program name with args.
7654 set dummy nmedit; ac_word=$2
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656 $as_echo_n "checking for $ac_word... " >&6; }
7657 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7658 $as_echo_n "(cached) " >&6
7660 if test -n "$ac_ct_NMEDIT"; then
7661 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667 test -z "$as_dir" && as_dir=.
7668 for ac_exec_ext in '' $ac_executable_extensions; do
7669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7670 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7680 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7681 if test -n "$ac_ct_NMEDIT"; then
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7683 $as_echo "$ac_ct_NMEDIT" >&6; }
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686 $as_echo "no" >&6; }
7689 if test "x$ac_ct_NMEDIT" = x; then
7692 case $cross_compiling:$ac_tool_warned in
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7696 ac_tool_warned=yes ;;
7698 NMEDIT=$ac_ct_NMEDIT
7701 NMEDIT="$ac_cv_prog_NMEDIT"
7704 if test -n "$ac_tool_prefix"; then
7705 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7706 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708 $as_echo_n "checking for $ac_word... " >&6; }
7709 if ${ac_cv_prog_LIPO+:} false; then :
7710 $as_echo_n "(cached) " >&6
7712 if test -n "$LIPO"; then
7713 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719 test -z "$as_dir" && as_dir=.
7720 for ac_exec_ext in '' $ac_executable_extensions; do
7721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7722 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7732 LIPO=$ac_cv_prog_LIPO
7733 if test -n "$LIPO"; then
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7735 $as_echo "$LIPO" >&6; }
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738 $as_echo "no" >&6; }
7743 if test -z "$ac_cv_prog_LIPO"; then
7745 # Extract the first word of "lipo", so it can be a program name with args.
7746 set dummy lipo; ac_word=$2
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7748 $as_echo_n "checking for $ac_word... " >&6; }
7749 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7750 $as_echo_n "(cached) " >&6
7752 if test -n "$ac_ct_LIPO"; then
7753 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7759 test -z "$as_dir" && as_dir=.
7760 for ac_exec_ext in '' $ac_executable_extensions; do
7761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7762 ac_cv_prog_ac_ct_LIPO="lipo"
7763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7772 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7773 if test -n "$ac_ct_LIPO"; then
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7775 $as_echo "$ac_ct_LIPO" >&6; }
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778 $as_echo "no" >&6; }
7781 if test "x$ac_ct_LIPO" = x; then
7784 case $cross_compiling:$ac_tool_warned in
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7788 ac_tool_warned=yes ;;
7793 LIPO="$ac_cv_prog_LIPO"
7796 if test -n "$ac_tool_prefix"; then
7797 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7798 set dummy ${ac_tool_prefix}otool; ac_word=$2
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7800 $as_echo_n "checking for $ac_word... " >&6; }
7801 if ${ac_cv_prog_OTOOL+:} false; then :
7802 $as_echo_n "(cached) " >&6
7804 if test -n "$OTOOL"; then
7805 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7811 test -z "$as_dir" && as_dir=.
7812 for ac_exec_ext in '' $ac_executable_extensions; do
7813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7814 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7824 OTOOL=$ac_cv_prog_OTOOL
7825 if test -n "$OTOOL"; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7827 $as_echo "$OTOOL" >&6; }
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 $as_echo "no" >&6; }
7835 if test -z "$ac_cv_prog_OTOOL"; then
7837 # Extract the first word of "otool", so it can be a program name with args.
7838 set dummy otool; ac_word=$2
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840 $as_echo_n "checking for $ac_word... " >&6; }
7841 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7842 $as_echo_n "(cached) " >&6
7844 if test -n "$ac_ct_OTOOL"; then
7845 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851 test -z "$as_dir" && as_dir=.
7852 for ac_exec_ext in '' $ac_executable_extensions; do
7853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7854 ac_cv_prog_ac_ct_OTOOL="otool"
7855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7864 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7865 if test -n "$ac_ct_OTOOL"; then
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7867 $as_echo "$ac_ct_OTOOL" >&6; }
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870 $as_echo "no" >&6; }
7873 if test "x$ac_ct_OTOOL" = x; then
7876 case $cross_compiling:$ac_tool_warned in
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7880 ac_tool_warned=yes ;;
7885 OTOOL="$ac_cv_prog_OTOOL"
7888 if test -n "$ac_tool_prefix"; then
7889 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7890 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7892 $as_echo_n "checking for $ac_word... " >&6; }
7893 if ${ac_cv_prog_OTOOL64+:} false; then :
7894 $as_echo_n "(cached) " >&6
7896 if test -n "$OTOOL64"; then
7897 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903 test -z "$as_dir" && as_dir=.
7904 for ac_exec_ext in '' $ac_executable_extensions; do
7905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7906 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7916 OTOOL64=$ac_cv_prog_OTOOL64
7917 if test -n "$OTOOL64"; then
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7919 $as_echo "$OTOOL64" >&6; }
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922 $as_echo "no" >&6; }
7927 if test -z "$ac_cv_prog_OTOOL64"; then
7928 ac_ct_OTOOL64=$OTOOL64
7929 # Extract the first word of "otool64", so it can be a program name with args.
7930 set dummy otool64; ac_word=$2
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7932 $as_echo_n "checking for $ac_word... " >&6; }
7933 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7934 $as_echo_n "(cached) " >&6
7936 if test -n "$ac_ct_OTOOL64"; then
7937 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7943 test -z "$as_dir" && as_dir=.
7944 for ac_exec_ext in '' $ac_executable_extensions; do
7945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7946 ac_cv_prog_ac_ct_OTOOL64="otool64"
7947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7956 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7957 if test -n "$ac_ct_OTOOL64"; then
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7959 $as_echo "$ac_ct_OTOOL64" >&6; }
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7962 $as_echo "no" >&6; }
7965 if test "x$ac_ct_OTOOL64" = x; then
7968 case $cross_compiling:$ac_tool_warned in
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7972 ac_tool_warned=yes ;;
7974 OTOOL64=$ac_ct_OTOOL64
7977 OTOOL64="$ac_cv_prog_OTOOL64"
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8007 $as_echo_n "checking for -single_module linker flag... " >&6; }
8008 if ${lt_cv_apple_cc_single_mod+:} false; then :
8009 $as_echo_n "(cached) " >&6
8011 lt_cv_apple_cc_single_mod=no
8012 if test -z "${LT_MULTI_MODULE}"; then
8013 # By default we will add the -single_module flag. You can override
8014 # by either setting the environment variable LT_MULTI_MODULE
8015 # non-empty at configure time, or by adding -multi_module to the
8017 rm -rf libconftest.dylib*
8018 echo "int foo(void){return 1;}" > conftest.c
8019 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8020 -dynamiclib -Wl,-single_module conftest.c" >&5
8021 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8022 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8024 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8025 lt_cv_apple_cc_single_mod=yes
8027 cat conftest.err >&5
8029 rm -rf libconftest.dylib*
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8034 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8036 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8037 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8038 $as_echo_n "(cached) " >&6
8040 lt_cv_ld_exported_symbols_list=no
8041 save_LDFLAGS=$LDFLAGS
8042 echo "_main" > conftest.sym
8043 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8045 /* end confdefs.h. */
8055 if ac_fn_c_try_link "$LINENO"; then :
8056 lt_cv_ld_exported_symbols_list=yes
8058 lt_cv_ld_exported_symbols_list=no
8060 rm -f core conftest.err conftest.$ac_objext \
8061 conftest$ac_exeext conftest.$ac_ext
8062 LDFLAGS="$save_LDFLAGS"
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8066 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8068 $as_echo_n "checking for -force_load linker flag... " >&6; }
8069 if ${lt_cv_ld_force_load+:} false; then :
8070 $as_echo_n "(cached) " >&6
8072 lt_cv_ld_force_load=no
8073 cat > conftest.c << _LT_EOF
8074 int forced_loaded() { return 2;}
8076 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8077 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8078 echo "$AR cru libconftest.a conftest.o" >&5
8079 $AR cru libconftest.a conftest.o 2>&5
8080 cat > conftest.c << _LT_EOF
8081 int main() { return 0;}
8083 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8084 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8086 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8087 lt_cv_ld_force_load=yes
8089 cat conftest.err >&5
8091 rm -f conftest.err libconftest.a conftest conftest.c
8092 rm -rf conftest.dSYM
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8096 $as_echo "$lt_cv_ld_force_load" >&6; }
8098 rhapsody* | darwin1.[012])
8099 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8101 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8102 darwin*) # darwin 5.x on
8103 # if running on 10.5 or later, the deployment target defaults
8104 # to the OS version, if on x86, and 10.4, the deployment
8105 # target defaults to 10.4. Don't you love it?
8106 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8107 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8108 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8110 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8112 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8116 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8117 _lt_dar_single_mod='$single_module'
8119 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8120 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8122 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8124 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8125 _lt_dsymutil='~$DSYMUTIL $lib || :'
8132 for ac_header in dlfcn.h
8134 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8136 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8137 cat >>confdefs.h <<_ACEOF
8138 #define HAVE_DLFCN_H 1
8158 # Check whether --enable-shared was given.
8159 if test "${enable_shared+set}" = set; then :
8160 enableval=$enable_shared; p=${PACKAGE-default}
8162 yes) enable_shared=yes ;;
8163 no) enable_shared=no ;;
8166 # Look at the argument we got. We use all the common list separators.
8167 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8168 for pkg in $enableval; do
8170 if test "X$pkg" = "X$p"; then
8189 # Check whether --enable-static was given.
8190 if test "${enable_static+set}" = set; then :
8191 enableval=$enable_static; p=${PACKAGE-default}
8193 yes) enable_static=yes ;;
8194 no) enable_static=no ;;
8197 # Look at the argument we got. We use all the common list separators.
8198 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8199 for pkg in $enableval; do
8201 if test "X$pkg" = "X$p"; then
8221 # Check whether --with-pic was given.
8222 if test "${with_pic+set}" = set; then :
8223 withval=$with_pic; pic_mode="$withval"
8229 test -z "$pic_mode" && pic_mode=default
8237 # Check whether --enable-fast-install was given.
8238 if test "${enable_fast_install+set}" = set; then :
8239 enableval=$enable_fast_install; p=${PACKAGE-default}
8241 yes) enable_fast_install=yes ;;
8242 no) enable_fast_install=no ;;
8244 enable_fast_install=no
8245 # Look at the argument we got. We use all the common list separators.
8246 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8247 for pkg in $enableval; do
8249 if test "X$pkg" = "X$p"; then
8250 enable_fast_install=yes
8257 enable_fast_install=yes
8270 # This can be used to rebuild libtool when needed
8271 LIBTOOL_DEPS="$ltmain"
8273 # Always use our own libtool.
8274 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8301 test -z "$LN_S" && LN_S="ln -s"
8316 if test -n "${ZSH_VERSION+set}" ; then
8317 setopt NO_GLOB_SUBST
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8321 $as_echo_n "checking for objdir... " >&6; }
8322 if ${lt_cv_objdir+:} false; then :
8323 $as_echo_n "(cached) " >&6
8325 rm -f .libs 2>/dev/null
8326 mkdir .libs 2>/dev/null
8327 if test -d .libs; then
8330 # MS-DOS does not allow filenames that begin with a dot.
8333 rmdir .libs 2>/dev/null
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8336 $as_echo "$lt_cv_objdir" >&6; }
8337 objdir=$lt_cv_objdir
8343 cat >>confdefs.h <<_ACEOF
8344 #define LT_OBJDIR "$lt_cv_objdir/"
8352 # AIX sometimes has problems with the GCC collect2 program. For some
8353 # reason, if we set the COLLECT_NAMES environment variable, the problems
8354 # vanish in a puff of smoke.
8355 if test "X${COLLECT_NAMES+set}" != Xset; then
8357 export COLLECT_NAMES
8364 can_build_shared=yes
8366 # All known linkers require a `.a' archive for static linking (except MSVC,
8367 # which needs '.lib').
8370 with_gnu_ld="$lt_cv_prog_gnu_ld"
8373 old_CFLAGS="$CFLAGS"
8375 # Set sane defaults for various variables
8376 test -z "$CC" && CC=cc
8377 test -z "$LTCC" && LTCC=$CC
8378 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8379 test -z "$LD" && LD=ld
8380 test -z "$ac_objext" && ac_objext=o
8382 for cc_temp in $compiler""; do
8384 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8385 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8390 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8393 # Only perform the check for file, if the check method requires it
8394 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8395 case $deplibs_check_method in
8397 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8399 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8400 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8401 $as_echo_n "(cached) " >&6
8405 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8408 lt_save_MAGIC_CMD="$MAGIC_CMD"
8409 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8410 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8411 for ac_dir in $ac_dummy; do
8413 test -z "$ac_dir" && ac_dir=.
8414 if test -f $ac_dir/${ac_tool_prefix}file; then
8415 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8416 if test -n "$file_magic_test_file"; then
8417 case $deplibs_check_method in
8419 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8420 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8421 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8422 $EGREP "$file_magic_regex" > /dev/null; then
8427 *** Warning: the command libtool uses to detect shared libraries,
8428 *** $file_magic_cmd, produces output that libtool cannot recognize.
8429 *** The result is that libtool may fail to recognize shared libraries
8430 *** as such. This will affect the creation of libtool libraries that
8431 *** depend on shared libraries, but programs linked with such libtool
8432 *** libraries will work regardless of this problem. Nevertheless, you
8433 *** may want to report the problem to your system manager and/or to
8434 *** bug-libtool@gnu.org
8444 MAGIC_CMD="$lt_save_MAGIC_CMD"
8449 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8450 if test -n "$MAGIC_CMD"; then
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8452 $as_echo "$MAGIC_CMD" >&6; }
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8455 $as_echo "no" >&6; }
8462 if test -z "$lt_cv_path_MAGIC_CMD"; then
8463 if test -n "$ac_tool_prefix"; then
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8465 $as_echo_n "checking for file... " >&6; }
8466 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8467 $as_echo_n "(cached) " >&6
8471 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8474 lt_save_MAGIC_CMD="$MAGIC_CMD"
8475 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8476 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8477 for ac_dir in $ac_dummy; do
8479 test -z "$ac_dir" && ac_dir=.
8480 if test -f $ac_dir/file; then
8481 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8482 if test -n "$file_magic_test_file"; then
8483 case $deplibs_check_method in
8485 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8486 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8487 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8488 $EGREP "$file_magic_regex" > /dev/null; then
8493 *** Warning: the command libtool uses to detect shared libraries,
8494 *** $file_magic_cmd, produces output that libtool cannot recognize.
8495 *** The result is that libtool may fail to recognize shared libraries
8496 *** as such. This will affect the creation of libtool libraries that
8497 *** depend on shared libraries, but programs linked with such libtool
8498 *** libraries will work regardless of this problem. Nevertheless, you
8499 *** may want to report the problem to your system manager and/or to
8500 *** bug-libtool@gnu.org
8510 MAGIC_CMD="$lt_save_MAGIC_CMD"
8515 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8516 if test -n "$MAGIC_CMD"; then
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8518 $as_echo "$MAGIC_CMD" >&6; }
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8521 $as_echo "no" >&6; }
8534 # Use C for the default configuration in the libtool script
8538 ac_cpp='$CPP $CPPFLAGS'
8539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8544 # Source file extension for C test sources.
8547 # Object file extension for compiled C test sources.
8551 # Code to be used in simple compile tests
8552 lt_simple_compile_test_code="int some_variable = 0;"
8554 # Code to be used in simple link tests
8555 lt_simple_link_test_code='int main(){return(0);}'
8563 # If no C compiler was specified, use CC.
8566 # If no C compiler flags were specified, use CFLAGS.
8567 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8569 # Allow CC to be a program name with arguments.
8572 # Save the default compiler, since it gets overwritten when the other
8573 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8574 compiler_DEFAULT=$CC
8576 # save warnings/boilerplate of simple test code
8577 ac_outfile=conftest.$ac_objext
8578 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8579 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8580 _lt_compiler_boilerplate=`cat conftest.err`
8583 ac_outfile=conftest.$ac_objext
8584 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8585 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8586 _lt_linker_boilerplate=`cat conftest.err`
8591 ## There is no encapsulation within the following macros, do not change
8592 ## the running order or otherwise move them around unless you know exactly
8593 ## what you are doing...
8594 if test -n "$compiler"; then
8596 lt_prog_compiler_no_builtin_flag=
8598 if test "$GCC" = yes; then
8599 case $cc_basename in
8601 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8603 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8607 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8608 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8609 $as_echo_n "(cached) " >&6
8611 lt_cv_prog_compiler_rtti_exceptions=no
8612 ac_outfile=conftest.$ac_objext
8613 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8614 lt_compiler_flag="-fno-rtti -fno-exceptions"
8615 # Insert the option either (1) after the last *FLAGS variable, or
8616 # (2) before a word containing "conftest.", or (3) at the end.
8617 # Note that $ac_compile itself does not contain backslashes and begins
8618 # with a dollar sign (not a hyphen), so the echo should work correctly.
8619 # The option is referenced via a variable to avoid confusing sed.
8620 lt_compile=`echo "$ac_compile" | $SED \
8621 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8622 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8623 -e 's:$: $lt_compiler_flag:'`
8624 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8625 (eval "$lt_compile" 2>conftest.err)
8627 cat conftest.err >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 if (exit $ac_status) && test -s "$ac_outfile"; then
8630 # The compiler can only warn and ignore the option if not recognized
8631 # So say no if there are warnings other than the usual output.
8632 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8633 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8634 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8635 lt_cv_prog_compiler_rtti_exceptions=yes
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8642 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8644 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8645 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8657 lt_prog_compiler_wl=
8658 lt_prog_compiler_pic=
8659 lt_prog_compiler_static=
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8662 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8664 if test "$GCC" = yes; then
8665 lt_prog_compiler_wl='-Wl,'
8666 lt_prog_compiler_static='-static'
8670 # All AIX code is PIC.
8671 if test "$host_cpu" = ia64; then
8672 # AIX 5 now supports IA64 processor
8673 lt_prog_compiler_static='-Bstatic'
8675 lt_prog_compiler_pic='-fPIC'
8681 # see comment about AmigaOS4 .so support
8682 lt_prog_compiler_pic='-fPIC'
8685 # FIXME: we need at least 68020 code to build shared libraries, but
8686 # adding the `-m68020' flag to GCC prevents building anything better,
8688 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8693 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8694 # PIC is the default for these OSes.
8697 mingw* | cygwin* | pw32* | os2* | cegcc*)
8698 # This hack is so that the source file can tell whether it is being
8699 # built for inclusion in a dll (and should export symbols for example).
8700 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8701 # (--disable-auto-import) libraries
8702 lt_prog_compiler_pic='-DDLL_EXPORT'
8705 darwin* | rhapsody*)
8706 # PIC is the default on this platform
8707 # Common symbols not allowed in MH_DYLIB files
8708 lt_prog_compiler_pic='-fno-common'
8712 # PIC is the default for Haiku.
8713 # The "-static" flag exists, but is broken.
8714 lt_prog_compiler_static=
8718 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8719 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8720 # sets the default TLS model and affects inlining.
8726 lt_prog_compiler_pic='-fPIC'
8732 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8733 # Instead, we relocate shared libraries at runtime.
8737 # Just because we use GCC doesn't mean we suddenly get shared libraries
8738 # on systems that don't support them.
8739 lt_prog_compiler_can_build_shared=no
8744 # QNX uses GNU C++, but need to define -shared option too, otherwise
8746 lt_prog_compiler_pic='-fPIC -shared'
8750 if test -d /usr/nec; then
8751 lt_prog_compiler_pic=-Kconform_pic
8756 lt_prog_compiler_pic='-fPIC'
8760 case $cc_basename in
8761 nvcc*) # Cuda Compiler Driver 2.2
8762 lt_prog_compiler_wl='-Xlinker '
8763 lt_prog_compiler_pic='-Xcompiler -fPIC'
8767 # PORTME Check for flag to pass linker flags through the system compiler.
8770 lt_prog_compiler_wl='-Wl,'
8771 if test "$host_cpu" = ia64; then
8772 # AIX 5 now supports IA64 processor
8773 lt_prog_compiler_static='-Bstatic'
8775 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8779 mingw* | cygwin* | pw32* | os2* | cegcc*)
8780 # This hack is so that the source file can tell whether it is being
8781 # built for inclusion in a dll (and should export symbols for example).
8782 lt_prog_compiler_pic='-DDLL_EXPORT'
8785 hpux9* | hpux10* | hpux11*)
8786 lt_prog_compiler_wl='-Wl,'
8787 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8794 lt_prog_compiler_pic='+Z'
8797 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8798 lt_prog_compiler_static='${wl}-a ${wl}archive'
8801 irix5* | irix6* | nonstopux*)
8802 lt_prog_compiler_wl='-Wl,'
8803 # PIC (with -KPIC) is the default.
8804 lt_prog_compiler_static='-non_shared'
8807 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8808 case $cc_basename in
8809 # old Intel for x86_64 which still supported -KPIC.
8811 lt_prog_compiler_wl='-Wl,'
8812 lt_prog_compiler_pic='-KPIC'
8813 lt_prog_compiler_static='-static'
8815 # icc used to be incompatible with GCC.
8816 # ICC 10 doesn't accept -KPIC any more.
8818 lt_prog_compiler_wl='-Wl,'
8819 lt_prog_compiler_pic='-fPIC'
8820 lt_prog_compiler_static='-static'
8822 # Lahey Fortran 8.1.
8824 lt_prog_compiler_wl='-Wl,'
8825 lt_prog_compiler_pic='--shared'
8826 lt_prog_compiler_static='--static'
8828 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8829 # Portland Group compilers (*not* the Pentium gcc compiler,
8830 # which looks to be a dead project)
8831 lt_prog_compiler_wl='-Wl,'
8832 lt_prog_compiler_pic='-fpic'
8833 lt_prog_compiler_static='-Bstatic'
8836 lt_prog_compiler_wl='-Wl,'
8837 # All Alpha code is PIC.
8838 lt_prog_compiler_static='-non_shared'
8840 xl* | bgxl* | bgf* | mpixl*)
8841 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8842 lt_prog_compiler_wl='-Wl,'
8843 lt_prog_compiler_pic='-qpic'
8844 lt_prog_compiler_static='-qstaticlink'
8847 case `$CC -V 2>&1 | sed 5q` in
8848 *Sun\ F* | *Sun*Fortran*)
8849 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8850 lt_prog_compiler_pic='-KPIC'
8851 lt_prog_compiler_static='-Bstatic'
8852 lt_prog_compiler_wl=''
8856 lt_prog_compiler_pic='-KPIC'
8857 lt_prog_compiler_static='-Bstatic'
8858 lt_prog_compiler_wl='-Wl,'
8866 lt_prog_compiler_pic='-KPIC'
8867 lt_prog_compiler_static='-Bstatic'
8871 # QNX uses GNU C++, but need to define -shared option too, otherwise
8873 lt_prog_compiler_pic='-fPIC -shared'
8876 osf3* | osf4* | osf5*)
8877 lt_prog_compiler_wl='-Wl,'
8878 # All OSF/1 code is PIC.
8879 lt_prog_compiler_static='-non_shared'
8883 lt_prog_compiler_static='-non_shared'
8887 lt_prog_compiler_pic='-KPIC'
8888 lt_prog_compiler_static='-Bstatic'
8889 case $cc_basename in
8891 lt_prog_compiler_wl='-Qoption ld ';;
8893 lt_prog_compiler_wl='-Wl,';;
8898 lt_prog_compiler_wl='-Qoption ld '
8899 lt_prog_compiler_pic='-PIC'
8900 lt_prog_compiler_static='-Bstatic'
8903 sysv4 | sysv4.2uw2* | sysv4.3*)
8904 lt_prog_compiler_wl='-Wl,'
8905 lt_prog_compiler_pic='-KPIC'
8906 lt_prog_compiler_static='-Bstatic'
8910 if test -d /usr/nec ;then
8911 lt_prog_compiler_pic='-Kconform_pic'
8912 lt_prog_compiler_static='-Bstatic'
8916 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8917 lt_prog_compiler_wl='-Wl,'
8918 lt_prog_compiler_pic='-KPIC'
8919 lt_prog_compiler_static='-Bstatic'
8923 lt_prog_compiler_wl='-Wl,'
8924 lt_prog_compiler_can_build_shared=no
8928 lt_prog_compiler_pic='-pic'
8929 lt_prog_compiler_static='-Bstatic'
8933 lt_prog_compiler_can_build_shared=no
8939 # For platforms which do not support PIC, -DPIC is meaningless:
8941 lt_prog_compiler_pic=
8944 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8948 $as_echo "$lt_prog_compiler_pic" >&6; }
8956 # Check to make sure the PIC flag actually works.
8958 if test -n "$lt_prog_compiler_pic"; then
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8960 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8961 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8962 $as_echo_n "(cached) " >&6
8964 lt_cv_prog_compiler_pic_works=no
8965 ac_outfile=conftest.$ac_objext
8966 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8967 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8968 # Insert the option either (1) after the last *FLAGS variable, or
8969 # (2) before a word containing "conftest.", or (3) at the end.
8970 # Note that $ac_compile itself does not contain backslashes and begins
8971 # with a dollar sign (not a hyphen), so the echo should work correctly.
8972 # The option is referenced via a variable to avoid confusing sed.
8973 lt_compile=`echo "$ac_compile" | $SED \
8974 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8975 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8976 -e 's:$: $lt_compiler_flag:'`
8977 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8978 (eval "$lt_compile" 2>conftest.err)
8980 cat conftest.err >&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 if (exit $ac_status) && test -s "$ac_outfile"; then
8983 # The compiler can only warn and ignore the option if not recognized
8984 # So say no if there are warnings other than the usual output.
8985 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8986 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8987 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8988 lt_cv_prog_compiler_pic_works=yes
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8995 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8997 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8998 case $lt_prog_compiler_pic in
9000 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9003 lt_prog_compiler_pic=
9004 lt_prog_compiler_can_build_shared=no
9015 # Check to make sure the static flag actually works.
9017 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9019 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9020 if ${lt_cv_prog_compiler_static_works+:} false; then :
9021 $as_echo_n "(cached) " >&6
9023 lt_cv_prog_compiler_static_works=no
9024 save_LDFLAGS="$LDFLAGS"
9025 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9026 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9027 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9028 # The linker can only warn and ignore the option if not recognized
9029 # So say no if there are warnings
9030 if test -s conftest.err; then
9031 # Append any errors to the config.log.
9032 cat conftest.err 1>&5
9033 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9034 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9035 if diff conftest.exp conftest.er2 >/dev/null; then
9036 lt_cv_prog_compiler_static_works=yes
9039 lt_cv_prog_compiler_static_works=yes
9043 LDFLAGS="$save_LDFLAGS"
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9047 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9049 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9052 lt_prog_compiler_static=
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9062 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9063 if ${lt_cv_prog_compiler_c_o+:} false; then :
9064 $as_echo_n "(cached) " >&6
9066 lt_cv_prog_compiler_c_o=no
9067 $RM -r conftest 2>/dev/null
9071 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9073 lt_compiler_flag="-o out/conftest2.$ac_objext"
9074 # Insert the option either (1) after the last *FLAGS variable, or
9075 # (2) before a word containing "conftest.", or (3) at the end.
9076 # Note that $ac_compile itself does not contain backslashes and begins
9077 # with a dollar sign (not a hyphen), so the echo should work correctly.
9078 lt_compile=`echo "$ac_compile" | $SED \
9079 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9080 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9081 -e 's:$: $lt_compiler_flag:'`
9082 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9083 (eval "$lt_compile" 2>out/conftest.err)
9085 cat out/conftest.err >&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9089 # The compiler can only warn and ignore the option if not recognized
9090 # So say no if there are warnings
9091 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9092 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9093 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9094 lt_cv_prog_compiler_c_o=yes
9099 # SGI C++ compiler will create directory out/ii_files/ for
9100 # template instantiation
9101 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9102 $RM out/* && rmdir out
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9109 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9117 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9118 if ${lt_cv_prog_compiler_c_o+:} false; then :
9119 $as_echo_n "(cached) " >&6
9121 lt_cv_prog_compiler_c_o=no
9122 $RM -r conftest 2>/dev/null
9126 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9128 lt_compiler_flag="-o out/conftest2.$ac_objext"
9129 # Insert the option either (1) after the last *FLAGS variable, or
9130 # (2) before a word containing "conftest.", or (3) at the end.
9131 # Note that $ac_compile itself does not contain backslashes and begins
9132 # with a dollar sign (not a hyphen), so the echo should work correctly.
9133 lt_compile=`echo "$ac_compile" | $SED \
9134 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9135 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9136 -e 's:$: $lt_compiler_flag:'`
9137 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9138 (eval "$lt_compile" 2>out/conftest.err)
9140 cat out/conftest.err >&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9144 # The compiler can only warn and ignore the option if not recognized
9145 # So say no if there are warnings
9146 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9147 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9148 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9149 lt_cv_prog_compiler_c_o=yes
9154 # SGI C++ compiler will create directory out/ii_files/ for
9155 # template instantiation
9156 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9157 $RM out/* && rmdir out
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9164 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9169 hard_links="nottested"
9170 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9171 # do not overwrite the value of need_locks provided by the user
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9173 $as_echo_n "checking if we can lock with hard links... " >&6; }
9176 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9178 ln conftest.a conftest.b 2>&5 || hard_links=no
9179 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9181 $as_echo "$hard_links" >&6; }
9182 if test "$hard_links" = no; then
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9184 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9197 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9200 allow_undefined_flag=
9201 always_export_symbols=no
9203 archive_expsym_cmds=
9204 compiler_needs_object=no
9205 enable_shared_with_static_runtimes=no
9206 export_dynamic_flag_spec=
9207 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9208 hardcode_automatic=no
9210 hardcode_direct_absolute=no
9211 hardcode_libdir_flag_spec=
9212 hardcode_libdir_flag_spec_ld=
9213 hardcode_libdir_separator=
9215 hardcode_shlibpath_var=unsupported
9217 link_all_deplibs=unknown
9220 old_archive_from_new_cmds=
9221 old_archive_from_expsyms_cmds=
9222 thread_safe_flag_spec=
9223 whole_archive_flag_spec=
9224 # include_expsyms should be a list of space-separated symbols to be *always*
9225 # included in the symbol list
9227 # exclude_expsyms can be an extended regexp of symbols to exclude
9228 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9229 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9230 # as well as any symbol that contains `d'.
9231 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9232 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9233 # platforms (ab)use it in PIC code, but their linkers get confused if
9234 # the symbol is explicitly referenced. Since portable code cannot
9235 # rely on this symbol name, it's probably fine to never include it in
9236 # preloaded symbol tables.
9237 # Exclude shared library initialization/finalization symbols.
9238 extract_expsyms_cmds=
9241 cygwin* | mingw* | pw32* | cegcc*)
9242 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9243 # When not using gcc, we currently assume that we are using
9244 # Microsoft Visual C++.
9245 if test "$GCC" != yes; then
9250 # we just hope/assume this is gcc and not c89 (= MSVC++)
9260 # On some targets, GNU ld is compatible enough with the native linker
9261 # that we're better off using the native interface for both.
9262 lt_use_gnu_ld_interface=no
9263 if test "$with_gnu_ld" = yes; then
9266 # The AIX port of GNU ld has always aspired to compatibility
9267 # with the native linker. However, as the warning in the GNU ld
9268 # block says, versions before 2.19.5* couldn't really create working
9269 # shared libraries, regardless of the interface used.
9270 case `$LD -v 2>&1` in
9271 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9272 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9273 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9275 lt_use_gnu_ld_interface=yes
9280 lt_use_gnu_ld_interface=yes
9285 if test "$lt_use_gnu_ld_interface" = yes; then
9286 # If archive_cmds runs LD, not CC, wlarc should be empty
9289 # Set some defaults for GNU ld with shared library support. These
9290 # are reset later if shared libraries are not supported. Putting them
9291 # here allows them to be overridden if necessary.
9292 runpath_var=LD_RUN_PATH
9293 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9294 export_dynamic_flag_spec='${wl}--export-dynamic'
9295 # ancient GNU ld didn't support --whole-archive et. al.
9296 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9297 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9299 whole_archive_flag_spec=
9301 supports_anon_versioning=no
9302 case `$LD -v 2>&1` in
9303 *GNU\ gold*) supports_anon_versioning=yes ;;
9304 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9305 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9306 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9307 *\ 2.11.*) ;; # other 2.11 versions
9308 *) supports_anon_versioning=yes ;;
9311 # See if GNU ld supports shared libraries.
9314 # On AIX/PPC, the GNU linker is very broken
9315 if test "$host_cpu" != ia64; then
9319 *** Warning: the GNU linker, at least up to release 2.19, is reported
9320 *** to be unable to reliably create shared libraries on AIX.
9321 *** Therefore, libtool is disabling shared libraries support. If you
9322 *** really care for shared libraries, you may want to install binutils
9323 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9324 *** You will then need to restart the configuration process.
9333 # see comment about AmigaOS4 .so support
9334 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9335 archive_expsym_cmds=''
9338 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)'
9339 hardcode_libdir_flag_spec='-L$libdir'
9340 hardcode_minus_L=yes
9346 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9347 allow_undefined_flag=unsupported
9348 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9349 # support --undefined. This deserves some investigation. FIXME
9350 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9356 cygwin* | mingw* | pw32* | cegcc*)
9357 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9358 # as there is no search path for DLLs.
9359 hardcode_libdir_flag_spec='-L$libdir'
9360 export_dynamic_flag_spec='${wl}--export-all-symbols'
9361 allow_undefined_flag=unsupported
9362 always_export_symbols=no
9363 enable_shared_with_static_runtimes=yes
9364 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9366 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9367 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9368 # If the export-symbols file already is a .def file (1st line
9369 # is EXPORTS), use it as is; otherwise, prepend...
9370 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9371 cp $export_symbols $output_objdir/$soname.def;
9373 echo EXPORTS > $output_objdir/$soname.def;
9374 cat $export_symbols >> $output_objdir/$soname.def;
9376 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9384 link_all_deplibs=yes
9389 hardcode_shlibpath_var=no
9390 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9391 export_dynamic_flag_spec='${wl}-E'
9392 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9393 # Instead, shared libraries are loaded at an image base (0x10000000 by
9394 # default) and relocated if they conflict, which is a slow very memory
9395 # consuming and fragmenting process. To avoid this, we pick a random,
9396 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9397 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9398 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9399 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'
9402 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9404 if test "$host_os" = linux-dietlibc; then
9405 case $cc_basename in
9406 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9409 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9410 && test "$tmp_diet" = no
9412 tmp_addflag=' $pic_flag'
9413 tmp_sharedflag='-shared'
9414 case $cc_basename,$host_cpu in
9415 pgcc*) # Portland Group C compiler
9416 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'
9417 tmp_addflag=' $pic_flag'
9419 pgf77* | pgf90* | pgf95* | pgfortran*)
9420 # Portland Group f77 and f90 compilers
9421 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'
9422 tmp_addflag=' $pic_flag -Mnomain' ;;
9423 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9424 tmp_addflag=' -i_dynamic' ;;
9425 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9426 tmp_addflag=' -i_dynamic -nofor_main' ;;
9427 ifc* | ifort*) # Intel Fortran compiler
9428 tmp_addflag=' -nofor_main' ;;
9429 lf95*) # Lahey Fortran 8.1
9430 whole_archive_flag_spec=
9431 tmp_sharedflag='--shared' ;;
9432 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9433 tmp_sharedflag='-qmkshrobj'
9435 nvcc*) # Cuda Compiler Driver 2.2
9436 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9437 compiler_needs_object=yes
9440 case `$CC -V 2>&1 | sed 5q` in
9441 *Sun\ C*) # Sun C 5.9
9442 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'
9443 compiler_needs_object=yes
9444 tmp_sharedflag='-G' ;;
9445 *Sun\ F*) # Sun Fortran 8.3
9446 tmp_sharedflag='-G' ;;
9448 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9450 if test "x$supports_anon_versioning" = xyes; then
9451 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9452 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9453 echo "local: *; };" >> $output_objdir/$libname.ver~
9454 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9457 case $cc_basename in
9458 xlf* | bgf* | bgxlf* | mpixlf*)
9459 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9460 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9461 hardcode_libdir_flag_spec=
9462 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9463 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9464 if test "x$supports_anon_versioning" = xyes; then
9465 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9466 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9467 echo "local: *; };" >> $output_objdir/$libname.ver~
9468 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9478 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9479 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9482 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9483 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9488 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9492 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9493 *** create shared libraries on Solaris systems. Therefore, libtool
9494 *** is disabling shared libraries support. We urge you to upgrade GNU
9495 *** binutils to release 2.9.1 or newer. Another option is to modify
9496 *** your PATH or compiler configuration so that the native linker is
9497 *** used, and then restart.
9500 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9501 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9502 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9508 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9509 case `$LD -v 2>&1` in
9510 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9514 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9515 *** reliably create shared libraries on SCO systems. Therefore, libtool
9516 *** is disabling shared libraries support. We urge you to upgrade GNU
9517 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9518 *** your PATH or compiler configuration so that the native linker is
9519 *** used, and then restart.
9524 # For security reasons, it is highly recommended that you always
9525 # use absolute paths for naming shared libraries, and exclude the
9526 # DT_RUNPATH tag from executables and libraries. But doing so
9527 # requires that you compile everything twice, which is a pain.
9528 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9529 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9530 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9531 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9540 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9543 hardcode_shlibpath_var=no
9547 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9548 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9549 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9556 if test "$ld_shlibs" = no; then
9558 hardcode_libdir_flag_spec=
9559 export_dynamic_flag_spec=
9560 whole_archive_flag_spec=
9563 # PORTME fill in a description of your system's linker (not GNU ld)
9566 allow_undefined_flag=unsupported
9567 always_export_symbols=yes
9568 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'
9569 # Note: this linker hardcodes the directories in LIBPATH if there
9570 # are no directories specified by -L.
9571 hardcode_minus_L=yes
9572 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9573 # Neither direct hardcoding nor static linking is supported with a
9575 hardcode_direct=unsupported
9580 if test "$host_cpu" = ia64; then
9581 # On IA64, the linker does run time linking by default, so we don't
9582 # have to do anything special.
9583 aix_use_runtimelinking=no
9584 exp_sym_flag='-Bexport'
9587 # If we're using GNU nm, then we don't want the "-C" option.
9588 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9589 # Also, AIX nm treats weak defined symbols like other global
9590 # defined symbols, whereas GNU nm marks them as "W".
9591 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9592 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'
9594 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'
9596 aix_use_runtimelinking=no
9598 # Test if we are trying to use run time linking or normal
9599 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9600 # need to do runtime linking.
9601 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9602 for ld_flag in $LDFLAGS; do
9603 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9604 aix_use_runtimelinking=yes
9611 exp_sym_flag='-bexport'
9612 no_entry_flag='-bnoentry'
9615 # When large executables or shared objects are built, AIX ld can
9616 # have problems creating the table of contents. If linking a library
9617 # or program results in "error TOC overflow" add -mminimal-toc to
9618 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9619 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9623 hardcode_direct_absolute=yes
9624 hardcode_libdir_separator=':'
9625 link_all_deplibs=yes
9626 file_list_spec='${wl}-f,'
9628 if test "$GCC" = yes; then
9629 case $host_os in aix4.[012]|aix4.[012].*)
9630 # We only want to do this on AIX 4.2 and lower, the check
9631 # below for broken collect2 doesn't work under 4.3+
9632 collect2name=`${CC} -print-prog-name=collect2`
9633 if test -f "$collect2name" &&
9634 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9636 # We have reworked collect2
9639 # We have old collect2
9640 hardcode_direct=unsupported
9641 # It fails to find uninstalled libraries when the uninstalled
9642 # path is not listed in the libpath. Setting hardcode_minus_L
9643 # to unsupported forces relinking
9644 hardcode_minus_L=yes
9645 hardcode_libdir_flag_spec='-L$libdir'
9646 hardcode_libdir_separator=
9650 shared_flag='-shared'
9651 if test "$aix_use_runtimelinking" = yes; then
9652 shared_flag="$shared_flag "'${wl}-G'
9656 if test "$host_cpu" = ia64; then
9657 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9658 # chokes on -Wl,-G. The following line is correct:
9661 if test "$aix_use_runtimelinking" = yes; then
9662 shared_flag='${wl}-G'
9664 shared_flag='${wl}-bM:SRE'
9669 export_dynamic_flag_spec='${wl}-bexpall'
9670 # It seems that -bexpall does not export symbols beginning with
9671 # underscore (_), so it is better to generate a list of symbols to export.
9672 always_export_symbols=yes
9673 if test "$aix_use_runtimelinking" = yes; then
9674 # Warning - without using the other runtime loading flags (-brtl),
9675 # -berok will link without error, but may produce a broken library.
9676 allow_undefined_flag='-berok'
9677 # Determine the default libpath from the value encoded in an
9679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9680 /* end confdefs.h. */
9690 if ac_fn_c_try_link "$LINENO"; then :
9692 lt_aix_libpath_sed='
9693 /Import File Strings/,/^$/ {
9699 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9700 # Check for a 64-bit object if we didn't find anything.
9701 if test -z "$aix_libpath"; then
9702 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9705 rm -f core conftest.err conftest.$ac_objext \
9706 conftest$ac_exeext conftest.$ac_ext
9707 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9709 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9710 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"
9712 if test "$host_cpu" = ia64; then
9713 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9714 allow_undefined_flag="-z nodefs"
9715 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"
9717 # Determine the default libpath from the value encoded in an
9719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9720 /* end confdefs.h. */
9730 if ac_fn_c_try_link "$LINENO"; then :
9732 lt_aix_libpath_sed='
9733 /Import File Strings/,/^$/ {
9739 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9740 # Check for a 64-bit object if we didn't find anything.
9741 if test -z "$aix_libpath"; then
9742 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9745 rm -f core conftest.err conftest.$ac_objext \
9746 conftest$ac_exeext conftest.$ac_ext
9747 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9749 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9750 # Warning - without using the other run time loading flags,
9751 # -berok will link without error, but may produce a broken library.
9752 no_undefined_flag=' ${wl}-bernotok'
9753 allow_undefined_flag=' ${wl}-berok'
9754 if test "$with_gnu_ld" = yes; then
9755 # We only use this code for GNU lds that support --whole-archive.
9756 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9758 # Exported symbols can be pulled into shared objects from archives
9759 whole_archive_flag_spec='$convenience'
9761 archive_cmds_need_lc=yes
9762 # This is similar to how AIX traditionally builds its shared libraries.
9763 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'
9771 # see comment about AmigaOS4 .so support
9772 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9773 archive_expsym_cmds=''
9776 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)'
9777 hardcode_libdir_flag_spec='-L$libdir'
9778 hardcode_minus_L=yes
9784 export_dynamic_flag_spec=-rdynamic
9787 cygwin* | mingw* | pw32* | cegcc*)
9788 # When not using gcc, we currently assume that we are using
9789 # Microsoft Visual C++.
9790 # hardcode_libdir_flag_spec is actually meaningless, as there is
9791 # no search path for DLLs.
9792 hardcode_libdir_flag_spec=' '
9793 allow_undefined_flag=unsupported
9794 # Tell ltmain to make .lib files, not .a files.
9796 # Tell ltmain to make .dll files, not .so files.
9798 # FIXME: Setting linknames here is a bad hack.
9799 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9800 # The linker will automatically build a .lib file if we build a DLL.
9801 old_archive_from_new_cmds='true'
9802 # FIXME: Should let the user specify the lib program.
9803 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9804 fix_srcfile_path='`cygpath -w "$srcfile"`'
9805 enable_shared_with_static_runtimes=yes
9808 darwin* | rhapsody*)
9811 archive_cmds_need_lc=no
9813 hardcode_automatic=yes
9814 hardcode_shlibpath_var=unsupported
9815 if test "$lt_cv_ld_force_load" = "yes"; then
9816 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\"`'
9818 whole_archive_flag_spec=''
9820 link_all_deplibs=yes
9821 allow_undefined_flag="$_lt_dar_allow_undefined"
9822 case $cc_basename in
9823 ifort*) _lt_dar_can_shared=yes ;;
9824 *) _lt_dar_can_shared=$GCC ;;
9826 if test "$_lt_dar_can_shared" = "yes"; then
9827 output_verbose_link_cmd=func_echo_all
9828 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9829 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9830 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}"
9831 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}"
9840 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9841 hardcode_libdir_flag_spec='-L$libdir'
9842 hardcode_shlibpath_var=no
9845 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9846 # support. Future versions do this automatically, but an explicit c++rt0.o
9847 # does not break anything, and helps significantly (at the cost of a little
9850 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9851 hardcode_libdir_flag_spec='-R$libdir'
9853 hardcode_shlibpath_var=no
9856 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9858 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9860 hardcode_minus_L=yes
9861 hardcode_shlibpath_var=no
9864 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9865 freebsd* | dragonfly*)
9866 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9867 hardcode_libdir_flag_spec='-R$libdir'
9869 hardcode_shlibpath_var=no
9873 if test "$GCC" = yes; then
9874 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'
9876 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'
9878 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9879 hardcode_libdir_separator=:
9882 # hardcode_minus_L: Not really in the search PATH,
9883 # but as the default location of the library.
9884 hardcode_minus_L=yes
9885 export_dynamic_flag_spec='${wl}-E'
9889 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9890 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9892 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9894 if test "$with_gnu_ld" = no; then
9895 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9896 hardcode_libdir_flag_spec_ld='+b $libdir'
9897 hardcode_libdir_separator=:
9899 hardcode_direct_absolute=yes
9900 export_dynamic_flag_spec='${wl}-E'
9901 # hardcode_minus_L: Not really in the search PATH,
9902 # but as the default location of the library.
9903 hardcode_minus_L=yes
9908 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9911 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9914 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9917 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9923 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9926 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9930 # Older versions of the 11.00 compiler do not understand -b yet
9931 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9933 $as_echo_n "checking if $CC understands -b... " >&6; }
9934 if ${lt_cv_prog_compiler__b+:} false; then :
9935 $as_echo_n "(cached) " >&6
9937 lt_cv_prog_compiler__b=no
9938 save_LDFLAGS="$LDFLAGS"
9939 LDFLAGS="$LDFLAGS -b"
9940 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9941 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9942 # The linker can only warn and ignore the option if not recognized
9943 # So say no if there are warnings
9944 if test -s conftest.err; then
9945 # Append any errors to the config.log.
9946 cat conftest.err 1>&5
9947 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9948 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9949 if diff conftest.exp conftest.er2 >/dev/null; then
9950 lt_cv_prog_compiler__b=yes
9953 lt_cv_prog_compiler__b=yes
9957 LDFLAGS="$save_LDFLAGS"
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9961 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9963 if test x"$lt_cv_prog_compiler__b" = xyes; then
9964 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9966 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9972 if test "$with_gnu_ld" = no; then
9973 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9974 hardcode_libdir_separator=:
9979 hardcode_shlibpath_var=no
9983 hardcode_direct_absolute=yes
9984 export_dynamic_flag_spec='${wl}-E'
9986 # hardcode_minus_L: Not really in the search PATH,
9987 # but as the default location of the library.
9988 hardcode_minus_L=yes
9994 irix5* | irix6* | nonstopux*)
9995 if test "$GCC" = yes; then
9996 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'
9997 # Try to use the -exported_symbol ld option, if it does not
9998 # work, assume that -exports_file does not work either and
9999 # implicitly export all symbols.
10000 save_LDFLAGS="$LDFLAGS"
10001 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10003 /* end confdefs.h. */
10006 if ac_fn_c_try_link "$LINENO"; then :
10007 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'
10010 rm -f core conftest.err conftest.$ac_objext \
10011 conftest$ac_exeext conftest.$ac_ext
10012 LDFLAGS="$save_LDFLAGS"
10014 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'
10015 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'
10017 archive_cmds_need_lc='no'
10018 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10019 hardcode_libdir_separator=:
10021 link_all_deplibs=yes
10025 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10026 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10028 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10030 hardcode_libdir_flag_spec='-R$libdir'
10031 hardcode_direct=yes
10032 hardcode_shlibpath_var=no
10036 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10037 hardcode_direct=yes
10038 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10039 hardcode_libdir_separator=:
10040 hardcode_shlibpath_var=no
10047 if test -f /usr/libexec/ld.so; then
10048 hardcode_direct=yes
10049 hardcode_shlibpath_var=no
10050 hardcode_direct_absolute=yes
10051 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10052 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10053 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10054 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10055 export_dynamic_flag_spec='${wl}-E'
10058 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10059 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10060 hardcode_libdir_flag_spec='-R$libdir'
10063 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10064 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10074 hardcode_libdir_flag_spec='-L$libdir'
10075 hardcode_minus_L=yes
10076 allow_undefined_flag=unsupported
10077 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'
10078 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10082 if test "$GCC" = yes; then
10083 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10084 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'
10086 allow_undefined_flag=' -expect_unresolved \*'
10087 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'
10089 archive_cmds_need_lc='no'
10090 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10091 hardcode_libdir_separator=:
10094 osf4* | osf5*) # as osf3* with the addition of -msym flag
10095 if test "$GCC" = yes; then
10096 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10097 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'
10098 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10100 allow_undefined_flag=' -expect_unresolved \*'
10101 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'
10102 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~
10103 $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'
10105 # Both c and cxx compiler support -rpath directly
10106 hardcode_libdir_flag_spec='-rpath $libdir'
10108 archive_cmds_need_lc='no'
10109 hardcode_libdir_separator=:
10113 no_undefined_flag=' -z defs'
10114 if test "$GCC" = yes; then
10116 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10117 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10118 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10120 case `$CC -V 2>&1` in
10123 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10124 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10125 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10129 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10130 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10131 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10135 hardcode_libdir_flag_spec='-R$libdir'
10136 hardcode_shlibpath_var=no
10138 solaris2.[0-5] | solaris2.[0-5].*) ;;
10140 # The compiler driver will combine and reorder linker options,
10141 # but understands `-z linker_flag'. GCC discards it without `$wl',
10142 # but is careful enough not to reorder.
10143 # Supported since Solaris 2.6 (maybe 2.5.1?)
10144 if test "$GCC" = yes; then
10145 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10147 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10151 link_all_deplibs=yes
10155 if test "x$host_vendor" = xsequent; then
10156 # Use $CC to link under sequent, because it throws in some extra .o
10157 # files that make .init and .fini sections work.
10158 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10160 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10162 hardcode_libdir_flag_spec='-L$libdir'
10163 hardcode_direct=yes
10164 hardcode_minus_L=yes
10165 hardcode_shlibpath_var=no
10169 case $host_vendor in
10171 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10172 hardcode_direct=yes # is this really true???
10175 ## LD is ld it makes a PLAMLIB
10176 ## CC just makes a GrossModule.
10177 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10178 reload_cmds='$CC -r -o $output$reload_objs'
10182 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10183 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10186 runpath_var='LD_RUN_PATH'
10187 hardcode_shlibpath_var=no
10191 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10192 hardcode_shlibpath_var=no
10193 export_dynamic_flag_spec='-Bexport'
10197 if test -d /usr/nec; then
10198 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10199 hardcode_shlibpath_var=no
10200 runpath_var=LD_RUN_PATH
10201 hardcode_runpath_var=yes
10206 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10207 no_undefined_flag='${wl}-z,text'
10208 archive_cmds_need_lc=no
10209 hardcode_shlibpath_var=no
10210 runpath_var='LD_RUN_PATH'
10212 if test "$GCC" = yes; then
10213 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10214 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10216 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10217 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10221 sysv5* | sco3.2v5* | sco5v6*)
10222 # Note: We can NOT use -z defs as we might desire, because we do not
10223 # link with -lc, and that would cause any symbols used from libc to
10224 # always be unresolved, which means just about no library would
10225 # ever link correctly. If we're not using GNU ld we use -z text
10226 # though, which does catch some bad symbols but isn't as heavy-handed
10228 no_undefined_flag='${wl}-z,text'
10229 allow_undefined_flag='${wl}-z,nodefs'
10230 archive_cmds_need_lc=no
10231 hardcode_shlibpath_var=no
10232 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10233 hardcode_libdir_separator=':'
10234 link_all_deplibs=yes
10235 export_dynamic_flag_spec='${wl}-Bexport'
10236 runpath_var='LD_RUN_PATH'
10238 if test "$GCC" = yes; then
10239 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10240 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10242 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10243 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10248 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10249 hardcode_libdir_flag_spec='-L$libdir'
10250 hardcode_shlibpath_var=no
10258 if test x$host_vendor = xsni; then
10260 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10261 export_dynamic_flag_spec='${wl}-Blargedynsym'
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10268 $as_echo "$ld_shlibs" >&6; }
10269 test "$ld_shlibs" = no && can_build_shared=no
10271 with_gnu_ld=$with_gnu_ld
10288 # Do we need to explicitly link libc?
10290 case "x$archive_cmds_need_lc" in
10292 # Assume -lc should be added
10293 archive_cmds_need_lc=yes
10295 if test "$enable_shared" = yes && test "$GCC" = yes; then
10296 case $archive_cmds in
10298 # FIXME: we may have to deal with multi-command sequences.
10301 # Test whether the compiler implicitly links with -lc since on some
10302 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10303 # to ld, don't add -lc before -lgcc.
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10305 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10306 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10307 $as_echo_n "(cached) " >&6
10310 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10312 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10313 (eval $ac_compile) 2>&5
10315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10316 test $ac_status = 0; } 2>conftest.err; then
10319 libobjs=conftest.$ac_objext
10321 wl=$lt_prog_compiler_wl
10322 pic_flag=$lt_prog_compiler_pic
10328 lt_save_allow_undefined_flag=$allow_undefined_flag
10329 allow_undefined_flag=
10330 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10331 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10334 test $ac_status = 0; }
10336 lt_cv_archive_cmds_need_lc=no
10338 lt_cv_archive_cmds_need_lc=yes
10340 allow_undefined_flag=$lt_save_allow_undefined_flag
10342 cat conftest.err 1>&5
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10348 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10349 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10513 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10515 if test "$GCC" = yes; then
10517 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10518 *) lt_awk_arg="/^libraries:/" ;;
10521 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10522 *) lt_sed_strip_eq="s,=/,/,g" ;;
10524 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10525 case $lt_search_path_spec in
10527 # if the path contains ";" then we assume it to be the separator
10528 # otherwise default to the standard path separator (i.e. ":") - it is
10529 # assumed that no part of a normal pathname contains ";" but that should
10530 # okay in the real world where ";" in dirpaths is itself problematic.
10531 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10534 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10537 # Ok, now we have the path, separated by spaces, we can step through it
10538 # and add multilib dir if necessary.
10539 lt_tmp_lt_search_path_spec=
10540 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10541 for lt_sys_path in $lt_search_path_spec; do
10542 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10543 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10545 test -d "$lt_sys_path" && \
10546 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10549 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10550 BEGIN {RS=" "; FS="/|\n";} {
10553 for (lt_i = NF; lt_i > 0; lt_i--) {
10554 if ($lt_i != "" && $lt_i != ".") {
10555 if ($lt_i == "..") {
10558 if (lt_count == 0) {
10559 lt_foo="/" $lt_i lt_foo;
10566 if (lt_foo != "") { lt_freq[lt_foo]++; }
10567 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10569 # AWK program above erroneously prepends '/' to C:/dos/paths
10572 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10573 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10575 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10577 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10579 library_names_spec=
10580 libname_spec='lib$name'
10584 postuninstall_cmds=
10588 shlibpath_overrides_runpath=unknown
10590 dynamic_linker="$host_os ld.so"
10591 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10592 need_lib_prefix=unknown
10593 hardcode_into_libs=no
10595 # when you set need_version to no, make sure it does not cause -set_version
10596 # flags to be left without arguments
10597 need_version=unknown
10602 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10603 shlibpath_var=LIBPATH
10605 # AIX 3 has no versioning support, so we append a major version to the name.
10606 soname_spec='${libname}${release}${shared_ext}$major'
10613 hardcode_into_libs=yes
10614 if test "$host_cpu" = ia64; then
10615 # AIX 5 supports IA64
10616 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10617 shlibpath_var=LD_LIBRARY_PATH
10619 # With GCC up to 2.95.x, collect2 would create an import file
10620 # for dependence libraries. The import file would start with
10621 # the line `#! .'. This would cause the generated library to
10622 # depend on `.', always an invalid library. This was fixed in
10623 # development snapshots of GCC prior to 3.0.
10625 aix4 | aix4.[01] | aix4.[01].*)
10626 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10628 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10631 can_build_shared=no
10635 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10636 # soname into executable. Probably we can add versioning support to
10637 # collect2, so additional links can be useful in future.
10638 if test "$aix_use_runtimelinking" = yes; then
10639 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10640 # instead of lib<name>.a to let people know that these are not
10641 # typical AIX shared libraries.
10642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10644 # We preserve .a as extension for shared libraries through AIX4.2
10645 # and later when we are not doing run time linking.
10646 library_names_spec='${libname}${release}.a $libname.a'
10647 soname_spec='${libname}${release}${shared_ext}$major'
10649 shlibpath_var=LIBPATH
10656 # Since July 2007 AmigaOS4 officially supports .so libraries.
10657 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10661 library_names_spec='$libname.ixlibrary $libname.a'
10662 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10663 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'
10669 library_names_spec='${libname}${shared_ext}'
10670 dynamic_linker="$host_os ld.so"
10671 shlibpath_var=LIBRARY_PATH
10677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10678 soname_spec='${libname}${release}${shared_ext}$major'
10679 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10680 shlibpath_var=LD_LIBRARY_PATH
10681 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10682 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10683 # the default ld.so.conf also contains /usr/contrib/lib and
10684 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10685 # libtool to hard-code these into programs
10688 cygwin* | mingw* | pw32* | cegcc*)
10689 version_type=windows
10694 case $GCC,$host_os in
10695 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10696 library_names_spec='$libname.dll.a'
10697 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10698 postinstall_cmds='base_file=`basename \${file}`~
10699 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10700 dldir=$destdir/`dirname \$dlpath`~
10701 test -d \$dldir || mkdir -p \$dldir~
10702 $install_prog $dir/$dlname \$dldir/$dlname~
10703 chmod a+x \$dldir/$dlname~
10704 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10705 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10707 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10708 dlpath=$dir/\$dldll~
10710 shlibpath_overrides_runpath=yes
10714 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10715 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10717 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10720 # MinGW DLLs use traditional 'lib' prefix
10721 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10724 # pw32 DLLs use 'pw' prefix rather than 'lib'
10725 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10731 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10734 dynamic_linker='Win32 ld.exe'
10735 # FIXME: first we should search . and the directory the executable is in
10739 darwin* | rhapsody*)
10740 dynamic_linker="$host_os dyld"
10741 version_type=darwin
10744 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10745 soname_spec='${libname}${release}${major}$shared_ext'
10746 shlibpath_overrides_runpath=yes
10747 shlibpath_var=DYLD_LIBRARY_PATH
10748 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10750 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10751 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10759 soname_spec='${libname}${release}${shared_ext}$major'
10760 shlibpath_var=LD_LIBRARY_PATH
10763 freebsd* | dragonfly*)
10764 # DragonFly does not have aout. When/if they implement a new
10765 # versioning mechanism, adjust this.
10766 if test -x /usr/bin/objformat; then
10767 objformat=`/usr/bin/objformat`
10770 freebsd[23].*) objformat=aout ;;
10771 *) objformat=elf ;;
10774 version_type=freebsd-$objformat
10775 case $version_type in
10777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10782 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10786 shlibpath_var=LD_LIBRARY_PATH
10789 shlibpath_overrides_runpath=yes
10791 freebsd3.[01]* | freebsdelf3.[01]*)
10792 shlibpath_overrides_runpath=yes
10793 hardcode_into_libs=yes
10795 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10796 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10797 shlibpath_overrides_runpath=no
10798 hardcode_into_libs=yes
10800 *) # from 4.6 on, and DragonFly
10801 shlibpath_overrides_runpath=yes
10802 hardcode_into_libs=yes
10811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10812 soname_spec='${libname}${release}${shared_ext}$major'
10813 shlibpath_var=LD_LIBRARY_PATH
10814 hardcode_into_libs=yes
10821 dynamic_linker="$host_os runtime_loader"
10822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10823 soname_spec='${libname}${release}${shared_ext}$major'
10824 shlibpath_var=LIBRARY_PATH
10825 shlibpath_overrides_runpath=yes
10826 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10827 hardcode_into_libs=yes
10830 hpux9* | hpux10* | hpux11*)
10831 # Give a soname corresponding to the major version so that dld.sl refuses to
10832 # link against other versions.
10839 hardcode_into_libs=yes
10840 dynamic_linker="$host_os dld.so"
10841 shlibpath_var=LD_LIBRARY_PATH
10842 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10844 soname_spec='${libname}${release}${shared_ext}$major'
10845 if test "X$HPUX_IA64_MODE" = X32; then
10846 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10848 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10850 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10854 hardcode_into_libs=yes
10855 dynamic_linker="$host_os dld.sl"
10856 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10857 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10859 soname_spec='${libname}${release}${shared_ext}$major'
10860 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10861 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10865 dynamic_linker="$host_os dld.sl"
10866 shlibpath_var=SHLIB_PATH
10867 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10869 soname_spec='${libname}${release}${shared_ext}$major'
10872 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10873 postinstall_cmds='chmod 555 $lib'
10874 # or fails outright, so override atomically:
10875 install_override_mode=555
10882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10883 soname_spec='${libname}${release}${shared_ext}$major'
10884 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10885 shlibpath_var=LD_LIBRARY_PATH
10886 shlibpath_overrides_runpath=no
10887 hardcode_into_libs=yes
10890 irix5* | irix6* | nonstopux*)
10892 nonstopux*) version_type=nonstopux ;;
10894 if test "$lt_cv_prog_gnu_ld" = yes; then
10902 soname_spec='${libname}${release}${shared_ext}$major'
10903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10905 irix5* | nonstopux*)
10906 libsuff= shlibsuff=
10909 case $LD in # libtool.m4 will add one of these switches to LD
10910 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10911 libsuff= shlibsuff= libmagic=32-bit;;
10912 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10913 libsuff=32 shlibsuff=N32 libmagic=N32;;
10914 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10915 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10916 *) libsuff= shlibsuff= libmagic=never-match;;
10920 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10921 shlibpath_overrides_runpath=no
10922 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10923 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10924 hardcode_into_libs=yes
10927 # No shared lib support for Linux oldld, aout, or coff.
10928 linux*oldld* | linux*aout* | linux*coff*)
10932 # This must be Linux ELF.
10933 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10938 soname_spec='${libname}${release}${shared_ext}$major'
10939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10940 shlibpath_var=LD_LIBRARY_PATH
10941 shlibpath_overrides_runpath=no
10943 # Some binutils ld are patched to set DT_RUNPATH
10944 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10945 $as_echo_n "(cached) " >&6
10947 lt_cv_shlibpath_overrides_runpath=no
10948 save_LDFLAGS=$LDFLAGS
10949 save_libdir=$libdir
10950 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10951 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10953 /* end confdefs.h. */
10963 if ac_fn_c_try_link "$LINENO"; then :
10964 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10965 lt_cv_shlibpath_overrides_runpath=yes
10968 rm -f core conftest.err conftest.$ac_objext \
10969 conftest$ac_exeext conftest.$ac_ext
10970 LDFLAGS=$save_LDFLAGS
10971 libdir=$save_libdir
10975 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10977 # This implies no fast_install, which is unacceptable.
10978 # Some rework will be needed to allow for fast_install
10979 # before this can be enabled.
10980 hardcode_into_libs=yes
10982 # Append ld.so.conf contents to the search path
10983 if test -f /etc/ld.so.conf; then
10984 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' ' '`
10985 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10988 # We used to test for /lib/ld.so.1 and disable shared libraries on
10989 # powerpc, because MkLinux only supported shared libraries with the
10990 # GNU dynamic linker. Since this was broken with cross compilers,
10991 # most powerpc-linux boxes support dynamic linking these days and
10992 # people can always --disable-shared, the test was removed, and we
10993 # assume the GNU/Linux dynamic linker is in use.
10994 dynamic_linker='GNU/Linux ld.so'
11001 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11003 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11004 dynamic_linker='NetBSD (a.out) ld.so'
11006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11007 soname_spec='${libname}${release}${shared_ext}$major'
11008 dynamic_linker='NetBSD ld.elf_so'
11010 shlibpath_var=LD_LIBRARY_PATH
11011 shlibpath_overrides_runpath=yes
11012 hardcode_into_libs=yes
11017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11018 shlibpath_var=LD_LIBRARY_PATH
11019 shlibpath_overrides_runpath=yes
11026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11027 soname_spec='${libname}${release}${shared_ext}$major'
11028 shlibpath_var=LD_LIBRARY_PATH
11029 shlibpath_overrides_runpath=no
11030 hardcode_into_libs=yes
11031 dynamic_linker='ldqnx.so'
11036 sys_lib_dlsearch_path_spec="/usr/lib"
11038 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11040 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11041 *) need_version=no ;;
11043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11044 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11045 shlibpath_var=LD_LIBRARY_PATH
11046 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11048 openbsd2.[89] | openbsd2.[89].*)
11049 shlibpath_overrides_runpath=no
11052 shlibpath_overrides_runpath=yes
11056 shlibpath_overrides_runpath=yes
11061 libname_spec='$name'
11064 library_names_spec='$libname${shared_ext} $libname.a'
11065 dynamic_linker='OS/2 ld.exe'
11066 shlibpath_var=LIBPATH
11069 osf3* | osf4* | osf5*)
11073 soname_spec='${libname}${release}${shared_ext}$major'
11074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11075 shlibpath_var=LD_LIBRARY_PATH
11076 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11077 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11089 soname_spec='${libname}${release}${shared_ext}$major'
11090 shlibpath_var=LD_LIBRARY_PATH
11091 shlibpath_overrides_runpath=yes
11092 hardcode_into_libs=yes
11093 # ldd complains unless libraries are executable
11094 postinstall_cmds='chmod +x $lib'
11099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11100 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11101 shlibpath_var=LD_LIBRARY_PATH
11102 shlibpath_overrides_runpath=yes
11103 if test "$with_gnu_ld" = yes; then
11111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11112 soname_spec='${libname}${release}${shared_ext}$major'
11113 shlibpath_var=LD_LIBRARY_PATH
11114 case $host_vendor in
11116 shlibpath_overrides_runpath=no
11118 runpath_var=LD_RUN_PATH
11126 shlibpath_overrides_runpath=no
11127 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11133 if test -d /usr/nec ;then
11135 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11136 soname_spec='$libname${shared_ext}.$major'
11137 shlibpath_var=LD_LIBRARY_PATH
11141 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11142 version_type=freebsd-elf
11145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11146 soname_spec='${libname}${release}${shared_ext}$major'
11147 shlibpath_var=LD_LIBRARY_PATH
11148 shlibpath_overrides_runpath=yes
11149 hardcode_into_libs=yes
11150 if test "$with_gnu_ld" = yes; then
11151 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11153 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11156 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11160 sys_lib_dlsearch_path_spec='/usr/lib'
11164 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11169 shlibpath_var=LD_LIBRARY_PATH
11170 shlibpath_overrides_runpath=no
11171 hardcode_into_libs=yes
11176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11177 soname_spec='${libname}${release}${shared_ext}$major'
11178 shlibpath_var=LD_LIBRARY_PATH
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11186 $as_echo "$dynamic_linker" >&6; }
11187 test "$dynamic_linker" = no && can_build_shared=no
11189 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11190 if test "$GCC" = yes; then
11191 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11194 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11195 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11197 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11198 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11293 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11295 if test -n "$hardcode_libdir_flag_spec" ||
11296 test -n "$runpath_var" ||
11297 test "X$hardcode_automatic" = "Xyes" ; then
11299 # We can hardcode non-existent directories.
11300 if test "$hardcode_direct" != no &&
11301 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11302 # have to relink, otherwise we might link with an installed library
11303 # when we should be linking with a yet-to-be-installed one
11304 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11305 test "$hardcode_minus_L" != no; then
11306 # Linking always hardcodes the temporary library directory.
11307 hardcode_action=relink
11309 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11310 hardcode_action=immediate
11313 # We cannot hardcode anything, or else we can only hardcode existing
11315 hardcode_action=unsupported
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11318 $as_echo "$hardcode_action" >&6; }
11320 if test "$hardcode_action" = relink ||
11321 test "$inherit_rpath" = yes; then
11322 # Fast installation is not supported
11323 enable_fast_install=no
11324 elif test "$shlibpath_overrides_runpath" = yes ||
11325 test "$enable_shared" = no; then
11326 # Fast installation is not necessary
11327 enable_fast_install=needless
11335 if test "x$enable_dlopen" != xyes; then
11336 enable_dlopen=unknown
11337 enable_dlopen_self=unknown
11338 enable_dlopen_self_static=unknown
11345 lt_cv_dlopen="load_add_on"
11347 lt_cv_dlopen_self=yes
11350 mingw* | pw32* | cegcc*)
11351 lt_cv_dlopen="LoadLibrary"
11356 lt_cv_dlopen="dlopen"
11361 # if libdl is installed we need to link against it
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11363 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11364 if ${ac_cv_lib_dl_dlopen+:} false; then :
11365 $as_echo_n "(cached) " >&6
11367 ac_check_lib_save_LIBS=$LIBS
11369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11370 /* end confdefs.h. */
11372 /* Override any GCC internal prototype to avoid an error.
11373 Use char because int might match the return type of a GCC
11374 builtin and then its argument prototype would still apply. */
11387 if ac_fn_c_try_link "$LINENO"; then :
11388 ac_cv_lib_dl_dlopen=yes
11390 ac_cv_lib_dl_dlopen=no
11392 rm -f core conftest.err conftest.$ac_objext \
11393 conftest$ac_exeext conftest.$ac_ext
11394 LIBS=$ac_check_lib_save_LIBS
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11397 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11398 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11399 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11402 lt_cv_dlopen="dyld"
11404 lt_cv_dlopen_self=yes
11411 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11412 if test "x$ac_cv_func_shl_load" = xyes; then :
11413 lt_cv_dlopen="shl_load"
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11416 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11417 if ${ac_cv_lib_dld_shl_load+:} false; then :
11418 $as_echo_n "(cached) " >&6
11420 ac_check_lib_save_LIBS=$LIBS
11422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11423 /* end confdefs.h. */
11425 /* Override any GCC internal prototype to avoid an error.
11426 Use char because int might match the return type of a GCC
11427 builtin and then its argument prototype would still apply. */
11435 return shl_load ();
11440 if ac_fn_c_try_link "$LINENO"; then :
11441 ac_cv_lib_dld_shl_load=yes
11443 ac_cv_lib_dld_shl_load=no
11445 rm -f core conftest.err conftest.$ac_objext \
11446 conftest$ac_exeext conftest.$ac_ext
11447 LIBS=$ac_check_lib_save_LIBS
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11450 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11451 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11452 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11454 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11455 if test "x$ac_cv_func_dlopen" = xyes; then :
11456 lt_cv_dlopen="dlopen"
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11459 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11460 if ${ac_cv_lib_dl_dlopen+:} false; then :
11461 $as_echo_n "(cached) " >&6
11463 ac_check_lib_save_LIBS=$LIBS
11465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11466 /* end confdefs.h. */
11468 /* Override any GCC internal prototype to avoid an error.
11469 Use char because int might match the return type of a GCC
11470 builtin and then its argument prototype would still apply. */
11483 if ac_fn_c_try_link "$LINENO"; then :
11484 ac_cv_lib_dl_dlopen=yes
11486 ac_cv_lib_dl_dlopen=no
11488 rm -f core conftest.err conftest.$ac_objext \
11489 conftest$ac_exeext conftest.$ac_ext
11490 LIBS=$ac_check_lib_save_LIBS
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11493 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11494 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11495 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11498 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11499 if ${ac_cv_lib_svld_dlopen+:} false; then :
11500 $as_echo_n "(cached) " >&6
11502 ac_check_lib_save_LIBS=$LIBS
11503 LIBS="-lsvld $LIBS"
11504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11505 /* end confdefs.h. */
11507 /* Override any GCC internal prototype to avoid an error.
11508 Use char because int might match the return type of a GCC
11509 builtin and then its argument prototype would still apply. */
11522 if ac_fn_c_try_link "$LINENO"; then :
11523 ac_cv_lib_svld_dlopen=yes
11525 ac_cv_lib_svld_dlopen=no
11527 rm -f core conftest.err conftest.$ac_objext \
11528 conftest$ac_exeext conftest.$ac_ext
11529 LIBS=$ac_check_lib_save_LIBS
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11532 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11533 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11534 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11537 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11538 if ${ac_cv_lib_dld_dld_link+:} false; then :
11539 $as_echo_n "(cached) " >&6
11541 ac_check_lib_save_LIBS=$LIBS
11543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11544 /* end confdefs.h. */
11546 /* Override any GCC internal prototype to avoid an error.
11547 Use char because int might match the return type of a GCC
11548 builtin and then its argument prototype would still apply. */
11556 return dld_link ();
11561 if ac_fn_c_try_link "$LINENO"; then :
11562 ac_cv_lib_dld_dld_link=yes
11564 ac_cv_lib_dld_dld_link=no
11566 rm -f core conftest.err conftest.$ac_objext \
11567 conftest$ac_exeext conftest.$ac_ext
11568 LIBS=$ac_check_lib_save_LIBS
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11571 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11572 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11573 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11594 if test "x$lt_cv_dlopen" != xno; then
11600 case $lt_cv_dlopen in
11602 save_CPPFLAGS="$CPPFLAGS"
11603 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11605 save_LDFLAGS="$LDFLAGS"
11606 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11609 LIBS="$lt_cv_dlopen_libs $LIBS"
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11612 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11613 if ${lt_cv_dlopen_self+:} false; then :
11614 $as_echo_n "(cached) " >&6
11616 if test "$cross_compiling" = yes; then :
11617 lt_cv_dlopen_self=cross
11619 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11620 lt_status=$lt_dlunknown
11621 cat > conftest.$ac_ext <<_LT_EOF
11622 #line 11622 "configure"
11623 #include "confdefs.h"
11632 # define LT_DLGLOBAL RTLD_GLOBAL
11635 # define LT_DLGLOBAL DL_GLOBAL
11637 # define LT_DLGLOBAL 0
11641 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11642 find out it does not work in some platform. */
11643 #ifndef LT_DLLAZY_OR_NOW
11645 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11648 # define LT_DLLAZY_OR_NOW DL_LAZY
11651 # define LT_DLLAZY_OR_NOW RTLD_NOW
11654 # define LT_DLLAZY_OR_NOW DL_NOW
11656 # define LT_DLLAZY_OR_NOW 0
11663 /* When -fvisbility=hidden is used, assume the code has been annotated
11664 correspondingly for the symbols needed. */
11665 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11666 void fnord () __attribute__((visibility("default")));
11669 void fnord () { int i=42; }
11672 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11673 int status = $lt_dlunknown;
11677 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11680 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11681 else puts (dlerror ());
11683 /* dlclose (self); */
11691 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11692 (eval $ac_link) 2>&5
11694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11695 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11696 (./conftest; exit; ) >&5 2>/dev/null
11698 case x$lt_status in
11699 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11700 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11701 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11704 # compilation failed
11705 lt_cv_dlopen_self=no
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11713 $as_echo "$lt_cv_dlopen_self" >&6; }
11715 if test "x$lt_cv_dlopen_self" = xyes; then
11716 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11718 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11719 if ${lt_cv_dlopen_self_static+:} false; then :
11720 $as_echo_n "(cached) " >&6
11722 if test "$cross_compiling" = yes; then :
11723 lt_cv_dlopen_self_static=cross
11725 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11726 lt_status=$lt_dlunknown
11727 cat > conftest.$ac_ext <<_LT_EOF
11728 #line 11728 "configure"
11729 #include "confdefs.h"
11738 # define LT_DLGLOBAL RTLD_GLOBAL
11741 # define LT_DLGLOBAL DL_GLOBAL
11743 # define LT_DLGLOBAL 0
11747 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11748 find out it does not work in some platform. */
11749 #ifndef LT_DLLAZY_OR_NOW
11751 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11754 # define LT_DLLAZY_OR_NOW DL_LAZY
11757 # define LT_DLLAZY_OR_NOW RTLD_NOW
11760 # define LT_DLLAZY_OR_NOW DL_NOW
11762 # define LT_DLLAZY_OR_NOW 0
11769 /* When -fvisbility=hidden is used, assume the code has been annotated
11770 correspondingly for the symbols needed. */
11771 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11772 void fnord () __attribute__((visibility("default")));
11775 void fnord () { int i=42; }
11778 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11779 int status = $lt_dlunknown;
11783 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11786 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11787 else puts (dlerror ());
11789 /* dlclose (self); */
11797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11798 (eval $ac_link) 2>&5
11800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11801 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11802 (./conftest; exit; ) >&5 2>/dev/null
11804 case x$lt_status in
11805 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11806 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11807 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11810 # compilation failed
11811 lt_cv_dlopen_self_static=no
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11819 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11822 CPPFLAGS="$save_CPPFLAGS"
11823 LDFLAGS="$save_LDFLAGS"
11828 case $lt_cv_dlopen_self in
11829 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11830 *) enable_dlopen_self=unknown ;;
11833 case $lt_cv_dlopen_self_static in
11834 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11835 *) enable_dlopen_self_static=unknown ;;
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11858 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11859 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11860 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11861 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11863 $as_echo "yes" >&6; }
11865 # FIXME - insert some real tests, host_os isn't really good enough
11868 if test -n "$STRIP" ; then
11869 striplib="$STRIP -x"
11870 old_striplib="$STRIP -S"
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11872 $as_echo "yes" >&6; }
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11875 $as_echo "no" >&6; }
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11880 $as_echo "no" >&6; }
11896 # Report which library types will actually be built
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11898 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11900 $as_echo "$can_build_shared" >&6; }
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11903 $as_echo_n "checking whether to build shared libraries... " >&6; }
11904 test "$can_build_shared" = "no" && enable_shared=no
11906 # On AIX, shared libraries and static libraries use the same namespace, and
11907 # are all built from PIC.
11910 test "$enable_shared" = yes && enable_static=no
11911 if test -n "$RANLIB"; then
11912 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11913 postinstall_cmds='$RANLIB $lib'
11918 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11919 test "$enable_shared" = yes && enable_static=no
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11924 $as_echo "$enable_shared" >&6; }
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11927 $as_echo_n "checking whether to build static libraries... " >&6; }
11928 # Make sure either enable_shared or enable_static is yes.
11929 test "$enable_shared" = yes || enable_static=yes
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11931 $as_echo "$enable_static" >&6; }
11938 ac_cpp='$CPP $CPPFLAGS'
11939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11957 ac_config_commands="$ac_config_commands libtool"
11962 # Only expand once:
11968 gdc_save_DFLAGS=$GDCFLAGS
11969 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
11972 # Source file extension for D test sources.
11975 # Object file extension for compiled D test sources.
11979 # Code to be used in simple compile tests
11980 lt_simple_compile_test_code="module mod; extern(C) int main() { return 0; }"
11982 # Code to be used in simple link tests
11983 lt_simple_link_test_code='module mod; extern(C) int main() { return 0; }'
11985 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11992 # If no C compiler was specified, use CC.
11995 # If no C compiler flags were specified, use CFLAGS.
11996 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11998 # Allow CC to be a program name with arguments.
12002 # save warnings/boilerplate of simple test code
12003 ac_outfile=conftest.$ac_objext
12004 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12005 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12006 _lt_compiler_boilerplate=`cat conftest.err`
12009 ac_outfile=conftest.$ac_objext
12010 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12011 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12012 _lt_linker_boilerplate=`cat conftest.err`
12016 # Allow CC to be a program name with arguments.
12018 lt_save_CFLAGS=$CFLAGS
12019 lt_save_DFLAGS=$GDCFLAGS
12023 # Need to specify location for object.d
12024 GDCFLAGS="-nophoboslib $GDCFLAGS"
12029 for cc_temp in $compiler""; do
12031 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12032 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12037 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12040 # GDC did not exist at the time GCC didn't implicitly link libc in.
12041 archive_cmds_need_lc_D=no
12043 old_archive_cmds_D=$old_archive_cmds
12044 reload_flag_D=$reload_flag
12045 reload_cmds_D=$reload_cmds
12048 ## There is no encapsulation within the following macros, do not change
12049 ## the running order or otherwise move them around unless you know exactly
12050 ## what you are doing...
12051 if test -n "$compiler"; then
12053 lt_prog_compiler_no_builtin_flag_D=
12055 if test "$GCC" = yes; then
12056 case $cc_basename in
12058 lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
12060 lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12064 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12065 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12066 $as_echo_n "(cached) " >&6
12068 lt_cv_prog_compiler_rtti_exceptions=no
12069 ac_outfile=conftest.$ac_objext
12070 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12071 lt_compiler_flag="-fno-rtti -fno-exceptions"
12072 # Insert the option either (1) after the last *FLAGS variable, or
12073 # (2) before a word containing "conftest.", or (3) at the end.
12074 # Note that $ac_compile itself does not contain backslashes and begins
12075 # with a dollar sign (not a hyphen), so the echo should work correctly.
12076 # The option is referenced via a variable to avoid confusing sed.
12077 lt_compile=`echo "$ac_compile" | $SED \
12078 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12079 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12080 -e 's:$: $lt_compiler_flag:'`
12081 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12082 (eval "$lt_compile" 2>conftest.err)
12084 cat conftest.err >&5
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 if (exit $ac_status) && test -s "$ac_outfile"; then
12087 # The compiler can only warn and ignore the option if not recognized
12088 # So say no if there are warnings other than the usual output.
12089 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12090 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12091 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12092 lt_cv_prog_compiler_rtti_exceptions=yes
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12099 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12101 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12102 lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12111 lt_prog_compiler_wl_D=
12112 lt_prog_compiler_pic_D=
12113 lt_prog_compiler_static_D=
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12116 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12118 if test "$GCC" = yes; then
12119 lt_prog_compiler_wl_D='-Wl,'
12120 lt_prog_compiler_static_D='-static'
12124 # All AIX code is PIC.
12125 if test "$host_cpu" = ia64; then
12126 # AIX 5 now supports IA64 processor
12127 lt_prog_compiler_static_D='-Bstatic'
12129 lt_prog_compiler_pic_D='-fPIC'
12135 # see comment about AmigaOS4 .so support
12136 lt_prog_compiler_pic_D='-fPIC'
12139 # FIXME: we need at least 68020 code to build shared libraries, but
12140 # adding the `-m68020' flag to GCC prevents building anything better,
12142 lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12147 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12148 # PIC is the default for these OSes.
12151 mingw* | cygwin* | pw32* | os2* | cegcc*)
12152 # This hack is so that the source file can tell whether it is being
12153 # built for inclusion in a dll (and should export symbols for example).
12154 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12155 # (--disable-auto-import) libraries
12156 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12159 darwin* | rhapsody*)
12160 # PIC is the default on this platform
12161 # Common symbols not allowed in MH_DYLIB files
12162 lt_prog_compiler_pic_D='-fno-common'
12166 # PIC is the default for Haiku.
12167 # The "-static" flag exists, but is broken.
12168 lt_prog_compiler_static_D=
12172 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12173 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12174 # sets the default TLS model and affects inlining.
12180 lt_prog_compiler_pic_D='-fPIC'
12186 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12187 # Instead, we relocate shared libraries at runtime.
12191 # Just because we use GCC doesn't mean we suddenly get shared libraries
12192 # on systems that don't support them.
12193 lt_prog_compiler_can_build_shared_D=no
12198 # QNX uses GNU C++, but need to define -shared option too, otherwise
12199 # it will coredump.
12200 lt_prog_compiler_pic_D='-fPIC -shared'
12204 if test -d /usr/nec; then
12205 lt_prog_compiler_pic_D=-Kconform_pic
12210 lt_prog_compiler_pic_D='-fPIC'
12214 case $cc_basename in
12215 nvcc*) # Cuda Compiler Driver 2.2
12216 lt_prog_compiler_wl_D='-Xlinker '
12217 lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12221 # PORTME Check for flag to pass linker flags through the system compiler.
12224 lt_prog_compiler_wl_D='-Wl,'
12225 if test "$host_cpu" = ia64; then
12226 # AIX 5 now supports IA64 processor
12227 lt_prog_compiler_static_D='-Bstatic'
12229 lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12233 mingw* | cygwin* | pw32* | os2* | cegcc*)
12234 # This hack is so that the source file can tell whether it is being
12235 # built for inclusion in a dll (and should export symbols for example).
12236 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12239 hpux9* | hpux10* | hpux11*)
12240 lt_prog_compiler_wl_D='-Wl,'
12241 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12242 # not for PA HP-UX.
12248 lt_prog_compiler_pic_D='+Z'
12251 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12252 lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12255 irix5* | irix6* | nonstopux*)
12256 lt_prog_compiler_wl_D='-Wl,'
12257 # PIC (with -KPIC) is the default.
12258 lt_prog_compiler_static_D='-non_shared'
12261 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12262 case $cc_basename in
12263 # old Intel for x86_64 which still supported -KPIC.
12265 lt_prog_compiler_wl_D='-Wl,'
12266 lt_prog_compiler_pic_D='-KPIC'
12267 lt_prog_compiler_static_D='-static'
12269 # icc used to be incompatible with GCC.
12270 # ICC 10 doesn't accept -KPIC any more.
12272 lt_prog_compiler_wl_D='-Wl,'
12273 lt_prog_compiler_pic_D='-fPIC'
12274 lt_prog_compiler_static_D='-static'
12276 # Lahey Fortran 8.1.
12278 lt_prog_compiler_wl_D='-Wl,'
12279 lt_prog_compiler_pic_D='--shared'
12280 lt_prog_compiler_static_D='--static'
12282 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12283 # Portland Group compilers (*not* the Pentium gcc compiler,
12284 # which looks to be a dead project)
12285 lt_prog_compiler_wl_D='-Wl,'
12286 lt_prog_compiler_pic_D='-fpic'
12287 lt_prog_compiler_static_D='-Bstatic'
12290 lt_prog_compiler_wl_D='-Wl,'
12291 # All Alpha code is PIC.
12292 lt_prog_compiler_static_D='-non_shared'
12294 xl* | bgxl* | bgf* | mpixl*)
12295 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12296 lt_prog_compiler_wl_D='-Wl,'
12297 lt_prog_compiler_pic_D='-qpic'
12298 lt_prog_compiler_static_D='-qstaticlink'
12301 case `$CC -V 2>&1 | sed 5q` in
12302 *Sun\ F* | *Sun*Fortran*)
12303 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12304 lt_prog_compiler_pic_D='-KPIC'
12305 lt_prog_compiler_static_D='-Bstatic'
12306 lt_prog_compiler_wl_D=''
12310 lt_prog_compiler_pic_D='-KPIC'
12311 lt_prog_compiler_static_D='-Bstatic'
12312 lt_prog_compiler_wl_D='-Wl,'
12320 lt_prog_compiler_pic_D='-KPIC'
12321 lt_prog_compiler_static_D='-Bstatic'
12325 # QNX uses GNU C++, but need to define -shared option too, otherwise
12326 # it will coredump.
12327 lt_prog_compiler_pic_D='-fPIC -shared'
12330 osf3* | osf4* | osf5*)
12331 lt_prog_compiler_wl_D='-Wl,'
12332 # All OSF/1 code is PIC.
12333 lt_prog_compiler_static_D='-non_shared'
12337 lt_prog_compiler_static_D='-non_shared'
12341 lt_prog_compiler_pic_D='-KPIC'
12342 lt_prog_compiler_static_D='-Bstatic'
12343 case $cc_basename in
12344 f77* | f90* | f95*)
12345 lt_prog_compiler_wl_D='-Qoption ld ';;
12347 lt_prog_compiler_wl_D='-Wl,';;
12352 lt_prog_compiler_wl_D='-Qoption ld '
12353 lt_prog_compiler_pic_D='-PIC'
12354 lt_prog_compiler_static_D='-Bstatic'
12357 sysv4 | sysv4.2uw2* | sysv4.3*)
12358 lt_prog_compiler_wl_D='-Wl,'
12359 lt_prog_compiler_pic_D='-KPIC'
12360 lt_prog_compiler_static_D='-Bstatic'
12364 if test -d /usr/nec ;then
12365 lt_prog_compiler_pic_D='-Kconform_pic'
12366 lt_prog_compiler_static_D='-Bstatic'
12370 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12371 lt_prog_compiler_wl_D='-Wl,'
12372 lt_prog_compiler_pic_D='-KPIC'
12373 lt_prog_compiler_static_D='-Bstatic'
12377 lt_prog_compiler_wl_D='-Wl,'
12378 lt_prog_compiler_can_build_shared_D=no
12382 lt_prog_compiler_pic_D='-pic'
12383 lt_prog_compiler_static_D='-Bstatic'
12387 lt_prog_compiler_can_build_shared_D=no
12393 # For platforms which do not support PIC, -DPIC is meaningless:
12395 lt_prog_compiler_pic_D=
12398 lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12402 $as_echo "$lt_prog_compiler_pic_D" >&6; }
12407 # Check to make sure the PIC flag actually works.
12409 if test -n "$lt_prog_compiler_pic_D"; then
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12411 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
12412 if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
12413 $as_echo_n "(cached) " >&6
12415 lt_cv_prog_compiler_pic_works_D=no
12416 ac_outfile=conftest.$ac_objext
12417 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12418 lt_compiler_flag="$lt_prog_compiler_pic_D"
12419 # Insert the option either (1) after the last *FLAGS variable, or
12420 # (2) before a word containing "conftest.", or (3) at the end.
12421 # Note that $ac_compile itself does not contain backslashes and begins
12422 # with a dollar sign (not a hyphen), so the echo should work correctly.
12423 # The option is referenced via a variable to avoid confusing sed.
12424 lt_compile=`echo "$ac_compile" | $SED \
12425 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12426 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12427 -e 's:$: $lt_compiler_flag:'`
12428 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12429 (eval "$lt_compile" 2>conftest.err)
12431 cat conftest.err >&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 if (exit $ac_status) && test -s "$ac_outfile"; then
12434 # The compiler can only warn and ignore the option if not recognized
12435 # So say no if there are warnings other than the usual output.
12436 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12437 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12438 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12439 lt_cv_prog_compiler_pic_works_D=yes
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12446 $as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12448 if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12449 case $lt_prog_compiler_pic_D in
12451 *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12454 lt_prog_compiler_pic_D=
12455 lt_prog_compiler_can_build_shared_D=no
12463 # Check to make sure the static flag actually works.
12465 wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12467 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12468 if ${lt_cv_prog_compiler_static_works_D+:} false; then :
12469 $as_echo_n "(cached) " >&6
12471 lt_cv_prog_compiler_static_works_D=no
12472 save_LDFLAGS="$LDFLAGS"
12473 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12474 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12475 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12476 # The linker can only warn and ignore the option if not recognized
12477 # So say no if there are warnings
12478 if test -s conftest.err; then
12479 # Append any errors to the config.log.
12480 cat conftest.err 1>&5
12481 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12482 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12483 if diff conftest.exp conftest.er2 >/dev/null; then
12484 lt_cv_prog_compiler_static_works_D=yes
12487 lt_cv_prog_compiler_static_works_D=yes
12491 LDFLAGS="$save_LDFLAGS"
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12495 $as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12497 if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12500 lt_prog_compiler_static_D=
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12507 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12508 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12509 $as_echo_n "(cached) " >&6
12511 lt_cv_prog_compiler_c_o_D=no
12512 $RM -r conftest 2>/dev/null
12516 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12518 lt_compiler_flag="-o out/conftest2.$ac_objext"
12519 # Insert the option either (1) after the last *FLAGS variable, or
12520 # (2) before a word containing "conftest.", or (3) at the end.
12521 # Note that $ac_compile itself does not contain backslashes and begins
12522 # with a dollar sign (not a hyphen), so the echo should work correctly.
12523 lt_compile=`echo "$ac_compile" | $SED \
12524 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12525 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12526 -e 's:$: $lt_compiler_flag:'`
12527 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12528 (eval "$lt_compile" 2>out/conftest.err)
12530 cat out/conftest.err >&5
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12534 # The compiler can only warn and ignore the option if not recognized
12535 # So say no if there are warnings
12536 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12537 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12538 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12539 lt_cv_prog_compiler_c_o_D=yes
12544 # SGI C++ compiler will create directory out/ii_files/ for
12545 # template instantiation
12546 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12547 $RM out/* && rmdir out
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12554 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12559 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12560 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12561 $as_echo_n "(cached) " >&6
12563 lt_cv_prog_compiler_c_o_D=no
12564 $RM -r conftest 2>/dev/null
12568 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12570 lt_compiler_flag="-o out/conftest2.$ac_objext"
12571 # Insert the option either (1) after the last *FLAGS variable, or
12572 # (2) before a word containing "conftest.", or (3) at the end.
12573 # Note that $ac_compile itself does not contain backslashes and begins
12574 # with a dollar sign (not a hyphen), so the echo should work correctly.
12575 lt_compile=`echo "$ac_compile" | $SED \
12576 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12577 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12578 -e 's:$: $lt_compiler_flag:'`
12579 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12580 (eval "$lt_compile" 2>out/conftest.err)
12582 cat out/conftest.err >&5
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12586 # The compiler can only warn and ignore the option if not recognized
12587 # So say no if there are warnings
12588 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12589 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12590 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12591 lt_cv_prog_compiler_c_o_D=yes
12596 # SGI C++ compiler will create directory out/ii_files/ for
12597 # template instantiation
12598 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12599 $RM out/* && rmdir out
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12606 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12611 hard_links="nottested"
12612 if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12613 # do not overwrite the value of need_locks provided by the user
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12615 $as_echo_n "checking if we can lock with hard links... " >&6; }
12618 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12620 ln conftest.a conftest.b 2>&5 || hard_links=no
12621 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12623 $as_echo "$hard_links" >&6; }
12624 if test "$hard_links" = no; then
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12626 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12636 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12639 allow_undefined_flag_D=
12640 always_export_symbols_D=no
12642 archive_expsym_cmds_D=
12643 compiler_needs_object_D=no
12644 enable_shared_with_static_runtimes_D=no
12645 export_dynamic_flag_spec_D=
12646 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12647 hardcode_automatic_D=no
12648 hardcode_direct_D=no
12649 hardcode_direct_absolute_D=no
12650 hardcode_libdir_flag_spec_D=
12651 hardcode_libdir_flag_spec_ld_D=
12652 hardcode_libdir_separator_D=
12653 hardcode_minus_L_D=no
12654 hardcode_shlibpath_var_D=unsupported
12656 link_all_deplibs_D=unknown
12658 module_expsym_cmds_D=
12659 old_archive_from_new_cmds_D=
12660 old_archive_from_expsyms_cmds_D=
12661 thread_safe_flag_spec_D=
12662 whole_archive_flag_spec_D=
12663 # include_expsyms should be a list of space-separated symbols to be *always*
12664 # included in the symbol list
12666 # exclude_expsyms can be an extended regexp of symbols to exclude
12667 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12668 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12669 # as well as any symbol that contains `d'.
12670 exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12671 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12672 # platforms (ab)use it in PIC code, but their linkers get confused if
12673 # the symbol is explicitly referenced. Since portable code cannot
12674 # rely on this symbol name, it's probably fine to never include it in
12675 # preloaded symbol tables.
12676 # Exclude shared library initialization/finalization symbols.
12677 extract_expsyms_cmds=
12680 cygwin* | mingw* | pw32* | cegcc*)
12681 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12682 # When not using gcc, we currently assume that we are using
12683 # Microsoft Visual C++.
12684 if test "$GCC" != yes; then
12689 # we just hope/assume this is gcc and not c89 (= MSVC++)
12699 # On some targets, GNU ld is compatible enough with the native linker
12700 # that we're better off using the native interface for both.
12701 lt_use_gnu_ld_interface=no
12702 if test "$with_gnu_ld" = yes; then
12705 # The AIX port of GNU ld has always aspired to compatibility
12706 # with the native linker. However, as the warning in the GNU ld
12707 # block says, versions before 2.19.5* couldn't really create working
12708 # shared libraries, regardless of the interface used.
12709 case `$LD -v 2>&1` in
12710 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12711 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12712 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12714 lt_use_gnu_ld_interface=yes
12719 lt_use_gnu_ld_interface=yes
12724 if test "$lt_use_gnu_ld_interface" = yes; then
12725 # If archive_cmds runs LD, not CC, wlarc should be empty
12728 # Set some defaults for GNU ld with shared library support. These
12729 # are reset later if shared libraries are not supported. Putting them
12730 # here allows them to be overridden if necessary.
12731 runpath_var=LD_RUN_PATH
12732 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12733 export_dynamic_flag_spec_D='${wl}--export-dynamic'
12734 # ancient GNU ld didn't support --whole-archive et. al.
12735 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12736 whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12738 whole_archive_flag_spec_D=
12740 supports_anon_versioning=no
12741 case `$LD -v 2>&1` in
12742 *GNU\ gold*) supports_anon_versioning=yes ;;
12743 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12744 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12745 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12746 *\ 2.11.*) ;; # other 2.11 versions
12747 *) supports_anon_versioning=yes ;;
12750 # See if GNU ld supports shared libraries.
12753 # On AIX/PPC, the GNU linker is very broken
12754 if test "$host_cpu" != ia64; then
12758 *** Warning: the GNU linker, at least up to release 2.19, is reported
12759 *** to be unable to reliably create shared libraries on AIX.
12760 *** Therefore, libtool is disabling shared libraries support. If you
12761 *** really care for shared libraries, you may want to install binutils
12762 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12763 *** You will then need to restart the configuration process.
12772 # see comment about AmigaOS4 .so support
12773 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12774 archive_expsym_cmds_D=''
12777 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)'
12778 hardcode_libdir_flag_spec_D='-L$libdir'
12779 hardcode_minus_L_D=yes
12785 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12786 allow_undefined_flag_D=unsupported
12787 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12788 # support --undefined. This deserves some investigation. FIXME
12789 archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12795 cygwin* | mingw* | pw32* | cegcc*)
12796 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12797 # as there is no search path for DLLs.
12798 hardcode_libdir_flag_spec_D='-L$libdir'
12799 export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12800 allow_undefined_flag_D=unsupported
12801 always_export_symbols_D=no
12802 enable_shared_with_static_runtimes_D=yes
12803 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12805 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12806 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12807 # If the export-symbols file already is a .def file (1st line
12808 # is EXPORTS), use it as is; otherwise, prepend...
12809 archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12810 cp $export_symbols $output_objdir/$soname.def;
12812 echo EXPORTS > $output_objdir/$soname.def;
12813 cat $export_symbols >> $output_objdir/$soname.def;
12815 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12822 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12823 link_all_deplibs_D=yes
12827 hardcode_direct_D=no
12828 hardcode_shlibpath_var_D=no
12829 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12830 export_dynamic_flag_spec_D='${wl}-E'
12831 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12832 # Instead, shared libraries are loaded at an image base (0x10000000 by
12833 # default) and relocated if they conflict, which is a slow very memory
12834 # consuming and fragmenting process. To avoid this, we pick a random,
12835 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12836 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12837 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'
12838 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'
12841 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12843 if test "$host_os" = linux-dietlibc; then
12844 case $cc_basename in
12845 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12848 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12849 && test "$tmp_diet" = no
12851 tmp_addflag=' $pic_flag'
12852 tmp_sharedflag='-shared'
12853 case $cc_basename,$host_cpu in
12854 pgcc*) # Portland Group C compiler
12855 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'
12856 tmp_addflag=' $pic_flag'
12858 pgf77* | pgf90* | pgf95* | pgfortran*)
12859 # Portland Group f77 and f90 compilers
12860 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'
12861 tmp_addflag=' $pic_flag -Mnomain' ;;
12862 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12863 tmp_addflag=' -i_dynamic' ;;
12864 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12865 tmp_addflag=' -i_dynamic -nofor_main' ;;
12866 ifc* | ifort*) # Intel Fortran compiler
12867 tmp_addflag=' -nofor_main' ;;
12868 lf95*) # Lahey Fortran 8.1
12869 whole_archive_flag_spec_D=
12870 tmp_sharedflag='--shared' ;;
12871 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12872 tmp_sharedflag='-qmkshrobj'
12874 nvcc*) # Cuda Compiler Driver 2.2
12875 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'
12876 compiler_needs_object_D=yes
12879 case `$CC -V 2>&1 | sed 5q` in
12880 *Sun\ C*) # Sun C 5.9
12881 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'
12882 compiler_needs_object_D=yes
12883 tmp_sharedflag='-G' ;;
12884 *Sun\ F*) # Sun Fortran 8.3
12885 tmp_sharedflag='-G' ;;
12887 archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12889 if test "x$supports_anon_versioning" = xyes; then
12890 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12891 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12892 echo "local: *; };" >> $output_objdir/$libname.ver~
12893 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12896 case $cc_basename in
12897 xlf* | bgf* | bgxlf* | mpixlf*)
12898 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12899 whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
12900 hardcode_libdir_flag_spec_D=
12901 hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
12902 archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12903 if test "x$supports_anon_versioning" = xyes; then
12904 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12905 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12906 echo "local: *; };" >> $output_objdir/$libname.ver~
12907 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12917 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12918 archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12921 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12922 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12927 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12931 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12932 *** create shared libraries on Solaris systems. Therefore, libtool
12933 *** is disabling shared libraries support. We urge you to upgrade GNU
12934 *** binutils to release 2.9.1 or newer. Another option is to modify
12935 *** your PATH or compiler configuration so that the native linker is
12936 *** used, and then restart.
12939 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12940 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12941 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12947 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12948 case `$LD -v 2>&1` in
12949 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12953 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12954 *** reliably create shared libraries on SCO systems. Therefore, libtool
12955 *** is disabling shared libraries support. We urge you to upgrade GNU
12956 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12957 *** your PATH or compiler configuration so that the native linker is
12958 *** used, and then restart.
12963 # For security reasons, it is highly recommended that you always
12964 # use absolute paths for naming shared libraries, and exclude the
12965 # DT_RUNPATH tag from executables and libraries. But doing so
12966 # requires that you compile everything twice, which is a pain.
12967 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12968 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12969 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12970 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12979 archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12981 hardcode_direct_D=yes
12982 hardcode_shlibpath_var_D=no
12986 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12987 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12988 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12995 if test "$ld_shlibs_D" = no; then
12997 hardcode_libdir_flag_spec_D=
12998 export_dynamic_flag_spec_D=
12999 whole_archive_flag_spec_D=
13002 # PORTME fill in a description of your system's linker (not GNU ld)
13005 allow_undefined_flag_D=unsupported
13006 always_export_symbols_D=yes
13007 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'
13008 # Note: this linker hardcodes the directories in LIBPATH if there
13009 # are no directories specified by -L.
13010 hardcode_minus_L_D=yes
13011 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13012 # Neither direct hardcoding nor static linking is supported with a
13014 hardcode_direct_D=unsupported
13019 if test "$host_cpu" = ia64; then
13020 # On IA64, the linker does run time linking by default, so we don't
13021 # have to do anything special.
13022 aix_use_runtimelinking=no
13023 exp_sym_flag='-Bexport'
13026 # If we're using GNU nm, then we don't want the "-C" option.
13027 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13028 # Also, AIX nm treats weak defined symbols like other global
13029 # defined symbols, whereas GNU nm marks them as "W".
13030 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13031 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'
13033 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'
13035 aix_use_runtimelinking=no
13037 # Test if we are trying to use run time linking or normal
13038 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13039 # need to do runtime linking.
13040 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13041 for ld_flag in $LDFLAGS; do
13042 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13043 aix_use_runtimelinking=yes
13050 exp_sym_flag='-bexport'
13051 no_entry_flag='-bnoentry'
13054 # When large executables or shared objects are built, AIX ld can
13055 # have problems creating the table of contents. If linking a library
13056 # or program results in "error TOC overflow" add -mminimal-toc to
13057 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13058 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13061 hardcode_direct_D=yes
13062 hardcode_direct_absolute_D=yes
13063 hardcode_libdir_separator_D=':'
13064 link_all_deplibs_D=yes
13065 file_list_spec_D='${wl}-f,'
13067 if test "$GCC" = yes; then
13068 case $host_os in aix4.[012]|aix4.[012].*)
13069 # We only want to do this on AIX 4.2 and lower, the check
13070 # below for broken collect2 doesn't work under 4.3+
13071 collect2name=`${CC} -print-prog-name=collect2`
13072 if test -f "$collect2name" &&
13073 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13075 # We have reworked collect2
13078 # We have old collect2
13079 hardcode_direct_D=unsupported
13080 # It fails to find uninstalled libraries when the uninstalled
13081 # path is not listed in the libpath. Setting hardcode_minus_L
13082 # to unsupported forces relinking
13083 hardcode_minus_L_D=yes
13084 hardcode_libdir_flag_spec_D='-L$libdir'
13085 hardcode_libdir_separator_D=
13089 shared_flag='-shared'
13090 if test "$aix_use_runtimelinking" = yes; then
13091 shared_flag="$shared_flag "'${wl}-G'
13095 if test "$host_cpu" = ia64; then
13096 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13097 # chokes on -Wl,-G. The following line is correct:
13100 if test "$aix_use_runtimelinking" = yes; then
13101 shared_flag='${wl}-G'
13103 shared_flag='${wl}-bM:SRE'
13108 export_dynamic_flag_spec_D='${wl}-bexpall'
13109 # It seems that -bexpall does not export symbols beginning with
13110 # underscore (_), so it is better to generate a list of symbols to export.
13111 always_export_symbols_D=yes
13112 if test "$aix_use_runtimelinking" = yes; then
13113 # Warning - without using the other runtime loading flags (-brtl),
13114 # -berok will link without error, but may produce a broken library.
13115 allow_undefined_flag_D='-berok'
13116 # Determine the default libpath from the value encoded in an
13117 # empty executable.
13118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13119 /* end confdefs.h. */
13129 if ac_fn_c_try_link "$LINENO"; then :
13131 lt_aix_libpath_sed='
13132 /Import File Strings/,/^$/ {
13138 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13139 # Check for a 64-bit object if we didn't find anything.
13140 if test -z "$aix_libpath"; then
13141 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13144 rm -f core conftest.err conftest.$ac_objext \
13145 conftest$ac_exeext conftest.$ac_ext
13146 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13148 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13149 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"
13151 if test "$host_cpu" = ia64; then
13152 hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13153 allow_undefined_flag_D="-z nodefs"
13154 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"
13156 # Determine the default libpath from the value encoded in an
13157 # empty executable.
13158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13159 /* end confdefs.h. */
13169 if ac_fn_c_try_link "$LINENO"; then :
13171 lt_aix_libpath_sed='
13172 /Import File Strings/,/^$/ {
13178 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13179 # Check for a 64-bit object if we didn't find anything.
13180 if test -z "$aix_libpath"; then
13181 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13184 rm -f core conftest.err conftest.$ac_objext \
13185 conftest$ac_exeext conftest.$ac_ext
13186 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13188 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13189 # Warning - without using the other run time loading flags,
13190 # -berok will link without error, but may produce a broken library.
13191 no_undefined_flag_D=' ${wl}-bernotok'
13192 allow_undefined_flag_D=' ${wl}-berok'
13193 if test "$with_gnu_ld" = yes; then
13194 # We only use this code for GNU lds that support --whole-archive.
13195 whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13197 # Exported symbols can be pulled into shared objects from archives
13198 whole_archive_flag_spec_D='$convenience'
13200 archive_cmds_need_lc_D=yes
13201 # This is similar to how AIX traditionally builds its shared libraries.
13202 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'
13210 # see comment about AmigaOS4 .so support
13211 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13212 archive_expsym_cmds_D=''
13215 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)'
13216 hardcode_libdir_flag_spec_D='-L$libdir'
13217 hardcode_minus_L_D=yes
13223 export_dynamic_flag_spec_D=-rdynamic
13226 cygwin* | mingw* | pw32* | cegcc*)
13227 # When not using gcc, we currently assume that we are using
13228 # Microsoft Visual C++.
13229 # hardcode_libdir_flag_spec is actually meaningless, as there is
13230 # no search path for DLLs.
13231 hardcode_libdir_flag_spec_D=' '
13232 allow_undefined_flag_D=unsupported
13233 # Tell ltmain to make .lib files, not .a files.
13235 # Tell ltmain to make .dll files, not .so files.
13237 # FIXME: Setting linknames here is a bad hack.
13238 archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13239 # The linker will automatically build a .lib file if we build a DLL.
13240 old_archive_from_new_cmds_D='true'
13241 # FIXME: Should let the user specify the lib program.
13242 old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13243 fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13244 enable_shared_with_static_runtimes_D=yes
13247 darwin* | rhapsody*)
13250 archive_cmds_need_lc_D=no
13251 hardcode_direct_D=no
13252 hardcode_automatic_D=yes
13253 hardcode_shlibpath_var_D=unsupported
13254 if test "$lt_cv_ld_force_load" = "yes"; then
13255 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\"`'
13257 whole_archive_flag_spec_D=''
13259 link_all_deplibs_D=yes
13260 allow_undefined_flag_D="$_lt_dar_allow_undefined"
13261 case $cc_basename in
13262 ifort*) _lt_dar_can_shared=yes ;;
13263 *) _lt_dar_can_shared=$GCC ;;
13265 if test "$_lt_dar_can_shared" = "yes"; then
13266 output_verbose_link_cmd=func_echo_all
13267 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}"
13268 module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13269 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}"
13270 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}"
13279 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13280 hardcode_libdir_flag_spec_D='-L$libdir'
13281 hardcode_shlibpath_var_D=no
13284 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13285 # support. Future versions do this automatically, but an explicit c++rt0.o
13286 # does not break anything, and helps significantly (at the cost of a little
13289 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13290 hardcode_libdir_flag_spec_D='-R$libdir'
13291 hardcode_direct_D=yes
13292 hardcode_shlibpath_var_D=no
13295 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13297 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13298 hardcode_direct_D=yes
13299 hardcode_minus_L_D=yes
13300 hardcode_shlibpath_var_D=no
13303 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13304 freebsd* | dragonfly*)
13305 archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13306 hardcode_libdir_flag_spec_D='-R$libdir'
13307 hardcode_direct_D=yes
13308 hardcode_shlibpath_var_D=no
13312 if test "$GCC" = yes; then
13313 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'
13315 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'
13317 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13318 hardcode_libdir_separator_D=:
13319 hardcode_direct_D=yes
13321 # hardcode_minus_L: Not really in the search PATH,
13322 # but as the default location of the library.
13323 hardcode_minus_L_D=yes
13324 export_dynamic_flag_spec_D='${wl}-E'
13328 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13329 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13331 archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13333 if test "$with_gnu_ld" = no; then
13334 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13335 hardcode_libdir_flag_spec_ld_D='+b $libdir'
13336 hardcode_libdir_separator_D=:
13337 hardcode_direct_D=yes
13338 hardcode_direct_absolute_D=yes
13339 export_dynamic_flag_spec_D='${wl}-E'
13340 # hardcode_minus_L: Not really in the search PATH,
13341 # but as the default location of the library.
13342 hardcode_minus_L_D=yes
13347 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13350 archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13353 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13356 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13362 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13365 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13368 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13372 if test "$with_gnu_ld" = no; then
13373 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13374 hardcode_libdir_separator_D=:
13378 hardcode_direct_D=no
13379 hardcode_shlibpath_var_D=no
13382 hardcode_direct_D=yes
13383 hardcode_direct_absolute_D=yes
13384 export_dynamic_flag_spec_D='${wl}-E'
13386 # hardcode_minus_L: Not really in the search PATH,
13387 # but as the default location of the library.
13388 hardcode_minus_L_D=yes
13394 irix5* | irix6* | nonstopux*)
13395 if test "$GCC" = yes; then
13396 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'
13397 # Try to use the -exported_symbol ld option, if it does not
13398 # work, assume that -exports_file does not work either and
13399 # implicitly export all symbols.
13400 save_LDFLAGS="$LDFLAGS"
13401 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13403 /* end confdefs.h. */
13406 if ac_fn_c_try_link "$LINENO"; then :
13407 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'
13410 rm -f core conftest.err conftest.$ac_objext \
13411 conftest$ac_exeext conftest.$ac_ext
13412 LDFLAGS="$save_LDFLAGS"
13414 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'
13415 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'
13417 archive_cmds_need_lc_D='no'
13418 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13419 hardcode_libdir_separator_D=:
13420 inherit_rpath_D=yes
13421 link_all_deplibs_D=yes
13425 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13426 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13428 archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13430 hardcode_libdir_flag_spec_D='-R$libdir'
13431 hardcode_direct_D=yes
13432 hardcode_shlibpath_var_D=no
13436 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13437 hardcode_direct_D=yes
13438 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13439 hardcode_libdir_separator_D=:
13440 hardcode_shlibpath_var_D=no
13447 if test -f /usr/libexec/ld.so; then
13448 hardcode_direct_D=yes
13449 hardcode_shlibpath_var_D=no
13450 hardcode_direct_absolute_D=yes
13451 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13452 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13453 archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13454 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13455 export_dynamic_flag_spec_D='${wl}-E'
13458 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13459 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13460 hardcode_libdir_flag_spec_D='-R$libdir'
13463 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13464 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13474 hardcode_libdir_flag_spec_D='-L$libdir'
13475 hardcode_minus_L_D=yes
13476 allow_undefined_flag_D=unsupported
13477 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'
13478 old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13482 if test "$GCC" = yes; then
13483 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13484 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'
13486 allow_undefined_flag_D=' -expect_unresolved \*'
13487 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'
13489 archive_cmds_need_lc_D='no'
13490 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13491 hardcode_libdir_separator_D=:
13494 osf4* | osf5*) # as osf3* with the addition of -msym flag
13495 if test "$GCC" = yes; then
13496 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13497 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'
13498 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13500 allow_undefined_flag_D=' -expect_unresolved \*'
13501 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'
13502 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~
13503 $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'
13505 # Both c and cxx compiler support -rpath directly
13506 hardcode_libdir_flag_spec_D='-rpath $libdir'
13508 archive_cmds_need_lc_D='no'
13509 hardcode_libdir_separator_D=:
13513 no_undefined_flag_D=' -z defs'
13514 if test "$GCC" = yes; then
13516 archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13517 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13518 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13520 case `$CC -V 2>&1` in
13523 archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13524 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13525 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13529 archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13530 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13531 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13535 hardcode_libdir_flag_spec_D='-R$libdir'
13536 hardcode_shlibpath_var_D=no
13538 solaris2.[0-5] | solaris2.[0-5].*) ;;
13540 # The compiler driver will combine and reorder linker options,
13541 # but understands `-z linker_flag'. GCC discards it without `$wl',
13542 # but is careful enough not to reorder.
13543 # Supported since Solaris 2.6 (maybe 2.5.1?)
13544 if test "$GCC" = yes; then
13545 whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13547 whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13551 link_all_deplibs_D=yes
13555 if test "x$host_vendor" = xsequent; then
13556 # Use $CC to link under sequent, because it throws in some extra .o
13557 # files that make .init and .fini sections work.
13558 archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13560 archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13562 hardcode_libdir_flag_spec_D='-L$libdir'
13563 hardcode_direct_D=yes
13564 hardcode_minus_L_D=yes
13565 hardcode_shlibpath_var_D=no
13569 case $host_vendor in
13571 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13572 hardcode_direct_D=yes # is this really true???
13575 ## LD is ld it makes a PLAMLIB
13576 ## CC just makes a GrossModule.
13577 archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13578 reload_cmds_D='$CC -r -o $output$reload_objs'
13579 hardcode_direct_D=no
13582 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13583 hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13586 runpath_var='LD_RUN_PATH'
13587 hardcode_shlibpath_var_D=no
13591 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13592 hardcode_shlibpath_var_D=no
13593 export_dynamic_flag_spec_D='-Bexport'
13597 if test -d /usr/nec; then
13598 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13599 hardcode_shlibpath_var_D=no
13600 runpath_var=LD_RUN_PATH
13601 hardcode_runpath_var=yes
13606 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13607 no_undefined_flag_D='${wl}-z,text'
13608 archive_cmds_need_lc_D=no
13609 hardcode_shlibpath_var_D=no
13610 runpath_var='LD_RUN_PATH'
13612 if test "$GCC" = yes; then
13613 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13614 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13616 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13617 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13621 sysv5* | sco3.2v5* | sco5v6*)
13622 # Note: We can NOT use -z defs as we might desire, because we do not
13623 # link with -lc, and that would cause any symbols used from libc to
13624 # always be unresolved, which means just about no library would
13625 # ever link correctly. If we're not using GNU ld we use -z text
13626 # though, which does catch some bad symbols but isn't as heavy-handed
13628 no_undefined_flag_D='${wl}-z,text'
13629 allow_undefined_flag_D='${wl}-z,nodefs'
13630 archive_cmds_need_lc_D=no
13631 hardcode_shlibpath_var_D=no
13632 hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13633 hardcode_libdir_separator_D=':'
13634 link_all_deplibs_D=yes
13635 export_dynamic_flag_spec_D='${wl}-Bexport'
13636 runpath_var='LD_RUN_PATH'
13638 if test "$GCC" = yes; then
13639 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13640 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13642 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13643 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13648 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13649 hardcode_libdir_flag_spec_D='-L$libdir'
13650 hardcode_shlibpath_var_D=no
13658 if test x$host_vendor = xsni; then
13660 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13661 export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13668 $as_echo "$ld_shlibs_D" >&6; }
13669 test "$ld_shlibs_D" = no && can_build_shared=no
13671 with_gnu_ld_D=$with_gnu_ld
13679 # Do we need to explicitly link libc?
13681 case "x$archive_cmds_need_lc_D" in
13683 # Assume -lc should be added
13684 archive_cmds_need_lc_D=yes
13686 if test "$enable_shared" = yes && test "$GCC" = yes; then
13687 case $archive_cmds_D in
13689 # FIXME: we may have to deal with multi-command sequences.
13692 # Test whether the compiler implicitly links with -lc since on some
13693 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13694 # to ld, don't add -lc before -lgcc.
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13696 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13697 if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
13698 $as_echo_n "(cached) " >&6
13701 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13704 (eval $ac_compile) 2>&5
13706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13707 test $ac_status = 0; } 2>conftest.err; then
13710 libobjs=conftest.$ac_objext
13712 wl=$lt_prog_compiler_wl_D
13713 pic_flag=$lt_prog_compiler_pic_D
13719 lt_save_allow_undefined_flag=$allow_undefined_flag_D
13720 allow_undefined_flag_D=
13721 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13722 (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13725 test $ac_status = 0; }
13727 lt_cv_archive_cmds_need_lc_D=no
13729 lt_cv_archive_cmds_need_lc_D=yes
13731 allow_undefined_flag_D=$lt_save_allow_undefined_flag
13733 cat conftest.err 1>&5
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13739 $as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13740 archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13811 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13813 if test -n "$hardcode_libdir_flag_spec_D" ||
13814 test -n "$runpath_var_D" ||
13815 test "X$hardcode_automatic_D" = "Xyes" ; then
13817 # We can hardcode non-existent directories.
13818 if test "$hardcode_direct_D" != no &&
13819 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13820 # have to relink, otherwise we might link with an installed library
13821 # when we should be linking with a yet-to-be-installed one
13822 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13823 test "$hardcode_minus_L_D" != no; then
13824 # Linking always hardcodes the temporary library directory.
13825 hardcode_action_D=relink
13827 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13828 hardcode_action_D=immediate
13831 # We cannot hardcode anything, or else we can only hardcode existing
13833 hardcode_action_D=unsupported
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13836 $as_echo "$hardcode_action_D" >&6; }
13838 if test "$hardcode_action_D" = relink ||
13839 test "$inherit_rpath_D" = yes; then
13840 # Fast installation is not supported
13841 enable_fast_install=no
13842 elif test "$shlibpath_overrides_runpath" = yes ||
13843 test "$enable_shared" = no; then
13844 # Fast installation is not necessary
13845 enable_fast_install=needless
13857 ac_cpp='$CPP $CPPFLAGS'
13858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13865 CFLAGS=$lt_save_CFLAGS
13866 GDCFLAGS=$lt_save_DFLAGS
13868 GDCFLAGS=$gdc_save_DFLAGS
13871 # libtool variables for Phobos shared and position-independent compiles.
13873 # Use phobos_compiler_shared_flag to designate the compile-time flags for
13874 # creating shared objects. Default: -fversion=Shared.
13876 # Use phobos_compiler_pic_flag to designate the compile-time flags for
13877 # creating position-independent objects. This varies with the target
13878 # hardware and operating system, but is often: -fPIC.
13880 # The distinction between pic and shared compilation flags is not present in
13881 # libtool, and so we make it here. How it is handled is that in shared
13882 # compilations the `lt_prog_compiler_pic_D' variable is used to instead
13883 # ensure that conditional compilation of shared runtime code is compiled in.
13884 # The original PIC flags are then used in the compilation of every object.
13886 # Why are objects destined for libgphobos.a compiled with -fPIC?
13887 # Because -fPIC is not harmful to use for objects destined for static
13888 # libraries. In addition, using -fPIC will allow the use of static
13889 # libgphobos.a in the creation of other D shared libraries.
13890 if test "$enable_shared" = yes; then
13891 phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
13892 phobos_compiler_shared_flag="-fversion=Shared"
13894 phobos_compiler_pic_flag=
13895 phobos_compiler_shared_flag=
13900 # Override the libtool's pic_flag and pic_mode.
13901 # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
13902 # NB: this impacts --with-pic and --without-pic.
13903 lt_prog_compiler_pic_D="$phobos_compiler_shared_flag"
13906 # Determine what GCC version number to use in filesystem paths.
13908 get_gcc_base_ver="cat"
13910 # Check whether --with-gcc-major-version-only was given.
13911 if test "${with_gcc_major_version_only+set}" = set; then :
13912 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13913 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13921 # libphobos/libdruntime specific options and feature detection
13923 # These need to be absolute paths, yet at the same time need to
13924 # canonicalize only relative paths, because then amd will not unmount
13925 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
13926 libphobos_builddir=`${PWDCMD-pwd}`
13928 \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
13929 *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
13935 if test ${multilib} = yes; then
13936 multilib_arg="--enable-multilib"
13942 # Check whether --enable-werror was given.
13943 if test "${enable_werror+set}" = set; then :
13944 enableval=$enable_werror;
13948 if test "x$enable_werror" = "xyes"; then
13949 WERROR_FLAG="-Werror"
13953 # Check whether --enable-druntime-gc was given.
13954 if test "${enable_druntime_gc+set}" = set; then :
13955 enableval=$enable_druntime_gc; enable_druntime_gc=no
13957 enable_druntime_gc=yes
13961 if test "$enable_druntime_gc" = "yes"; then
13962 DRUNTIME_GC_ENABLE_TRUE=
13963 DRUNTIME_GC_ENABLE_FALSE='#'
13965 DRUNTIME_GC_ENABLE_TRUE='#'
13966 DRUNTIME_GC_ENABLE_FALSE=
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
13972 $as_echo_n "checking for target OS... " >&6; }
13973 if ${druntime_cv_target_os+:} false; then :
13974 $as_echo_n "(cached) " >&6
13976 druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
13979 $as_echo "$druntime_cv_target_os" >&6; }
13980 if test -z "$druntime_cv_target_os"; then :
13981 as_fn_error $? "can't detect target OS" "$LINENO" 5
13986 # Check whether --enable-unix was given.
13987 if test "${enable_unix+set}" = set; then :
13988 enableval=$enable_unix; :
13994 case "$druntime_cv_target_os" in
13995 aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*) d_have_unix=1 ;;
13997 if test -n "$d_have_unix" && test "$enable_unix" = auto ; then
14000 if test "$enable_unix" = "yes"; then
14001 DRUNTIME_OS_UNIX_TRUE=
14002 DRUNTIME_OS_UNIX_FALSE='#'
14004 DRUNTIME_OS_UNIX_TRUE='#'
14005 DRUNTIME_OS_UNIX_FALSE=
14012 druntime_target_os_parsed=""
14013 case "$druntime_cv_target_os" in
14014 aix*) druntime_target_os_parsed="aix"
14017 druntime_target_os_parsed="android"
14019 darwin*) druntime_target_os_parsed="darwin"
14022 druntime_target_os_parsed="dragonflybsd"
14024 freebsd*|k*bsd*-gnu)
14025 druntime_target_os_parsed="freebsd"
14028 druntime_target_os_parsed="openbsd"
14031 druntime_target_os_parsed="netbsd"
14033 linux*) druntime_target_os_parsed="linux"
14035 mingw*) druntime_target_os_parsed="mingw"
14037 *solaris*) druntime_target_os_parsed="solaris"
14039 if test "$druntime_target_os_parsed" = "aix"; then
14040 DRUNTIME_OS_AIX_TRUE=
14041 DRUNTIME_OS_AIX_FALSE='#'
14043 DRUNTIME_OS_AIX_TRUE='#'
14044 DRUNTIME_OS_AIX_FALSE=
14047 if test "$druntime_target_os_parsed" = "android"; then
14048 DRUNTIME_OS_ANDROID_TRUE=
14049 DRUNTIME_OS_ANDROID_FALSE='#'
14051 DRUNTIME_OS_ANDROID_TRUE='#'
14052 DRUNTIME_OS_ANDROID_FALSE=
14055 if test "$druntime_target_os_parsed" = "darwin"; then
14056 DRUNTIME_OS_DARWIN_TRUE=
14057 DRUNTIME_OS_DARWIN_FALSE='#'
14059 DRUNTIME_OS_DARWIN_TRUE='#'
14060 DRUNTIME_OS_DARWIN_FALSE=
14063 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14064 DRUNTIME_OS_DRAGONFLYBSD_TRUE=
14065 DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
14067 DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
14068 DRUNTIME_OS_DRAGONFLYBSD_FALSE=
14071 if test "$druntime_target_os_parsed" = "freebsd"; then
14072 DRUNTIME_OS_FREEBSD_TRUE=
14073 DRUNTIME_OS_FREEBSD_FALSE='#'
14075 DRUNTIME_OS_FREEBSD_TRUE='#'
14076 DRUNTIME_OS_FREEBSD_FALSE=
14079 if test "$druntime_target_os_parsed" = "netbsd"; then
14080 DRUNTIME_OS_NETBSD_TRUE=
14081 DRUNTIME_OS_NETBSD_FALSE='#'
14083 DRUNTIME_OS_NETBSD_TRUE='#'
14084 DRUNTIME_OS_NETBSD_FALSE=
14087 if test "$druntime_target_os_parsed" = "openbsd"; then
14088 DRUNTIME_OS_OPENBSD_TRUE=
14089 DRUNTIME_OS_OPENBSD_FALSE='#'
14091 DRUNTIME_OS_OPENBSD_TRUE='#'
14092 DRUNTIME_OS_OPENBSD_FALSE=
14095 if test "$druntime_target_os_parsed" = "linux"; then
14096 DRUNTIME_OS_LINUX_TRUE=
14097 DRUNTIME_OS_LINUX_FALSE='#'
14099 DRUNTIME_OS_LINUX_TRUE='#'
14100 DRUNTIME_OS_LINUX_FALSE=
14103 if test "$druntime_target_os_parsed" = "mingw"; then
14104 DRUNTIME_OS_MINGW_TRUE=
14105 DRUNTIME_OS_MINGW_FALSE='#'
14107 DRUNTIME_OS_MINGW_TRUE='#'
14108 DRUNTIME_OS_MINGW_FALSE=
14111 if test "$druntime_target_os_parsed" = "solaris"; then
14112 DRUNTIME_OS_SOLARIS_TRUE=
14113 DRUNTIME_OS_SOLARIS_FALSE='#'
14115 DRUNTIME_OS_SOLARIS_TRUE='#'
14116 DRUNTIME_OS_SOLARIS_FALSE=
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14123 $as_echo_n "checking for thread model used by GDC... " >&6; }
14124 d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14126 $as_echo "$d_thread_model" >&6; }
14128 # Map from thread model to thread interface.
14130 case $d_thread_model in
14131 aix) DCFG_THREAD_MODEL="Posix" ;;
14132 lynx) DCFG_THREAD_MODEL="Posix" ;;
14133 posix) DCFG_THREAD_MODEL="Posix" ;;
14134 single) DCFG_THREAD_MODEL="Single" ;;
14135 win32) DCFG_THREAD_MODEL="Win32" ;;
14136 # TODO: These targets need porting.
14137 dce|mipssde|rtems|tpf|vxworks)
14138 DCFG_THREAD_MODEL="Single" ;;
14139 *) as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14146 ac_cpp='$CPP $CPPFLAGS'
14147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14152 $as_echo_n "checking for ARM unwinder... " >&6; }
14153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14154 /* end confdefs.h. */
14155 #include <unwind.h>
14160 #if __ARM_EABI_UNWINDER__
14168 if ac_fn_c_try_compile "$LINENO"; then :
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14170 $as_echo "no" >&6; }
14171 DCFG_ARM_EABI_UNWINDER=false
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14174 $as_echo "yes" >&6; }
14175 DCFG_ARM_EABI_UNWINDER=true
14177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14179 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14180 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14181 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14183 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14184 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14188 ac_cpp='$CPP $CPPFLAGS'
14189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14196 ac_cpp='$CPP $CPPFLAGS'
14197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14202 $as_echo_n "checking for minfo section bracketing... " >&6; }
14203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14204 /* end confdefs.h. */
14206 void* module_info_ptr __attribute__((section ("minfo")));
14207 extern void* __start_minfo __attribute__((visibility ("hidden")));
14208 extern void* __stop_minfo __attribute__((visibility ("hidden")));
14212 // Never run, just to prevent compiler from optimizing access
14213 return &__start_minfo == &__stop_minfo;
14217 if ac_fn_c_try_link "$LINENO"; then :
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14219 $as_echo "yes" >&6; }
14220 DCFG_MINFO_BRACKETING=true
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14223 $as_echo "no" >&6; }
14224 DCFG_MINFO_BRACKETING=false
14226 rm -f core conftest.err conftest.$ac_objext \
14227 conftest$ac_exeext conftest.$ac_ext
14229 if test "$DCFG_MINFO_BRACKETING" = "true"; then
14230 DRUNTIME_OS_MINFO_BRACKETING_TRUE=
14231 DRUNTIME_OS_MINFO_BRACKETING_FALSE='#'
14233 DRUNTIME_OS_MINFO_BRACKETING_TRUE='#'
14234 DRUNTIME_OS_MINFO_BRACKETING_FALSE=
14238 ac_cpp='$CPP $CPPFLAGS'
14239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14246 ac_cpp='$CPP $CPPFLAGS'
14247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14251 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>
14253 if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes; then :
14254 DCFG_DLPI_TLS_MODID=true
14256 DCFG_DLPI_TLS_MODID=false
14261 ac_cpp='$CPP $CPPFLAGS'
14262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14269 i?86-*-solaris2.* | x86_64-*-solaris2.*)
14270 # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14271 # relocs. Work around by disabling TLS transitions. Not necessary
14272 # on 32-bit x86, but cannot be distinguished reliably in specs.
14273 druntime_ld_prog=`$CC -print-prog-name=ld`
14274 if test -n "$druntime_ld_prog" \
14275 && $druntime_ld_prog -v 2>&1 | grep GNU > /dev/null 2>&1; then
14278 OS_LINK_SPEC='-z relax=transtls'
14286 ac_cpp='$CPP $CPPFLAGS'
14287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14291 DCFG_HAVE_QSORT_R=false
14292 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14293 if test "x$ac_cv_func_qsort_r" = xyes; then :
14294 DCFG_HAVE_QSORT_R=true
14299 ac_cpp='$CPP $CPPFLAGS'
14300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14308 gdc_save_DFLAGS=$GDCFLAGS
14309 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14312 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14313 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14314 ac_compiler_gnu=yes
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14317 $as_echo_n "checking for library containing malloc... " >&6; }
14318 if ${ac_cv_search_malloc+:} false; then :
14319 $as_echo_n "(cached) " >&6
14321 ac_func_search_save_LIBS=$LIBS
14322 cat > conftest.$ac_ext <<_ACEOF
14324 extern(C) int malloc();
14326 extern(C) int main() {
14327 malloc(); return 0;
14330 for ac_lib in '' c; do
14331 if test -z "$ac_lib"; then
14332 ac_res="none required"
14335 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14337 if ac_fn_d_try_link "$LINENO"; then :
14338 ac_cv_search_malloc=$ac_res
14340 rm -f core conftest.err conftest.$ac_objext \
14342 if ${ac_cv_search_malloc+:} false; then :
14346 if ${ac_cv_search_malloc+:} false; then :
14349 ac_cv_search_malloc=no
14351 rm conftest.$ac_ext
14352 LIBS=$ac_func_search_save_LIBS
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14355 $as_echo "$ac_cv_search_malloc" >&6; }
14356 ac_res=$ac_cv_search_malloc
14357 if test "$ac_res" != no; then :
14358 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14363 enable_thread_lib=yes
14364 # Check whether --enable-thread-lib was given.
14365 if test "${enable_thread_lib+set}" = set; then :
14366 enableval=$enable_thread_lib;
14370 if test "x$enable_thread_lib" = "xyes"; then :
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14373 $as_echo_n "checking for library containing pthread_create... " >&6; }
14374 if ${ac_cv_search_pthread_create+:} 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 pthread_create();
14382 extern(C) int main() {
14383 pthread_create(); return 0;
14386 for ac_lib in '' pthread; 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_pthread_create=$ac_res
14396 rm -f core conftest.err conftest.$ac_objext \
14398 if ${ac_cv_search_pthread_create+:} false; then :
14402 if ${ac_cv_search_pthread_create+:} false; then :
14405 ac_cv_search_pthread_create=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_pthread_create" >&5
14411 $as_echo "$ac_cv_search_pthread_create" >&6; }
14412 ac_res=$ac_cv_search_pthread_create
14413 if test "$ac_res" != no; then :
14414 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14421 if test "x$enable_thread_lib" = "xno"; then :
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread library" >&5
14424 $as_echo_n "checking for thread library... " >&6; }
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14426 $as_echo "disabled" >&6; }
14430 as_ac_Lib=`$as_echo "ac_cv_lib_$enable_thread_lib''_pthread_create" | $as_tr_sh`
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -l$enable_thread_lib" >&5
14432 $as_echo_n "checking for pthread_create in -l$enable_thread_lib... " >&6; }
14433 if eval \${$as_ac_Lib+:} false; then :
14434 $as_echo_n "(cached) " >&6
14436 ac_check_lib_save_LIBS=$LIBS
14437 LIBS="-l$enable_thread_lib $LIBS"
14438 cat > conftest.$ac_ext <<_ACEOF
14440 extern(C) int pthread_create();
14442 extern(C) int main() {
14443 pthread_create(); return 0;
14446 if ac_fn_d_try_link "$LINENO"; then :
14447 eval "$as_ac_Lib=yes"
14449 eval "$as_ac_Lib=no"
14451 rm -f core conftest.err conftest.$ac_objext \
14452 conftest$ac_exeext conftest.$ac_ext
14453 LIBS=$ac_check_lib_save_LIBS
14455 eval ac_res=\$$as_ac_Lib
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14457 $as_echo "$ac_res" >&6; }
14458 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
14459 cat >>confdefs.h <<_ACEOF
14460 #define `$as_echo "HAVE_LIB$enable_thread_lib" | $as_tr_cpp` 1
14463 LIBS="-l$enable_thread_lib $LIBS"
14467 as_fn_error $? "Thread library not found" "$LINENO" 5
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14477 $as_echo_n "checking for library containing cosf... " >&6; }
14478 if ${ac_cv_search_cosf+:} false; then :
14479 $as_echo_n "(cached) " >&6
14481 ac_func_search_save_LIBS=$LIBS
14482 cat > conftest.$ac_ext <<_ACEOF
14484 extern(C) int cosf();
14486 extern(C) int main() {
14490 for ac_lib in '' m; do
14491 if test -z "$ac_lib"; then
14492 ac_res="none required"
14495 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14497 if ac_fn_d_try_link "$LINENO"; then :
14498 ac_cv_search_cosf=$ac_res
14500 rm -f core conftest.err conftest.$ac_objext \
14502 if ${ac_cv_search_cosf+:} false; then :
14506 if ${ac_cv_search_cosf+:} false; then :
14509 ac_cv_search_cosf=no
14511 rm conftest.$ac_ext
14512 LIBS=$ac_func_search_save_LIBS
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14515 $as_echo "$ac_cv_search_cosf" >&6; }
14516 ac_res=$ac_cv_search_cosf
14517 if test "$ac_res" != no; then :
14518 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14523 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14524 if ${ac_cv_search_clock_gettime+:} false; then :
14525 $as_echo_n "(cached) " >&6
14527 ac_func_search_save_LIBS=$LIBS
14528 cat > conftest.$ac_ext <<_ACEOF
14530 extern(C) int clock_gettime();
14532 extern(C) int main() {
14533 clock_gettime(); return 0;
14536 for ac_lib in '' rt; do
14537 if test -z "$ac_lib"; then
14538 ac_res="none required"
14541 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14543 if ac_fn_d_try_link "$LINENO"; then :
14544 ac_cv_search_clock_gettime=$ac_res
14546 rm -f core conftest.err conftest.$ac_objext \
14548 if ${ac_cv_search_clock_gettime+:} false; then :
14552 if ${ac_cv_search_clock_gettime+:} false; then :
14555 ac_cv_search_clock_gettime=no
14557 rm conftest.$ac_ext
14558 LIBS=$ac_func_search_save_LIBS
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14561 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14562 ac_res=$ac_cv_search_clock_gettime
14563 if test "$ac_res" != no; then :
14564 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14569 # This checks to see if the host supports the compiler-generated builtins
14570 # for atomic operations for various integral sizes. Note, this is intended
14571 # to be an all-or-nothing switch, so all the atomic operations that are
14572 # used should be checked.
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14574 $as_echo_n "checking for atomic builtins for byte... " >&6; }
14575 if ${druntime_cv_atomic_byte+:} false; then :
14576 $as_echo_n "(cached) " >&6
14579 cat > conftest.$ac_ext <<_ACEOF
14581 import gcc.builtins;
14583 extern(C) int main() {
14587 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14588 __atomic_load_1(&c1, 5);
14589 __atomic_store_1(&c1, c2, 5);
14594 if ac_fn_d_try_link "$LINENO"; then :
14595 druntime_cv_atomic_byte=yes
14597 druntime_cv_atomic_byte=no
14599 rm -f core conftest.err conftest.$ac_objext \
14600 conftest$ac_exeext conftest.$ac_ext
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14605 $as_echo "$druntime_cv_atomic_byte" >&6; }
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14608 $as_echo_n "checking for atomic builtins for short... " >&6; }
14609 if ${druntime_cv_atomic_short+:} false; then :
14610 $as_echo_n "(cached) " >&6
14613 cat > conftest.$ac_ext <<_ACEOF
14615 import gcc.builtins;
14617 extern(C) int main() {
14621 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14622 __atomic_load_2(&c1, 5);
14623 __atomic_store_2(&c1, c2, 5);
14628 if ac_fn_d_try_link "$LINENO"; then :
14629 druntime_cv_atomic_short=yes
14631 druntime_cv_atomic_short=no
14633 rm -f core conftest.err conftest.$ac_objext \
14634 conftest$ac_exeext conftest.$ac_ext
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14639 $as_echo "$druntime_cv_atomic_short" >&6; }
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14642 $as_echo_n "checking for atomic builtins for int... " >&6; }
14643 if ${druntime_cv_atomic_int+:} false; then :
14644 $as_echo_n "(cached) " >&6
14647 cat > conftest.$ac_ext <<_ACEOF
14649 import gcc.builtins;
14651 extern(C) int main() {
14655 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14656 __atomic_load_4(&c1, 5);
14657 __atomic_store_4(&c1, c2, 5);
14662 if ac_fn_d_try_link "$LINENO"; then :
14663 druntime_cv_atomic_int=yes
14665 druntime_cv_atomic_int=no
14667 rm -f core conftest.err conftest.$ac_objext \
14668 conftest$ac_exeext conftest.$ac_ext
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14673 $as_echo "$druntime_cv_atomic_int" >&6; }
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14676 $as_echo_n "checking for atomic builtins for long... " >&6; }
14677 if ${druntime_cv_atomic_long+:} false; then :
14678 $as_echo_n "(cached) " >&6
14681 cat > conftest.$ac_ext <<_ACEOF
14683 import gcc.builtins;
14685 extern(C) int main() {
14689 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14690 __atomic_load_8(&c1, 5);
14691 __atomic_store_8(&c1, c2, 5);
14696 if ac_fn_d_try_link "$LINENO"; then :
14697 druntime_cv_atomic_long=yes
14699 druntime_cv_atomic_long=no
14701 rm -f core conftest.err conftest.$ac_objext \
14702 conftest$ac_exeext conftest.$ac_ext
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14707 $as_echo "$druntime_cv_atomic_long" >&6; }
14709 # Have atomic builtin support if all but the long test above passes.
14710 DCFG_HAVE_ATOMIC_BUILTINS=false
14711 if test "$druntime_cv_atomic_byte" = yes \
14712 && test "$druntime_cv_atomic_short" = yes \
14713 && test "$druntime_cv_atomic_int" = yes; then \
14714 DCFG_HAVE_ATOMIC_BUILTINS=true
14717 # Have 64-bit atomic support if the long test above passes.
14718 DCFG_HAVE_64BIT_ATOMICS=false
14719 if test "$druntime_cv_atomic_long" = yes; then
14720 DCFG_HAVE_64BIT_ATOMICS=true
14727 ac_cpp='$CPP $CPPFLAGS'
14728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14733 GDCFLAGS=$gdc_save_DFLAGS
14738 # Check whether --with-libatomic was given.
14739 if test "${with_libatomic+set}" = set; then :
14740 withval=$with_libatomic;
14744 DCFG_HAVE_LIBATOMIC=false
14746 if test "x$with_libatomic" != "xno"; then :
14748 DCFG_HAVE_LIBATOMIC=true
14749 LIBATOMIC=../../libatomic/libatomic_convenience.la
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14754 $as_echo_n "checking for libatomic... " >&6; }
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14756 $as_echo "disabled" >&6; }
14765 ac_cpp='$CPP $CPPFLAGS'
14766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14770 BACKTRACE_SUPPORTED=false
14771 BACKTRACE_USES_MALLOC=false
14772 BACKTRACE_SUPPORTS_THREADS=false
14776 # Check whether --with-libbacktrace was given.
14777 if test "${with_libbacktrace+set}" = set; then :
14778 withval=$with_libbacktrace;
14782 if test "x$with_libbacktrace" != "xno"; then :
14784 LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14786 gdc_save_CPPFLAGS=$CPPFLAGS
14787 CPPFLAGS+=" -I../libbacktrace "
14789 ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
14790 if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
14791 have_libbacktrace_h=true
14793 have_libbacktrace_h=false
14798 if $have_libbacktrace_h; then
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14800 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14802 /* end confdefs.h. */
14804 #include <backtrace-supported.h>
14805 #if BACKTRACE_SUPPORTED
14806 FOUND_LIBBACKTRACE_RESULT_GDC
14810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14811 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14812 BACKTRACE_SUPPORTED=true
14814 BACKTRACE_SUPPORTED=false
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14819 $as_echo "$BACKTRACE_SUPPORTED" >&6; }
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14822 $as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14824 /* end confdefs.h. */
14826 #include <backtrace-supported.h>
14827 #if BACKTRACE_USES_MALLOC
14828 FOUND_LIBBACKTRACE_RESULT_GDC
14832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14833 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14834 BACKTRACE_USES_MALLOC=true
14836 BACKTRACE_USES_MALLOC=false
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14841 $as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14844 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14846 /* end confdefs.h. */
14848 #include <backtrace-supported.h>
14849 #if BACKTRACE_SUPPORTS_THREADS
14850 FOUND_LIBBACKTRACE_RESULT_GDC
14854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14855 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14856 BACKTRACE_SUPPORTS_THREADS=true
14858 BACKTRACE_SUPPORTS_THREADS=false
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14863 $as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14865 CPPFLAGS=$gdc_save_CPPFLAGS
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14870 $as_echo_n "checking for libbacktrace... " >&6; }
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14872 $as_echo "disabled" >&6; }
14881 ac_cpp='$CPP $CPPFLAGS'
14882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14888 # Libtool has already checked this, so re-use the inferred dlopen lib.
14889 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
14891 LIBS="$LIBS $lt_cv_dlopen_libs"
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14897 $as_echo_n "checking for socket libraries... " >&6; }
14898 if ${druntime_cv_lib_sockets+:} false; then :
14899 $as_echo_n "(cached) " >&6
14901 druntime_cv_lib_sockets=
14902 druntime_check_both=no
14903 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14904 if test "x$ac_cv_func_connect" = xyes; then :
14905 druntime_check_socket=no
14907 druntime_check_socket=yes
14910 if test "$druntime_check_socket" = "yes"; then
14911 unset ac_cv_func_connect
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14913 $as_echo_n "checking for main in -lsocket... " >&6; }
14914 if ${ac_cv_lib_socket_main+:} false; then :
14915 $as_echo_n "(cached) " >&6
14917 ac_check_lib_save_LIBS=$LIBS
14918 LIBS="-lsocket $LIBS"
14919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14920 /* end confdefs.h. */
14931 if ac_fn_c_try_link "$LINENO"; then :
14932 ac_cv_lib_socket_main=yes
14934 ac_cv_lib_socket_main=no
14936 rm -f core conftest.err conftest.$ac_objext \
14937 conftest$ac_exeext conftest.$ac_ext
14938 LIBS=$ac_check_lib_save_LIBS
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14941 $as_echo "$ac_cv_lib_socket_main" >&6; }
14942 if test "x$ac_cv_lib_socket_main" = xyes; then :
14943 druntime_cv_lib_sockets="-lsocket"
14945 druntime_check_both=yes
14949 if test "$druntime_check_both" = "yes"; then
14950 druntime_old_libs=$LIBS
14951 LIBS="$LIBS -lsocket -lnsl"
14952 unset ac_cv_func_accept
14953 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14954 if test "x$ac_cv_func_accept" = xyes; then :
14955 druntime_check_nsl=no
14956 druntime_cv_lib_sockets="-lsocket -lnsl"
14959 unset ac_cv_func_accept
14960 LIBS=$druntime_old_libs
14962 unset ac_cv_func_gethostbyname
14963 druntime_old_libs="$LIBS"
14964 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14965 if test "x$ac_cv_func_gethostbyname" = xyes; then :
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14969 $as_echo_n "checking for main in -lnsl... " >&6; }
14970 if ${ac_cv_lib_nsl_main+:} false; then :
14971 $as_echo_n "(cached) " >&6
14973 ac_check_lib_save_LIBS=$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_nsl_main=yes
14990 ac_cv_lib_nsl_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_nsl_main" >&5
14997 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14998 if test "x$ac_cv_lib_nsl_main" = xyes; then :
14999 druntime_cv_lib_sockets="$druntime_cv_lib_sockets -lnsl"
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_lib_sockets" >&5
15007 $as_echo "$druntime_cv_lib_sockets" >&6; }
15008 LIBS="$LIBS $druntime_cv_lib_sockets"
15012 ac_cpp='$CPP $CPPFLAGS'
15013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15020 # Check whether --with-target-system-zlib was given.
15021 if test "${with_target_system_zlib+set}" = set; then :
15022 withval=$with_target_system_zlib;
15024 with_target_system_zlib=no
15028 case "$with_target_system_zlib" in
15030 *) as_fn_error $? "Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15034 $as_echo_n "checking for system zlib... " >&6; }
15037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15038 /* end confdefs.h. */
15043 gzopen("none", "rb")
15048 if ac_fn_c_try_link "$LINENO"; then :
15050 if test "$cross_compiling" = yes; then :
15051 system_zlib_found=no
15054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15055 /* end confdefs.h. */
15059 gzFile file = gzopen("none", "rb");
15064 if ac_fn_c_try_run "$LINENO"; then :
15065 system_zlib_found=yes
15067 system_zlib_found=no
15069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15070 conftest.$ac_objext conftest.beam conftest.$ac_ext
15075 system_zlib_found=no
15077 rm -f core conftest.err conftest.$ac_objext \
15078 conftest$ac_exeext conftest.$ac_ext
15081 if test x$system_zlib_found = xyes && test x$with_target_system_zlib != xno; then
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15083 $as_echo "found" >&6; }
15085 elif test x$system_zlib_found = xno && test x$with_target_system_zlib = xyes; then
15086 as_fn_error $? "system zlib required but not found" "$LINENO" 5
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15089 $as_echo "just compiled" >&6; }
15090 LIBZ=../../zlib/libz_convenience.la
15095 ac_cpp='$CPP $CPPFLAGS'
15096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15105 $as_echo_n "checking D GCC version... " >&6; }
15106 gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15108 $as_echo "$gcc_version" >&6; }
15112 # Check whether --with-cross-host was given.
15113 if test "${with_cross_host+set}" = set; then :
15114 withval=$with_cross_host;
15118 libphobos_toolexecdir=no
15119 libphobos_toolexeclibdir=no
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15122 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15123 # Check whether --enable-version-specific-runtime-libs was given.
15124 if test "${enable_version_specific_runtime_libs+set}" = set; then :
15125 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
15126 yes) version_specific_libs=yes ;;
15127 no) version_specific_libs=no ;;
15128 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15131 version_specific_libs=no
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15135 $as_echo "$version_specific_libs" >&6; }
15137 # Version-specific runtime libs processing.
15138 if test $version_specific_libs = yes; then
15139 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15140 libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
15142 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15143 # Install a library built with a cross compiler in tooldir, not libdir.
15144 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
15145 libphobos_toolexecdir='${exec_prefix}/${host_alias}'
15146 libphobos_toolexeclibdir='${toolexecdir}/lib'
15148 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15149 libphobos_toolexeclibdir='${libdir}'
15151 multi_os_directory=`$GDC -print-multi-os-directory`
15152 case $multi_os_directory in
15153 .) ;; # Avoid trailing /.
15154 *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15160 # Default case for install directory for D sources files.
15161 gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15165 # Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15166 if test "$DCFG_MINFO_BRACKETING" = "false"; then
15167 DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec
15169 DRTSTUFF_SPEC=/dev/null
15173 # Add dependencies for libgphobos.spec file
15174 SPEC_PHOBOS_DEPS="$LIBS"
15177 # Libdruntime / phobos soname version
15178 libtool_VERSION=76:3:0
15181 # Set default flags (after DRUNTIME_WERROR!)
15182 if test -z "$GDCFLAGS"; then
15183 GDCFLAGS="-Wall $WERROR_FLAG -g -frelease -O2"
15187 if test -z "$GDCFLAGSX"; then
15188 GDCFLAGSX="-Wall $WERROR_FLAG -g -fno-release -funittest"
15192 # Sanity check for the cross-compilation case:
15193 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
15194 if test "x$ac_cv_header_stdio_h" = xyes; then :
15197 as_fn_error $? "cannot find stdio.h." "$LINENO" 5
15202 ac_config_files="$ac_config_files Makefile"
15205 ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15207 ac_config_files="$ac_config_files src/libgphobos.spec"
15209 ac_config_files="$ac_config_files testsuite/testsuite_flags"
15212 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15213 # that multilib installs will end up installed in the correct place.
15214 # The testsuite needs it for multilib-aware ABI baseline files.
15215 # To work around this not being passed down from config-ml.in ->
15216 # srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15217 # append it here. Only modify Makefiles that have just been created.
15219 # Also, get rid of this simulated-VPATH thing that automake does.
15220 ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
15223 cat >confcache <<\_ACEOF
15224 # This file is a shell script that caches the results of configure
15225 # tests run on this system so they can be shared between configure
15226 # scripts and configure runs, see configure's option --config-cache.
15227 # It is not useful on other systems. If it contains results you don't
15228 # want to keep, you may remove or edit it.
15230 # config.status only pays attention to the cache file if you give it
15231 # the --recheck option to rerun configure.
15233 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15234 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15235 # following values.
15239 # The following way of writing the cache mishandles newlines in values,
15240 # but we know of no workaround that is simple, portable, and efficient.
15241 # So, we kill variables containing newlines.
15242 # Ultrix sh set writes to stderr and can't be redirected directly,
15243 # and sets the high bit in the cache file unless we assign to the vars.
15245 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15246 eval ac_val=\$$ac_var
15250 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15251 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15254 _ | IFS | as_nl) ;; #(
15255 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15256 *) { eval $ac_var=; unset $ac_var;} ;;
15262 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15263 *${as_nl}ac_space=\ *)
15264 # `set' does not quote correctly, so add quotes: double-quote
15265 # substitution turns \\\\ into \\, and sed turns \\ into \.
15268 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15271 # `set' quotes correctly as required by POSIX, so do not add quotes.
15272 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15281 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15283 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15285 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15286 if test -w "$cache_file"; then
15287 if test "x$cache_file" != "x/dev/null"; then
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15289 $as_echo "$as_me: updating cache $cache_file" >&6;}
15290 if test ! -f "$cache_file" || test -h "$cache_file"; then
15291 cat confcache >"$cache_file"
15293 case $cache_file in #(
15295 mv -f confcache "$cache_file"$$ &&
15296 mv -f "$cache_file"$$ "$cache_file" ;; #(
15298 mv -f confcache "$cache_file" ;;
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15304 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15309 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15310 # Let make expand exec_prefix.
15311 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15313 DEFS=-DHAVE_CONFIG_H
15318 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15319 # 1. Remove the extension, and $U if already installed.
15320 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15321 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15322 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15323 # will be set to the directory where LIBOBJS objects are built.
15324 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15325 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15327 LIBOBJS=$ac_libobjs
15329 LTLIBOBJS=$ac_ltlibobjs
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15333 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15334 if test -n "$am_sleep_pid"; then
15335 # Hide warnings about reused PIDs.
15336 wait $am_sleep_pid 2>/dev/null
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15339 $as_echo "done" >&6; }
15340 if test -n "$EXEEXT"; then
15342 am__EXEEXT_FALSE='#'
15344 am__EXEEXT_TRUE='#'
15348 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15349 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15352 if test -z "${DRUNTIME_GC_ENABLE_TRUE}" && test -z "${DRUNTIME_GC_ENABLE_FALSE}"; then
15353 as_fn_error $? "conditional \"DRUNTIME_GC_ENABLE\" was never defined.
15354 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15356 if test -z "${DRUNTIME_OS_UNIX_TRUE}" && test -z "${DRUNTIME_OS_UNIX_FALSE}"; then
15357 as_fn_error $? "conditional \"DRUNTIME_OS_UNIX\" was never defined.
15358 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15360 if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
15361 as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
15362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15364 if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
15365 as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
15366 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15368 if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
15369 as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
15370 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15372 if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
15373 as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
15374 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15376 if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
15377 as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
15378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15380 if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
15381 as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
15382 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15384 if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
15385 as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
15386 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15388 if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
15389 as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
15390 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15392 if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
15393 as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
15394 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15396 if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
15397 as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
15398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15400 if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
15401 as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
15402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15404 if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15405 as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15406 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15409 : "${CONFIG_STATUS=./config.status}"
15411 ac_clean_files_save=$ac_clean_files
15412 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15414 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15416 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15418 # Generated by $as_me.
15419 # Run this file to recreate the current configuration.
15420 # Compiler output produced by configure, useful for debugging
15421 # configure, is in config.log if it exists.
15424 ac_cs_recheck=false
15427 SHELL=\${CONFIG_SHELL-$SHELL}
15430 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15431 ## -------------------- ##
15432 ## M4sh Initialization. ##
15433 ## -------------------- ##
15435 # Be more Bourne compatible
15436 DUALCASE=1; export DUALCASE # for MKS sh
15437 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15440 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15441 # is contrary to our usage. Disable this feature.
15442 alias -g '${1+"$@"}'='"$@"'
15443 setopt NO_GLOB_SUBST
15445 case `(set -o) 2>/dev/null` in #(
15457 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15458 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15459 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15460 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15461 # Prefer a ksh shell builtin over an external printf program on Solaris,
15462 # but without wasting forks for bash or zsh.
15463 if test -z "$BASH_VERSION$ZSH_VERSION" \
15464 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15465 as_echo='print -r --'
15466 as_echo_n='print -rn --'
15467 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15468 as_echo='printf %s\n'
15469 as_echo_n='printf %s'
15471 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15472 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15473 as_echo_n='/usr/ucb/echo -n'
15475 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15476 as_echo_n_body='eval
15480 expr "X$arg" : "X\\(.*\\)$as_nl";
15481 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15483 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15485 export as_echo_n_body
15486 as_echo_n='sh -c $as_echo_n_body as_echo'
15488 export as_echo_body
15489 as_echo='sh -c $as_echo_body as_echo'
15492 # The user is always right.
15493 if test "${PATH_SEPARATOR+set}" != set; then
15495 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15496 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15503 # We need space, tab and new line, in precisely that order. Quoting is
15504 # there to prevent editors from complaining about space-tab.
15505 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15506 # splitting by setting IFS to empty value.)
15509 # Find who we are. Look in the path if we contain no directory separator.
15512 *[\\/]* ) as_myself=$0 ;;
15513 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15514 for as_dir in $PATH
15517 test -z "$as_dir" && as_dir=.
15518 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15524 # We did not find ourselves, most probably we were run as `sh COMMAND'
15525 # in which case we are not to be found in the path.
15526 if test "x$as_myself" = x; then
15529 if test ! -f "$as_myself"; then
15530 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15534 # Unset variables that we do not need and which cause bugs (e.g. in
15535 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15536 # suppresses any "Segmentation fault" message there. '((' could
15537 # trigger a bug in pdksh 5.2.14.
15538 for as_var in BASH_ENV ENV MAIL MAILPATH
15539 do eval test x\${$as_var+set} = xset \
15540 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15553 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15556 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15557 # ----------------------------------------
15558 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15559 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15560 # script with STATUS, using 1 if that was 0.
15563 as_status=$1; test $as_status -eq 0 && as_status=1
15565 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15566 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15568 $as_echo "$as_me: error: $2" >&2
15569 as_fn_exit $as_status
15573 # as_fn_set_status STATUS
15574 # -----------------------
15575 # Set $? to STATUS, without forking.
15576 as_fn_set_status ()
15579 } # as_fn_set_status
15581 # as_fn_exit STATUS
15582 # -----------------
15583 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15587 as_fn_set_status $1
15593 # Portably unset VAR.
15596 { eval $1=; unset $1;}
15598 as_unset=as_fn_unset
15599 # as_fn_append VAR VALUE
15600 # ----------------------
15601 # Append the text in VALUE to the end of the definition contained in VAR. Take
15602 # advantage of any shell optimizations that allow amortized linear growth over
15603 # repeated appends, instead of the typical quadratic growth present in naive
15605 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15606 eval 'as_fn_append ()
15617 # as_fn_arith ARG...
15618 # ------------------
15619 # Perform arithmetic evaluation on the ARGs, and store the result in the
15620 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15621 # must be portable across $(()) and expr.
15622 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15623 eval 'as_fn_arith ()
15630 as_val=`expr "$@" || test $? -eq 1`
15635 if expr a : '\(a\)' >/dev/null 2>&1 &&
15636 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15642 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15643 as_basename=basename
15648 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15654 as_me=`$as_basename -- "$0" ||
15655 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15656 X"$0" : 'X\(//\)$' \| \
15657 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15659 sed '/^.*\/\([^/][^/]*\)\/*$/{
15673 # Avoid depending upon Character Ranges.
15674 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15675 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15676 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15677 as_cr_digits='0123456789'
15678 as_cr_alnum=$as_cr_Letters$as_cr_digits
15680 ECHO_C= ECHO_N= ECHO_T=
15681 case `echo -n x` in #(((((
15683 case `echo 'xy\c'` in
15684 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15686 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15693 rm -f conf$$ conf$$.exe conf$$.file
15694 if test -d conf$$.dir; then
15695 rm -f conf$$.dir/conf$$.file
15698 mkdir conf$$.dir 2>/dev/null
15700 if (echo >conf$$.file) 2>/dev/null; then
15701 if ln -s conf$$.file conf$$ 2>/dev/null; then
15703 # ... but there are two gotchas:
15704 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15705 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15706 # In both cases, we have to default to `cp -pR'.
15707 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15709 elif ln conf$$.file conf$$ 2>/dev/null; then
15717 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15718 rmdir conf$$.dir 2>/dev/null
15723 # Create "$as_dir" as a directory, including parents if necessary.
15728 -*) as_dir=./$as_dir;;
15730 test -d "$as_dir" || eval $as_mkdir_p || {
15734 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15735 *) as_qdir=$as_dir;;
15737 as_dirs="'$as_qdir' $as_dirs"
15738 as_dir=`$as_dirname -- "$as_dir" ||
15739 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15740 X"$as_dir" : 'X\(//\)[^/]' \| \
15741 X"$as_dir" : 'X\(//\)$' \| \
15742 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15743 $as_echo X"$as_dir" |
15744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15748 /^X\(\/\/\)[^/].*/{
15761 test -d "$as_dir" && break
15763 test -z "$as_dirs" || eval "mkdir $as_dirs"
15764 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15768 if mkdir -p . 2>/dev/null; then
15769 as_mkdir_p='mkdir -p "$as_dir"'
15771 test -d ./-p && rmdir ./-p
15776 # as_fn_executable_p FILE
15777 # -----------------------
15778 # Test if FILE is an executable regular file.
15779 as_fn_executable_p ()
15781 test -f "$1" && test -x "$1"
15782 } # as_fn_executable_p
15783 as_test_x='test -x'
15784 as_executable_p=as_fn_executable_p
15786 # Sed expression to map a string onto a valid CPP name.
15787 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15789 # Sed expression to map a string onto a valid variable name.
15790 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15794 ## ----------------------------------- ##
15795 ## Main body of $CONFIG_STATUS script. ##
15796 ## ----------------------------------- ##
15798 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15801 # Save the log message, to keep $0 and so on meaningful, and to
15802 # report actual input values of CONFIG_FILES etc. instead of their
15803 # values after options handling.
15805 This file was extended by package-unused $as_me version-unused, which was
15806 generated by GNU Autoconf 2.69. Invocation command line was
15808 CONFIG_FILES = $CONFIG_FILES
15809 CONFIG_HEADERS = $CONFIG_HEADERS
15810 CONFIG_LINKS = $CONFIG_LINKS
15811 CONFIG_COMMANDS = $CONFIG_COMMANDS
15814 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15819 case $ac_config_files in *"
15820 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15823 case $ac_config_headers in *"
15824 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15829 # Files that config.status was made for.
15830 config_files="$ac_config_files"
15831 config_headers="$ac_config_headers"
15832 config_commands="$ac_config_commands"
15836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15838 \`$as_me' instantiates files and other configuration actions
15839 from templates according to the current configuration. Unless the files
15840 and actions are specified as TAGs, all are instantiated by default.
15842 Usage: $0 [OPTION]... [TAG]...
15844 -h, --help print this help, then exit
15845 -V, --version print version number and configuration settings, then exit
15846 --config print configuration, then exit
15847 -q, --quiet, --silent
15848 do not print progress messages
15849 -d, --debug don't remove temporary files
15850 --recheck update $as_me by reconfiguring in the same conditions
15851 --file=FILE[:TEMPLATE]
15852 instantiate the configuration file FILE
15853 --header=FILE[:TEMPLATE]
15854 instantiate the configuration header FILE
15856 Configuration files:
15859 Configuration headers:
15862 Configuration commands:
15865 Report bugs to the package provider."
15868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15869 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15871 package-unused config.status version-unused
15872 configured by $0, generated by GNU Autoconf 2.69,
15873 with options \\"\$ac_cs_config\\"
15875 Copyright (C) 2012 Free Software Foundation, Inc.
15876 This config.status script is free software; the Free Software Foundation
15877 gives unlimited permission to copy, distribute and modify it."
15884 test -n "\$AWK" || AWK=awk
15887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15888 # The default lists apply if the user does not specify any file.
15894 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15895 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15899 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15911 # Handling of the options.
15912 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15914 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15915 $as_echo "$ac_cs_version"; exit ;;
15916 --config | --confi | --conf | --con | --co | --c )
15917 $as_echo "$ac_cs_config"; exit ;;
15918 --debug | --debu | --deb | --de | --d | -d )
15920 --file | --fil | --fi | --f )
15923 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15924 '') as_fn_error $? "missing file argument" ;;
15926 as_fn_append CONFIG_FILES " '$ac_optarg'"
15927 ac_need_defaults=false;;
15928 --header | --heade | --head | --hea )
15931 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15933 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15934 ac_need_defaults=false;;
15936 # Conflict between --help and --header
15937 as_fn_error $? "ambiguous option: \`$1'
15938 Try \`$0 --help' for more information.";;
15939 --help | --hel | -h )
15940 $as_echo "$ac_cs_usage"; exit ;;
15941 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15942 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15945 # This is an error.
15946 -*) as_fn_error $? "unrecognized option: \`$1'
15947 Try \`$0 --help' for more information." ;;
15949 *) as_fn_append ac_config_targets " $1"
15950 ac_need_defaults=false ;;
15956 ac_configure_extra_args=
15958 if $ac_cs_silent; then
15960 ac_configure_extra_args="$ac_configure_extra_args --silent"
15964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15965 if \$ac_cs_recheck; then
15966 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15968 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15969 CONFIG_SHELL='$SHELL'
15970 export CONFIG_SHELL
15975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15979 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15980 ## Running $as_me. ##
15986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15994 with_multisubdir="$with_multisubdir"
15995 with_multisrctop="$with_multisrctop"
15996 with_target_subdir="$with_target_subdir"
15997 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15998 multi_basedir="$multi_basedir"
15999 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16002 GFORTRAN="$GFORTRAN"
16006 # The HP-UX ksh and POSIX shell print the target directory to stdout
16007 # if CDPATH is set.
16008 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16010 sed_quote_subst='$sed_quote_subst'
16011 double_quote_subst='$double_quote_subst'
16012 delay_variable_subst='$delay_variable_subst'
16013 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16014 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16015 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16016 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16017 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16018 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16019 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16020 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16021 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16022 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16023 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16024 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16025 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16026 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16027 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16028 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16029 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16030 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16031 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16032 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16033 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16034 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16035 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16036 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16037 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16038 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16039 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16040 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16041 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16042 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16043 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16044 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16045 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16046 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16047 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16048 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16049 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16050 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16051 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16052 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16053 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16054 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16055 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16056 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16057 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16058 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16059 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16060 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16061 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"`'
16062 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16063 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16064 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16065 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16066 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16067 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16068 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16069 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16070 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16071 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16072 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16073 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16074 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16075 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16076 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16077 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16078 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16079 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16080 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16081 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16082 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16083 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16084 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16085 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16086 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16087 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16088 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16089 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16090 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16091 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16092 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16093 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16094 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16095 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16096 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16097 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16098 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16099 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16100 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16101 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16102 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16103 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16104 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16105 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16106 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16107 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16108 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16109 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16110 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16111 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16112 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16113 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16114 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16115 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16116 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16117 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16118 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16119 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16120 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16121 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16122 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16123 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16124 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16125 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16126 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16127 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16128 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16129 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16130 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16131 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16132 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16133 LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16134 reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16135 reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16136 old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16137 compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16138 GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16139 lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16140 lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16141 lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16142 lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16143 lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16144 archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16145 enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16146 export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16147 whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16148 compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16149 old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16150 old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16151 archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16152 archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16153 module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16154 module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16155 with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16156 allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16157 no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16158 hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16159 hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16160 hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16161 hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16162 hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16163 hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16164 hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16165 hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16166 inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16167 link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16168 fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16169 always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16170 export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16171 exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16172 include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16173 prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16174 file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16175 hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16178 LTCFLAGS='$LTCFLAGS'
16179 compiler='$compiler_DEFAULT'
16181 # A function that is used when there is no print builtin or printf.
16182 func_fallback_echo ()
16184 eval 'cat <<_LTECHO_EOF
16189 # Quote evaled strings.
16203 deplibs_check_method \
16212 lt_cv_sys_global_symbol_pipe \
16213 lt_cv_sys_global_symbol_to_cdecl \
16214 lt_cv_sys_global_symbol_to_c_name_address \
16215 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16216 lt_prog_compiler_no_builtin_flag \
16217 lt_prog_compiler_wl \
16218 lt_prog_compiler_pic \
16219 lt_prog_compiler_static \
16220 lt_cv_prog_compiler_c_o \
16228 export_dynamic_flag_spec \
16229 whole_archive_flag_spec \
16230 compiler_needs_object \
16232 allow_undefined_flag \
16233 no_undefined_flag \
16234 hardcode_libdir_flag_spec \
16235 hardcode_libdir_flag_spec_ld \
16236 hardcode_libdir_separator \
16241 variables_saved_for_relink \
16243 library_names_spec \
16245 install_override_mode \
16252 lt_prog_compiler_no_builtin_flag_D \
16253 lt_prog_compiler_wl_D \
16254 lt_prog_compiler_pic_D \
16255 lt_prog_compiler_static_D \
16256 lt_cv_prog_compiler_c_o_D \
16257 export_dynamic_flag_spec_D \
16258 whole_archive_flag_spec_D \
16259 compiler_needs_object_D \
16261 allow_undefined_flag_D \
16262 no_undefined_flag_D \
16263 hardcode_libdir_flag_spec_D \
16264 hardcode_libdir_flag_spec_ld_D \
16265 hardcode_libdir_separator_D \
16266 fix_srcfile_path_D \
16267 exclude_expsyms_D \
16268 include_expsyms_D \
16269 file_list_spec_D; do
16270 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16271 *[\\\\\\\`\\"\\\$]*)
16272 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16275 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16280 # Double-quote double-evaled strings.
16281 for var in reload_cmds \
16282 old_postinstall_cmds \
16283 old_postuninstall_cmds \
16285 extract_expsyms_cmds \
16286 old_archive_from_new_cmds \
16287 old_archive_from_expsyms_cmds \
16289 archive_expsym_cmds \
16291 module_expsym_cmds \
16292 export_symbols_cmds \
16295 postuninstall_cmds \
16297 sys_lib_search_path_spec \
16298 sys_lib_dlsearch_path_spec \
16300 old_archive_cmds_D \
16301 old_archive_from_new_cmds_D \
16302 old_archive_from_expsyms_cmds_D \
16304 archive_expsym_cmds_D \
16306 module_expsym_cmds_D \
16307 export_symbols_cmds_D \
16309 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16310 *[\\\\\\\`\\"\\\$]*)
16311 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16314 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16319 ac_aux_dir='$ac_aux_dir'
16320 xsi_shell='$xsi_shell'
16321 lt_shell_append='$lt_shell_append'
16323 # See if we are running on zsh, and set the options which allow our
16324 # commands through without removal of \ escapes INIT.
16325 if test -n "\${ZSH_VERSION+set}" ; then
16326 setopt NO_GLOB_SUBST
16332 TIMESTAMP='$TIMESTAMP'
16343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16345 # Handling of arguments.
16346 for ac_config_target in $ac_config_targets
16348 case $ac_config_target in
16349 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16350 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16351 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16352 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16353 "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16354 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16355 "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16356 "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
16357 "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16358 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16359 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16361 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16366 # If the user did not use the arguments to specify the items to instantiate,
16367 # then the envvar interface is used. Set only those that are not.
16368 # We use the long form for the default assignment because of an extremely
16369 # bizarre bug on SunOS 4.1.3.
16370 if $ac_need_defaults; then
16371 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16372 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16373 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16376 # Have a temporary directory for convenience. Make it in the build tree
16377 # simply because there is no reason against having it here, and in addition,
16378 # creating and moving files from /tmp can sometimes cause problems.
16379 # Hook for its removal unless debugging.
16380 # Note that there is a small window in which the directory will not be cleaned:
16381 # after its creation but before its name has been assigned to `$tmp'.
16385 trap 'exit_status=$?
16386 : "${ac_tmp:=$tmp}"
16387 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16389 trap 'as_fn_exit 1' 1 2 13 15
16391 # Create a (secure) tmp directory for tmp files.
16394 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16398 tmp=./conf$$-$RANDOM
16399 (umask 077 && mkdir "$tmp")
16400 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16403 # Set up the scripts for CONFIG_FILES section.
16404 # No need to generate them if there are no CONFIG_FILES.
16405 # This happens for instance with `./config.status config.h'.
16406 if test -n "$CONFIG_FILES"; then
16408 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16409 ac_cs_awk_getline=:
16410 ac_cs_awk_pipe_init=
16411 ac_cs_awk_read_file='
16412 while ((getline aline < (F[key])) > 0)
16415 ac_cs_awk_pipe_fini=
16417 ac_cs_awk_getline=false
16418 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16419 ac_cs_awk_read_file='
16421 print "cat " F[key] " &&"
16422 '$ac_cs_awk_pipe_init
16423 # The final `:' finishes the AND list.
16424 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16426 ac_cr=`echo X | tr X '\015'`
16427 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16428 # But we know of no other shell where ac_cr would be empty at this
16429 # point, so we can use a bashism as a fallback.
16430 if test "x$ac_cr" = x; then
16431 eval ac_cr=\$\'\\r\'
16433 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16434 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16437 ac_cs_awk_cr=$ac_cr
16440 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16443 # Create commands to substitute file output variables.
16445 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16446 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16447 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16450 } >conf$$files.sh &&
16451 . ./conf$$files.sh ||
16452 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16453 rm -f conf$$files.sh
16456 echo "cat >conf$$subs.awk <<_ACEOF" &&
16457 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16459 } >conf$$subs.sh ||
16460 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16461 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16463 for ac_last_try in false false false false false :; do
16464 . ./conf$$subs.sh ||
16465 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16467 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16468 if test $ac_delim_n = $ac_delim_num; then
16470 elif $ac_last_try; then
16471 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16473 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16476 rm -f conf$$subs.sh
16478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16479 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16483 s/^/S["/; s/!.*/"]=/
16493 s/\(.\{148\}\)..*/\1/
16495 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16500 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16507 s/\(.\{148\}\)..*/\1/
16509 s/["\\]/\\&/g; s/^/"/; s/$/"/
16513 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16518 ' <conf$$subs.awk | sed '
16523 ' >>$CONFIG_STATUS || ac_write_fail=1
16524 rm -f conf$$subs.awk
16525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16527 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16528 for (key in S) S_is_set[key] = 1
16530 \$ac_cs_awk_pipe_init
16534 nfields = split(line, field, "@")
16536 len = length(field[1])
16537 for (i = 2; i < nfields; i++) {
16539 keylen = length(key)
16540 if (S_is_set[key]) {
16542 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16543 len += length(value) + length(field[++i])
16548 if (nfields == 3 && !substed) {
16550 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16551 \$ac_cs_awk_read_file
16557 \$ac_cs_awk_pipe_fini
16560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16561 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16562 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16565 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16566 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16569 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16570 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16571 # trailing colons and then remove the whole line if VPATH becomes empty
16572 # (actually we leave an empty line to preserve line numbers).
16573 if test "x$srcdir" = x.; then
16574 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16593 fi # test -n "$CONFIG_FILES"
16595 # Set up the scripts for CONFIG_HEADERS section.
16596 # No need to generate them if there are no CONFIG_HEADERS.
16597 # This happens for instance with `./config.status Makefile'.
16598 if test -n "$CONFIG_HEADERS"; then
16599 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16603 # Transform confdefs.h into an awk script `defines.awk', embedded as
16604 # here-document in config.status, that substitutes the proper values into
16605 # config.h.in to produce config.h.
16607 # Create a delimiter string that does not exist in confdefs.h, to ease
16608 # handling of long lines.
16610 for ac_last_try in false false :; do
16611 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16612 if test -z "$ac_tt"; then
16614 elif $ac_last_try; then
16615 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16617 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16621 # For the awk script, D is an array of macro values keyed by name,
16622 # likewise P contains macro parameters if any. Preserve backslash
16623 # newline sequences.
16625 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16627 s/.\{148\}/&'"$ac_delim"'/g
16630 s/^[ ]*#[ ]*define[ ][ ]*/ /
16637 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16639 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16643 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16644 D["\1"]=" \3\\\\\\n"\\/p
16646 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16651 s/.\{148\}/&'"$ac_delim"'/g
16656 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16659 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16661 ' <confdefs.h | sed '
16662 s/'"$ac_delim"'/"\\\
16663 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16666 for (key in D) D_is_set[key] = 1
16669 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16671 split(line, arg, " ")
16672 if (arg[1] == "#") {
16676 defundef = substr(arg[1], 2)
16679 split(mac1, mac2, "(") #)
16681 prefix = substr(line, 1, index(line, defundef) - 1)
16682 if (D_is_set[macro]) {
16683 # Preserve the white space surrounding the "#".
16684 print prefix "define", macro P[macro] D[macro]
16687 # Replace #undef with comments. This is necessary, for example,
16688 # in the case of _POSIX_SOURCE, which is predefined and required
16689 # on some systems where configure will not decide to define it.
16690 if (defundef == "undef") {
16691 print "/*", prefix defundef, macro, "*/"
16699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16700 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16701 fi # test -n "$CONFIG_HEADERS"
16704 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16709 :[FHLC]) ac_mode=$ac_tag; continue;;
16711 case $ac_mode$ac_tag in
16713 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16714 :[FH]-) ac_tag=-:-;;
16715 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16732 -) ac_f="$ac_tmp/stdin";;
16733 *) # Look for the file first in the build tree, then in the source tree
16734 # (if the path is not absolute). The absolute path cannot be DOS-style,
16735 # because $ac_f cannot contain `:'.
16739 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16741 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16743 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16744 as_fn_append ac_file_inputs " '$ac_f'"
16747 # Let's still pretend it is `configure' which instantiates (i.e., don't
16748 # use $as_me), people would be surprised to read:
16749 # /* config.h. Generated by config.status. */
16750 configure_input='Generated from '`
16751 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16753 if test x"$ac_file" != x-; then
16754 configure_input="$ac_file. $configure_input"
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16756 $as_echo "$as_me: creating $ac_file" >&6;}
16758 # Neutralize special characters interpreted by sed in replacement strings.
16759 case $configure_input in #(
16760 *\&* | *\|* | *\\* )
16761 ac_sed_conf_input=`$as_echo "$configure_input" |
16762 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16763 *) ac_sed_conf_input=$configure_input;;
16767 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16768 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16773 ac_dir=`$as_dirname -- "$ac_file" ||
16774 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16775 X"$ac_file" : 'X\(//\)[^/]' \| \
16776 X"$ac_file" : 'X\(//\)$' \| \
16777 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16778 $as_echo X"$ac_file" |
16779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16783 /^X\(\/\/\)[^/].*/{
16796 as_dir="$ac_dir"; as_fn_mkdir_p
16800 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16802 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16803 # A ".." for each directory in $ac_dir_suffix.
16804 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16805 case $ac_top_builddir_sub in
16806 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16807 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16810 ac_abs_top_builddir=$ac_pwd
16811 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16812 # for backward compatibility:
16813 ac_top_builddir=$ac_top_build_prefix
16816 .) # We are building in place.
16818 ac_top_srcdir=$ac_top_builddir_sub
16819 ac_abs_top_srcdir=$ac_pwd ;;
16820 [\\/]* | ?:[\\/]* ) # Absolute name.
16821 ac_srcdir=$srcdir$ac_dir_suffix;
16822 ac_top_srcdir=$srcdir
16823 ac_abs_top_srcdir=$srcdir ;;
16824 *) # Relative name.
16825 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16826 ac_top_srcdir=$ac_top_build_prefix$srcdir
16827 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16829 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16839 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16840 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16842 ac_MKDIR_P=$MKDIR_P
16844 [\\/$]* | ?:[\\/]* ) ;;
16845 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16850 # If the template does not know about datarootdir, expand it.
16851 # FIXME: This hack should be removed a few years after 2.60.
16852 ac_datarootdir_hack=; ac_datarootdir_seen=
16863 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16864 *datarootdir*) ac_datarootdir_seen=yes;;
16865 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16867 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16870 ac_datarootdir_hack='
16871 s&@datadir@&$datadir&g
16872 s&@docdir@&$docdir&g
16873 s&@infodir@&$infodir&g
16874 s&@localedir@&$localedir&g
16875 s&@mandir@&$mandir&g
16876 s&\\\${datarootdir}&$datarootdir&g' ;;
16880 # Neutralize VPATH when `$srcdir' = `.'.
16881 # Shell code in configure.ac might set extrasub.
16882 # FIXME: do we really want to maintain this feature?
16883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16884 ac_sed_extra="$ac_vpsub
16887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16889 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16890 s|@configure_input@|$ac_sed_conf_input|;t t
16891 s&@top_builddir@&$ac_top_builddir_sub&;t t
16892 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16893 s&@srcdir@&$ac_srcdir&;t t
16894 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16895 s&@top_srcdir@&$ac_top_srcdir&;t t
16896 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16897 s&@builddir@&$ac_builddir&;t t
16898 s&@abs_builddir@&$ac_abs_builddir&;t t
16899 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16900 s&@INSTALL@&$ac_INSTALL&;t t
16901 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16902 $ac_datarootdir_hack
16904 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16905 if $ac_cs_awk_getline; then
16906 $AWK -f "$ac_tmp/subs.awk"
16908 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16910 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16912 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16913 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16914 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16915 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16917 which seems to be undefined. Please make sure it is defined" >&5
16918 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16919 which seems to be undefined. Please make sure it is defined" >&2;}
16921 rm -f "$ac_tmp/stdin"
16923 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16924 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16926 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16932 if test x"$ac_file" != x-; then
16934 $as_echo "/* $configure_input */" \
16935 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16936 } >"$ac_tmp/config.h" \
16937 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16938 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16940 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16943 mv "$ac_tmp/config.h" "$ac_file" \
16944 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16947 $as_echo "/* $configure_input */" \
16948 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16949 || as_fn_error $? "could not create -" "$LINENO" 5
16951 # Compute "$ac_file"'s index in $config_headers.
16954 for _am_header in $config_headers :; do
16955 case $_am_header in
16956 $_am_arg | $_am_arg:* )
16959 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16962 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16963 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16964 X"$_am_arg" : 'X\(//\)[^/]' \| \
16965 X"$_am_arg" : 'X\(//\)$' \| \
16966 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16967 $as_echo X"$_am_arg" |
16968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16972 /^X\(\/\/\)[^/].*/{
16984 s/.*/./; q'`/stamp-h$_am_stamp_count
16987 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16988 $as_echo "$as_me: executing $ac_file commands" >&6;}
16993 case $ac_file$ac_mode in
16995 # Only add multilib support code if we just rebuilt the top-level
16997 case " $CONFIG_FILES " in
16999 ac_file=Makefile . ${multi_basedir}/config-ml.in
17004 # See if we are running on zsh, and set the options which allow our
17005 # commands through without removal of \ escapes.
17006 if test -n "${ZSH_VERSION+set}" ; then
17007 setopt NO_GLOB_SUBST
17010 cfgfile="${ofile}T"
17011 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17014 cat <<_LT_EOF >> "$cfgfile"
17017 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17018 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17019 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17020 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17022 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17023 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17024 # Written by Gordon Matzigkeit, 1996
17026 # This file is part of GNU Libtool.
17028 # GNU Libtool is free software; you can redistribute it and/or
17029 # modify it under the terms of the GNU General Public License as
17030 # published by the Free Software Foundation; either version 2 of
17031 # the License, or (at your option) any later version.
17033 # As a special exception to the GNU General Public License,
17034 # if you distribute this file as part of a program or library that
17035 # is built using GNU Libtool, you may include this file under the
17036 # same distribution terms that you use for the rest of that program.
17038 # GNU Libtool is distributed in the hope that it will be useful,
17039 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17040 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17041 # GNU General Public License for more details.
17043 # You should have received a copy of the GNU General Public License
17044 # along with GNU Libtool; see the file COPYING. If not, a copy
17045 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17046 # obtained by writing to the Free Software Foundation, Inc.,
17047 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17050 # The names of the tagged configurations supported by this script.
17051 available_tags="D "
17053 # ### BEGIN LIBTOOL CONFIG
17055 # Which release of libtool.m4 was used?
17056 macro_version=$macro_version
17057 macro_revision=$macro_revision
17059 # Whether or not to build shared libraries.
17060 build_libtool_libs=$enable_shared
17062 # Whether or not to build static libraries.
17063 build_old_libs=$enable_static
17065 # What type of objects to build.
17068 # Whether or not to optimize for fast installation.
17069 fast_install=$enable_fast_install
17071 # Shell to use when invoking shell scripts.
17074 # An echo program that protects backslashes.
17078 host_alias=$host_alias
17082 # The build system.
17083 build_alias=$build_alias
17087 # A sed program that does not truncate output.
17090 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17091 Xsed="\$SED -e 1s/^X//"
17093 # A grep program that handles long lines.
17099 # A literal string matcher.
17102 # A BSD- or MS-compatible name lister.
17105 # Whether we need soft or hard links.
17108 # What is the maximum length of a command?
17109 max_cmd_len=$max_cmd_len
17111 # Object file suffix (normally "o").
17114 # Executable file suffix (normally "").
17117 # whether the shell understands "unset".
17120 # turn spaces into newlines.
17123 # turn newlines into spaces.
17126 # An object symbol dumper.
17127 OBJDUMP=$lt_OBJDUMP
17129 # Method to check whether dependent libraries are shared objects.
17130 deplibs_check_method=$lt_deplibs_check_method
17132 # Command to use when deplibs_check_method == "file_magic".
17133 file_magic_cmd=$lt_file_magic_cmd
17137 AR_FLAGS=$lt_AR_FLAGS
17139 # A symbol stripping program.
17142 # Commands used to install an old-style archive.
17144 old_postinstall_cmds=$lt_old_postinstall_cmds
17145 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17147 # Whether to use a lock for old archive extraction.
17148 lock_old_archive_extraction=$lock_old_archive_extraction
17153 # LTCC compiler flags.
17154 LTCFLAGS=$lt_CFLAGS
17156 # Take the output of nm and produce a listing of raw symbols and C names.
17157 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17159 # Transform the output of nm in a proper C declaration.
17160 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17162 # Transform the output of nm in a C name address pair.
17163 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17165 # Transform the output of nm in a C name address pair when lib prefix is needed.
17166 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17168 # The name of the directory that contains temporary libtool files.
17171 # Used to examine libraries when file_magic_cmd begins with "file".
17172 MAGIC_CMD=$MAGIC_CMD
17174 # Must we lock files when doing compilation?
17175 need_locks=$lt_need_locks
17177 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17178 DSYMUTIL=$lt_DSYMUTIL
17180 # Tool to change global to local symbols on Mac OS X.
17183 # Tool to manipulate fat objects and archives on Mac OS X.
17186 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17189 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17190 OTOOL64=$lt_OTOOL64
17192 # Old archive suffix (normally "a").
17195 # Shared library suffix (normally ".so").
17196 shrext_cmds=$lt_shrext_cmds
17198 # The commands to extract the exported symbol list from a shared archive.
17199 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17201 # Variables whose values should be saved in libtool wrapper scripts and
17202 # restored at link time.
17203 variables_saved_for_relink=$lt_variables_saved_for_relink
17205 # Do we need the "lib" prefix for modules?
17206 need_lib_prefix=$need_lib_prefix
17208 # Do we need a version for libraries?
17209 need_version=$need_version
17211 # Library versioning type.
17212 version_type=$version_type
17214 # Shared library runtime path variable.
17215 runpath_var=$runpath_var
17217 # Shared library path variable.
17218 shlibpath_var=$shlibpath_var
17220 # Is shlibpath searched before the hard-coded library search path?
17221 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17223 # Format of library name prefix.
17224 libname_spec=$lt_libname_spec
17226 # List of archive names. First name is the real one, the rest are links.
17227 # The last name is the one that the linker finds with -lNAME
17228 library_names_spec=$lt_library_names_spec
17230 # The coded name of the library, if different from the real name.
17231 soname_spec=$lt_soname_spec
17233 # Permission mode override for installation of shared libraries.
17234 install_override_mode=$lt_install_override_mode
17236 # Command to use after installation of a shared archive.
17237 postinstall_cmds=$lt_postinstall_cmds
17239 # Command to use after uninstallation of a shared archive.
17240 postuninstall_cmds=$lt_postuninstall_cmds
17242 # Commands used to finish a libtool library installation in a directory.
17243 finish_cmds=$lt_finish_cmds
17245 # As "finish_cmds", except a single script fragment to be evaled but
17247 finish_eval=$lt_finish_eval
17249 # Whether we should hardcode library paths into libraries.
17250 hardcode_into_libs=$hardcode_into_libs
17252 # Compile-time system search path for libraries.
17253 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17255 # Run-time system search path for libraries.
17256 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17258 # Whether dlopen is supported.
17259 dlopen_support=$enable_dlopen
17261 # Whether dlopen of programs is supported.
17262 dlopen_self=$enable_dlopen_self
17264 # Whether dlopen of statically linked programs is supported.
17265 dlopen_self_static=$enable_dlopen_self_static
17267 # Commands to strip libraries.
17268 old_striplib=$lt_old_striplib
17269 striplib=$lt_striplib
17272 # The linker used to build libraries.
17275 # How to create reloadable object files.
17276 reload_flag=$lt_reload_flag
17277 reload_cmds=$lt_reload_cmds
17279 # Commands used to build an old-style archive.
17280 old_archive_cmds=$lt_old_archive_cmds
17282 # A language specific compiler.
17285 # Is the compiler the GNU compiler?
17288 # Compiler flag to turn off builtin functions.
17289 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17291 # How to pass a linker flag through the compiler.
17292 wl=$lt_lt_prog_compiler_wl
17294 # Additional compiler flags for building library objects.
17295 pic_flag=$lt_lt_prog_compiler_pic
17297 # Compiler flag to prevent dynamic linking.
17298 link_static_flag=$lt_lt_prog_compiler_static
17300 # Does compiler simultaneously support -c and -o options?
17301 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17303 # Whether or not to add -lc for building shared libraries.
17304 build_libtool_need_lc=$archive_cmds_need_lc
17306 # Whether or not to disallow shared libs when runtime libs are static.
17307 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17309 # Compiler flag to allow reflexive dlopens.
17310 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17312 # Compiler flag to generate shared objects directly from archives.
17313 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17315 # Whether the compiler copes with passing no objects directly.
17316 compiler_needs_object=$lt_compiler_needs_object
17318 # Create an old-style archive from a shared archive.
17319 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17321 # Create a temporary old-style archive to link instead of a shared archive.
17322 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17324 # Commands used to build a shared archive.
17325 archive_cmds=$lt_archive_cmds
17326 archive_expsym_cmds=$lt_archive_expsym_cmds
17328 # Commands used to build a loadable module if different from building
17329 # a shared archive.
17330 module_cmds=$lt_module_cmds
17331 module_expsym_cmds=$lt_module_expsym_cmds
17333 # Whether we are building with GNU ld or not.
17334 with_gnu_ld=$lt_with_gnu_ld
17336 # Flag that allows shared libraries with undefined symbols to be built.
17337 allow_undefined_flag=$lt_allow_undefined_flag
17339 # Flag that enforces no undefined symbols.
17340 no_undefined_flag=$lt_no_undefined_flag
17342 # Flag to hardcode \$libdir into a binary during linking.
17343 # This must work even if \$libdir does not exist
17344 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17346 # If ld is used when linking, flag to hardcode \$libdir into a binary
17347 # during linking. This must work even if \$libdir does not exist.
17348 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17350 # Whether we need a single "-rpath" flag with a separated argument.
17351 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17353 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17354 # DIR into the resulting binary.
17355 hardcode_direct=$hardcode_direct
17357 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17358 # DIR into the resulting binary and the resulting library dependency is
17359 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17360 # library is relocated.
17361 hardcode_direct_absolute=$hardcode_direct_absolute
17363 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17364 # into the resulting binary.
17365 hardcode_minus_L=$hardcode_minus_L
17367 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17368 # into the resulting binary.
17369 hardcode_shlibpath_var=$hardcode_shlibpath_var
17371 # Set to "yes" if building a shared library automatically hardcodes DIR
17372 # into the library and all subsequent libraries and executables linked
17374 hardcode_automatic=$hardcode_automatic
17376 # Set to yes if linker adds runtime paths of dependent libraries
17377 # to runtime path list.
17378 inherit_rpath=$inherit_rpath
17380 # Whether libtool must link a program against all its dependency libraries.
17381 link_all_deplibs=$link_all_deplibs
17383 # Fix the shell variable \$srcfile for the compiler.
17384 fix_srcfile_path=$lt_fix_srcfile_path
17386 # Set to "yes" if exported symbols are required.
17387 always_export_symbols=$always_export_symbols
17389 # The commands to list exported symbols.
17390 export_symbols_cmds=$lt_export_symbols_cmds
17392 # Symbols that should not be listed in the preloaded symbols.
17393 exclude_expsyms=$lt_exclude_expsyms
17395 # Symbols that must always be exported.
17396 include_expsyms=$lt_include_expsyms
17398 # Commands necessary for linking programs (against libraries) with templates.
17399 prelink_cmds=$lt_prelink_cmds
17401 # Specify filename containing input files.
17402 file_list_spec=$lt_file_list_spec
17404 # How to hardcode a shared library path into an executable.
17405 hardcode_action=$hardcode_action
17407 # ### END LIBTOOL CONFIG
17413 cat <<\_LT_EOF >> "$cfgfile"
17414 # AIX sometimes has problems with the GCC collect2 program. For some
17415 # reason, if we set the COLLECT_NAMES environment variable, the problems
17416 # vanish in a puff of smoke.
17417 if test "X${COLLECT_NAMES+set}" != Xset; then
17419 export COLLECT_NAMES
17426 ltmain="$ac_aux_dir/ltmain.sh"
17429 # We use sed instead of cat because bash on DJGPP gets confused if
17430 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17431 # text mode, it properly converts lines to CR/LF. This bash problem
17432 # is reportedly fixed, but why not run on old versions too?
17433 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17434 || (rm -f "$cfgfile"; exit 1)
17438 cat << \_LT_EOF >> "$cfgfile"
17440 # func_dirname file append nondir_replacement
17441 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17442 # otherwise set result to NONDIR_REPLACEMENT.
17446 */*) func_dirname_result="${1%/*}${2}" ;;
17447 * ) func_dirname_result="${3}" ;;
17451 # func_basename file
17454 func_basename_result="${1##*/}"
17457 # func_dirname_and_basename file append nondir_replacement
17458 # perform func_basename and func_dirname in a single function
17460 # dirname: Compute the dirname of FILE. If nonempty,
17461 # add APPEND to the result, otherwise set result
17462 # to NONDIR_REPLACEMENT.
17463 # value returned in "$func_dirname_result"
17464 # basename: Compute filename of FILE.
17465 # value retuned in "$func_basename_result"
17466 # Implementation must be kept synchronized with func_dirname
17467 # and func_basename. For efficiency, we do not delegate to
17468 # those functions but instead duplicate the functionality here.
17469 func_dirname_and_basename ()
17472 */*) func_dirname_result="${1%/*}${2}" ;;
17473 * ) func_dirname_result="${3}" ;;
17475 func_basename_result="${1##*/}"
17478 # func_stripname prefix suffix name
17479 # strip PREFIX and SUFFIX off of NAME.
17480 # PREFIX and SUFFIX must not contain globbing or regex special
17481 # characters, hashes, percent signs, but SUFFIX may contain a leading
17482 # dot (in which case that matches only a dot).
17485 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17486 # positional parameters, so assign one to ordinary parameter first.
17487 func_stripname_result=${3}
17488 func_stripname_result=${func_stripname_result#"${1}"}
17489 func_stripname_result=${func_stripname_result%"${2}"}
17495 func_opt_split_opt=${1%%=*}
17496 func_opt_split_arg=${1#*=}
17503 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17504 *) func_lo2o_result=${1} ;;
17508 # func_xform libobj-or-source
17511 func_xform_result=${1%.*}.lo
17514 # func_arith arithmetic-term...
17517 func_arith_result=$(( $* ))
17521 # STRING may not start with a hyphen.
17524 func_len_result=${#1}
17529 *) # Bourne compatible functions.
17530 cat << \_LT_EOF >> "$cfgfile"
17532 # func_dirname file append nondir_replacement
17533 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17534 # otherwise set result to NONDIR_REPLACEMENT.
17537 # Extract subdirectory from the argument.
17538 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17539 if test "X$func_dirname_result" = "X${1}"; then
17540 func_dirname_result="${3}"
17542 func_dirname_result="$func_dirname_result${2}"
17546 # func_basename file
17549 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17553 # func_stripname prefix suffix name
17554 # strip PREFIX and SUFFIX off of NAME.
17555 # PREFIX and SUFFIX must not contain globbing or regex special
17556 # characters, hashes, percent signs, but SUFFIX may contain a leading
17557 # dot (in which case that matches only a dot).
17558 # func_strip_suffix prefix name
17562 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17563 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17568 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17569 my_sed_long_arg='1s/^-[^=]*=//'
17574 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17575 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17581 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17584 # func_xform libobj-or-source
17587 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17590 # func_arith arithmetic-term...
17593 func_arith_result=`expr "$@"`
17597 # STRING may not start with a hyphen.
17600 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17606 case $lt_shell_append in
17608 cat << \_LT_EOF >> "$cfgfile"
17610 # func_append var value
17611 # Append VALUE to the end of shell variable VAR.
17619 cat << \_LT_EOF >> "$cfgfile"
17621 # func_append var value
17622 # Append VALUE to the end of shell variable VAR.
17633 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17634 || (rm -f "$cfgfile"; exit 1)
17636 mv -f "$cfgfile" "$ofile" ||
17637 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17641 cat <<_LT_EOF >> "$ofile"
17643 # ### BEGIN LIBTOOL TAG CONFIG: D
17645 # The linker used to build libraries.
17648 # How to create reloadable object files.
17649 reload_flag=$lt_reload_flag_D
17650 reload_cmds=$lt_reload_cmds_D
17652 # Commands used to build an old-style archive.
17653 old_archive_cmds=$lt_old_archive_cmds_D
17655 # A language specific compiler.
17658 # Is the compiler the GNU compiler?
17661 # Compiler flag to turn off builtin functions.
17662 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
17664 # How to pass a linker flag through the compiler.
17665 wl=$lt_lt_prog_compiler_wl_D
17667 # Additional compiler flags for building library objects.
17668 pic_flag=$lt_lt_prog_compiler_pic_D
17670 # Compiler flag to prevent dynamic linking.
17671 link_static_flag=$lt_lt_prog_compiler_static_D
17673 # Does compiler simultaneously support -c and -o options?
17674 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
17676 # Whether or not to add -lc for building shared libraries.
17677 build_libtool_need_lc=$archive_cmds_need_lc_D
17679 # Whether or not to disallow shared libs when runtime libs are static.
17680 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
17682 # Compiler flag to allow reflexive dlopens.
17683 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
17685 # Compiler flag to generate shared objects directly from archives.
17686 whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
17688 # Whether the compiler copes with passing no objects directly.
17689 compiler_needs_object=$lt_compiler_needs_object_D
17691 # Create an old-style archive from a shared archive.
17692 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
17694 # Create a temporary old-style archive to link instead of a shared archive.
17695 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
17697 # Commands used to build a shared archive.
17698 archive_cmds=$lt_archive_cmds_D
17699 archive_expsym_cmds=$lt_archive_expsym_cmds_D
17701 # Commands used to build a loadable module if different from building
17702 # a shared archive.
17703 module_cmds=$lt_module_cmds_D
17704 module_expsym_cmds=$lt_module_expsym_cmds_D
17706 # Whether we are building with GNU ld or not.
17707 with_gnu_ld=$lt_with_gnu_ld_D
17709 # Flag that allows shared libraries with undefined symbols to be built.
17710 allow_undefined_flag=$lt_allow_undefined_flag_D
17712 # Flag that enforces no undefined symbols.
17713 no_undefined_flag=$lt_no_undefined_flag_D
17715 # Flag to hardcode \$libdir into a binary during linking.
17716 # This must work even if \$libdir does not exist
17717 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
17719 # If ld is used when linking, flag to hardcode \$libdir into a binary
17720 # during linking. This must work even if \$libdir does not exist.
17721 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
17723 # Whether we need a single "-rpath" flag with a separated argument.
17724 hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
17726 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17727 # DIR into the resulting binary.
17728 hardcode_direct=$hardcode_direct_D
17730 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17731 # DIR into the resulting binary and the resulting library dependency is
17732 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17733 # library is relocated.
17734 hardcode_direct_absolute=$hardcode_direct_absolute_D
17736 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17737 # into the resulting binary.
17738 hardcode_minus_L=$hardcode_minus_L_D
17740 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17741 # into the resulting binary.
17742 hardcode_shlibpath_var=$hardcode_shlibpath_var_D
17744 # Set to "yes" if building a shared library automatically hardcodes DIR
17745 # into the library and all subsequent libraries and executables linked
17747 hardcode_automatic=$hardcode_automatic_D
17749 # Set to yes if linker adds runtime paths of dependent libraries
17750 # to runtime path list.
17751 inherit_rpath=$inherit_rpath_D
17753 # Whether libtool must link a program against all its dependency libraries.
17754 link_all_deplibs=$link_all_deplibs_D
17756 # Fix the shell variable \$srcfile for the compiler.
17757 fix_srcfile_path=$lt_fix_srcfile_path_D
17759 # Set to "yes" if exported symbols are required.
17760 always_export_symbols=$always_export_symbols_D
17762 # The commands to list exported symbols.
17763 export_symbols_cmds=$lt_export_symbols_cmds_D
17765 # Symbols that should not be listed in the preloaded symbols.
17766 exclude_expsyms=$lt_exclude_expsyms_D
17768 # Symbols that must always be exported.
17769 include_expsyms=$lt_include_expsyms_D
17771 # Commands necessary for linking programs (against libraries) with templates.
17772 prelink_cmds=$lt_prelink_cmds_D
17774 # Specify filename containing input files.
17775 file_list_spec=$lt_file_list_spec_D
17777 # How to hardcode a shared library path into an executable.
17778 hardcode_action=$hardcode_action_D
17780 # ### END LIBTOOL TAG CONFIG: D
17784 "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
17785 "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
17786 s!`test -f '$<' || echo '$(srcdir)/'`!!
17788 sed -f vpsed$$ $ac_file > tmp$$
17791 echo 'MULTISUBDIR =' >> $ac_file
17793 . ${multi_basedir}/config-ml.in
17794 { ml_norecursion=; unset ml_norecursion;}
17796 "src/Makefile":F) cat > vpsed$$ << \_EOF
17797 s!`test -f '$<' || echo '$(srcdir)/'`!!
17799 sed -f vpsed$$ $ac_file > tmp$$
17802 echo 'MULTISUBDIR =' >> $ac_file
17804 . ${multi_basedir}/config-ml.in
17805 { ml_norecursion=; unset ml_norecursion;}
17807 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
17808 s!`test -f '$<' || echo '$(srcdir)/'`!!
17810 sed -f vpsed$$ $ac_file > tmp$$
17813 echo 'MULTISUBDIR =' >> $ac_file
17815 . ${multi_basedir}/config-ml.in
17816 { ml_norecursion=; unset ml_norecursion;}
17825 ac_clean_files=$ac_clean_files_save
17827 test $ac_write_fail = 0 ||
17828 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17831 # configure is writing to config.log, and then calls config.status.
17832 # config.status does its own redirection, appending to config.log.
17833 # Unfortunately, on DOS this fails, as config.log is still kept open
17834 # by configure, so config.status won't be able to write to it; its
17835 # output is simply discarded. So we exec the FD to /dev/null,
17836 # effectively closing config.log, so it can be properly (re)opened and
17837 # appended to by config.status. When coming back to configure, we
17838 # need to make the FD available again.
17839 if test "$no_create" != yes; then
17841 ac_config_status_args=
17842 test "$silent" = yes &&
17843 ac_config_status_args="$ac_config_status_args --quiet"
17845 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17847 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17848 # would make configure fail if this is the last instruction.
17849 $ac_cs_success || as_fn_exit 1
17851 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17853 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}