2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for LLVM 1.4.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
361 # maybe with a smaller string...
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377 # Oops. We lost completely, so just stick with echo.
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
398 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
416 SHELL=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
425 PACKAGE_TARNAME='-llvm-'
426 PACKAGE_VERSION='1.4'
427 PACKAGE_STRING='LLVM 1.4'
428 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
430 ac_subdirs_all="$ac_subdirs_all projects/${i}"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
435 # include <sys/types.h>
438 # include <sys/stat.h>
449 # if !STDC_HEADERS && HAVE_MEMORY_H
455 # include <strings.h>
458 # include <inttypes.h>
468 ac_unique_file=""Makefile.config.in""
469 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DOT ETAGS ETAGSFLAGS PYTHON QMTEST HAVE_PTHREAD_MUTEX_LOCK INCLUDE_SYS_TYPES_H INCLUDE_INTTYPES_H INCLUDE_STDINT_H ENDIAN HAVE_STD_EXT_HASH_MAP HAVE_GNU_EXT_HASH_MAP HAVE_GLOBAL_HASH_MAP HAVE_STD_EXT_HASH_SET HAVE_GNU_EXT_HASH_SET HAVE_GLOBAL_HASH_SET HAVE_STD_ITERATOR HAVE_BI_ITERATOR HAVE_FWD_ITERATOR ALLOCA MMAP_FILE ENABLE_OPTIMIZED SPEC95_ROOT USE_SPEC95 SPEC2000_ROOT USE_SPEC2000 POVRAY_ROOT USE_POVRAY UPB DISABLE_LLC_DIFFS JIT LLVMCC1 LLVMCC1PLUS BCR PAPIDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
472 # Initialize some variables set by options.
474 ac_init_version=false
475 # The variables have the same names as the options, with
476 # dashes changed to underlines.
484 program_transform_name=s,x,x,
492 # Installation directory options.
493 # These are left unexpanded so users can "make install exec_prefix=/foo"
494 # and all the variables that are supposed to be based on exec_prefix
495 # by default will actually change.
496 # Use braces instead of parens because sh, perl, etc. also accept them.
497 bindir='${exec_prefix}/bin'
498 sbindir='${exec_prefix}/sbin'
499 libexecdir='${exec_prefix}/libexec'
500 datadir='${prefix}/share'
501 sysconfdir='${prefix}/etc'
502 sharedstatedir='${prefix}/com'
503 localstatedir='${prefix}/var'
504 libdir='${exec_prefix}/lib'
505 includedir='${prefix}/include'
506 oldincludedir='/usr/include'
507 infodir='${prefix}/info'
508 mandir='${prefix}/man'
513 # If the previous option needs an argument, assign it.
514 if test -n "$ac_prev"; then
515 eval "$ac_prev=\$ac_option"
520 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522 # Accept the important Cygnus configure options, so we can diagnose typos.
526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
531 -build | --build | --buil | --bui | --bu)
532 ac_prev=build_alias ;;
533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534 build_alias=$ac_optarg ;;
536 -cache-file | --cache-file | --cache-fil | --cache-fi \
537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538 ac_prev=cache_file ;;
539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541 cache_file=$ac_optarg ;;
544 cache_file=config.cache ;;
546 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550 datadir=$ac_optarg ;;
552 -disable-* | --disable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554 # Reject names that are not valid shell variable names.
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559 eval "enable_$ac_feature=no" ;;
561 -enable-* | --enable-*)
562 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566 { (exit 1); exit 1; }; }
567 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
572 eval "enable_$ac_feature='$ac_optarg'" ;;
574 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576 | --exec | --exe | --ex)
577 ac_prev=exec_prefix ;;
578 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580 | --exec=* | --exe=* | --ex=*)
581 exec_prefix=$ac_optarg ;;
583 -gas | --gas | --ga | --g)
584 # Obsolete; use --with-gas.
587 -help | --help | --hel | --he | -h)
589 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590 ac_init_help=recursive ;;
591 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592 ac_init_help=short ;;
594 -host | --host | --hos | --ho)
595 ac_prev=host_alias ;;
596 -host=* | --host=* | --hos=* | --ho=*)
597 host_alias=$ac_optarg ;;
599 -includedir | --includedir | --includedi | --included | --include \
600 | --includ | --inclu | --incl | --inc)
601 ac_prev=includedir ;;
602 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603 | --includ=* | --inclu=* | --incl=* | --inc=*)
604 includedir=$ac_optarg ;;
606 -infodir | --infodir | --infodi | --infod | --info | --inf)
608 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609 infodir=$ac_optarg ;;
611 -libdir | --libdir | --libdi | --libd)
613 -libdir=* | --libdir=* | --libdi=* | --libd=*)
616 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617 | --libexe | --libex | --libe)
618 ac_prev=libexecdir ;;
619 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620 | --libexe=* | --libex=* | --libe=*)
621 libexecdir=$ac_optarg ;;
623 -localstatedir | --localstatedir | --localstatedi | --localstated \
624 | --localstate | --localstat | --localsta | --localst \
625 | --locals | --local | --loca | --loc | --lo)
626 ac_prev=localstatedir ;;
627 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630 localstatedir=$ac_optarg ;;
632 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
638 # Obsolete; use --without-fp.
641 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642 | --no-cr | --no-c | -n)
645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
649 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651 | --oldin | --oldi | --old | --ol | --o)
652 ac_prev=oldincludedir ;;
653 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656 oldincludedir=$ac_optarg ;;
658 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
663 -program-prefix | --program-prefix | --program-prefi | --program-pref \
664 | --program-pre | --program-pr | --program-p)
665 ac_prev=program_prefix ;;
666 -program-prefix=* | --program-prefix=* | --program-prefi=* \
667 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668 program_prefix=$ac_optarg ;;
670 -program-suffix | --program-suffix | --program-suffi | --program-suff \
671 | --program-suf | --program-su | --program-s)
672 ac_prev=program_suffix ;;
673 -program-suffix=* | --program-suffix=* | --program-suffi=* \
674 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675 program_suffix=$ac_optarg ;;
677 -program-transform-name | --program-transform-name \
678 | --program-transform-nam | --program-transform-na \
679 | --program-transform-n | --program-transform- \
680 | --program-transform | --program-transfor \
681 | --program-transfo | --program-transf \
682 | --program-trans | --program-tran \
683 | --progr-tra | --program-tr | --program-t)
684 ac_prev=program_transform_name ;;
685 -program-transform-name=* | --program-transform-name=* \
686 | --program-transform-nam=* | --program-transform-na=* \
687 | --program-transform-n=* | --program-transform-=* \
688 | --program-transform=* | --program-transfor=* \
689 | --program-transfo=* | --program-transf=* \
690 | --program-trans=* | --program-tran=* \
691 | --progr-tra=* | --program-tr=* | --program-t=*)
692 program_transform_name=$ac_optarg ;;
694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695 | -silent | --silent | --silen | --sile | --sil)
698 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702 sbindir=$ac_optarg ;;
704 -sharedstatedir | --sharedstatedir | --sharedstatedi \
705 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706 | --sharedst | --shareds | --shared | --share | --shar \
708 ac_prev=sharedstatedir ;;
709 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713 sharedstatedir=$ac_optarg ;;
715 -site | --site | --sit)
717 -site=* | --site=* | --sit=*)
720 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
725 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726 | --syscon | --sysco | --sysc | --sys | --sy)
727 ac_prev=sysconfdir ;;
728 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730 sysconfdir=$ac_optarg ;;
732 -target | --target | --targe | --targ | --tar | --ta | --t)
733 ac_prev=target_alias ;;
734 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735 target_alias=$ac_optarg ;;
737 -v | -verbose | --verbose | --verbos | --verbo | --verb)
740 -version | --version | --versio | --versi | --vers | -V)
744 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745 # Reject names that are not valid shell variable names.
746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747 { echo "$as_me: error: invalid package name: $ac_package" >&2
748 { (exit 1); exit 1; }; }
749 ac_package=`echo $ac_package| sed 's/-/_/g'`
751 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
754 eval "with_$ac_package='$ac_optarg'" ;;
756 -without-* | --without-*)
757 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758 # Reject names that are not valid shell variable names.
759 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760 { echo "$as_me: error: invalid package name: $ac_package" >&2
761 { (exit 1); exit 1; }; }
762 ac_package=`echo $ac_package | sed 's/-/_/g'`
763 eval "with_$ac_package=no" ;;
766 # Obsolete; use --with-x.
769 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770 | --x-incl | --x-inc | --x-in | --x-i)
771 ac_prev=x_includes ;;
772 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774 x_includes=$ac_optarg ;;
776 -x-libraries | --x-libraries | --x-librarie | --x-librari \
777 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778 ac_prev=x_libraries ;;
779 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781 x_libraries=$ac_optarg ;;
783 -*) { echo "$as_me: error: unrecognized option: $ac_option
784 Try \`$0 --help' for more information." >&2
785 { (exit 1); exit 1; }; }
789 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790 # Reject names that are not valid shell variable names.
791 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793 { (exit 1); exit 1; }; }
794 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795 eval "$ac_envvar='$ac_optarg'"
799 # FIXME: should be removed in autoconf 3.0.
800 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
809 if test -n "$ac_prev"; then
810 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811 { echo "$as_me: error: missing argument to $ac_option" >&2
812 { (exit 1); exit 1; }; }
815 # Be sure to have absolute paths.
816 for ac_var in exec_prefix prefix
818 eval ac_val=$`echo $ac_var`
820 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822 { (exit 1); exit 1; }; };;
826 # Be sure to have absolute paths.
827 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828 localstatedir libdir includedir oldincludedir infodir mandir
830 eval ac_val=$`echo $ac_var`
832 [\\/$]* | ?:[\\/]* ) ;;
833 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834 { (exit 1); exit 1; }; };;
838 # There might be people who depend on the old broken behavior: `$host'
839 # used to hold the argument of --host etc.
840 # FIXME: To remove some day.
845 # FIXME: To remove some day.
846 if test "x$host_alias" != x; then
847 if test "x$build_alias" = x; then
848 cross_compiling=maybe
849 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850 If a cross compiler is detected then cross compile mode will be used." >&2
851 elif test "x$build_alias" != "x$host_alias"; then
857 test -n "$host_alias" && ac_tool_prefix=$host_alias-
859 test "$silent" = yes && exec 6>/dev/null
862 # Find the source files, if location was not specified.
863 if test -z "$srcdir"; then
864 ac_srcdir_defaulted=yes
865 # Try the directory containing this script, then its parent.
866 ac_confdir=`(dirname "$0") 2>/dev/null ||
867 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868 X"$0" : 'X\(//\)[^/]' \| \
869 X"$0" : 'X\(//\)$' \| \
870 X"$0" : 'X\(/\)' \| \
871 . : '\(.\)' 2>/dev/null ||
873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875 /^X\(\/\/\)$/{ s//\1/; q; }
876 /^X\(\/\).*/{ s//\1/; q; }
879 if test ! -r $srcdir/$ac_unique_file; then
883 ac_srcdir_defaulted=no
885 if test ! -r $srcdir/$ac_unique_file; then
886 if test "$ac_srcdir_defaulted" = yes; then
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888 { (exit 1); exit 1; }; }
890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891 { (exit 1); exit 1; }; }
894 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896 { (exit 1); exit 1; }; }
897 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898 ac_env_build_alias_set=${build_alias+set}
899 ac_env_build_alias_value=$build_alias
900 ac_cv_env_build_alias_set=${build_alias+set}
901 ac_cv_env_build_alias_value=$build_alias
902 ac_env_host_alias_set=${host_alias+set}
903 ac_env_host_alias_value=$host_alias
904 ac_cv_env_host_alias_set=${host_alias+set}
905 ac_cv_env_host_alias_value=$host_alias
906 ac_env_target_alias_set=${target_alias+set}
907 ac_env_target_alias_value=$target_alias
908 ac_cv_env_target_alias_set=${target_alias+set}
909 ac_cv_env_target_alias_value=$target_alias
910 ac_env_CXX_set=${CXX+set}
911 ac_env_CXX_value=$CXX
912 ac_cv_env_CXX_set=${CXX+set}
913 ac_cv_env_CXX_value=$CXX
914 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
915 ac_env_CXXFLAGS_value=$CXXFLAGS
916 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
917 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_env_CPPFLAGS_value=$CPPFLAGS
924 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926 ac_env_CC_set=${CC+set}
928 ac_cv_env_CC_set=${CC+set}
929 ac_cv_env_CC_value=$CC
930 ac_env_CFLAGS_set=${CFLAGS+set}
931 ac_env_CFLAGS_value=$CFLAGS
932 ac_cv_env_CFLAGS_set=${CFLAGS+set}
933 ac_cv_env_CFLAGS_value=$CFLAGS
934 ac_env_CPP_set=${CPP+set}
935 ac_env_CPP_value=$CPP
936 ac_cv_env_CPP_set=${CPP+set}
937 ac_cv_env_CPP_value=$CPP
938 ac_env_CXXCPP_set=${CXXCPP+set}
939 ac_env_CXXCPP_value=$CXXCPP
940 ac_cv_env_CXXCPP_set=${CXXCPP+set}
941 ac_cv_env_CXXCPP_value=$CXXCPP
942 ac_env_F77_set=${F77+set}
943 ac_env_F77_value=$F77
944 ac_cv_env_F77_set=${F77+set}
945 ac_cv_env_F77_value=$F77
946 ac_env_FFLAGS_set=${FFLAGS+set}
947 ac_env_FFLAGS_value=$FFLAGS
948 ac_cv_env_FFLAGS_set=${FFLAGS+set}
949 ac_cv_env_FFLAGS_value=$FFLAGS
952 # Report the --help message.
954 if test "$ac_init_help" = "long"; then
955 # Omit some internal or obsolete options to make the list less imposing.
956 # This message is too long to be a string in the A/UX 3.1 sh.
958 \`configure' configures LLVM 1.4 to adapt to many kinds of systems.
960 Usage: $0 [OPTION]... [VAR=VALUE]...
962 To assign environment variables (e.g., CC, CFLAGS...), specify them as
963 VAR=VALUE. See below for descriptions of some of the useful variables.
965 Defaults for the options are specified in brackets.
968 -h, --help display this help and exit
969 --help=short display options specific to this package
970 --help=recursive display the short help of all the included packages
971 -V, --version display version information and exit
972 -q, --quiet, --silent do not print \`checking...' messages
973 --cache-file=FILE cache test results in FILE [disabled]
974 -C, --config-cache alias for \`--cache-file=config.cache'
975 -n, --no-create do not create output files
976 --srcdir=DIR find the sources in DIR [configure dir or \`..']
981 Installation directories:
982 --prefix=PREFIX install architecture-independent files in PREFIX
984 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
987 By default, \`make install' will install all the files in
988 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
989 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990 for instance \`--prefix=\$HOME'.
992 For better control, use the options below.
994 Fine tuning of the installation directories:
995 --bindir=DIR user executables [EPREFIX/bin]
996 --sbindir=DIR system admin executables [EPREFIX/sbin]
997 --libexecdir=DIR program executables [EPREFIX/libexec]
998 --datadir=DIR read-only architecture-independent data [PREFIX/share]
999 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1000 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1001 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1002 --libdir=DIR object code libraries [EPREFIX/lib]
1003 --includedir=DIR C header files [PREFIX/include]
1004 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1005 --infodir=DIR info documentation [PREFIX/info]
1006 --mandir=DIR man documentation [PREFIX/man]
1012 --build=BUILD configure for building on BUILD [guessed]
1013 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1014 --target=TARGET configure for building compilers for TARGET [HOST]
1018 if test -n "$ac_init_help"; then
1019 case $ac_init_help in
1020 short | recursive ) echo "Configuration of LLVM 1.4:";;
1025 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1026 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1027 --enable-shared[=PKGS]
1028 build shared libraries [default=yes]
1029 --enable-static[=PKGS]
1030 build static libraries [default=yes]
1031 --enable-fast-install[=PKGS]
1032 optimize for fast installation [default=yes]
1033 --disable-libtool-lock avoid locking (might break parallel builds)
1034 --enable-optimized Compile with optimizations enabled (default is NO)
1035 --enable-spec95=ARG Use spec95 as a benchmark (srcs in DIR)
1036 --enable-spec2000=ARG Use spec2000 as a benchmark (srcs in DIR)
1037 --enable-povray=ARG Use povray as a benchmark (srcs in DIR)
1038 --enable-precompiled_bytecode
1039 Use pre-compiled bytecode (default is NO)
1040 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
1041 --enable-jit Enable Just In Time Compiling (default is YES)
1044 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1045 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1046 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1047 --with-pic try to use only PIC/non-PIC objects [default=use
1050 include additional configurations [automatic]
1051 --with-llvmgccdir Location of LLVM GCC front-end
1052 --with-bcrepos Location of Bytecode Repository
1053 --with-papi Location of PAPI
1055 Some influential environment variables:
1056 CXX C++ compiler command
1057 CXXFLAGS C++ compiler flags
1058 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1059 nonstandard directory <lib dir>
1060 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061 headers in a nonstandard directory <include dir>
1062 CC C compiler command
1063 CFLAGS C compiler flags
1065 CXXCPP C++ preprocessor
1066 F77 Fortran 77 compiler command
1067 FFLAGS Fortran 77 compiler flags
1069 Use these variables to override the choices made by `configure' or to help
1070 it to find libraries and programs with nonstandard names/locations.
1072 Report bugs to <llvmbugs@cs.uiuc.edu>.
1076 if test "$ac_init_help" = "recursive"; then
1077 # If there are subdirs, report their specific --help.
1079 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080 test -d $ac_dir || continue
1083 if test "$ac_dir" != .; then
1084 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085 # A "../" for each directory in $ac_dir_suffix.
1086 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1088 ac_dir_suffix= ac_top_builddir=
1092 .) # No --srcdir option. We are building in place.
1094 if test -z "$ac_top_builddir"; then
1097 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1099 [\\/]* | ?:[\\/]* ) # Absolute path.
1100 ac_srcdir=$srcdir$ac_dir_suffix;
1101 ac_top_srcdir=$srcdir ;;
1103 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1107 # Do not use `cd foo && pwd` to compute absolute paths, because
1108 # the directories may not exist.
1110 .) ac_abs_builddir="$ac_dir";;
1113 .) ac_abs_builddir=`pwd`;;
1114 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1115 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1118 case $ac_abs_builddir in
1119 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1121 case ${ac_top_builddir}. in
1122 .) ac_abs_top_builddir=$ac_abs_builddir;;
1123 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1124 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1127 case $ac_abs_builddir in
1128 .) ac_abs_srcdir=$ac_srcdir;;
1131 .) ac_abs_srcdir=$ac_abs_builddir;;
1132 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1133 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1136 case $ac_abs_builddir in
1137 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1139 case $ac_top_srcdir in
1140 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1141 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1142 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1147 # Check for guested configure; otherwise get Cygnus style configure.
1148 if test -f $ac_srcdir/configure.gnu; then
1150 $SHELL $ac_srcdir/configure.gnu --help=recursive
1151 elif test -f $ac_srcdir/configure; then
1153 $SHELL $ac_srcdir/configure --help=recursive
1154 elif test -f $ac_srcdir/configure.ac ||
1155 test -f $ac_srcdir/configure.in; then
1157 $ac_configure --help
1159 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1165 test -n "$ac_init_help" && exit 0
1166 if $ac_init_version; then
1169 generated by GNU Autoconf 2.59
1171 Copyright (C) 2003 Free Software Foundation, Inc.
1172 This configure script is free software; the Free Software Foundation
1173 gives unlimited permission to copy, distribute and modify it.
1179 This file contains any messages produced by compilers while
1180 running configure, to aid debugging if configure makes a mistake.
1182 It was created by LLVM $as_me 1.4, which was
1183 generated by GNU Autoconf 2.59. Invocation command line was
1194 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1195 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1196 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1197 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1198 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1200 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1201 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1203 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1204 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1205 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1206 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1207 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1208 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1209 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1217 test -z "$as_dir" && as_dir=.
1218 echo "PATH: $as_dir"
1233 # Keep a trace of the command line.
1234 # Strip out --no-create and --no-recursion so they do not pile up.
1235 # Strip out --silent because we don't want to record it for future runs.
1236 # Also quote any args containing shell meta-characters.
1237 # Make two passes to allow for proper duplicate-argument suppression.
1242 ac_must_keep_next=false
1248 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250 | -silent | --silent | --silen | --sile | --sil)
1252 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1256 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1258 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1259 if test $ac_must_keep_next = true; then
1260 ac_must_keep_next=false # Got value, back to normal.
1263 *=* | --config-cache | -C | -disable-* | --disable-* \
1264 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1265 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1266 | -with-* | --with-* | -without-* | --without-* | --x)
1267 case "$ac_configure_args0 " in
1268 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1271 -* ) ac_must_keep_next=true ;;
1274 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1275 # Get rid of the leading space.
1281 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1282 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1284 # When interrupted or exit'd, cleanup temporary files, and complete
1285 # config.log. We remove comments because anyway the quotes in there
1286 # would cause problems or look ugly.
1287 # WARNING: Be sure not to use single quotes in there, as some shells,
1288 # such as our DU 5.0 friend, will then `close' the trap.
1289 trap 'exit_status=$?
1290 # Save into config.log some information that might help in debugging.
1295 ## ---------------- ##
1296 ## Cache variables. ##
1297 ## ---------------- ##
1300 # The following way of writing the cache mishandles newlines in values,
1303 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1306 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1307 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1311 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1318 ## ----------------- ##
1319 ## Output variables. ##
1320 ## ----------------- ##
1323 for ac_var in $ac_subst_vars
1325 eval ac_val=$`echo $ac_var`
1326 echo "$ac_var='"'"'$ac_val'"'"'"
1330 if test -n "$ac_subst_files"; then
1337 for ac_var in $ac_subst_files
1339 eval ac_val=$`echo $ac_var`
1340 echo "$ac_var='"'"'$ac_val'"'"'"
1345 if test -s confdefs.h; then
1352 sed "/^$/d" confdefs.h | sort
1355 test "$ac_signal" != 0 &&
1356 echo "$as_me: caught signal $ac_signal"
1357 echo "$as_me: exit $exit_status"
1359 rm -f core *.core &&
1360 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1363 for ac_signal in 1 2 13 15; do
1364 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1368 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1369 rm -rf conftest* confdefs.h
1370 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1373 # Predefined preprocessor variables.
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_NAME "$PACKAGE_NAME"
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_STRING "$PACKAGE_STRING"
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1400 # Let the site file select an alternate cache file if it wants to.
1401 # Prefer explicitly selected file to automatically selected ones.
1402 if test -z "$CONFIG_SITE"; then
1403 if test "x$prefix" != xNONE; then
1404 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1406 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1409 for ac_site_file in $CONFIG_SITE; do
1410 if test -r "$ac_site_file"; then
1411 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1412 echo "$as_me: loading site script $ac_site_file" >&6;}
1413 sed 's/^/| /' "$ac_site_file" >&5
1418 if test -r "$cache_file"; then
1419 # Some versions of bash will fail to source /dev/null (special
1420 # files actually), so we avoid doing that.
1421 if test -f "$cache_file"; then
1422 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1423 echo "$as_me: loading cache $cache_file" >&6;}
1425 [\\/]* | ?:[\\/]* ) . $cache_file;;
1426 *) . ./$cache_file;;
1430 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1431 echo "$as_me: creating cache $cache_file" >&6;}
1435 # Check that the precious variables saved in the cache have kept the same
1437 ac_cache_corrupted=false
1438 for ac_var in `(set) 2>&1 |
1439 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1440 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1441 eval ac_new_set=\$ac_env_${ac_var}_set
1442 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1443 eval ac_new_val="\$ac_env_${ac_var}_value"
1444 case $ac_old_set,$ac_new_set in
1446 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1447 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1448 ac_cache_corrupted=: ;;
1450 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1451 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1452 ac_cache_corrupted=: ;;
1455 if test "x$ac_old_val" != "x$ac_new_val"; then
1456 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1457 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1458 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1459 echo "$as_me: former value: $ac_old_val" >&2;}
1460 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1461 echo "$as_me: current value: $ac_new_val" >&2;}
1462 ac_cache_corrupted=:
1465 # Pass precious variables to config.status.
1466 if test "$ac_new_set" = set; then
1468 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1469 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1470 *) ac_arg=$ac_var=$ac_new_val ;;
1472 case " $ac_configure_args " in
1473 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1474 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1478 if $ac_cache_corrupted; then
1479 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1480 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1481 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1482 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1483 { (exit 1); exit 1; }; }
1487 ac_cpp='$CPP $CPPFLAGS'
1488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1520 for ac_dir in autoconf $srcdir/autoconf; do
1521 if test -f $ac_dir/install-sh; then
1523 ac_install_sh="$ac_aux_dir/install-sh -c"
1525 elif test -f $ac_dir/install.sh; then
1527 ac_install_sh="$ac_aux_dir/install.sh -c"
1529 elif test -f $ac_dir/shtool; then
1531 ac_install_sh="$ac_aux_dir/shtool install -c"
1535 if test -z "$ac_aux_dir"; then
1536 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1537 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1538 { (exit 1); exit 1; }; }
1540 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1541 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1542 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1545 if test ${srcdir} != "."
1547 if test -f ${srcdir}/include/Config/config.h
1549 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1550 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1551 { (exit 1); exit 1; }; }
1555 for i in `ls ${srcdir}/projects`
1557 if test ${i} != "CVS"
1559 if test -f ${srcdir}/projects/${i}/configure
1563 subdirs="$subdirs projects/${i}"
1569 ac_config_headers="$ac_config_headers include/Config/config.h"
1572 ac_config_files="$ac_config_files Makefile.config include/Support/DataTypes.h include/Support/ThreadSupport.h include/Support/hash_map include/Support/hash_set include/Support/iterator"
1575 ac_config_commands="$ac_config_commands Makefile"
1578 ac_config_commands="$ac_config_commands Makefile.common"
1581 ac_config_commands="$ac_config_commands examples/Makefile"
1584 ac_config_commands="$ac_config_commands lib/Makefile"
1587 ac_config_commands="$ac_config_commands runtime/Makefile"
1590 ac_config_commands="$ac_config_commands test/Makefile"
1593 ac_config_commands="$ac_config_commands test/Makefile.tests"
1596 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1599 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1602 ac_config_commands="$ac_config_commands test/Programs/Makefile"
1605 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1608 ac_config_commands="$ac_config_commands test/Programs/Makefile.tests"
1611 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1614 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1617 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1620 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1623 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1626 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1629 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1632 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1635 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1638 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1641 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1644 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1647 ac_config_commands="$ac_config_commands test/Programs/TEST.vtl.Makefile"
1650 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1653 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1656 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1659 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec2000"
1662 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec95"
1665 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1668 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1671 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1674 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1677 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1680 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1683 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1686 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1689 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1692 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1695 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1698 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1701 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1704 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1707 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1710 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1713 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1716 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1719 ac_config_commands="$ac_config_commands tools/Makefile"
1722 ac_config_commands="$ac_config_commands utils/Makefile"
1725 ac_config_commands="$ac_config_commands projects/Makefile"
1729 # Find a good install program. We prefer a C program (faster),
1730 # so one script is as good as another. But avoid the broken or
1731 # incompatible versions:
1732 # SysV /etc/install, /usr/sbin/install
1733 # SunOS /usr/etc/install
1734 # IRIX /sbin/install
1736 # AmigaOS /C/install, which installs bootblocks on floppy discs
1737 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1738 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1739 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1740 # OS/2's system install, which has a completely different semantic
1741 # ./install, which can be erroneously created by make from ./install.sh.
1742 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1743 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1744 if test -z "$INSTALL"; then
1745 if test "${ac_cv_path_install+set}" = set; then
1746 echo $ECHO_N "(cached) $ECHO_C" >&6
1748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752 test -z "$as_dir" && as_dir=.
1753 # Account for people who put trailing slashes in PATH elements.
1755 ./ | .// | /cC/* | \
1756 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1757 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1760 # OSF1 and SCO ODT 3.0 have their own names for install.
1761 # Don't use installbsd from OSF since it installs stuff as root
1763 for ac_prog in ginstall scoinst install; do
1764 for ac_exec_ext in '' $ac_executable_extensions; do
1765 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1766 if test $ac_prog = install &&
1767 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1768 # AIX install. It has an incompatible calling convention.
1770 elif test $ac_prog = install &&
1771 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1772 # program-specific install script used by HP pwplus--don't use.
1775 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1787 if test "${ac_cv_path_install+set}" = set; then
1788 INSTALL=$ac_cv_path_install
1790 # As a last resort, use the slow shell script. We don't cache a
1791 # path for INSTALL within a source directory, because that will
1792 # break other packages using the cache if that directory is
1793 # removed, or if the path is relative.
1794 INSTALL=$ac_install_sh
1797 echo "$as_me:$LINENO: result: $INSTALL" >&5
1798 echo "${ECHO_T}$INSTALL" >&6
1800 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1801 # It thinks the first close brace ends the variable substitution.
1802 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1804 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1806 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1809 # Make sure we can run config.sub.
1810 $ac_config_sub sun4 >/dev/null 2>&1 ||
1811 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1812 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1813 { (exit 1); exit 1; }; }
1815 echo "$as_me:$LINENO: checking build system type" >&5
1816 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1817 if test "${ac_cv_build+set}" = set; then
1818 echo $ECHO_N "(cached) $ECHO_C" >&6
1820 ac_cv_build_alias=$build_alias
1821 test -z "$ac_cv_build_alias" &&
1822 ac_cv_build_alias=`$ac_config_guess`
1823 test -z "$ac_cv_build_alias" &&
1824 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1825 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1826 { (exit 1); exit 1; }; }
1827 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1828 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1829 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1830 { (exit 1); exit 1; }; }
1833 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1834 echo "${ECHO_T}$ac_cv_build" >&6
1836 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1837 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1838 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1841 echo "$as_me:$LINENO: checking host system type" >&5
1842 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1843 if test "${ac_cv_host+set}" = set; then
1844 echo $ECHO_N "(cached) $ECHO_C" >&6
1846 ac_cv_host_alias=$host_alias
1847 test -z "$ac_cv_host_alias" &&
1848 ac_cv_host_alias=$ac_cv_build_alias
1849 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1850 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1851 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1852 { (exit 1); exit 1; }; }
1855 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1856 echo "${ECHO_T}$ac_cv_host" >&6
1858 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1859 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1860 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1863 echo "$as_me:$LINENO: checking target system type" >&5
1864 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1865 if test "${ac_cv_target+set}" = set; then
1866 echo $ECHO_N "(cached) $ECHO_C" >&6
1868 ac_cv_target_alias=$target_alias
1869 test "x$ac_cv_target_alias" = "x" &&
1870 ac_cv_target_alias=$ac_cv_host_alias
1871 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1872 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1873 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1874 { (exit 1); exit 1; }; }
1877 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1878 echo "${ECHO_T}$ac_cv_target" >&6
1879 target=$ac_cv_target
1880 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1881 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1882 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1885 # The aliases save the names the user supplied, while $host etc.
1886 # will get canonicalized.
1887 test -n "$target_alias" &&
1888 test "$program_prefix$program_suffix$program_transform_name" = \
1890 program_prefix=${target_alias}-
1896 platform_type="Linux"
1897 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1899 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1906 platform_type="SunOS"
1907 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1909 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1916 platform_type="Cygwin"
1921 platform_type="Darwin"
1931 platform_type="Win32"
1936 platform_type="Unknown"
1940 ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1944 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1953 sparc*-*) ARCH=Sparc
1956 powerpc*-*) ARCH=PowerPC
1965 ac_cpp='$CXXCPP $CPPFLAGS'
1966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1969 if test -n "$ac_tool_prefix"; then
1970 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1972 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1973 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1974 echo "$as_me:$LINENO: checking for $ac_word" >&5
1975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1976 if test "${ac_cv_prog_CXX+set}" = set; then
1977 echo $ECHO_N "(cached) $ECHO_C" >&6
1979 if test -n "$CXX"; then
1980 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986 test -z "$as_dir" && as_dir=.
1987 for ac_exec_ext in '' $ac_executable_extensions; do
1988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1989 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1999 if test -n "$CXX"; then
2000 echo "$as_me:$LINENO: result: $CXX" >&5
2001 echo "${ECHO_T}$CXX" >&6
2003 echo "$as_me:$LINENO: result: no" >&5
2004 echo "${ECHO_T}no" >&6
2007 test -n "$CXX" && break
2010 if test -z "$CXX"; then
2012 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2014 # Extract the first word of "$ac_prog", so it can be a program name with args.
2015 set dummy $ac_prog; ac_word=$2
2016 echo "$as_me:$LINENO: checking for $ac_word" >&5
2017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2018 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 if test -n "$ac_ct_CXX"; then
2022 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 test -z "$as_dir" && as_dir=.
2029 for ac_exec_ext in '' $ac_executable_extensions; do
2030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2031 ac_cv_prog_ac_ct_CXX="$ac_prog"
2032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2041 if test -n "$ac_ct_CXX"; then
2042 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2043 echo "${ECHO_T}$ac_ct_CXX" >&6
2045 echo "$as_me:$LINENO: result: no" >&5
2046 echo "${ECHO_T}no" >&6
2049 test -n "$ac_ct_CXX" && break
2051 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2057 # Provide some information about the compiler.
2058 echo "$as_me:$LINENO:" \
2059 "checking for C++ compiler version" >&5
2060 ac_compiler=`set X $ac_compile; echo $2`
2061 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2062 (eval $ac_compiler --version </dev/null >&5) 2>&5
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }
2066 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2067 (eval $ac_compiler -v </dev/null >&5) 2>&5
2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); }
2071 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2072 (eval $ac_compiler -V </dev/null >&5) 2>&5
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); }
2077 cat >conftest.$ac_ext <<_ACEOF
2080 cat confdefs.h >>conftest.$ac_ext
2081 cat >>conftest.$ac_ext <<_ACEOF
2082 /* end confdefs.h. */
2092 ac_clean_files_save=$ac_clean_files
2093 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2094 # Try to create an executable without -o first, disregard a.out.
2095 # It will help us diagnose broken compilers, and finding out an intuition
2097 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2098 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2099 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2100 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2101 (eval $ac_link_default) 2>&5
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; then
2105 # Find the output, starting from the most likely. This scheme is
2106 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2109 # Be careful to initialize this variable, since it used to be cached.
2110 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2112 # b.out is created by i960 compilers.
2113 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2115 test -f "$ac_file" || continue
2117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2120 # This is the source file.
2123 # We found the default executable, but exeext='' is most
2127 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2128 # FIXME: I believe we export ac_cv_exeext for Libtool,
2129 # but it would be cool to find out if it's true. Does anybody
2130 # maintain Libtool? --akim.
2138 echo "$as_me: failed program was:" >&5
2139 sed 's/^/| /' conftest.$ac_ext >&5
2141 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2142 See \`config.log' for more details." >&5
2143 echo "$as_me: error: C++ compiler cannot create executables
2144 See \`config.log' for more details." >&2;}
2145 { (exit 77); exit 77; }; }
2148 ac_exeext=$ac_cv_exeext
2149 echo "$as_me:$LINENO: result: $ac_file" >&5
2150 echo "${ECHO_T}$ac_file" >&6
2152 # Check the compiler produces executables we can run. If not, either
2153 # the compiler is broken, or we cross compile.
2154 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2155 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2156 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2157 # If not cross compiling, check that we can run a simple program.
2158 if test "$cross_compiling" != yes; then
2159 if { ac_try='./$ac_file'
2160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }; }; then
2167 if test "$cross_compiling" = maybe; then
2170 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2171 If you meant to cross compile, use \`--host'.
2172 See \`config.log' for more details." >&5
2173 echo "$as_me: error: cannot run C++ compiled programs.
2174 If you meant to cross compile, use \`--host'.
2175 See \`config.log' for more details." >&2;}
2176 { (exit 1); exit 1; }; }
2180 echo "$as_me:$LINENO: result: yes" >&5
2181 echo "${ECHO_T}yes" >&6
2183 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2184 ac_clean_files=$ac_clean_files_save
2185 # Check the compiler produces executables we can run. If not, either
2186 # the compiler is broken, or we cross compile.
2187 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2188 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2189 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2190 echo "${ECHO_T}$cross_compiling" >&6
2192 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2193 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2195 (eval $ac_link) 2>&5
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }; then
2199 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2200 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2201 # work properly (i.e., refer to `conftest.exe'), while it won't with
2203 for ac_file in conftest.exe conftest conftest.*; do
2204 test -f "$ac_file" || continue
2206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2207 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2214 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2215 See \`config.log' for more details." >&5
2216 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2217 See \`config.log' for more details." >&2;}
2218 { (exit 1); exit 1; }; }
2221 rm -f conftest$ac_cv_exeext
2222 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2223 echo "${ECHO_T}$ac_cv_exeext" >&6
2225 rm -f conftest.$ac_ext
2226 EXEEXT=$ac_cv_exeext
2228 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2229 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2230 if test "${ac_cv_objext+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2233 cat >conftest.$ac_ext <<_ACEOF
2236 cat confdefs.h >>conftest.$ac_ext
2237 cat >>conftest.$ac_ext <<_ACEOF
2238 /* end confdefs.h. */
2248 rm -f conftest.o conftest.obj
2249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250 (eval $ac_compile) 2>&5
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); }; then
2254 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2257 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2262 echo "$as_me: failed program was:" >&5
2263 sed 's/^/| /' conftest.$ac_ext >&5
2265 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2266 See \`config.log' for more details." >&5
2267 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2268 See \`config.log' for more details." >&2;}
2269 { (exit 1); exit 1; }; }
2272 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2274 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2275 echo "${ECHO_T}$ac_cv_objext" >&6
2276 OBJEXT=$ac_cv_objext
2278 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2279 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2280 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2283 cat >conftest.$ac_ext <<_ACEOF
2286 cat confdefs.h >>conftest.$ac_ext
2287 cat >>conftest.$ac_ext <<_ACEOF
2288 /* end confdefs.h. */
2301 rm -f conftest.$ac_objext
2302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303 (eval $ac_compile) 2>conftest.er1
2305 grep -v '^ *+' conftest.er1 >conftest.err
2307 cat conftest.err >&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); } &&
2310 { ac_try='test -z "$ac_cxx_werror_flag"
2311 || test ! -s conftest.err'
2312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }; } &&
2317 { ac_try='test -s conftest.$ac_objext'
2318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; }; then
2325 echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2331 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2334 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2335 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2336 GXX=`test $ac_compiler_gnu = yes && echo yes`
2337 ac_test_CXXFLAGS=${CXXFLAGS+set}
2338 ac_save_CXXFLAGS=$CXXFLAGS
2340 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2341 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2342 if test "${ac_cv_prog_cxx_g+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2345 cat >conftest.$ac_ext <<_ACEOF
2348 cat confdefs.h >>conftest.$ac_ext
2349 cat >>conftest.$ac_ext <<_ACEOF
2350 /* end confdefs.h. */
2360 rm -f conftest.$ac_objext
2361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2362 (eval $ac_compile) 2>conftest.er1
2364 grep -v '^ *+' conftest.er1 >conftest.err
2366 cat conftest.err >&5
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); } &&
2369 { ac_try='test -z "$ac_cxx_werror_flag"
2370 || test ! -s conftest.err'
2371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; } &&
2376 { ac_try='test -s conftest.$ac_objext'
2377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }; }; then
2382 ac_cv_prog_cxx_g=yes
2384 echo "$as_me: failed program was:" >&5
2385 sed 's/^/| /' conftest.$ac_ext >&5
2389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2391 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2392 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2393 if test "$ac_test_CXXFLAGS" = set; then
2394 CXXFLAGS=$ac_save_CXXFLAGS
2395 elif test $ac_cv_prog_cxx_g = yes; then
2396 if test "$GXX" = yes; then
2402 if test "$GXX" = yes; then
2408 for ac_declaration in \
2410 'extern "C" void std::exit (int) throw (); using std::exit;' \
2411 'extern "C" void std::exit (int); using std::exit;' \
2412 'extern "C" void exit (int) throw ();' \
2413 'extern "C" void exit (int);' \
2416 cat >conftest.$ac_ext <<_ACEOF
2419 cat confdefs.h >>conftest.$ac_ext
2420 cat >>conftest.$ac_ext <<_ACEOF
2421 /* end confdefs.h. */
2432 rm -f conftest.$ac_objext
2433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434 (eval $ac_compile) 2>conftest.er1
2436 grep -v '^ *+' conftest.er1 >conftest.err
2438 cat conftest.err >&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); } &&
2441 { ac_try='test -z "$ac_cxx_werror_flag"
2442 || test ! -s conftest.err'
2443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }; } &&
2448 { ac_try='test -s conftest.$ac_objext'
2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; }; then
2456 echo "$as_me: failed program was:" >&5
2457 sed 's/^/| /' conftest.$ac_ext >&5
2461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2462 cat >conftest.$ac_ext <<_ACEOF
2465 cat confdefs.h >>conftest.$ac_ext
2466 cat >>conftest.$ac_ext <<_ACEOF
2467 /* end confdefs.h. */
2477 rm -f conftest.$ac_objext
2478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2479 (eval $ac_compile) 2>conftest.er1
2481 grep -v '^ *+' conftest.er1 >conftest.err
2483 cat conftest.err >&5
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); } &&
2486 { ac_try='test -z "$ac_cxx_werror_flag"
2487 || test ! -s conftest.err'
2488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); }; } &&
2493 { ac_try='test -s conftest.$ac_objext'
2494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); }; }; then
2501 echo "$as_me: failed program was:" >&5
2502 sed 's/^/| /' conftest.$ac_ext >&5
2505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2508 if test -n "$ac_declaration"; then
2509 echo '#ifdef __cplusplus' >>confdefs.h
2510 echo $ac_declaration >>confdefs.h
2511 echo '#endif' >>confdefs.h
2515 ac_cpp='$CPP $CPPFLAGS'
2516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2521 ac_cpp='$CPP $CPPFLAGS'
2522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2525 if test -n "$ac_tool_prefix"; then
2528 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2529 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2530 echo "$as_me:$LINENO: checking for $ac_word" >&5
2531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2532 if test "${ac_cv_prog_CC+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2535 if test -n "$CC"; then
2536 ac_cv_prog_CC="$CC" # Let the user override the test.
2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 test -z "$as_dir" && as_dir=.
2543 for ac_exec_ext in '' $ac_executable_extensions; do
2544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2545 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2555 if test -n "$CC"; then
2556 echo "$as_me:$LINENO: result: $CC" >&5
2557 echo "${ECHO_T}$CC" >&6
2559 echo "$as_me:$LINENO: result: no" >&5
2560 echo "${ECHO_T}no" >&6
2563 test -n "$CC" && break
2566 if test -z "$CC"; then
2570 # Extract the first word of "$ac_prog", so it can be a program name with args.
2571 set dummy $ac_prog; ac_word=$2
2572 echo "$as_me:$LINENO: checking for $ac_word" >&5
2573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2574 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2575 echo $ECHO_N "(cached) $ECHO_C" >&6
2577 if test -n "$ac_ct_CC"; then
2578 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 test -z "$as_dir" && as_dir=.
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2587 ac_cv_prog_ac_ct_CC="$ac_prog"
2588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2597 if test -n "$ac_ct_CC"; then
2598 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2599 echo "${ECHO_T}$ac_ct_CC" >&6
2601 echo "$as_me:$LINENO: result: no" >&5
2602 echo "${ECHO_T}no" >&6
2605 test -n "$ac_ct_CC" && break
2612 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2613 See \`config.log' for more details." >&5
2614 echo "$as_me: error: no acceptable C compiler found in \$PATH
2615 See \`config.log' for more details." >&2;}
2616 { (exit 1); exit 1; }; }
2618 # Provide some information about the compiler.
2619 echo "$as_me:$LINENO:" \
2620 "checking for C compiler version" >&5
2621 ac_compiler=`set X $ac_compile; echo $2`
2622 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2623 (eval $ac_compiler --version </dev/null >&5) 2>&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }
2627 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2628 (eval $ac_compiler -v </dev/null >&5) 2>&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }
2632 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2633 (eval $ac_compiler -V </dev/null >&5) 2>&5
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }
2638 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2639 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2640 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2641 echo $ECHO_N "(cached) $ECHO_C" >&6
2643 cat >conftest.$ac_ext <<_ACEOF
2646 cat confdefs.h >>conftest.$ac_ext
2647 cat >>conftest.$ac_ext <<_ACEOF
2648 /* end confdefs.h. */
2661 rm -f conftest.$ac_objext
2662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2663 (eval $ac_compile) 2>conftest.er1
2665 grep -v '^ *+' conftest.er1 >conftest.err
2667 cat conftest.err >&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); } &&
2670 { ac_try='test -z "$ac_c_werror_flag"
2671 || test ! -s conftest.err'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; } &&
2677 { ac_try='test -s conftest.$ac_objext'
2678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }; }; then
2685 echo "$as_me: failed program was:" >&5
2686 sed 's/^/| /' conftest.$ac_ext >&5
2690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2691 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2694 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2695 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2696 GCC=`test $ac_compiler_gnu = yes && echo yes`
2697 ac_test_CFLAGS=${CFLAGS+set}
2698 ac_save_CFLAGS=$CFLAGS
2700 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2701 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2702 if test "${ac_cv_prog_cc_g+set}" = set; then
2703 echo $ECHO_N "(cached) $ECHO_C" >&6
2705 cat >conftest.$ac_ext <<_ACEOF
2708 cat confdefs.h >>conftest.$ac_ext
2709 cat >>conftest.$ac_ext <<_ACEOF
2710 /* end confdefs.h. */
2720 rm -f conftest.$ac_objext
2721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722 (eval $ac_compile) 2>conftest.er1
2724 grep -v '^ *+' conftest.er1 >conftest.err
2726 cat conftest.err >&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); } &&
2729 { ac_try='test -z "$ac_c_werror_flag"
2730 || test ! -s conftest.err'
2731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }; } &&
2736 { ac_try='test -s conftest.$ac_objext'
2737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2744 echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2751 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2752 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2753 if test "$ac_test_CFLAGS" = set; then
2754 CFLAGS=$ac_save_CFLAGS
2755 elif test $ac_cv_prog_cc_g = yes; then
2756 if test "$GCC" = yes; then
2762 if test "$GCC" = yes; then
2768 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2769 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2770 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2773 ac_cv_prog_cc_stdc=no
2775 cat >conftest.$ac_ext <<_ACEOF
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h. */
2783 #include <sys/types.h>
2784 #include <sys/stat.h>
2785 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2786 struct buf { int x; };
2787 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2788 static char *e (p, i)
2794 static char *f (char * (*g) (char **, int), char **p, ...)
2799 s = g (p, va_arg (v,int));
2804 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2805 function prototypes and stuff, but not '\xHH' hex character constants.
2806 These don't provoke an error unfortunately, instead are silently treated
2807 as 'x'. The following induces an error, until -std1 is added to get
2808 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2809 array size at least. It's necessary to write '\x00'==0 to get something
2810 that's true only with -std1. */
2811 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2813 int test (int i, double x);
2814 struct s1 {int (*f) (int a);};
2815 struct s2 {int (*f) (double a);};
2816 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2822 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2827 # Don't try gcc -ansi; that turns off useful extensions and
2828 # breaks some systems' header files.
2829 # AIX -qlanglvl=ansi
2830 # Ultrix and OSF/1 -std1
2831 # HP-UX 10.20 and later -Ae
2832 # HP-UX older versions -Aa -D_HPUX_SOURCE
2833 # SVR4 -Xc -D__EXTENSIONS__
2834 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2836 CC="$ac_save_CC $ac_arg"
2837 rm -f conftest.$ac_objext
2838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2839 (eval $ac_compile) 2>conftest.er1
2841 grep -v '^ *+' conftest.er1 >conftest.err
2843 cat conftest.err >&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); } &&
2846 { ac_try='test -z "$ac_c_werror_flag"
2847 || test ! -s conftest.err'
2848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; } &&
2853 { ac_try='test -s conftest.$ac_objext'
2854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; }; then
2859 ac_cv_prog_cc_stdc=$ac_arg
2862 echo "$as_me: failed program was:" >&5
2863 sed 's/^/| /' conftest.$ac_ext >&5
2866 rm -f conftest.err conftest.$ac_objext
2868 rm -f conftest.$ac_ext conftest.$ac_objext
2873 case "x$ac_cv_prog_cc_stdc" in
2875 echo "$as_me:$LINENO: result: none needed" >&5
2876 echo "${ECHO_T}none needed" >&6 ;;
2878 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2879 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2880 CC="$CC $ac_cv_prog_cc_stdc" ;;
2883 # Some people use a C++ compiler to compile C. Since we use `exit',
2884 # in C++ we need to declare it. In case someone uses the same compiler
2885 # for both compiling C and C++ we need to have the C++ compiler decide
2886 # the declaration of exit, since it's the most demanding environment.
2887 cat >conftest.$ac_ext <<_ACEOF
2892 rm -f conftest.$ac_objext
2893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2894 (eval $ac_compile) 2>conftest.er1
2896 grep -v '^ *+' conftest.er1 >conftest.err
2898 cat conftest.err >&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); } &&
2901 { ac_try='test -z "$ac_c_werror_flag"
2902 || test ! -s conftest.err'
2903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }; } &&
2908 { ac_try='test -s conftest.$ac_objext'
2909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }; }; then
2914 for ac_declaration in \
2916 'extern "C" void std::exit (int) throw (); using std::exit;' \
2917 'extern "C" void std::exit (int); using std::exit;' \
2918 'extern "C" void exit (int) throw ();' \
2919 'extern "C" void exit (int);' \
2922 cat >conftest.$ac_ext <<_ACEOF
2925 cat confdefs.h >>conftest.$ac_ext
2926 cat >>conftest.$ac_ext <<_ACEOF
2927 /* end confdefs.h. */
2938 rm -f conftest.$ac_objext
2939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2940 (eval $ac_compile) 2>conftest.er1
2942 grep -v '^ *+' conftest.er1 >conftest.err
2944 cat conftest.err >&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); } &&
2947 { ac_try='test -z "$ac_c_werror_flag"
2948 || test ! -s conftest.err'
2949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; } &&
2954 { ac_try='test -s conftest.$ac_objext'
2955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }; }; then
2962 echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2968 cat >conftest.$ac_ext <<_ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h. */
2983 rm -f conftest.$ac_objext
2984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2985 (eval $ac_compile) 2>conftest.er1
2987 grep -v '^ *+' conftest.er1 >conftest.err
2989 cat conftest.err >&5
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); } &&
2992 { ac_try='test -z "$ac_c_werror_flag"
2993 || test ! -s conftest.err'
2994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }; } &&
2999 { ac_try='test -s conftest.$ac_objext'
3000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }; }; then
3007 echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3014 if test -n "$ac_declaration"; then
3015 echo '#ifdef __cplusplus' >>confdefs.h
3016 echo $ac_declaration >>confdefs.h
3017 echo '#endif' >>confdefs.h
3021 echo "$as_me: failed program was:" >&5
3022 sed 's/^/| /' conftest.$ac_ext >&5
3025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3027 ac_cpp='$CPP $CPPFLAGS'
3028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3033 ac_cpp='$CPP $CPPFLAGS'
3034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3037 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3038 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3039 # On Suns, sometimes $CPP names a directory.
3040 if test -n "$CPP" && test -d "$CPP"; then
3043 if test -z "$CPP"; then
3044 if test "${ac_cv_prog_CPP+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3047 # Double quotes because CPP needs to be expanded
3048 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3051 for ac_c_preproc_warn_flag in '' yes
3053 # Use a header file that comes with gcc, so configuring glibc
3054 # with a fresh cross-compiler works.
3055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3056 # <limits.h> exists even on freestanding compilers.
3057 # On the NeXT, cc -E runs the code through the compiler's parser,
3058 # not just through cpp. "Syntax error" is here to catch this case.
3059 cat >conftest.$ac_ext <<_ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h. */
3066 # include <limits.h>
3068 # include <assert.h>
3072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3075 grep -v '^ *+' conftest.er1 >conftest.err
3077 cat conftest.err >&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); } >/dev/null; then
3080 if test -s conftest.err; then
3081 ac_cpp_err=$ac_c_preproc_warn_flag
3082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3089 if test -z "$ac_cpp_err"; then
3092 echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3095 # Broken: fails on valid input.
3098 rm -f conftest.err conftest.$ac_ext
3100 # OK, works on sane cases. Now check whether non-existent headers
3101 # can be detected and how.
3102 cat >conftest.$ac_ext <<_ACEOF
3105 cat confdefs.h >>conftest.$ac_ext
3106 cat >>conftest.$ac_ext <<_ACEOF
3107 /* end confdefs.h. */
3108 #include <ac_nonexistent.h>
3110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3113 grep -v '^ *+' conftest.er1 >conftest.err
3115 cat conftest.err >&5
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); } >/dev/null; then
3118 if test -s conftest.err; then
3119 ac_cpp_err=$ac_c_preproc_warn_flag
3120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3127 if test -z "$ac_cpp_err"; then
3128 # Broken: success on invalid input.
3131 echo "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.$ac_ext >&5
3134 # Passes both tests.
3138 rm -f conftest.err conftest.$ac_ext
3141 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3142 rm -f conftest.err conftest.$ac_ext
3143 if $ac_preproc_ok; then
3155 echo "$as_me:$LINENO: result: $CPP" >&5
3156 echo "${ECHO_T}$CPP" >&6
3158 for ac_c_preproc_warn_flag in '' yes
3160 # Use a header file that comes with gcc, so configuring glibc
3161 # with a fresh cross-compiler works.
3162 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3163 # <limits.h> exists even on freestanding compilers.
3164 # On the NeXT, cc -E runs the code through the compiler's parser,
3165 # not just through cpp. "Syntax error" is here to catch this case.
3166 cat >conftest.$ac_ext <<_ACEOF
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h. */
3173 # include <limits.h>
3175 # include <assert.h>
3179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3182 grep -v '^ *+' conftest.er1 >conftest.err
3184 cat conftest.err >&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); } >/dev/null; then
3187 if test -s conftest.err; then
3188 ac_cpp_err=$ac_c_preproc_warn_flag
3189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3196 if test -z "$ac_cpp_err"; then
3199 echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.$ac_ext >&5
3202 # Broken: fails on valid input.
3205 rm -f conftest.err conftest.$ac_ext
3207 # OK, works on sane cases. Now check whether non-existent headers
3208 # can be detected and how.
3209 cat >conftest.$ac_ext <<_ACEOF
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3215 #include <ac_nonexistent.h>
3217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3218 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3220 grep -v '^ *+' conftest.er1 >conftest.err
3222 cat conftest.err >&5
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); } >/dev/null; then
3225 if test -s conftest.err; then
3226 ac_cpp_err=$ac_c_preproc_warn_flag
3227 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3234 if test -z "$ac_cpp_err"; then
3235 # Broken: success on invalid input.
3238 echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3241 # Passes both tests.
3245 rm -f conftest.err conftest.$ac_ext
3248 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3249 rm -f conftest.err conftest.$ac_ext
3250 if $ac_preproc_ok; then
3253 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3254 See \`config.log' for more details." >&5
3255 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3256 See \`config.log' for more details." >&2;}
3257 { (exit 1); exit 1; }; }
3261 ac_cpp='$CPP $CPPFLAGS'
3262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3267 if test "$GCC" != "yes"
3269 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3270 echo "$as_me: error: gcc required but not found" >&2;}
3271 { (exit 1); exit 1; }; }
3273 if test "$GXX" != "yes"
3275 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3276 echo "$as_me: error: g++ required but not found" >&2;}
3277 { (exit 1); exit 1; }; }
3280 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3281 if test "$gccmajor" -lt "3"
3283 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3284 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3285 { (exit 1); exit 1; }; }
3288 echo "$as_me:$LINENO: checking for GNU make" >&5
3289 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3290 if test "${_cv_gnu_make_command+set}" = set; then
3291 echo $ECHO_N "(cached) $ECHO_C" >&6
3293 _cv_gnu_make_command='' ;
3294 for a in "$MAKE" make gmake gnumake ; do
3295 if test -z "$a" ; then continue ; fi ;
3296 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3297 _cv_gnu_make_command=$a ;
3303 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3304 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3305 if test "x$_cv_gnu_make_command" != "x" ; then
3309 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3310 echo "${ECHO_T}\"Not found\"" >&6;
3314 if test -z "$_cv_gnu_make_command"
3316 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3317 echo "$as_me: error: GNU Make required but not found" >&2;}
3318 { (exit 1); exit 1; }; }
3322 echo "$as_me:$LINENO: checking " >&5
3323 echo $ECHO_N "checking ... $ECHO_C" >&6
3324 if test "${ac_cv_has_flex+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3327 for ac_prog in flex lex
3329 # Extract the first word of "$ac_prog", so it can be a program name with args.
3330 set dummy $ac_prog; ac_word=$2
3331 echo "$as_me:$LINENO: checking for $ac_word" >&5
3332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3333 if test "${ac_cv_prog_LEX+set}" = set; then
3334 echo $ECHO_N "(cached) $ECHO_C" >&6
3336 if test -n "$LEX"; then
3337 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343 test -z "$as_dir" && as_dir=.
3344 for ac_exec_ext in '' $ac_executable_extensions; do
3345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3346 ac_cv_prog_LEX="$ac_prog"
3347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3356 if test -n "$LEX"; then
3357 echo "$as_me:$LINENO: result: $LEX" >&5
3358 echo "${ECHO_T}$LEX" >&6
3360 echo "$as_me:$LINENO: result: no" >&5
3361 echo "${ECHO_T}no" >&6
3364 test -n "$LEX" && break
3366 test -n "$LEX" || LEX=":"
3368 if test -z "$LEXLIB"
3370 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3371 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3372 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 ac_check_lib_save_LIBS=$LIBS
3377 cat >conftest.$ac_ext <<_ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h. */
3384 /* Override any gcc2 internal prototype to avoid an error. */
3388 /* We use char because int might match the return type of a gcc2
3389 builtin and then its argument prototype would still apply. */
3399 rm -f conftest.$ac_objext conftest$ac_exeext
3400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3401 (eval $ac_link) 2>conftest.er1
3403 grep -v '^ *+' conftest.er1 >conftest.err
3405 cat conftest.err >&5
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); } &&
3408 { ac_try='test -z "$ac_c_werror_flag"
3409 || test ! -s conftest.err'
3410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }; } &&
3415 { ac_try='test -s conftest$ac_exeext'
3416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); }; }; then
3421 ac_cv_lib_fl_yywrap=yes
3423 echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3426 ac_cv_lib_fl_yywrap=no
3428 rm -f conftest.err conftest.$ac_objext \
3429 conftest$ac_exeext conftest.$ac_ext
3430 LIBS=$ac_check_lib_save_LIBS
3432 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3433 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3434 if test $ac_cv_lib_fl_yywrap = yes; then
3437 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3438 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3439 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 ac_check_lib_save_LIBS=$LIBS
3444 cat >conftest.$ac_ext <<_ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h. */
3451 /* Override any gcc2 internal prototype to avoid an error. */
3455 /* We use char because int might match the return type of a gcc2
3456 builtin and then its argument prototype would still apply. */
3466 rm -f conftest.$ac_objext conftest$ac_exeext
3467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3468 (eval $ac_link) 2>conftest.er1
3470 grep -v '^ *+' conftest.er1 >conftest.err
3472 cat conftest.err >&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); } &&
3475 { ac_try='test -z "$ac_c_werror_flag"
3476 || test ! -s conftest.err'
3477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); }; } &&
3482 { ac_try='test -s conftest$ac_exeext'
3483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); }; }; then
3488 ac_cv_lib_l_yywrap=yes
3490 echo "$as_me: failed program was:" >&5
3491 sed 's/^/| /' conftest.$ac_ext >&5
3493 ac_cv_lib_l_yywrap=no
3495 rm -f conftest.err conftest.$ac_objext \
3496 conftest$ac_exeext conftest.$ac_ext
3497 LIBS=$ac_check_lib_save_LIBS
3499 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3500 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3501 if test $ac_cv_lib_l_yywrap = yes; then
3509 if test "x$LEX" != "x:"; then
3510 echo "$as_me:$LINENO: checking lex output file root" >&5
3511 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3512 if test "${ac_cv_prog_lex_root+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3515 # The minimal lex program is just a single line: %%. But some broken lexes
3516 # (Solaris, I think it was) want two %% lines, so accommodate them.
3517 cat >conftest.l <<_ACEOF
3521 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3522 (eval $LEX conftest.l) 2>&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }
3526 if test -f lex.yy.c; then
3527 ac_cv_prog_lex_root=lex.yy
3528 elif test -f lexyy.c; then
3529 ac_cv_prog_lex_root=lexyy
3531 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3532 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3533 { (exit 1); exit 1; }; }
3536 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3537 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3539 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3541 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3542 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3543 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 # POSIX says lex can declare yytext either as a pointer or an array; the
3547 # default is implementation-dependent. Figure out which it is, since
3548 # not all implementations provide the %pointer and %array declarations.
3549 ac_cv_prog_lex_yytext_pointer=no
3550 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3552 LIBS="$LIBS $LEXLIB"
3553 cat >conftest.$ac_ext <<_ACEOF
3554 `cat $LEX_OUTPUT_ROOT.c`
3556 rm -f conftest.$ac_objext conftest$ac_exeext
3557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3558 (eval $ac_link) 2>conftest.er1
3560 grep -v '^ *+' conftest.er1 >conftest.err
3562 cat conftest.err >&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); } &&
3565 { ac_try='test -z "$ac_c_werror_flag"
3566 || test ! -s conftest.err'
3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; } &&
3572 { ac_try='test -s conftest$ac_exeext'
3573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; }; then
3578 ac_cv_prog_lex_yytext_pointer=yes
3580 echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.$ac_ext >&5
3584 rm -f conftest.err conftest.$ac_objext \
3585 conftest$ac_exeext conftest.$ac_ext
3587 rm -f "${LEX_OUTPUT_ROOT}.c"
3590 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3591 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3592 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3594 cat >>confdefs.h <<\_ACEOF
3595 #define YYTEXT_POINTER 1
3603 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3604 echo "${ECHO_T}$ac_cv_has_flex" >&6
3605 if test "$LEX" != "flex"; then
3606 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3607 echo "$as_me: error: flex not found but required" >&2;}
3608 { (exit 1); exit 1; }; }
3611 echo "$as_me:$LINENO: checking " >&5
3612 echo $ECHO_N "checking ... $ECHO_C" >&6
3613 if test "${ac_cv_has_bison+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3616 for ac_prog in 'bison -y' byacc
3618 # Extract the first word of "$ac_prog", so it can be a program name with args.
3619 set dummy $ac_prog; ac_word=$2
3620 echo "$as_me:$LINENO: checking for $ac_word" >&5
3621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3622 if test "${ac_cv_prog_YACC+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3625 if test -n "$YACC"; then
3626 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632 test -z "$as_dir" && as_dir=.
3633 for ac_exec_ext in '' $ac_executable_extensions; do
3634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3635 ac_cv_prog_YACC="$ac_prog"
3636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3644 YACC=$ac_cv_prog_YACC
3645 if test -n "$YACC"; then
3646 echo "$as_me:$LINENO: result: $YACC" >&5
3647 echo "${ECHO_T}$YACC" >&6
3649 echo "$as_me:$LINENO: result: no" >&5
3650 echo "${ECHO_T}no" >&6
3653 test -n "$YACC" && break
3655 test -n "$YACC" || YACC="yacc"
3659 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3660 echo "${ECHO_T}$ac_cv_has_bison" >&6
3661 if test "$YACC" != "bison -y"; then
3662 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3663 echo "$as_me: error: bison not found but required" >&2;}
3664 { (exit 1); exit 1; }; }
3670 # Check whether --enable-shared or --disable-shared was given.
3671 if test "${enable_shared+set}" = set; then
3672 enableval="$enable_shared"
3673 p=${PACKAGE-default}
3675 yes) enable_shared=yes ;;
3676 no) enable_shared=no ;;
3679 # Look at the argument we got. We use all the common list separators.
3680 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3681 for pkg in $enableval; do
3683 if test "X$pkg" = "X$p"; then
3694 # Check whether --enable-static or --disable-static was given.
3695 if test "${enable_static+set}" = set; then
3696 enableval="$enable_static"
3697 p=${PACKAGE-default}
3699 yes) enable_static=yes ;;
3700 no) enable_static=no ;;
3703 # Look at the argument we got. We use all the common list separators.
3704 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3705 for pkg in $enableval; do
3707 if test "X$pkg" = "X$p"; then
3718 # Check whether --enable-fast-install or --disable-fast-install was given.
3719 if test "${enable_fast_install+set}" = set; then
3720 enableval="$enable_fast_install"
3721 p=${PACKAGE-default}
3723 yes) enable_fast_install=yes ;;
3724 no) enable_fast_install=no ;;
3726 enable_fast_install=no
3727 # Look at the argument we got. We use all the common list separators.
3728 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3729 for pkg in $enableval; do
3731 if test "X$pkg" = "X$p"; then
3732 enable_fast_install=yes
3739 enable_fast_install=yes
3742 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3743 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3744 if test "${lt_cv_path_SED+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 # Loop through the user's path and test for sed and gsed.
3748 # Then use that list of sed's as ones to test for truncation.
3749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 test -z "$as_dir" && as_dir=.
3754 for lt_ac_prog in sed gsed; do
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3757 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3764 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3765 # along with /bin/sed that truncates output.
3766 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3767 test ! -f $lt_ac_sed && break
3768 cat /dev/null > conftest.in
3770 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3771 # Check for GNU sed and select it if it is found.
3772 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3773 lt_cv_path_SED=$lt_ac_sed
3777 cat conftest.in conftest.in >conftest.tmp
3778 mv conftest.tmp conftest.in
3779 cp conftest.in conftest.nl
3781 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3782 cmp -s conftest.out conftest.nl || break
3783 # 10000 chars as input seems more than enough
3784 test $lt_ac_count -gt 10 && break
3785 lt_ac_count=`expr $lt_ac_count + 1`
3786 if test $lt_ac_count -gt $lt_ac_max; then
3787 lt_ac_max=$lt_ac_count
3788 lt_cv_path_SED=$lt_ac_sed
3796 echo "$as_me:$LINENO: result: $SED" >&5
3797 echo "${ECHO_T}$SED" >&6
3799 echo "$as_me:$LINENO: checking for egrep" >&5
3800 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3801 if test "${ac_cv_prog_egrep+set}" = set; then
3802 echo $ECHO_N "(cached) $ECHO_C" >&6
3804 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3805 then ac_cv_prog_egrep='grep -E'
3806 else ac_cv_prog_egrep='egrep'
3809 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3810 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3811 EGREP=$ac_cv_prog_egrep
3815 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3816 if test "${with_gnu_ld+set}" = set; then
3817 withval="$with_gnu_ld"
3818 test "$withval" = no || with_gnu_ld=yes
3823 if test "$GCC" = yes; then
3824 # Check if gcc -print-prog-name=ld gives a path.
3825 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3826 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3829 # gcc leaves a trailing carriage return which upsets mingw
3830 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3832 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3835 # Accept absolute paths.
3837 re_direlt='/[^/][^/]*/\.\./'
3838 # Canonicalize the path of ld
3839 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3840 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3841 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3843 test -z "$LD" && LD="$ac_prog"
3846 # If it fails, then pretend we aren't using GCC.
3850 # If it is relative, then search for the first ld in PATH.
3854 elif test "$with_gnu_ld" = yes; then
3855 echo "$as_me:$LINENO: checking for GNU ld" >&5
3856 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3858 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3859 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3861 if test "${lt_cv_path_LD+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 if test -z "$LD"; then
3865 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3866 for ac_dir in $PATH; do
3868 test -z "$ac_dir" && ac_dir=.
3869 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3870 lt_cv_path_LD="$ac_dir/$ac_prog"
3871 # Check to see if the program is GNU ld. I'd rather use --version,
3872 # but apparently some GNU ld's only accept -v.
3873 # Break only if it was the GNU/non-GNU ld that we prefer.
3874 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3875 *GNU* | *'with BFD'*)
3876 test "$with_gnu_ld" != no && break
3879 test "$with_gnu_ld" != yes && break
3886 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3891 if test -n "$LD"; then
3892 echo "$as_me:$LINENO: result: $LD" >&5
3893 echo "${ECHO_T}$LD" >&6
3895 echo "$as_me:$LINENO: result: no" >&5
3896 echo "${ECHO_T}no" >&6
3898 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3899 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3900 { (exit 1); exit 1; }; }
3901 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3902 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3903 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3906 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3907 case `"$LD" -v 2>&1 </dev/null` in
3908 *GNU* | *'with BFD'*)
3909 lt_cv_prog_gnu_ld=yes
3912 lt_cv_prog_gnu_ld=no
3916 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3917 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3918 with_gnu_ld=$lt_cv_prog_gnu_ld
3921 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3922 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3923 if test "${lt_cv_ld_reload_flag+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 lt_cv_ld_reload_flag='-r'
3928 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3929 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3930 reload_flag=$lt_cv_ld_reload_flag
3931 case $reload_flag in
3933 *) reload_flag=" $reload_flag" ;;
3935 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3937 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3938 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3939 if test "${lt_cv_path_NM+set}" = set; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3942 if test -n "$NM"; then
3943 # Let the user override the test.
3946 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3947 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3949 test -z "$ac_dir" && ac_dir=.
3950 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3951 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3952 # Check to see if the nm accepts a BSD-compat flag.
3953 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3954 # nm: unknown option "B" ignored
3955 # Tru64's nm complains that /dev/null is an invalid object file
3956 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3957 */dev/null* | *'Invalid file or object type'*)
3958 lt_cv_path_NM="$tmp_nm -B"
3962 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3964 lt_cv_path_NM="$tmp_nm -p"
3968 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3969 continue # so that we can try to find one that supports BSD flags
3976 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3979 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3980 echo "${ECHO_T}$lt_cv_path_NM" >&6
3983 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3984 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3986 if test "$LN_S" = "ln -s"; then
3987 echo "$as_me:$LINENO: result: yes" >&5
3988 echo "${ECHO_T}yes" >&6
3990 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3991 echo "${ECHO_T}no, using $LN_S" >&6
3994 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3995 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3996 if test "${lt_cv_deplibs_check_method+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3999 lt_cv_file_magic_cmd='$MAGIC_CMD'
4000 lt_cv_file_magic_test_file=
4001 lt_cv_deplibs_check_method='unknown'
4002 # Need to set the preceding variable on all platforms that support
4003 # interlibrary dependencies.
4004 # 'none' -- dependencies not supported.
4005 # `unknown' -- same as none, but documents that we really don't know.
4006 # 'pass_all' -- all dependencies passed with no checks.
4007 # 'test_compile' -- check by making test program.
4008 # 'file_magic [[regex]]' -- check by looking for files in library path
4009 # which responds to the $file_magic_cmd with a given extended regex.
4010 # If you have `file' or equivalent on your system and you're not sure
4011 # whether `pass_all' will *always* work, you probably want this one.
4015 lt_cv_deplibs_check_method=pass_all
4019 lt_cv_deplibs_check_method=pass_all
4023 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4024 lt_cv_file_magic_cmd='/usr/bin/file -L'
4025 lt_cv_file_magic_test_file=/shlib/libc.so
4028 cygwin* | mingw* | pw32*)
4029 # win32_libid is a shell function defined in ltmain.sh
4030 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4031 lt_cv_file_magic_cmd='win32_libid'
4034 darwin* | rhapsody*)
4035 # this will be overwritten by pass_all, but leave it in just in case
4036 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4037 lt_cv_file_magic_cmd='/usr/bin/file -L'
4039 rhapsody* | darwin1.[012])
4040 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4043 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4046 lt_cv_deplibs_check_method=pass_all
4050 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4053 # Not sure whether the presence of OpenBSD here was a mistake.
4054 # Let's accept both of them until this is cleared up.
4055 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4056 lt_cv_file_magic_cmd=/usr/bin/file
4057 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4061 lt_cv_deplibs_check_method=pass_all
4066 lt_cv_deplibs_check_method=pass_all
4069 hpux10.20* | hpux11*)
4070 lt_cv_file_magic_cmd=/usr/bin/file
4073 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4074 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4077 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4078 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4081 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4082 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4087 irix5* | irix6* | nonstopux*)
4089 irix5* | nonstopux*)
4090 # this will be overridden with pass_all, but let us keep it just in case
4091 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4095 *-32|*"-32 ") libmagic=32-bit;;
4096 *-n32|*"-n32 ") libmagic=N32;;
4097 *-64|*"-64 ") libmagic=64-bit;;
4098 *) libmagic=never-match;;
4100 # this will be overridden with pass_all, but let us keep it just in case
4101 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4104 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4105 lt_cv_deplibs_check_method=pass_all
4108 # This must be Linux ELF.
4111 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4112 lt_cv_deplibs_check_method=pass_all ;;
4114 # glibc up to 2.1.1 does not perform some relocations on ARM
4115 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4117 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4121 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4122 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4124 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4129 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4130 lt_cv_file_magic_cmd=/usr/bin/file
4131 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4135 lt_cv_deplibs_check_method=unknown
4139 lt_cv_file_magic_cmd=/usr/bin/file
4140 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4141 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4142 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4144 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4148 osf3* | osf4* | osf5*)
4149 # this will be overridden with pass_all, but let us keep it just in case
4150 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4151 lt_cv_file_magic_test_file=/shlib/libc.so
4152 lt_cv_deplibs_check_method=pass_all
4156 lt_cv_deplibs_check_method=pass_all
4160 lt_cv_deplibs_check_method=pass_all
4161 lt_cv_file_magic_test_file=/lib/libc.so
4164 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4165 case $host_vendor in
4167 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]'
4168 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4171 lt_cv_deplibs_check_method=pass_all
4174 lt_cv_file_magic_cmd='/bin/file'
4175 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4178 lt_cv_file_magic_cmd='/bin/file'
4179 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4180 lt_cv_file_magic_test_file=/lib/libc.so
4183 lt_cv_deplibs_check_method=pass_all
4188 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4189 lt_cv_deplibs_check_method=pass_all
4194 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4195 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4196 file_magic_cmd=$lt_cv_file_magic_cmd
4197 deplibs_check_method=$lt_cv_deplibs_check_method
4198 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4203 # If no C compiler was specified, use CC.
4206 # Allow CC to be a program name with arguments.
4209 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4210 if test "${enable_libtool_lock+set}" = set; then
4211 enableval="$enable_libtool_lock"
4214 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4216 # Some flags need to be propagated to the compiler or linker for good
4220 # Find out which ABI we are using.
4221 echo 'int i;' > conftest.$ac_ext
4222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4223 (eval $ac_compile) 2>&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); }; then
4227 case `/usr/bin/file conftest.$ac_objext` in
4239 # Find out which ABI we are using.
4240 echo '#line 4240 "configure"' > conftest.$ac_ext
4241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4242 (eval $ac_compile) 2>&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); }; then
4246 if test "$lt_cv_prog_gnu_ld" = yes; then
4247 case `/usr/bin/file conftest.$ac_objext` in
4249 LD="${LD-ld} -melf32bsmip"
4252 LD="${LD-ld} -melf32bmipn32"
4255 LD="${LD-ld} -melf64bmip"
4259 case `/usr/bin/file conftest.$ac_objext` in
4275 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4276 # Find out which ABI we are using.
4277 echo 'int i;' > conftest.$ac_ext
4278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4279 (eval $ac_compile) 2>&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; then
4283 case "`/usr/bin/file conftest.o`" in
4287 LD="${LD-ld} -m elf_i386"
4290 LD="${LD-ld} -m elf32ppclinux"
4293 LD="${LD-ld} -m elf_s390"
4296 LD="${LD-ld} -m elf32_sparc"
4303 LD="${LD-ld} -m elf_x86_64"
4305 ppc*-*linux*|powerpc*-*linux*)
4306 LD="${LD-ld} -m elf64ppc"
4309 LD="${LD-ld} -m elf64_s390"
4312 LD="${LD-ld} -m elf64_sparc"
4322 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4323 SAVE_CFLAGS="$CFLAGS"
4324 CFLAGS="$CFLAGS -belf"
4325 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4326 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4327 if test "${lt_cv_cc_needs_belf+set}" = set; then
4328 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 ac_cpp='$CPP $CPPFLAGS'
4332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4336 cat >conftest.$ac_ext <<_ACEOF
4339 cat confdefs.h >>conftest.$ac_ext
4340 cat >>conftest.$ac_ext <<_ACEOF
4341 /* end confdefs.h. */
4351 rm -f conftest.$ac_objext conftest$ac_exeext
4352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4353 (eval $ac_link) 2>conftest.er1
4355 grep -v '^ *+' conftest.er1 >conftest.err
4357 cat conftest.err >&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); } &&
4360 { ac_try='test -z "$ac_c_werror_flag"
4361 || test ! -s conftest.err'
4362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; } &&
4367 { ac_try='test -s conftest$ac_exeext'
4368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; }; then
4373 lt_cv_cc_needs_belf=yes
4375 echo "$as_me: failed program was:" >&5
4376 sed 's/^/| /' conftest.$ac_ext >&5
4378 lt_cv_cc_needs_belf=no
4380 rm -f conftest.err conftest.$ac_objext \
4381 conftest$ac_exeext conftest.$ac_ext
4383 ac_cpp='$CPP $CPPFLAGS'
4384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4389 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4390 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4391 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4392 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4393 CFLAGS="$SAVE_CFLAGS"
4399 need_locks="$enable_libtool_lock"
4403 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4404 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4405 if test "${ac_cv_header_stdc+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4408 cat >conftest.$ac_ext <<_ACEOF
4411 cat confdefs.h >>conftest.$ac_ext
4412 cat >>conftest.$ac_ext <<_ACEOF
4413 /* end confdefs.h. */
4427 rm -f conftest.$ac_objext
4428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4429 (eval $ac_compile) 2>conftest.er1
4431 grep -v '^ *+' conftest.er1 >conftest.err
4433 cat conftest.err >&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } &&
4436 { ac_try='test -z "$ac_c_werror_flag"
4437 || test ! -s conftest.err'
4438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; } &&
4443 { ac_try='test -s conftest.$ac_objext'
4444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); }; }; then
4449 ac_cv_header_stdc=yes
4451 echo "$as_me: failed program was:" >&5
4452 sed 's/^/| /' conftest.$ac_ext >&5
4454 ac_cv_header_stdc=no
4456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4458 if test $ac_cv_header_stdc = yes; then
4459 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4460 cat >conftest.$ac_ext <<_ACEOF
4463 cat confdefs.h >>conftest.$ac_ext
4464 cat >>conftest.$ac_ext <<_ACEOF
4465 /* end confdefs.h. */
4469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4470 $EGREP "memchr" >/dev/null 2>&1; then
4473 ac_cv_header_stdc=no
4479 if test $ac_cv_header_stdc = yes; then
4480 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4481 cat >conftest.$ac_ext <<_ACEOF
4484 cat confdefs.h >>conftest.$ac_ext
4485 cat >>conftest.$ac_ext <<_ACEOF
4486 /* end confdefs.h. */
4490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4491 $EGREP "free" >/dev/null 2>&1; then
4494 ac_cv_header_stdc=no
4500 if test $ac_cv_header_stdc = yes; then
4501 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4502 if test "$cross_compiling" = yes; then
4505 cat >conftest.$ac_ext <<_ACEOF
4508 cat confdefs.h >>conftest.$ac_ext
4509 cat >>conftest.$ac_ext <<_ACEOF
4510 /* end confdefs.h. */
4512 #if ((' ' & 0x0FF) == 0x020)
4513 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4514 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4516 # define ISLOWER(c) \
4517 (('a' <= (c) && (c) <= 'i') \
4518 || ('j' <= (c) && (c) <= 'r') \
4519 || ('s' <= (c) && (c) <= 'z'))
4520 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4523 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4528 for (i = 0; i < 256; i++)
4529 if (XOR (islower (i), ISLOWER (i))
4530 || toupper (i) != TOUPPER (i))
4535 rm -f conftest$ac_exeext
4536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4537 (eval $ac_link) 2>&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); }; }; then
4548 echo "$as_me: program exited with status $ac_status" >&5
4549 echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4553 ac_cv_header_stdc=no
4555 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4559 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4560 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4561 if test $ac_cv_header_stdc = yes; then
4563 cat >>confdefs.h <<\_ACEOF
4564 #define STDC_HEADERS 1
4569 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4579 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4580 inttypes.h stdint.h unistd.h
4582 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4583 echo "$as_me:$LINENO: checking for $ac_header" >&5
4584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4588 cat >conftest.$ac_ext <<_ACEOF
4591 cat confdefs.h >>conftest.$ac_ext
4592 cat >>conftest.$ac_ext <<_ACEOF
4593 /* end confdefs.h. */
4594 $ac_includes_default
4596 #include <$ac_header>
4598 rm -f conftest.$ac_objext
4599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4600 (eval $ac_compile) 2>conftest.er1
4602 grep -v '^ *+' conftest.er1 >conftest.err
4604 cat conftest.err >&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); } &&
4607 { ac_try='test -z "$ac_c_werror_flag"
4608 || test ! -s conftest.err'
4609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); }; } &&
4614 { ac_try='test -s conftest.$ac_objext'
4615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }; }; then
4620 eval "$as_ac_Header=yes"
4622 echo "$as_me: failed program was:" >&5
4623 sed 's/^/| /' conftest.$ac_ext >&5
4625 eval "$as_ac_Header=no"
4627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4632 cat >>confdefs.h <<_ACEOF
4633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4642 for ac_header in dlfcn.h
4644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4646 echo "$as_me:$LINENO: checking for $ac_header" >&5
4647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4649 echo $ECHO_N "(cached) $ECHO_C" >&6
4651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4654 # Is the header compilable?
4655 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4657 cat >conftest.$ac_ext <<_ACEOF
4660 cat confdefs.h >>conftest.$ac_ext
4661 cat >>conftest.$ac_ext <<_ACEOF
4662 /* end confdefs.h. */
4663 $ac_includes_default
4664 #include <$ac_header>
4666 rm -f conftest.$ac_objext
4667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4668 (eval $ac_compile) 2>conftest.er1
4670 grep -v '^ *+' conftest.er1 >conftest.err
4672 cat conftest.err >&5
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); } &&
4675 { ac_try='test -z "$ac_c_werror_flag"
4676 || test ! -s conftest.err'
4677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; } &&
4682 { ac_try='test -s conftest.$ac_objext'
4683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); }; }; then
4688 ac_header_compiler=yes
4690 echo "$as_me: failed program was:" >&5
4691 sed 's/^/| /' conftest.$ac_ext >&5
4693 ac_header_compiler=no
4695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4696 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4697 echo "${ECHO_T}$ac_header_compiler" >&6
4699 # Is the header present?
4700 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4701 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4702 cat >conftest.$ac_ext <<_ACEOF
4705 cat confdefs.h >>conftest.$ac_ext
4706 cat >>conftest.$ac_ext <<_ACEOF
4707 /* end confdefs.h. */
4708 #include <$ac_header>
4710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4713 grep -v '^ *+' conftest.er1 >conftest.err
4715 cat conftest.err >&5
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); } >/dev/null; then
4718 if test -s conftest.err; then
4719 ac_cpp_err=$ac_c_preproc_warn_flag
4720 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4727 if test -z "$ac_cpp_err"; then
4728 ac_header_preproc=yes
4730 echo "$as_me: failed program was:" >&5
4731 sed 's/^/| /' conftest.$ac_ext >&5
4733 ac_header_preproc=no
4735 rm -f conftest.err conftest.$ac_ext
4736 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4737 echo "${ECHO_T}$ac_header_preproc" >&6
4739 # So? What about this header?
4740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4742 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4743 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4745 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4746 ac_header_preproc=yes
4749 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4750 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4751 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4752 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4753 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4754 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4755 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4756 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4758 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4759 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4760 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4763 ## ----------------------------------- ##
4764 ## Report this to llvmbugs@cs.uiuc.edu ##
4765 ## ----------------------------------- ##
4768 sed "s/^/$as_me: WARNING: /" >&2
4771 echo "$as_me:$LINENO: checking for $ac_header" >&5
4772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4774 echo $ECHO_N "(cached) $ECHO_C" >&6
4776 eval "$as_ac_Header=\$ac_header_preproc"
4778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4783 cat >>confdefs.h <<_ACEOF
4784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4792 ac_cpp='$CXXCPP $CPPFLAGS'
4793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4796 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4797 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4798 if test -z "$CXXCPP"; then
4799 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4800 echo $ECHO_N "(cached) $ECHO_C" >&6
4802 # Double quotes because CXXCPP needs to be expanded
4803 for CXXCPP in "$CXX -E" "/lib/cpp"
4806 for ac_cxx_preproc_warn_flag in '' yes
4808 # Use a header file that comes with gcc, so configuring glibc
4809 # with a fresh cross-compiler works.
4810 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4811 # <limits.h> exists even on freestanding compilers.
4812 # On the NeXT, cc -E runs the code through the compiler's parser,
4813 # not just through cpp. "Syntax error" is here to catch this case.
4814 cat >conftest.$ac_ext <<_ACEOF
4817 cat confdefs.h >>conftest.$ac_ext
4818 cat >>conftest.$ac_ext <<_ACEOF
4819 /* end confdefs.h. */
4821 # include <limits.h>
4823 # include <assert.h>
4827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4830 grep -v '^ *+' conftest.er1 >conftest.err
4832 cat conftest.err >&5
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); } >/dev/null; then
4835 if test -s conftest.err; then
4836 ac_cpp_err=$ac_cxx_preproc_warn_flag
4837 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4844 if test -z "$ac_cpp_err"; then
4847 echo "$as_me: failed program was:" >&5
4848 sed 's/^/| /' conftest.$ac_ext >&5
4850 # Broken: fails on valid input.
4853 rm -f conftest.err conftest.$ac_ext
4855 # OK, works on sane cases. Now check whether non-existent headers
4856 # can be detected and how.
4857 cat >conftest.$ac_ext <<_ACEOF
4860 cat confdefs.h >>conftest.$ac_ext
4861 cat >>conftest.$ac_ext <<_ACEOF
4862 /* end confdefs.h. */
4863 #include <ac_nonexistent.h>
4865 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4866 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4868 grep -v '^ *+' conftest.er1 >conftest.err
4870 cat conftest.err >&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } >/dev/null; then
4873 if test -s conftest.err; then
4874 ac_cpp_err=$ac_cxx_preproc_warn_flag
4875 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4882 if test -z "$ac_cpp_err"; then
4883 # Broken: success on invalid input.
4886 echo "$as_me: failed program was:" >&5
4887 sed 's/^/| /' conftest.$ac_ext >&5
4889 # Passes both tests.
4893 rm -f conftest.err conftest.$ac_ext
4896 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4897 rm -f conftest.err conftest.$ac_ext
4898 if $ac_preproc_ok; then
4903 ac_cv_prog_CXXCPP=$CXXCPP
4906 CXXCPP=$ac_cv_prog_CXXCPP
4908 ac_cv_prog_CXXCPP=$CXXCPP
4910 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4911 echo "${ECHO_T}$CXXCPP" >&6
4913 for ac_cxx_preproc_warn_flag in '' yes
4915 # Use a header file that comes with gcc, so configuring glibc
4916 # with a fresh cross-compiler works.
4917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4918 # <limits.h> exists even on freestanding compilers.
4919 # On the NeXT, cc -E runs the code through the compiler's parser,
4920 # not just through cpp. "Syntax error" is here to catch this case.
4921 cat >conftest.$ac_ext <<_ACEOF
4924 cat confdefs.h >>conftest.$ac_ext
4925 cat >>conftest.$ac_ext <<_ACEOF
4926 /* end confdefs.h. */
4928 # include <limits.h>
4930 # include <assert.h>
4934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4937 grep -v '^ *+' conftest.er1 >conftest.err
4939 cat conftest.err >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } >/dev/null; then
4942 if test -s conftest.err; then
4943 ac_cpp_err=$ac_cxx_preproc_warn_flag
4944 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4951 if test -z "$ac_cpp_err"; then
4954 echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.$ac_ext >&5
4957 # Broken: fails on valid input.
4960 rm -f conftest.err conftest.$ac_ext
4962 # OK, works on sane cases. Now check whether non-existent headers
4963 # can be detected and how.
4964 cat >conftest.$ac_ext <<_ACEOF
4967 cat confdefs.h >>conftest.$ac_ext
4968 cat >>conftest.$ac_ext <<_ACEOF
4969 /* end confdefs.h. */
4970 #include <ac_nonexistent.h>
4972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4975 grep -v '^ *+' conftest.er1 >conftest.err
4977 cat conftest.err >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); } >/dev/null; then
4980 if test -s conftest.err; then
4981 ac_cpp_err=$ac_cxx_preproc_warn_flag
4982 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4989 if test -z "$ac_cpp_err"; then
4990 # Broken: success on invalid input.
4993 echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.$ac_ext >&5
4996 # Passes both tests.
5000 rm -f conftest.err conftest.$ac_ext
5003 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5004 rm -f conftest.err conftest.$ac_ext
5005 if $ac_preproc_ok; then
5008 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5009 See \`config.log' for more details." >&5
5010 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5011 See \`config.log' for more details." >&2;}
5012 { (exit 1); exit 1; }; }
5016 ac_cpp='$CXXCPP $CPPFLAGS'
5017 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5018 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5019 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5023 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5024 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5025 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5026 if test -n "$ac_tool_prefix"; then
5027 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5029 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5031 echo "$as_me:$LINENO: checking for $ac_word" >&5
5032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5033 if test "${ac_cv_prog_F77+set}" = set; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5036 if test -n "$F77"; then
5037 ac_cv_prog_F77="$F77" # Let the user override the test.
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 test -z "$as_dir" && as_dir=.
5044 for ac_exec_ext in '' $ac_executable_extensions; do
5045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5046 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 if test -n "$F77"; then
5057 echo "$as_me:$LINENO: result: $F77" >&5
5058 echo "${ECHO_T}$F77" >&6
5060 echo "$as_me:$LINENO: result: no" >&5
5061 echo "${ECHO_T}no" >&6
5064 test -n "$F77" && break
5067 if test -z "$F77"; then
5069 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5071 # Extract the first word of "$ac_prog", so it can be a program name with args.
5072 set dummy $ac_prog; ac_word=$2
5073 echo "$as_me:$LINENO: checking for $ac_word" >&5
5074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5075 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5076 echo $ECHO_N "(cached) $ECHO_C" >&6
5078 if test -n "$ac_ct_F77"; then
5079 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 test -z "$as_dir" && as_dir=.
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5088 ac_cv_prog_ac_ct_F77="$ac_prog"
5089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5097 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5098 if test -n "$ac_ct_F77"; then
5099 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5100 echo "${ECHO_T}$ac_ct_F77" >&6
5102 echo "$as_me:$LINENO: result: no" >&5
5103 echo "${ECHO_T}no" >&6
5106 test -n "$ac_ct_F77" && break
5113 # Provide some information about the compiler.
5114 echo "$as_me:5114:" \
5115 "checking for Fortran 77 compiler version" >&5
5116 ac_compiler=`set X $ac_compile; echo $2`
5117 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5118 (eval $ac_compiler --version </dev/null >&5) 2>&5
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); }
5122 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5123 (eval $ac_compiler -v </dev/null >&5) 2>&5
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); }
5127 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5128 (eval $ac_compiler -V </dev/null >&5) 2>&5
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); }
5134 # If we don't use `.F' as extension, the preprocessor is not run on the
5135 # input file. (Note that this only needs to work for GNU compilers.)
5138 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5139 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5140 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5141 echo $ECHO_N "(cached) $ECHO_C" >&6
5143 cat >conftest.$ac_ext <<_ACEOF
5151 rm -f conftest.$ac_objext
5152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5153 (eval $ac_compile) 2>conftest.er1
5155 grep -v '^ *+' conftest.er1 >conftest.err
5157 cat conftest.err >&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } &&
5160 { ac_try='test -z "$ac_f77_werror_flag"
5161 || test ! -s conftest.err'
5162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); }; } &&
5167 { ac_try='test -s conftest.$ac_objext'
5168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); }; }; then
5175 echo "$as_me: failed program was:" >&5
5176 sed 's/^/| /' conftest.$ac_ext >&5
5180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5181 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5184 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5185 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5187 ac_test_FFLAGS=${FFLAGS+set}
5188 ac_save_FFLAGS=$FFLAGS
5190 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5191 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5192 if test "${ac_cv_prog_f77_g+set}" = set; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5196 cat >conftest.$ac_ext <<_ACEOF
5201 rm -f conftest.$ac_objext
5202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5203 (eval $ac_compile) 2>conftest.er1
5205 grep -v '^ *+' conftest.er1 >conftest.err
5207 cat conftest.err >&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); } &&
5210 { ac_try='test -z "$ac_f77_werror_flag"
5211 || test ! -s conftest.err'
5212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); }; } &&
5217 { ac_try='test -s conftest.$ac_objext'
5218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); }; }; then
5223 ac_cv_prog_f77_g=yes
5225 echo "$as_me: failed program was:" >&5
5226 sed 's/^/| /' conftest.$ac_ext >&5
5230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5233 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5234 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5235 if test "$ac_test_FFLAGS" = set; then
5236 FFLAGS=$ac_save_FFLAGS
5237 elif test $ac_cv_prog_f77_g = yes; then
5238 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5244 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5251 G77=`test $ac_compiler_gnu = yes && echo yes`
5253 ac_cpp='$CPP $CPPFLAGS'
5254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5260 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5262 # find the maximum length of command line arguments
5263 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5264 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5265 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5266 echo $ECHO_N "(cached) $ECHO_C" >&6
5273 # On DJGPP, this test can blow up pretty badly due to problems in libc
5274 # (any single argument exceeding 2000 bytes causes a buffer overrun
5275 # during glob expansion). Even if it were fixed, the result of this
5276 # check would be larger than it should be.
5277 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5281 # Under GNU Hurd, this test is not required because there is
5282 # no limit to the length of command line arguments.
5283 # Libtool will interpret -1 as no limit whatsoever
5284 lt_cv_sys_max_cmd_len=-1;
5288 # On Win9x/ME, this test blows up -- it succeeds, but takes
5289 # about 5 minutes as the teststring grows exponentially.
5290 # Worse, since 9x/ME are not pre-emptively multitasking,
5291 # you end up with a "frozen" computer, even though with patience
5292 # the test eventually succeeds (with a max line length of 256k).
5293 # Instead, let's just punt: use the minimum linelength reported by
5294 # all of the supported platforms: 8192 (on NT/2K/XP).
5295 lt_cv_sys_max_cmd_len=8192;
5299 # If test is not a shell built-in, we'll probably end up computing a
5300 # maximum length that is only half of the actual maximum length, but
5302 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5303 = "XX$testring") >/dev/null 2>&1 &&
5304 new_result=`expr "X$testring" : ".*" 2>&1` &&
5305 lt_cv_sys_max_cmd_len=$new_result &&
5306 test $i != 17 # 1/2 MB should be enough
5309 testring=$testring$testring
5312 # Add a significant safety factor because C++ compilers can tack on massive
5313 # amounts of additional arguments before passing them to the linker.
5314 # It appears as though 1/2 is a usable value.
5315 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5321 if test -n $lt_cv_sys_max_cmd_len ; then
5322 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5323 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5325 echo "$as_me:$LINENO: result: none" >&5
5326 echo "${ECHO_T}none" >&6
5332 # Check for command to grab the raw symbol name followed by C symbol from nm.
5333 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5334 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5335 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5336 echo $ECHO_N "(cached) $ECHO_C" >&6
5339 # These are sane defaults that work on at least a few old systems.
5340 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5342 # Character class describing NM global symbol codes.
5343 symcode='[BCDEGRST]'
5345 # Regexp to match symbols that can be accessed directly from C.
5346 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5348 # Transform the above into a raw symbol and a C symbol.
5349 symxfrm='\1 \2\3 \3'
5351 # Transform an extracted symbol line into a proper C declaration
5352 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5354 # Transform an extracted symbol line into symbol name and symbol address
5355 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5357 # Define system-specific variables.
5362 cygwin* | mingw* | pw32*)
5363 symcode='[ABCDGISTW]'
5365 hpux*) # Its linker distinguishes data from code symbols
5366 if test "$host_cpu" = ia64; then
5367 symcode='[ABCDEGRST]'
5369 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5370 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5373 symcode='[BCDEGRST]'
5376 symcode='[BCDEGQRST]'
5386 # Handle CRLF in mingw tool chain
5390 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5394 # If we're using GNU nm, then use its standard symbol codes.
5395 case `$NM -V 2>&1` in
5396 *GNU* | *'with BFD'*)
5397 symcode='[ABCDGISTW]' ;;
5400 # Try without a prefix undercore, then with it.
5401 for ac_symprfx in "" "_"; do
5403 # Write the raw and C identifiers.
5404 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5406 # Check to see that the pipe works correctly.
5410 cat > conftest.$ac_ext <<EOF
5415 void nm_test_func(){}
5419 int main(){nm_test_var='a';nm_test_func();return(0);}
5422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5423 (eval $ac_compile) 2>&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); }; then
5427 # Now try to grab the symbols.
5429 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5430 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); } && test -s "$nlist"; then
5434 # Try sorting and uniquifying the output.
5435 if sort "$nlist" | uniq > "$nlist"T; then
5436 mv -f "$nlist"T "$nlist"
5441 # Make sure that we snagged all the symbols we need.
5442 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5443 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5444 cat <<EOF > conftest.$ac_ext
5450 # Now generate the symbol file.
5451 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5453 cat <<EOF >> conftest.$ac_ext
5454 #if defined (__STDC__) && __STDC__
5455 # define lt_ptr_t void *
5457 # define lt_ptr_t char *
5461 /* The mapping between symbol names and symbols. */
5466 lt_preloaded_symbols[] =
5469 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5470 cat <<\EOF >> conftest.$ac_ext
5478 # Now try linking the two files.
5479 mv conftest.$ac_objext conftstm.$ac_objext
5480 lt_save_LIBS="$LIBS"
5481 lt_save_CFLAGS="$CFLAGS"
5482 LIBS="conftstm.$ac_objext"
5483 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5485 (eval $ac_link) 2>&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5491 LIBS="$lt_save_LIBS"
5492 CFLAGS="$lt_save_CFLAGS"
5494 echo "cannot find nm_test_func in $nlist" >&5
5497 echo "cannot find nm_test_var in $nlist" >&5
5500 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5503 echo "$progname: failed program was:" >&5
5504 cat conftest.$ac_ext >&5
5506 rm -f conftest* conftst*
5508 # Do not use the global_symbol_pipe unless it works.
5509 if test "$pipe_works" = yes; then
5512 lt_cv_sys_global_symbol_pipe=
5518 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5519 lt_cv_sys_global_symbol_to_cdecl=
5521 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5522 echo "$as_me:$LINENO: result: failed" >&5
5523 echo "${ECHO_T}failed" >&6
5525 echo "$as_me:$LINENO: result: ok" >&5
5526 echo "${ECHO_T}ok" >&6
5529 echo "$as_me:$LINENO: checking for objdir" >&5
5530 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5531 if test "${lt_cv_objdir+set}" = set; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5534 rm -f .libs 2>/dev/null
5535 mkdir .libs 2>/dev/null
5536 if test -d .libs; then
5539 # MS-DOS does not allow filenames that begin with a dot.
5542 rmdir .libs 2>/dev/null
5544 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5545 echo "${ECHO_T}$lt_cv_objdir" >&6
5546 objdir=$lt_cv_objdir
5554 # AIX sometimes has problems with the GCC collect2 program. For some
5555 # reason, if we set the COLLECT_NAMES environment variable, the problems
5556 # vanish in a puff of smoke.
5557 if test "X${COLLECT_NAMES+set}" != Xset; then
5559 export COLLECT_NAMES
5564 # Sed substitution that helps us do robust quoting. It backslashifies
5565 # metacharacters that are still active within double-quoted strings.
5566 Xsed='sed -e s/^X//'
5567 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5569 # Same as above, but do not quote variable references.
5570 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5572 # Sed substitution to delay expansion of an escaped shell variable in a
5573 # double_quote_subst'ed string.
5574 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5576 # Sed substitution to avoid accidental globbing in evaled expressions
5577 no_glob_subst='s/\*/\\\*/g'
5584 can_build_shared=yes
5586 # All known linkers require a `.a' archive for static linking (except M$VC,
5587 # which needs '.lib').
5589 ltmain="$ac_aux_dir/ltmain.sh"
5590 ofile="$default_ofile"
5591 with_gnu_ld="$lt_cv_prog_gnu_ld"
5593 if test -n "$ac_tool_prefix"; then
5594 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5595 set dummy ${ac_tool_prefix}ar; ac_word=$2
5596 echo "$as_me:$LINENO: checking for $ac_word" >&5
5597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5598 if test "${ac_cv_prog_AR+set}" = set; then
5599 echo $ECHO_N "(cached) $ECHO_C" >&6
5601 if test -n "$AR"; then
5602 ac_cv_prog_AR="$AR" # Let the user override the test.
5604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5608 test -z "$as_dir" && as_dir=.
5609 for ac_exec_ext in '' $ac_executable_extensions; do
5610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5611 ac_cv_prog_AR="${ac_tool_prefix}ar"
5612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5621 if test -n "$AR"; then
5622 echo "$as_me:$LINENO: result: $AR" >&5
5623 echo "${ECHO_T}$AR" >&6
5625 echo "$as_me:$LINENO: result: no" >&5
5626 echo "${ECHO_T}no" >&6
5630 if test -z "$ac_cv_prog_AR"; then
5632 # Extract the first word of "ar", so it can be a program name with args.
5633 set dummy ar; ac_word=$2
5634 echo "$as_me:$LINENO: checking for $ac_word" >&5
5635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5636 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5639 if test -n "$ac_ct_AR"; then
5640 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646 test -z "$as_dir" && as_dir=.
5647 for ac_exec_ext in '' $ac_executable_extensions; do
5648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5649 ac_cv_prog_ac_ct_AR="ar"
5650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5656 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5659 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5660 if test -n "$ac_ct_AR"; then
5661 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5662 echo "${ECHO_T}$ac_ct_AR" >&6
5664 echo "$as_me:$LINENO: result: no" >&5
5665 echo "${ECHO_T}no" >&6
5673 if test -n "$ac_tool_prefix"; then
5674 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5675 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5676 echo "$as_me:$LINENO: checking for $ac_word" >&5
5677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5678 if test "${ac_cv_prog_RANLIB+set}" = set; then
5679 echo $ECHO_N "(cached) $ECHO_C" >&6
5681 if test -n "$RANLIB"; then
5682 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688 test -z "$as_dir" && as_dir=.
5689 for ac_exec_ext in '' $ac_executable_extensions; do
5690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5691 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5700 RANLIB=$ac_cv_prog_RANLIB
5701 if test -n "$RANLIB"; then
5702 echo "$as_me:$LINENO: result: $RANLIB" >&5
5703 echo "${ECHO_T}$RANLIB" >&6
5705 echo "$as_me:$LINENO: result: no" >&5
5706 echo "${ECHO_T}no" >&6
5710 if test -z "$ac_cv_prog_RANLIB"; then
5711 ac_ct_RANLIB=$RANLIB
5712 # Extract the first word of "ranlib", so it can be a program name with args.
5713 set dummy ranlib; ac_word=$2
5714 echo "$as_me:$LINENO: checking for $ac_word" >&5
5715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5716 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
5719 if test -n "$ac_ct_RANLIB"; then
5720 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 test -z "$as_dir" && as_dir=.
5727 for ac_exec_ext in '' $ac_executable_extensions; do
5728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5729 ac_cv_prog_ac_ct_RANLIB="ranlib"
5730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5736 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5739 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5740 if test -n "$ac_ct_RANLIB"; then
5741 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5742 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5744 echo "$as_me:$LINENO: result: no" >&5
5745 echo "${ECHO_T}no" >&6
5748 RANLIB=$ac_ct_RANLIB
5750 RANLIB="$ac_cv_prog_RANLIB"
5753 if test -n "$ac_tool_prefix"; then
5754 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5755 set dummy ${ac_tool_prefix}strip; ac_word=$2
5756 echo "$as_me:$LINENO: checking for $ac_word" >&5
5757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5758 if test "${ac_cv_prog_STRIP+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 if test -n "$STRIP"; then
5762 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 test -z "$as_dir" && as_dir=.
5769 for ac_exec_ext in '' $ac_executable_extensions; do
5770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5771 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5780 STRIP=$ac_cv_prog_STRIP
5781 if test -n "$STRIP"; then
5782 echo "$as_me:$LINENO: result: $STRIP" >&5
5783 echo "${ECHO_T}$STRIP" >&6
5785 echo "$as_me:$LINENO: result: no" >&5
5786 echo "${ECHO_T}no" >&6
5790 if test -z "$ac_cv_prog_STRIP"; then
5792 # Extract the first word of "strip", so it can be a program name with args.
5793 set dummy strip; ac_word=$2
5794 echo "$as_me:$LINENO: checking for $ac_word" >&5
5795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5796 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5799 if test -n "$ac_ct_STRIP"; then
5800 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 test -z "$as_dir" && as_dir=.
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5809 ac_cv_prog_ac_ct_STRIP="strip"
5810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5816 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5819 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5820 if test -n "$ac_ct_STRIP"; then
5821 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5822 echo "${ECHO_T}$ac_ct_STRIP" >&6
5824 echo "$as_me:$LINENO: result: no" >&5
5825 echo "${ECHO_T}no" >&6
5830 STRIP="$ac_cv_prog_STRIP"
5835 old_CFLAGS="$CFLAGS"
5837 # Set sane defaults for various variables
5838 test -z "$AR" && AR=ar
5839 test -z "$AR_FLAGS" && AR_FLAGS=cru
5840 test -z "$AS" && AS=as
5841 test -z "$CC" && CC=cc
5842 test -z "$LTCC" && LTCC=$CC
5843 test -z "$DLLTOOL" && DLLTOOL=dlltool
5844 test -z "$LD" && LD=ld
5845 test -z "$LN_S" && LN_S="ln -s"
5846 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5847 test -z "$NM" && NM=nm
5848 test -z "$SED" && SED=sed
5849 test -z "$OBJDUMP" && OBJDUMP=objdump
5850 test -z "$RANLIB" && RANLIB=:
5851 test -z "$STRIP" && STRIP=:
5852 test -z "$ac_objext" && ac_objext=o
5854 # Determine commands to create old-style static archives.
5855 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5856 old_postinstall_cmds='chmod 644 $oldlib'
5857 old_postuninstall_cmds=
5859 if test -n "$RANLIB"; then
5862 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5865 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5868 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5871 # Only perform the check for file, if the check method requires it
5872 case $deplibs_check_method in
5874 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5875 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5876 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5877 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5882 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5885 lt_save_MAGIC_CMD="$MAGIC_CMD"
5886 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5887 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5888 for ac_dir in $ac_dummy; do
5890 test -z "$ac_dir" && ac_dir=.
5891 if test -f $ac_dir/${ac_tool_prefix}file; then
5892 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5893 if test -n "$file_magic_test_file"; then
5894 case $deplibs_check_method in
5896 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5897 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5898 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5899 $EGREP "$file_magic_regex" > /dev/null; then
5904 *** Warning: the command libtool uses to detect shared libraries,
5905 *** $file_magic_cmd, produces output that libtool cannot recognize.
5906 *** The result is that libtool may fail to recognize shared libraries
5907 *** as such. This will affect the creation of libtool libraries that
5908 *** depend on shared libraries, but programs linked with such libtool
5909 *** libraries will work regardless of this problem. Nevertheless, you
5910 *** may want to report the problem to your system manager and/or to
5911 *** bug-libtool@gnu.org
5921 MAGIC_CMD="$lt_save_MAGIC_CMD"
5926 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5927 if test -n "$MAGIC_CMD"; then
5928 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5929 echo "${ECHO_T}$MAGIC_CMD" >&6
5931 echo "$as_me:$LINENO: result: no" >&5
5932 echo "${ECHO_T}no" >&6
5935 if test -z "$lt_cv_path_MAGIC_CMD"; then
5936 if test -n "$ac_tool_prefix"; then
5937 echo "$as_me:$LINENO: checking for file" >&5
5938 echo $ECHO_N "checking for file... $ECHO_C" >&6
5939 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5944 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5947 lt_save_MAGIC_CMD="$MAGIC_CMD"
5948 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5949 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5950 for ac_dir in $ac_dummy; do
5952 test -z "$ac_dir" && ac_dir=.
5953 if test -f $ac_dir/file; then
5954 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5955 if test -n "$file_magic_test_file"; then
5956 case $deplibs_check_method in
5958 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5959 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5960 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5961 $EGREP "$file_magic_regex" > /dev/null; then
5966 *** Warning: the command libtool uses to detect shared libraries,
5967 *** $file_magic_cmd, produces output that libtool cannot recognize.
5968 *** The result is that libtool may fail to recognize shared libraries
5969 *** as such. This will affect the creation of libtool libraries that
5970 *** depend on shared libraries, but programs linked with such libtool
5971 *** libraries will work regardless of this problem. Nevertheless, you
5972 *** may want to report the problem to your system manager and/or to
5973 *** bug-libtool@gnu.org
5983 MAGIC_CMD="$lt_save_MAGIC_CMD"
5988 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5989 if test -n "$MAGIC_CMD"; then
5990 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5991 echo "${ECHO_T}$MAGIC_CMD" >&6
5993 echo "$as_me:$LINENO: result: no" >&5
5994 echo "${ECHO_T}no" >&6
6009 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6010 if test "${enable_libtool_lock+set}" = set; then
6011 enableval="$enable_libtool_lock"
6014 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6017 # Check whether --with-pic or --without-pic was given.
6018 if test "${with_pic+set}" = set; then
6024 test -z "$pic_mode" && pic_mode=default
6026 # Use C for the default configuration in the libtool script
6030 ac_cpp='$CPP $CPPFLAGS'
6031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6036 # Source file extension for C test sources.
6039 # Object file extension for compiled C test sources.
6043 # Code to be used in simple compile tests
6044 lt_simple_compile_test_code="int some_variable = 0;\n"
6046 # Code to be used in simple link tests
6047 lt_simple_link_test_code='int main(){return(0);}\n'
6050 # If no C compiler was specified, use CC.
6053 # Allow CC to be a program name with arguments.
6058 # Check for any special shared library compilation flags.
6061 if test "$GCC" = no; then
6064 lt_prog_cc_shlib='-belf'
6068 if test -n "$lt_prog_cc_shlib"; then
6069 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6070 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6071 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6073 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6074 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6075 lt_cv_prog_cc_can_build_shared=no
6081 # Check to make sure the static flag actually works.
6083 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6084 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6085 if test "${lt_prog_compiler_static_works+set}" = set; then
6086 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 lt_prog_compiler_static_works=no
6089 save_LDFLAGS="$LDFLAGS"
6090 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6091 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6092 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6093 # The compiler can only warn and ignore the option if not recognized
6094 # So say no if there are warnings
6095 if test -s conftest.err; then
6096 # Append any errors to the config.log.
6097 cat conftest.err 1>&5
6099 lt_prog_compiler_static_works=yes
6103 LDFLAGS="$save_LDFLAGS"
6106 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6107 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6109 if test x"$lt_prog_compiler_static_works" = xyes; then
6112 lt_prog_compiler_static=
6118 ## There is no encapsulation within the following macros, do not change
6119 ## the running order or otherwise move them around unless you know exactly
6120 ## what you are doing...
6122 lt_prog_compiler_no_builtin_flag=
6124 if test "$GCC" = yes; then
6125 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6127 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6128 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6129 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6130 echo $ECHO_N "(cached) $ECHO_C" >&6
6132 lt_cv_prog_compiler_rtti_exceptions=no
6133 ac_outfile=conftest.$ac_objext
6134 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6135 lt_compiler_flag="-fno-rtti -fno-exceptions"
6136 # Insert the option either (1) after the last *FLAGS variable, or
6137 # (2) before a word containing "conftest.", or (3) at the end.
6138 # Note that $ac_compile itself does not contain backslashes and begins
6139 # with a dollar sign (not a hyphen), so the echo should work correctly.
6140 # The option is referenced via a variable to avoid confusing sed.
6141 lt_compile=`echo "$ac_compile" | $SED \
6142 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6143 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6144 -e 's:$: $lt_compiler_flag:'`
6145 (eval echo "\"\$as_me:6145: $lt_compile\"" >&5)
6146 (eval "$lt_compile" 2>conftest.err)
6148 cat conftest.err >&5
6149 echo "$as_me:6149: \$? = $ac_status" >&5
6150 if (exit $ac_status) && test -s "$ac_outfile"; then
6151 # The compiler can only warn and ignore the option if not recognized
6152 # So say no if there are warnings
6153 if test ! -s conftest.err; then
6154 lt_cv_prog_compiler_rtti_exceptions=yes
6160 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6161 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6163 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6164 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6171 lt_prog_compiler_wl=
6172 lt_prog_compiler_pic=
6173 lt_prog_compiler_static=
6175 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6176 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6178 if test "$GCC" = yes; then
6179 lt_prog_compiler_wl='-Wl,'
6180 lt_prog_compiler_static='-static'
6184 # All AIX code is PIC.
6185 if test "$host_cpu" = ia64; then
6186 # AIX 5 now supports IA64 processor
6187 lt_prog_compiler_static='-Bstatic'
6192 # FIXME: we need at least 68020 code to build shared libraries, but
6193 # adding the `-m68020' flag to GCC prevents building anything better,
6195 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6198 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6199 # PIC is the default for these OSes.
6202 mingw* | pw32* | os2*)
6203 # This hack is so that the source file can tell whether it is being
6204 # built for inclusion in a dll (and should export symbols for example).
6205 lt_prog_compiler_pic='-DDLL_EXPORT'
6208 darwin* | rhapsody*)
6209 # PIC is the default on this platform
6210 # Common symbols not allowed in MH_DYLIB files
6211 lt_prog_compiler_pic='-fno-common'
6215 # Just because we use GCC doesn't mean we suddenly get shared libraries
6216 # on systems that don't support them.
6217 lt_prog_compiler_can_build_shared=no
6222 if test -d /usr/nec; then
6223 lt_prog_compiler_pic=-Kconform_pic
6228 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6235 lt_prog_compiler_pic='-fPIC'
6241 lt_prog_compiler_pic='-fPIC'
6245 # PORTME Check for flag to pass linker flags through the system compiler.
6248 lt_prog_compiler_wl='-Wl,'
6249 if test "$host_cpu" = ia64; then
6250 # AIX 5 now supports IA64 processor
6251 lt_prog_compiler_static='-Bstatic'
6253 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6257 mingw* | pw32* | os2*)
6258 # This hack is so that the source file can tell whether it is being
6259 # built for inclusion in a dll (and should export symbols for example).
6260 lt_prog_compiler_pic='-DDLL_EXPORT'
6263 hpux9* | hpux10* | hpux11*)
6264 lt_prog_compiler_wl='-Wl,'
6265 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6272 lt_prog_compiler_pic='+Z'
6275 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6276 lt_prog_compiler_static='${wl}-a ${wl}archive'
6279 irix5* | irix6* | nonstopux*)
6280 lt_prog_compiler_wl='-Wl,'
6281 # PIC (with -KPIC) is the default.
6282 lt_prog_compiler_static='-non_shared'
6286 lt_prog_compiler_pic='-KPIC'
6287 lt_prog_compiler_static='-Bstatic'
6293 lt_prog_compiler_wl='-Wl,'
6294 lt_prog_compiler_pic='-KPIC'
6295 lt_prog_compiler_static='-static'
6298 lt_prog_compiler_wl='-Wl,'
6299 # All Alpha code is PIC.
6300 lt_prog_compiler_static='-non_shared'
6305 osf3* | osf4* | osf5*)
6306 lt_prog_compiler_wl='-Wl,'
6307 # All OSF/1 code is PIC.
6308 lt_prog_compiler_static='-non_shared'
6312 lt_prog_compiler_pic='-Kpic'
6313 lt_prog_compiler_static='-dn'
6317 lt_prog_compiler_wl='-Wl,'
6318 lt_prog_compiler_pic='-KPIC'
6319 lt_prog_compiler_static='-Bstatic'
6323 lt_prog_compiler_wl='-Qoption ld '
6324 lt_prog_compiler_pic='-PIC'
6325 lt_prog_compiler_static='-Bstatic'
6328 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6329 lt_prog_compiler_wl='-Wl,'
6330 lt_prog_compiler_pic='-KPIC'
6331 lt_prog_compiler_static='-Bstatic'
6335 if test -d /usr/nec ;then
6336 lt_prog_compiler_pic='-Kconform_pic'
6337 lt_prog_compiler_static='-Bstatic'
6342 lt_prog_compiler_pic='-pic'
6343 lt_prog_compiler_static='-Bstatic'
6347 lt_prog_compiler_can_build_shared=no
6352 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6353 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6356 # Check to make sure the PIC flag actually works.
6358 if test -n "$lt_prog_compiler_pic"; then
6359 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6360 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6361 if test "${lt_prog_compiler_pic_works+set}" = set; then
6362 echo $ECHO_N "(cached) $ECHO_C" >&6
6364 lt_prog_compiler_pic_works=no
6365 ac_outfile=conftest.$ac_objext
6366 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6367 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6368 # Insert the option either (1) after the last *FLAGS variable, or
6369 # (2) before a word containing "conftest.", or (3) at the end.
6370 # Note that $ac_compile itself does not contain backslashes and begins
6371 # with a dollar sign (not a hyphen), so the echo should work correctly.
6372 # The option is referenced via a variable to avoid confusing sed.
6373 lt_compile=`echo "$ac_compile" | $SED \
6374 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6375 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6376 -e 's:$: $lt_compiler_flag:'`
6377 (eval echo "\"\$as_me:6377: $lt_compile\"" >&5)
6378 (eval "$lt_compile" 2>conftest.err)
6380 cat conftest.err >&5
6381 echo "$as_me:6381: \$? = $ac_status" >&5
6382 if (exit $ac_status) && test -s "$ac_outfile"; then
6383 # The compiler can only warn and ignore the option if not recognized
6384 # So say no if there are warnings
6385 if test ! -s conftest.err; then
6386 lt_prog_compiler_pic_works=yes
6392 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6393 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6395 if test x"$lt_prog_compiler_pic_works" = xyes; then
6396 case $lt_prog_compiler_pic in
6398 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6401 lt_prog_compiler_pic=
6402 lt_prog_compiler_can_build_shared=no
6407 # For platforms which do not support PIC, -DPIC is meaningless:
6409 lt_prog_compiler_pic=
6412 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6416 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6417 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6418 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6419 echo $ECHO_N "(cached) $ECHO_C" >&6
6421 lt_cv_prog_compiler_c_o=no
6422 $rm -r conftest 2>/dev/null
6426 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6428 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6429 # that will create temporary files in the current directory regardless of
6430 # the output directory. Thus, making CWD read-only will cause this test
6431 # to fail, enabling locking or at least warning the user not to do parallel
6435 lt_compiler_flag="-o out/conftest2.$ac_objext"
6436 # Insert the option either (1) after the last *FLAGS variable, or
6437 # (2) before a word containing "conftest.", or (3) at the end.
6438 # Note that $ac_compile itself does not contain backslashes and begins
6439 # with a dollar sign (not a hyphen), so the echo should work correctly.
6440 lt_compile=`echo "$ac_compile" | $SED \
6441 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6442 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6443 -e 's:$: $lt_compiler_flag:'`
6444 (eval echo "\"\$as_me:6444: $lt_compile\"" >&5)
6445 (eval "$lt_compile" 2>out/conftest.err)
6447 cat out/conftest.err >&5
6448 echo "$as_me:6448: \$? = $ac_status" >&5
6449 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6451 # The compiler can only warn and ignore the option if not recognized
6452 # So say no if there are warnings
6453 if test ! -s out/conftest.err; then
6454 lt_cv_prog_compiler_c_o=yes
6465 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6466 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6469 hard_links="nottested"
6470 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6471 # do not overwrite the value of need_locks provided by the user
6472 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6473 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6476 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6478 ln conftest.a conftest.b 2>&5 || hard_links=no
6479 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6480 echo "$as_me:$LINENO: result: $hard_links" >&5
6481 echo "${ECHO_T}$hard_links" >&6
6482 if test "$hard_links" = no; then
6483 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6484 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6491 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6492 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6495 allow_undefined_flag=
6496 enable_shared_with_static_runtimes=no
6498 archive_expsym_cmds=
6499 old_archive_From_new_cmds=
6500 old_archive_from_expsyms_cmds=
6501 export_dynamic_flag_spec=
6502 whole_archive_flag_spec=
6503 thread_safe_flag_spec=
6504 hardcode_libdir_flag_spec=
6505 hardcode_libdir_flag_spec_ld=
6506 hardcode_libdir_separator=
6509 hardcode_shlibpath_var=unsupported
6510 link_all_deplibs=unknown
6511 hardcode_automatic=no
6514 always_export_symbols=no
6515 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6516 # include_expsyms should be a list of space-separated symbols to be *always*
6517 # included in the symbol list
6519 # exclude_expsyms can be an extended regexp of symbols to exclude
6520 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6521 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6522 # as well as any symbol that contains `d'.
6523 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6524 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6525 # platforms (ab)use it in PIC code, but their linkers get confused if
6526 # the symbol is explicitly referenced. Since portable code cannot
6527 # rely on this symbol name, it's probably fine to never include it in
6528 # preloaded symbol tables.
6529 extract_expsyms_cmds=
6532 cygwin* | mingw* | pw32*)
6533 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6534 # When not using gcc, we currently assume that we are using
6535 # Microsoft Visual C++.
6536 if test "$GCC" != yes; then
6546 if test "$with_gnu_ld" = yes; then
6547 # If archive_cmds runs LD, not CC, wlarc should be empty
6550 # See if GNU ld supports shared libraries.
6552 aix3* | aix4* | aix5*)
6553 # On AIX/PPC, the GNU linker is very broken
6554 if test "$host_cpu" != ia64; then
6558 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6559 *** to be unable to reliably create shared libraries on AIX.
6560 *** Therefore, libtool is disabling shared libraries support. If you
6561 *** really care for shared libraries, you may want to modify your PATH
6562 *** so that a non-GNU linker is found, and then restart.
6569 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)'
6570 hardcode_libdir_flag_spec='-L$libdir'
6571 hardcode_minus_L=yes
6573 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6574 # that the semantics of dynamic libraries on AmigaOS, at least up
6575 # to version 4, is to share data among multiple programs linked
6576 # with the same dynamic library. Since this doesn't match the
6577 # behavior of shared libraries on other platforms, we can't use
6583 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6584 allow_undefined_flag=unsupported
6585 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6586 # support --undefined. This deserves some investigation. FIXME
6587 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6593 cygwin* | mingw* | pw32*)
6594 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6595 # as there is no search path for DLLs.
6596 hardcode_libdir_flag_spec='-L$libdir'
6597 allow_undefined_flag=unsupported
6598 always_export_symbols=no
6599 enable_shared_with_static_runtimes=yes
6600 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6602 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6603 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6604 # If the export-symbols file already is a .def file (1st line
6605 # is EXPORTS), use it as is; otherwise, prepend...
6606 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6607 cp $export_symbols $output_objdir/$soname.def;
6609 echo EXPORTS > $output_objdir/$soname.def;
6610 cat $export_symbols >> $output_objdir/$soname.def;
6612 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6619 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6620 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6623 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6624 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6629 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6633 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6634 *** create shared libraries on Solaris systems. Therefore, libtool
6635 *** is disabling shared libraries support. We urge you to upgrade GNU
6636 *** binutils to release 2.9.1 or newer. Another option is to modify
6637 *** your PATH or compiler configuration so that the native linker is
6638 *** used, and then restart.
6641 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6642 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6643 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6650 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6653 hardcode_shlibpath_var=no
6657 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6658 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6659 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6666 if test "$ld_shlibs" = yes; then
6667 runpath_var=LD_RUN_PATH
6668 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6669 export_dynamic_flag_spec='${wl}--export-dynamic'
6670 # ancient GNU ld didn't support --whole-archive et. al.
6671 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6672 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6674 whole_archive_flag_spec=
6678 # PORTME fill in a description of your system's linker (not GNU ld)
6681 allow_undefined_flag=unsupported
6682 always_export_symbols=yes
6683 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'
6684 # Note: this linker hardcodes the directories in LIBPATH if there
6685 # are no directories specified by -L.
6686 hardcode_minus_L=yes
6687 if test "$GCC" = yes && test -z "$link_static_flag"; then
6688 # Neither direct hardcoding nor static linking is supported with a
6690 hardcode_direct=unsupported
6695 if test "$host_cpu" = ia64; then
6696 # On IA64, the linker does run time linking by default, so we don't
6697 # have to do anything special.
6698 aix_use_runtimelinking=no
6699 exp_sym_flag='-Bexport'
6702 # If we're using GNU nm, then we don't want the "-C" option.
6703 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6704 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6705 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6707 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6709 aix_use_runtimelinking=no
6711 # Test if we are trying to use run time linking or normal
6712 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6713 # need to do runtime linking.
6714 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6715 for ld_flag in $LDFLAGS; do
6716 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6717 aix_use_runtimelinking=yes
6723 exp_sym_flag='-bexport'
6724 no_entry_flag='-bnoentry'
6727 # When large executables or shared objects are built, AIX ld can
6728 # have problems creating the table of contents. If linking a library
6729 # or program results in "error TOC overflow" add -mminimal-toc to
6730 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6731 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6735 hardcode_libdir_separator=':'
6736 link_all_deplibs=yes
6738 if test "$GCC" = yes; then
6739 case $host_os in aix4.012|aix4.012.*)
6740 # We only want to do this on AIX 4.2 and lower, the check
6741 # below for broken collect2 doesn't work under 4.3+
6742 collect2name=`${CC} -print-prog-name=collect2`
6743 if test -f "$collect2name" && \
6744 strings "$collect2name" | grep resolve_lib_name >/dev/null
6746 # We have reworked collect2
6749 # We have old collect2
6750 hardcode_direct=unsupported
6751 # It fails to find uninstalled libraries when the uninstalled
6752 # path is not listed in the libpath. Setting hardcode_minus_L
6753 # to unsupported forces relinking
6754 hardcode_minus_L=yes
6755 hardcode_libdir_flag_spec='-L$libdir'
6756 hardcode_libdir_separator=
6759 shared_flag='-shared'
6762 if test "$host_cpu" = ia64; then
6763 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6764 # chokes on -Wl,-G. The following line is correct:
6767 if test "$aix_use_runtimelinking" = yes; then
6768 shared_flag='${wl}-G'
6770 shared_flag='${wl}-bM:SRE'
6775 # It seems that -bexpall does not export symbols beginning with
6776 # underscore (_), so it is better to generate a list of symbols to export.
6777 always_export_symbols=yes
6778 if test "$aix_use_runtimelinking" = yes; then
6779 # Warning - without using the other runtime loading flags (-brtl),
6780 # -berok will link without error, but may produce a broken library.
6781 allow_undefined_flag='-berok'
6782 # Determine the default libpath from the value encoded in an empty executable.
6783 cat >conftest.$ac_ext <<_ACEOF
6786 cat confdefs.h >>conftest.$ac_ext
6787 cat >>conftest.$ac_ext <<_ACEOF
6788 /* end confdefs.h. */
6798 rm -f conftest.$ac_objext conftest$ac_exeext
6799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6800 (eval $ac_link) 2>conftest.er1
6802 grep -v '^ *+' conftest.er1 >conftest.err
6804 cat conftest.err >&5
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); } &&
6807 { ac_try='test -z "$ac_c_werror_flag"
6808 || test ! -s conftest.err'
6809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); }; } &&
6814 { ac_try='test -s conftest$ac_exeext'
6815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); }; }; then
6821 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6823 # Check for a 64-bit object if we didn't find anything.
6824 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6827 echo "$as_me: failed program was:" >&5
6828 sed 's/^/| /' conftest.$ac_ext >&5
6831 rm -f conftest.err conftest.$ac_objext \
6832 conftest$ac_exeext conftest.$ac_ext
6833 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6835 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6836 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6838 if test "$host_cpu" = ia64; then
6839 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6840 allow_undefined_flag="-z nodefs"
6841 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6843 # Determine the default libpath from the value encoded in an empty executable.
6844 cat >conftest.$ac_ext <<_ACEOF
6847 cat confdefs.h >>conftest.$ac_ext
6848 cat >>conftest.$ac_ext <<_ACEOF
6849 /* end confdefs.h. */
6859 rm -f conftest.$ac_objext conftest$ac_exeext
6860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6861 (eval $ac_link) 2>conftest.er1
6863 grep -v '^ *+' conftest.er1 >conftest.err
6865 cat conftest.err >&5
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); } &&
6868 { ac_try='test -z "$ac_c_werror_flag"
6869 || test ! -s conftest.err'
6870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); }; } &&
6875 { ac_try='test -s conftest$ac_exeext'
6876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); }; }; then
6882 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6884 # Check for a 64-bit object if we didn't find anything.
6885 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6888 echo "$as_me: failed program was:" >&5
6889 sed 's/^/| /' conftest.$ac_ext >&5
6892 rm -f conftest.err conftest.$ac_objext \
6893 conftest$ac_exeext conftest.$ac_ext
6894 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6896 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6897 # Warning - without using the other run time loading flags,
6898 # -berok will link without error, but may produce a broken library.
6899 no_undefined_flag=' ${wl}-bernotok'
6900 allow_undefined_flag=' ${wl}-berok'
6901 # -bexpall does not export symbols beginning with underscore (_)
6902 always_export_symbols=yes
6903 # Exported symbols can be pulled into shared objects from archives
6904 whole_archive_flag_spec=' '
6905 archive_cmds_need_lc=yes
6906 # This is similar to how AIX traditionally builds it's shared libraries.
6907 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6913 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)'
6914 hardcode_libdir_flag_spec='-L$libdir'
6915 hardcode_minus_L=yes
6916 # see comment about different semantics on the GNU ld section
6921 export_dynamic_flag_spec=-rdynamic
6924 cygwin* | mingw* | pw32*)
6925 # When not using gcc, we currently assume that we are using
6926 # Microsoft Visual C++.
6927 # hardcode_libdir_flag_spec is actually meaningless, as there is
6928 # no search path for DLLs.
6929 hardcode_libdir_flag_spec=' '
6930 allow_undefined_flag=unsupported
6931 # Tell ltmain to make .lib files, not .a files.
6933 # Tell ltmain to make .dll files, not .so files.
6935 # FIXME: Setting linknames here is a bad hack.
6936 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6937 # The linker will automatically build a .lib file if we build a DLL.
6938 old_archive_From_new_cmds='true'
6939 # FIXME: Should let the user specify the lib program.
6940 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6941 fix_srcfile_path='`cygpath -w "$srcfile"`'
6942 enable_shared_with_static_runtimes=yes
6945 darwin* | rhapsody*)
6946 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6947 archive_cmds_need_lc=no
6949 rhapsody* | darwin1.[012])
6950 allow_undefined_flag='-undefined suppress'
6953 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6956 # FIXME: Relying on posixy $() will cause problems for
6957 # cross-compilation, but unfortunately the echo tests do not
6958 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6959 # `"' quotes if we put them in here... so don't!
6960 lt_int_apple_cc_single_mod=no
6961 output_verbose_link_cmd='echo'
6962 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6963 lt_int_apple_cc_single_mod=yes
6965 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6966 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6968 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6970 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6971 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6972 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6973 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6975 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6977 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6979 hardcode_automatic=yes
6980 hardcode_shlibpath_var=unsupported
6981 whole_archive_flag_spec='-all_load $convenience'
6982 link_all_deplibs=yes
6987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6988 hardcode_libdir_flag_spec='-L$libdir'
6989 hardcode_shlibpath_var=no
6996 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6997 # support. Future versions do this automatically, but an explicit c++rt0.o
6998 # does not break anything, and helps significantly (at the cost of a little
7001 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7002 hardcode_libdir_flag_spec='-R$libdir'
7004 hardcode_shlibpath_var=no
7007 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7009 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7011 hardcode_minus_L=yes
7012 hardcode_shlibpath_var=no
7015 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7017 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7018 hardcode_libdir_flag_spec='-R$libdir'
7020 hardcode_shlibpath_var=no
7024 if test "$GCC" = yes; then
7025 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'
7027 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'
7029 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7030 hardcode_libdir_separator=:
7033 # hardcode_minus_L: Not really in the search PATH,
7034 # but as the default location of the library.
7035 hardcode_minus_L=yes
7036 export_dynamic_flag_spec='${wl}-E'
7040 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7043 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7046 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7052 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7055 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7059 if test "$with_gnu_ld" = no; then
7062 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7063 hardcode_libdir_flag_spec_ld='+b $libdir'
7064 hardcode_libdir_separator=:
7066 hardcode_shlibpath_var=no
7069 hardcode_libdir_flag_spec='-L$libdir'
7071 hardcode_shlibpath_var=no
7073 # hardcode_minus_L: Not really in the search PATH,
7074 # but as the default location of the library.
7075 hardcode_minus_L=yes
7078 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7079 hardcode_libdir_separator=:
7081 export_dynamic_flag_spec='${wl}-E'
7083 # hardcode_minus_L: Not really in the search PATH,
7084 # but as the default location of the library.
7085 hardcode_minus_L=yes
7091 irix5* | irix6* | nonstopux*)
7092 if test "$GCC" = yes; then
7093 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7095 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7096 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7098 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7099 hardcode_libdir_separator=:
7100 link_all_deplibs=yes
7104 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7105 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7107 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7109 hardcode_libdir_flag_spec='-R$libdir'
7111 hardcode_shlibpath_var=no
7115 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7117 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7118 hardcode_libdir_separator=:
7119 hardcode_shlibpath_var=no
7124 hardcode_shlibpath_var=no
7125 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7126 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7127 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7128 export_dynamic_flag_spec='${wl}-E'
7131 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7132 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7133 hardcode_libdir_flag_spec='-R$libdir'
7136 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7137 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7144 hardcode_libdir_flag_spec='-L$libdir'
7145 hardcode_minus_L=yes
7146 allow_undefined_flag=unsupported
7147 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'
7148 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7152 if test "$GCC" = yes; then
7153 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7154 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7156 allow_undefined_flag=' -expect_unresolved \*'
7157 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7159 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7160 hardcode_libdir_separator=:
7163 osf4* | osf5*) # as osf3* with the addition of -msym flag
7164 if test "$GCC" = yes; then
7165 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7166 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7167 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7169 allow_undefined_flag=' -expect_unresolved \*'
7170 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7171 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7172 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7174 # Both c and cxx compiler support -rpath directly
7175 hardcode_libdir_flag_spec='-rpath $libdir'
7177 hardcode_libdir_separator=:
7181 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7182 hardcode_shlibpath_var=no
7183 export_dynamic_flag_spec='${wl}-Bexport'
7184 runpath_var=LD_RUN_PATH
7185 hardcode_runpath_var=yes
7189 no_undefined_flag=' -z text'
7190 if test "$GCC" = yes; then
7191 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7192 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7193 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7195 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7196 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7197 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7199 hardcode_libdir_flag_spec='-R$libdir'
7200 hardcode_shlibpath_var=no
7202 solaris2.[0-5] | solaris2.[0-5].*) ;;
7203 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7204 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7206 link_all_deplibs=yes
7210 if test "x$host_vendor" = xsequent; then
7211 # Use $CC to link under sequent, because it throws in some extra .o
7212 # files that make .init and .fini sections work.
7213 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7215 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7217 hardcode_libdir_flag_spec='-L$libdir'
7219 hardcode_minus_L=yes
7220 hardcode_shlibpath_var=no
7224 case $host_vendor in
7226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7227 hardcode_direct=yes # is this really true???
7230 ## LD is ld it makes a PLAMLIB
7231 ## CC just makes a GrossModule.
7232 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7233 reload_cmds='$CC -r -o $output$reload_objs'
7237 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7238 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7241 runpath_var='LD_RUN_PATH'
7242 hardcode_shlibpath_var=no
7246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7247 hardcode_shlibpath_var=no
7248 export_dynamic_flag_spec='-Bexport'
7252 if test -d /usr/nec; then
7253 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7254 hardcode_shlibpath_var=no
7255 runpath_var=LD_RUN_PATH
7256 hardcode_runpath_var=yes
7262 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7265 hardcode_shlibpath_var=no
7266 hardcode_runpath_var=yes
7267 runpath_var=LD_RUN_PATH
7270 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7271 no_undefined_flag='${wl}-z ${wl}text'
7272 if test "$GCC" = yes; then
7273 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7275 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7277 runpath_var='LD_RUN_PATH'
7278 hardcode_shlibpath_var=no
7282 no_undefined_flag=' -z text'
7283 # $CC -shared without GNU ld will not create a library from C++
7284 # object files and a static libstdc++, better avoid it by now
7285 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7286 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7287 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7288 hardcode_libdir_flag_spec=
7289 hardcode_shlibpath_var=no
7290 runpath_var='LD_RUN_PATH'
7294 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7295 hardcode_libdir_flag_spec='-L$libdir'
7296 hardcode_shlibpath_var=no
7305 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7306 echo "${ECHO_T}$ld_shlibs" >&6
7307 test "$ld_shlibs" = no && can_build_shared=no
7309 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7310 if test "$GCC" = yes; then
7311 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7315 # Do we need to explicitly link libc?
7317 case "x$archive_cmds_need_lc" in
7319 # Assume -lc should be added
7320 archive_cmds_need_lc=yes
7322 if test "$enable_shared" = yes && test "$GCC" = yes; then
7323 case $archive_cmds in
7325 # FIXME: we may have to deal with multi-command sequences.
7328 # Test whether the compiler implicitly links with -lc since on some
7329 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7330 # to ld, don't add -lc before -lgcc.
7331 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7332 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7334 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7337 (eval $ac_compile) 2>&5
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); } 2>conftest.err; then
7343 libobjs=conftest.$ac_objext
7345 wl=$lt_prog_compiler_wl
7351 lt_save_allow_undefined_flag=$allow_undefined_flag
7352 allow_undefined_flag=
7353 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7354 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); }
7359 archive_cmds_need_lc=no
7361 archive_cmds_need_lc=yes
7363 allow_undefined_flag=$lt_save_allow_undefined_flag
7365 cat conftest.err 1>&5
7368 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7369 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7376 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7377 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7379 if test -n "$hardcode_libdir_flag_spec" || \
7380 test -n "$runpath_var " || \
7381 test "X$hardcode_automatic"="Xyes" ; then
7383 # We can hardcode non-existant directories.
7384 if test "$hardcode_direct" != no &&
7385 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7386 # have to relink, otherwise we might link with an installed library
7387 # when we should be linking with a yet-to-be-installed one
7388 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7389 test "$hardcode_minus_L" != no; then
7390 # Linking always hardcodes the temporary library directory.
7391 hardcode_action=relink
7393 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7394 hardcode_action=immediate
7397 # We cannot hardcode anything, or else we can only hardcode existing
7399 hardcode_action=unsupported
7401 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7402 echo "${ECHO_T}$hardcode_action" >&6
7404 if test "$hardcode_action" = relink; then
7405 # Fast installation is not supported
7406 enable_fast_install=no
7407 elif test "$shlibpath_overrides_runpath" = yes ||
7408 test "$enable_shared" = no; then
7409 # Fast installation is not necessary
7410 enable_fast_install=needless
7415 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7416 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7417 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7418 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7419 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7420 echo "$as_me:$LINENO: result: yes" >&5
7421 echo "${ECHO_T}yes" >&6
7423 # FIXME - insert some real tests, host_os isn't really good enough
7426 if test -n "$STRIP" ; then
7427 striplib="$STRIP -x"
7428 echo "$as_me:$LINENO: result: yes" >&5
7429 echo "${ECHO_T}yes" >&6
7431 echo "$as_me:$LINENO: result: no" >&5
7432 echo "${ECHO_T}no" >&6
7436 echo "$as_me:$LINENO: result: no" >&5
7437 echo "${ECHO_T}no" >&6
7442 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7443 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7445 libname_spec='lib$name'
7453 shlibpath_overrides_runpath=unknown
7455 dynamic_linker="$host_os ld.so"
7456 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7457 if test "$GCC" = yes; then
7458 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7459 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7460 # if the path contains ";" then we assume it to be the separator
7461 # otherwise default to the standard path separator (i.e. ":") - it is
7462 # assumed that no part of a normal pathname contains ";" but that should
7463 # okay in the real world where ";" in dirpaths is itself problematic.
7464 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7466 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7469 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7471 need_lib_prefix=unknown
7472 hardcode_into_libs=no
7474 # when you set need_version to no, make sure it does not cause -set_version
7475 # flags to be left without arguments
7476 need_version=unknown
7481 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7482 shlibpath_var=LIBPATH
7484 # AIX 3 has no versioning support, so we append a major version to the name.
7485 soname_spec='${libname}${release}${shared_ext}$major'
7492 hardcode_into_libs=yes
7493 if test "$host_cpu" = ia64; then
7494 # AIX 5 supports IA64
7495 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7496 shlibpath_var=LD_LIBRARY_PATH
7498 # With GCC up to 2.95.x, collect2 would create an import file
7499 # for dependence libraries. The import file would start with
7500 # the line `#! .'. This would cause the generated library to
7501 # depend on `.', always an invalid library. This was fixed in
7502 # development snapshots of GCC prior to 3.0.
7504 aix4 | aix4.[01] | aix4.[01].*)
7505 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7507 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7514 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7515 # soname into executable. Probably we can add versioning support to
7516 # collect2, so additional links can be useful in future.
7517 if test "$aix_use_runtimelinking" = yes; then
7518 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7519 # instead of lib<name>.a to let people know that these are not
7520 # typical AIX shared libraries.
7521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7523 # We preserve .a as extension for shared libraries through AIX4.2
7524 # and later when we are not doing run time linking.
7525 library_names_spec='${libname}${release}.a $libname.a'
7526 soname_spec='${libname}${release}${shared_ext}$major'
7528 shlibpath_var=LIBPATH
7533 library_names_spec='$libname.ixlibrary $libname.a'
7534 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7535 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
7539 library_names_spec='${libname}${shared_ext}'
7540 dynamic_linker="$host_os ld.so"
7541 shlibpath_var=LIBRARY_PATH
7547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7548 soname_spec='${libname}${release}${shared_ext}$major'
7549 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7550 shlibpath_var=LD_LIBRARY_PATH
7551 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7552 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7553 # the default ld.so.conf also contains /usr/contrib/lib and
7554 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7555 # libtool to hard-code these into programs
7558 cygwin* | mingw* | pw32*)
7559 version_type=windows
7564 case $GCC,$host_os in
7565 yes,cygwin* | yes,mingw* | yes,pw32*)
7566 library_names_spec='$libname.dll.a'
7567 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7568 postinstall_cmds='base_file=`basename \${file}`~
7569 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7570 dldir=$destdir/`dirname \$dlpath`~
7571 test -d \$dldir || mkdir -p \$dldir~
7572 $install_prog $dir/$dlname \$dldir/$dlname'
7573 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7574 dlpath=$dir/\$dldll~
7576 shlibpath_overrides_runpath=yes
7580 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7581 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7582 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7585 # MinGW DLLs use traditional 'lib' prefix
7586 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7587 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7588 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7589 # It is most probably a Windows format PATH printed by
7590 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7591 # path with ; separators, and with drive letters. We can handle the
7592 # drive letters (cygwin fileutils understands them), so leave them,
7593 # especially as we might pass files found there to a mingw objdump,
7594 # which wouldn't understand a cygwinified path. Ahh.
7595 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7597 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7601 # pw32 DLLs use 'pw' prefix rather than 'lib'
7602 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7608 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7611 dynamic_linker='Win32 ld.exe'
7612 # FIXME: first we should search . and the directory the executable is in
7616 darwin* | rhapsody*)
7617 dynamic_linker="$host_os dyld"
7621 # FIXME: Relying on posixy $() will cause problems for
7622 # cross-compilation, but unfortunately the echo tests do not
7623 # yet detect zsh echo's removal of \ escapes.
7624 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7625 soname_spec='${libname}${release}${major}$shared_ext'
7626 shlibpath_overrides_runpath=yes
7627 shlibpath_var=DYLD_LIBRARY_PATH
7628 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7629 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7630 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7631 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7633 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7641 soname_spec='${libname}${release}${shared_ext}$major'
7642 shlibpath_var=LD_LIBRARY_PATH
7650 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7651 version_type=freebsd-$objformat
7652 case $version_type in
7654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7659 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7663 shlibpath_var=LD_LIBRARY_PATH
7666 shlibpath_overrides_runpath=yes
7668 freebsd3.01* | freebsdelf3.01*)
7669 shlibpath_overrides_runpath=yes
7670 hardcode_into_libs=yes
7673 shlibpath_overrides_runpath=no
7674 hardcode_into_libs=yes
7683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7684 soname_spec='${libname}${release}${shared_ext}$major'
7685 shlibpath_var=LD_LIBRARY_PATH
7686 hardcode_into_libs=yes
7689 hpux9* | hpux10* | hpux11*)
7690 # Give a soname corresponding to the major version so that dld.sl refuses to
7691 # link against other versions.
7698 hardcode_into_libs=yes
7699 dynamic_linker="$host_os dld.so"
7700 shlibpath_var=LD_LIBRARY_PATH
7701 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7703 soname_spec='${libname}${release}${shared_ext}$major'
7704 if test "X$HPUX_IA64_MODE" = X32; then
7705 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7707 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7709 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7713 hardcode_into_libs=yes
7714 dynamic_linker="$host_os dld.sl"
7715 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7716 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7718 soname_spec='${libname}${release}${shared_ext}$major'
7719 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7720 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7724 dynamic_linker="$host_os dld.sl"
7725 shlibpath_var=SHLIB_PATH
7726 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7728 soname_spec='${libname}${release}${shared_ext}$major'
7731 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7732 postinstall_cmds='chmod 555 $lib'
7735 irix5* | irix6* | nonstopux*)
7737 nonstopux*) version_type=nonstopux ;;
7739 if test "$lt_cv_prog_gnu_ld" = yes; then
7747 soname_spec='${libname}${release}${shared_ext}$major'
7748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7750 irix5* | nonstopux*)
7754 case $LD in # libtool.m4 will add one of these switches to LD
7755 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7756 libsuff= shlibsuff= libmagic=32-bit;;
7757 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7758 libsuff=32 shlibsuff=N32 libmagic=N32;;
7759 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7760 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7761 *) libsuff= shlibsuff= libmagic=never-match;;
7765 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7766 shlibpath_overrides_runpath=no
7767 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7768 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7769 hardcode_into_libs=yes
7772 # No shared lib support for Linux oldld, aout, or coff.
7773 linux*oldld* | linux*aout* | linux*coff*)
7777 # This must be Linux ELF.
7782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7783 soname_spec='${libname}${release}${shared_ext}$major'
7784 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7785 shlibpath_var=LD_LIBRARY_PATH
7786 shlibpath_overrides_runpath=no
7787 # This implies no fast_install, which is unacceptable.
7788 # Some rework will be needed to allow for fast_install
7789 # before this can be enabled.
7790 hardcode_into_libs=yes
7792 # We used to test for /lib/ld.so.1 and disable shared libraries on
7793 # powerpc, because MkLinux only supported shared libraries with the
7794 # GNU dynamic linker. Since this was broken with cross compilers,
7795 # most powerpc-linux boxes support dynamic linking these days and
7796 # people can always --disable-shared, the test was removed, and we
7797 # assume the GNU/Linux dynamic linker is in use.
7798 dynamic_linker='GNU/Linux ld.so'
7805 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7807 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7808 dynamic_linker='NetBSD (a.out) ld.so'
7810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7811 soname_spec='${libname}${release}${shared_ext}$major'
7812 dynamic_linker='NetBSD ld.elf_so'
7814 shlibpath_var=LD_LIBRARY_PATH
7815 shlibpath_overrides_runpath=yes
7816 hardcode_into_libs=yes
7821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7822 shlibpath_var=LD_LIBRARY_PATH
7823 shlibpath_overrides_runpath=yes
7830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7831 soname_spec='${libname}${release}${shared_ext}$major'
7832 shlibpath_var=LD_LIBRARY_PATH
7833 shlibpath_overrides_runpath=yes
7840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7841 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7842 shlibpath_var=LD_LIBRARY_PATH
7843 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7845 openbsd2.[89] | openbsd2.[89].*)
7846 shlibpath_overrides_runpath=no
7849 shlibpath_overrides_runpath=yes
7853 shlibpath_overrides_runpath=yes
7858 libname_spec='$name'
7861 library_names_spec='$libname${shared_ext} $libname.a'
7862 dynamic_linker='OS/2 ld.exe'
7863 shlibpath_var=LIBPATH
7866 osf3* | osf4* | osf5*)
7870 soname_spec='${libname}${release}${shared_ext}$major'
7871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7872 shlibpath_var=LD_LIBRARY_PATH
7873 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7874 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7879 soname_spec='${libname}${release}${shared_ext}$major'
7880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7881 shlibpath_var=LD_LIBRARY_PATH
7888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7889 soname_spec='${libname}${release}${shared_ext}$major'
7890 shlibpath_var=LD_LIBRARY_PATH
7891 shlibpath_overrides_runpath=yes
7892 hardcode_into_libs=yes
7893 # ldd complains unless libraries are executable
7894 postinstall_cmds='chmod +x $lib'
7899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7900 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7901 shlibpath_var=LD_LIBRARY_PATH
7902 shlibpath_overrides_runpath=yes
7903 if test "$with_gnu_ld" = yes; then
7909 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7912 soname_spec='${libname}${release}${shared_ext}$major'
7913 shlibpath_var=LD_LIBRARY_PATH
7914 case $host_vendor in
7916 shlibpath_overrides_runpath=no
7918 export_dynamic_flag_spec='${wl}-Blargedynsym'
7919 runpath_var=LD_RUN_PATH
7927 shlibpath_overrides_runpath=no
7928 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7934 if test -d /usr/nec ;then
7936 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7937 soname_spec='$libname${shared_ext}.$major'
7938 shlibpath_var=LD_LIBRARY_PATH
7944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7945 soname_spec='${libname}${release}${shared_ext}$major'
7946 shlibpath_var=LD_LIBRARY_PATH
7953 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7954 echo "${ECHO_T}$dynamic_linker" >&6
7955 test "$dynamic_linker" = no && can_build_shared=no
7957 if test "x$enable_dlopen" != xyes; then
7958 enable_dlopen=unknown
7959 enable_dlopen_self=unknown
7960 enable_dlopen_self_static=unknown
7967 lt_cv_dlopen="load_add_on"
7969 lt_cv_dlopen_self=yes
7973 lt_cv_dlopen="LoadLibrary"
7978 lt_cv_dlopen="dlopen"
7983 # if libdl is installed we need to link against it
7984 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7985 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7986 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7987 echo $ECHO_N "(cached) $ECHO_C" >&6
7989 ac_check_lib_save_LIBS=$LIBS
7991 cat >conftest.$ac_ext <<_ACEOF
7994 cat confdefs.h >>conftest.$ac_ext
7995 cat >>conftest.$ac_ext <<_ACEOF
7996 /* end confdefs.h. */
7998 /* Override any gcc2 internal prototype to avoid an error. */
8002 /* We use char because int might match the return type of a gcc2
8003 builtin and then its argument prototype would still apply. */
8013 rm -f conftest.$ac_objext conftest$ac_exeext
8014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8015 (eval $ac_link) 2>conftest.er1
8017 grep -v '^ *+' conftest.er1 >conftest.err
8019 cat conftest.err >&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); } &&
8022 { ac_try='test -z "$ac_c_werror_flag"
8023 || test ! -s conftest.err'
8024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); }; } &&
8029 { ac_try='test -s conftest$ac_exeext'
8030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); }; }; then
8035 ac_cv_lib_dl_dlopen=yes
8037 echo "$as_me: failed program was:" >&5
8038 sed 's/^/| /' conftest.$ac_ext >&5
8040 ac_cv_lib_dl_dlopen=no
8042 rm -f conftest.err conftest.$ac_objext \
8043 conftest$ac_exeext conftest.$ac_ext
8044 LIBS=$ac_check_lib_save_LIBS
8046 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8047 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8048 if test $ac_cv_lib_dl_dlopen = yes; then
8049 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8054 lt_cv_dlopen_self=yes
8061 echo "$as_me:$LINENO: checking for shl_load" >&5
8062 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8063 if test "${ac_cv_func_shl_load+set}" = set; then
8064 echo $ECHO_N "(cached) $ECHO_C" >&6
8066 cat >conftest.$ac_ext <<_ACEOF
8069 cat confdefs.h >>conftest.$ac_ext
8070 cat >>conftest.$ac_ext <<_ACEOF
8071 /* end confdefs.h. */
8072 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8074 #define shl_load innocuous_shl_load
8076 /* System header to define __stub macros and hopefully few prototypes,
8077 which can conflict with char shl_load (); below.
8078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8079 <limits.h> exists even on freestanding compilers. */
8082 # include <limits.h>
8084 # include <assert.h>
8089 /* Override any gcc2 internal prototype to avoid an error. */
8094 /* We use char because int might match the return type of a gcc2
8095 builtin and then its argument prototype would still apply. */
8097 /* The GNU C library defines this for functions which it implements
8098 to always fail with ENOSYS. Some functions are actually named
8099 something starting with __ and the normal name is an alias. */
8100 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8103 char (*f) () = shl_load;
8112 return f != shl_load;
8117 rm -f conftest.$ac_objext conftest$ac_exeext
8118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8119 (eval $ac_link) 2>conftest.er1
8121 grep -v '^ *+' conftest.er1 >conftest.err
8123 cat conftest.err >&5
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); } &&
8126 { ac_try='test -z "$ac_c_werror_flag"
8127 || test ! -s conftest.err'
8128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); }; } &&
8133 { ac_try='test -s conftest$ac_exeext'
8134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; }; then
8139 ac_cv_func_shl_load=yes
8141 echo "$as_me: failed program was:" >&5
8142 sed 's/^/| /' conftest.$ac_ext >&5
8144 ac_cv_func_shl_load=no
8146 rm -f conftest.err conftest.$ac_objext \
8147 conftest$ac_exeext conftest.$ac_ext
8149 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8150 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8151 if test $ac_cv_func_shl_load = yes; then
8152 lt_cv_dlopen="shl_load"
8154 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8155 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8156 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8157 echo $ECHO_N "(cached) $ECHO_C" >&6
8159 ac_check_lib_save_LIBS=$LIBS
8161 cat >conftest.$ac_ext <<_ACEOF
8164 cat confdefs.h >>conftest.$ac_ext
8165 cat >>conftest.$ac_ext <<_ACEOF
8166 /* end confdefs.h. */
8168 /* Override any gcc2 internal prototype to avoid an error. */
8172 /* We use char because int might match the return type of a gcc2
8173 builtin and then its argument prototype would still apply. */
8183 rm -f conftest.$ac_objext conftest$ac_exeext
8184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8185 (eval $ac_link) 2>conftest.er1
8187 grep -v '^ *+' conftest.er1 >conftest.err
8189 cat conftest.err >&5
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); } &&
8192 { ac_try='test -z "$ac_c_werror_flag"
8193 || test ! -s conftest.err'
8194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); }; } &&
8199 { ac_try='test -s conftest$ac_exeext'
8200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); }; }; then
8205 ac_cv_lib_dld_shl_load=yes
8207 echo "$as_me: failed program was:" >&5
8208 sed 's/^/| /' conftest.$ac_ext >&5
8210 ac_cv_lib_dld_shl_load=no
8212 rm -f conftest.err conftest.$ac_objext \
8213 conftest$ac_exeext conftest.$ac_ext
8214 LIBS=$ac_check_lib_save_LIBS
8216 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8217 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8218 if test $ac_cv_lib_dld_shl_load = yes; then
8219 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8221 echo "$as_me:$LINENO: checking for dlopen" >&5
8222 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8223 if test "${ac_cv_func_dlopen+set}" = set; then
8224 echo $ECHO_N "(cached) $ECHO_C" >&6
8226 cat >conftest.$ac_ext <<_ACEOF
8229 cat confdefs.h >>conftest.$ac_ext
8230 cat >>conftest.$ac_ext <<_ACEOF
8231 /* end confdefs.h. */
8232 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8234 #define dlopen innocuous_dlopen
8236 /* System header to define __stub macros and hopefully few prototypes,
8237 which can conflict with char dlopen (); below.
8238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8239 <limits.h> exists even on freestanding compilers. */
8242 # include <limits.h>
8244 # include <assert.h>
8249 /* Override any gcc2 internal prototype to avoid an error. */
8254 /* We use char because int might match the return type of a gcc2
8255 builtin and then its argument prototype would still apply. */
8257 /* The GNU C library defines this for functions which it implements
8258 to always fail with ENOSYS. Some functions are actually named
8259 something starting with __ and the normal name is an alias. */
8260 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8263 char (*f) () = dlopen;
8277 rm -f conftest.$ac_objext conftest$ac_exeext
8278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8279 (eval $ac_link) 2>conftest.er1
8281 grep -v '^ *+' conftest.er1 >conftest.err
8283 cat conftest.err >&5
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); } &&
8286 { ac_try='test -z "$ac_c_werror_flag"
8287 || test ! -s conftest.err'
8288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); }; } &&
8293 { ac_try='test -s conftest$ac_exeext'
8294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; }; then
8299 ac_cv_func_dlopen=yes
8301 echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.$ac_ext >&5
8304 ac_cv_func_dlopen=no
8306 rm -f conftest.err conftest.$ac_objext \
8307 conftest$ac_exeext conftest.$ac_ext
8309 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8310 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8311 if test $ac_cv_func_dlopen = yes; then
8312 lt_cv_dlopen="dlopen"
8314 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8315 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8316 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
8319 ac_check_lib_save_LIBS=$LIBS
8321 cat >conftest.$ac_ext <<_ACEOF
8324 cat confdefs.h >>conftest.$ac_ext
8325 cat >>conftest.$ac_ext <<_ACEOF
8326 /* end confdefs.h. */
8328 /* Override any gcc2 internal prototype to avoid an error. */
8332 /* We use char because int might match the return type of a gcc2
8333 builtin and then its argument prototype would still apply. */
8343 rm -f conftest.$ac_objext conftest$ac_exeext
8344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8345 (eval $ac_link) 2>conftest.er1
8347 grep -v '^ *+' conftest.er1 >conftest.err
8349 cat conftest.err >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); } &&
8352 { ac_try='test -z "$ac_c_werror_flag"
8353 || test ! -s conftest.err'
8354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); }; } &&
8359 { ac_try='test -s conftest$ac_exeext'
8360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); }; }; then
8365 ac_cv_lib_dl_dlopen=yes
8367 echo "$as_me: failed program was:" >&5
8368 sed 's/^/| /' conftest.$ac_ext >&5
8370 ac_cv_lib_dl_dlopen=no
8372 rm -f conftest.err conftest.$ac_objext \
8373 conftest$ac_exeext conftest.$ac_ext
8374 LIBS=$ac_check_lib_save_LIBS
8376 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8377 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8378 if test $ac_cv_lib_dl_dlopen = yes; then
8379 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8381 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8382 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8383 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8384 echo $ECHO_N "(cached) $ECHO_C" >&6
8386 ac_check_lib_save_LIBS=$LIBS
8388 cat >conftest.$ac_ext <<_ACEOF
8391 cat confdefs.h >>conftest.$ac_ext
8392 cat >>conftest.$ac_ext <<_ACEOF
8393 /* end confdefs.h. */
8395 /* Override any gcc2 internal prototype to avoid an error. */
8399 /* We use char because int might match the return type of a gcc2
8400 builtin and then its argument prototype would still apply. */
8410 rm -f conftest.$ac_objext conftest$ac_exeext
8411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8412 (eval $ac_link) 2>conftest.er1
8414 grep -v '^ *+' conftest.er1 >conftest.err
8416 cat conftest.err >&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); } &&
8419 { ac_try='test -z "$ac_c_werror_flag"
8420 || test ! -s conftest.err'
8421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); }; } &&
8426 { ac_try='test -s conftest$ac_exeext'
8427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); }; }; then
8432 ac_cv_lib_svld_dlopen=yes
8434 echo "$as_me: failed program was:" >&5
8435 sed 's/^/| /' conftest.$ac_ext >&5
8437 ac_cv_lib_svld_dlopen=no
8439 rm -f conftest.err conftest.$ac_objext \
8440 conftest$ac_exeext conftest.$ac_ext
8441 LIBS=$ac_check_lib_save_LIBS
8443 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8444 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8445 if test $ac_cv_lib_svld_dlopen = yes; then
8446 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8448 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8449 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8450 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8451 echo $ECHO_N "(cached) $ECHO_C" >&6
8453 ac_check_lib_save_LIBS=$LIBS
8455 cat >conftest.$ac_ext <<_ACEOF
8458 cat confdefs.h >>conftest.$ac_ext
8459 cat >>conftest.$ac_ext <<_ACEOF
8460 /* end confdefs.h. */
8462 /* Override any gcc2 internal prototype to avoid an error. */
8466 /* We use char because int might match the return type of a gcc2
8467 builtin and then its argument prototype would still apply. */
8477 rm -f conftest.$ac_objext conftest$ac_exeext
8478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8479 (eval $ac_link) 2>conftest.er1
8481 grep -v '^ *+' conftest.er1 >conftest.err
8483 cat conftest.err >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } &&
8486 { ac_try='test -z "$ac_c_werror_flag"
8487 || test ! -s conftest.err'
8488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); }; } &&
8493 { ac_try='test -s conftest$ac_exeext'
8494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); }; }; then
8499 ac_cv_lib_dld_dld_link=yes
8501 echo "$as_me: failed program was:" >&5
8502 sed 's/^/| /' conftest.$ac_ext >&5
8504 ac_cv_lib_dld_dld_link=no
8506 rm -f conftest.err conftest.$ac_objext \
8507 conftest$ac_exeext conftest.$ac_ext
8508 LIBS=$ac_check_lib_save_LIBS
8510 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8511 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8512 if test $ac_cv_lib_dld_dld_link = yes; then
8513 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8534 if test "x$lt_cv_dlopen" != xno; then
8540 case $lt_cv_dlopen in
8542 save_CPPFLAGS="$CPPFLAGS"
8543 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8545 save_LDFLAGS="$LDFLAGS"
8546 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8549 LIBS="$lt_cv_dlopen_libs $LIBS"
8551 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8552 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8553 if test "${lt_cv_dlopen_self+set}" = set; then
8554 echo $ECHO_N "(cached) $ECHO_C" >&6
8556 if test "$cross_compiling" = yes; then :
8557 lt_cv_dlopen_self=cross
8559 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8560 lt_status=$lt_dlunknown
8561 cat > conftest.$ac_ext <<EOF
8562 #line 8562 "configure"
8563 #include "confdefs.h"
8572 # define LT_DLGLOBAL RTLD_GLOBAL
8575 # define LT_DLGLOBAL DL_GLOBAL
8577 # define LT_DLGLOBAL 0
8581 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8582 find out it does not work in some platform. */
8583 #ifndef LT_DLLAZY_OR_NOW
8585 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8588 # define LT_DLLAZY_OR_NOW DL_LAZY
8591 # define LT_DLLAZY_OR_NOW RTLD_NOW
8594 # define LT_DLLAZY_OR_NOW DL_NOW
8596 # define LT_DLLAZY_OR_NOW 0
8604 extern "C" void exit (int);
8607 void fnord() { int i=42;}
8610 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8611 int status = $lt_dlunknown;
8615 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8616 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8617 /* dlclose (self); */
8623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8624 (eval $ac_link) 2>&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8628 (./conftest; exit; ) 2>/dev/null
8631 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8632 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8633 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8636 # compilation failed
8637 lt_cv_dlopen_self=no
8644 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8645 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8647 if test "x$lt_cv_dlopen_self" = xyes; then
8648 LDFLAGS="$LDFLAGS $link_static_flag"
8649 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8650 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8651 if test "${lt_cv_dlopen_self_static+set}" = set; then
8652 echo $ECHO_N "(cached) $ECHO_C" >&6
8654 if test "$cross_compiling" = yes; then :
8655 lt_cv_dlopen_self_static=cross
8657 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8658 lt_status=$lt_dlunknown
8659 cat > conftest.$ac_ext <<EOF
8660 #line 8660 "configure"
8661 #include "confdefs.h"
8670 # define LT_DLGLOBAL RTLD_GLOBAL
8673 # define LT_DLGLOBAL DL_GLOBAL
8675 # define LT_DLGLOBAL 0
8679 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8680 find out it does not work in some platform. */
8681 #ifndef LT_DLLAZY_OR_NOW
8683 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8686 # define LT_DLLAZY_OR_NOW DL_LAZY
8689 # define LT_DLLAZY_OR_NOW RTLD_NOW
8692 # define LT_DLLAZY_OR_NOW DL_NOW
8694 # define LT_DLLAZY_OR_NOW 0
8702 extern "C" void exit (int);
8705 void fnord() { int i=42;}
8708 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8709 int status = $lt_dlunknown;
8713 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8714 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8715 /* dlclose (self); */
8721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8722 (eval $ac_link) 2>&5
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8726 (./conftest; exit; ) 2>/dev/null
8729 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8730 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8731 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8734 # compilation failed
8735 lt_cv_dlopen_self_static=no
8742 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8743 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8746 CPPFLAGS="$save_CPPFLAGS"
8747 LDFLAGS="$save_LDFLAGS"
8752 case $lt_cv_dlopen_self in
8753 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8754 *) enable_dlopen_self=unknown ;;
8757 case $lt_cv_dlopen_self_static in
8758 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8759 *) enable_dlopen_self_static=unknown ;;
8764 # Report which librarie types wil actually be built
8765 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8766 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8767 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8768 echo "${ECHO_T}$can_build_shared" >&6
8770 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8771 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8772 test "$can_build_shared" = "no" && enable_shared=no
8774 # On AIX, shared libraries and static libraries use the same namespace, and
8775 # are all built from PIC.
8778 test "$enable_shared" = yes && enable_static=no
8779 if test -n "$RANLIB"; then
8780 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8781 postinstall_cmds='$RANLIB $lib'
8786 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8787 test "$enable_shared" = yes && enable_static=no
8790 darwin* | rhapsody*)
8791 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8792 archive_cmds_need_lc=no
8794 rhapsody* | darwin1.[012])
8795 allow_undefined_flag='-undefined suppress'
8798 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8801 # FIXME: Relying on posixy $() will cause problems for
8802 # cross-compilation, but unfortunately the echo tests do not
8803 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8804 # `"' quotes if we put them in here... so don't!
8805 output_verbose_link_cmd='echo'
8806 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8807 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8808 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8809 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8810 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8812 hardcode_automatic=yes
8813 hardcode_shlibpath_var=unsupported
8814 whole_archive_flag_spec='-all_load $convenience'
8815 link_all_deplibs=yes
8819 echo "$as_me:$LINENO: result: $enable_shared" >&5
8820 echo "${ECHO_T}$enable_shared" >&6
8822 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8823 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8824 # Make sure either enable_shared or enable_static is yes.
8825 test "$enable_shared" = yes || enable_static=yes
8826 echo "$as_me:$LINENO: result: $enable_static" >&5
8827 echo "${ECHO_T}$enable_static" >&6
8829 # The else clause should only fire when bootstrapping the
8830 # libtool distribution, otherwise you forgot to ship ltmain.sh
8831 # with your package, and you will get complaints that there are
8832 # no rules to generate ltmain.sh.
8833 if test -f "$ltmain"; then
8834 # See if we are running on zsh, and set the options which allow our commands through
8835 # without removal of \ escapes.
8836 if test -n "${ZSH_VERSION+set}" ; then
8837 setopt NO_GLOB_SUBST
8839 # Now quote all the things that may contain metacharacters while being
8840 # careful not to overquote the AC_SUBSTed values. We take copies of the
8841 # variables and quote the copies for generation of the libtool script.
8842 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8843 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8844 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8845 deplibs_check_method reload_flag reload_cmds need_locks \
8846 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8847 lt_cv_sys_global_symbol_to_c_name_address \
8848 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8849 old_postinstall_cmds old_postuninstall_cmds \
8853 lt_prog_compiler_wl \
8854 lt_prog_compiler_pic \
8855 lt_prog_compiler_static \
8856 lt_prog_compiler_no_builtin_flag \
8857 export_dynamic_flag_spec \
8858 thread_safe_flag_spec \
8859 whole_archive_flag_spec \
8860 enable_shared_with_static_runtimes \
8862 old_archive_from_new_cmds \
8867 compiler_lib_search_path \
8869 archive_expsym_cmds \
8871 postuninstall_cmds \
8872 old_archive_from_expsyms_cmds \
8873 allow_undefined_flag \
8875 export_symbols_cmds \
8876 hardcode_libdir_flag_spec \
8877 hardcode_libdir_flag_spec_ld \
8878 hardcode_libdir_separator \
8879 hardcode_automatic \
8881 module_expsym_cmds \
8882 lt_cv_prog_compiler_c_o \
8887 old_archive_cmds | \
8888 old_archive_from_new_cmds | \
8890 archive_expsym_cmds | \
8892 module_expsym_cmds | \
8893 old_archive_from_expsyms_cmds | \
8894 export_symbols_cmds | \
8895 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8896 postinstall_cmds | postuninstall_cmds | \
8897 old_postinstall_cmds | old_postuninstall_cmds | \
8898 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8899 # Double-quote double-evaled strings.
8900 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8903 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8909 *'\$0 --fallback-echo"')
8910 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8915 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8917 { echo "$as_me:$LINENO: creating $ofile" >&5
8918 echo "$as_me: creating $ofile" >&6;}
8920 cat <<__EOF__ >> "$cfgfile"
8923 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8924 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8925 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8927 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8928 # Free Software Foundation, Inc.
8930 # This file is part of GNU Libtool:
8931 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8933 # This program is free software; you can redistribute it and/or modify
8934 # it under the terms of the GNU General Public License as published by
8935 # the Free Software Foundation; either version 2 of the License, or
8936 # (at your option) any later version.
8938 # This program is distributed in the hope that it will be useful, but
8939 # WITHOUT ANY WARRANTY; without even the implied warranty of
8940 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8941 # General Public License for more details.
8943 # You should have received a copy of the GNU General Public License
8944 # along with this program; if not, write to the Free Software
8945 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8947 # As a special exception to the GNU General Public License, if you
8948 # distribute this file as part of a program that contains a
8949 # configuration script generated by Autoconf, you may include it under
8950 # the same distribution terms that you use for the rest of that program.
8952 # A sed program that does not truncate output.
8955 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8956 Xsed="$SED -e s/^X//"
8958 # The HP-UX ksh and POSIX shell print the target directory to stdout
8960 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8962 # The names of the tagged configurations supported by this script.
8965 # ### BEGIN LIBTOOL CONFIG
8967 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8969 # Shell to use when invoking shell scripts.
8972 # Whether or not to build shared libraries.
8973 build_libtool_libs=$enable_shared
8975 # Whether or not to build static libraries.
8976 build_old_libs=$enable_static
8978 # Whether or not to add -lc for building shared libraries.
8979 build_libtool_need_lc=$archive_cmds_need_lc
8981 # Whether or not to disallow shared libs when runtime libs are static
8982 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8984 # Whether or not to optimize for fast installation.
8985 fast_install=$enable_fast_install
8988 host_alias=$host_alias
8991 # An echo program that does not interpret backslashes.
8996 AR_FLAGS=$lt_AR_FLAGS
9001 # A language-specific compiler.
9004 # Is the compiler the GNU C compiler?
9010 # The linker used to build libraries.
9013 # Whether we need hard or soft links.
9016 # A BSD-compatible nm program.
9019 # A symbol stripping program
9022 # Used to examine libraries when file_magic_cmd begins "file"
9023 MAGIC_CMD=$MAGIC_CMD
9025 # Used on cygwin: DLL creation program.
9028 # Used on cygwin: object dumper.
9031 # Used on cygwin: assembler.
9034 # The name of the directory that contains temporary libtool files.
9037 # How to create reloadable object files.
9038 reload_flag=$lt_reload_flag
9039 reload_cmds=$lt_reload_cmds
9041 # How to pass a linker flag through the compiler.
9042 wl=$lt_lt_prog_compiler_wl
9044 # Object file suffix (normally "o").
9047 # Old archive suffix (normally "a").
9050 # Shared library suffix (normally ".so").
9053 # Executable file suffix (normally "").
9056 # Additional compiler flags for building library objects.
9057 pic_flag=$lt_lt_prog_compiler_pic
9060 # What is the maximum length of a command?
9061 max_cmd_len=$lt_cv_sys_max_cmd_len
9063 # Does compiler simultaneously support -c and -o options?
9064 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9066 # Must we lock files when doing compilation ?
9067 need_locks=$lt_need_locks
9069 # Do we need the lib prefix for modules?
9070 need_lib_prefix=$need_lib_prefix
9072 # Do we need a version for libraries?
9073 need_version=$need_version
9075 # Whether dlopen is supported.
9076 dlopen_support=$enable_dlopen
9078 # Whether dlopen of programs is supported.
9079 dlopen_self=$enable_dlopen_self
9081 # Whether dlopen of statically linked programs is supported.
9082 dlopen_self_static=$enable_dlopen_self_static
9084 # Compiler flag to prevent dynamic linking.
9085 link_static_flag=$lt_lt_prog_compiler_static
9087 # Compiler flag to turn off builtin functions.
9088 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9090 # Compiler flag to allow reflexive dlopens.
9091 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9093 # Compiler flag to generate shared objects directly from archives.
9094 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9096 # Compiler flag to generate thread-safe objects.
9097 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9099 # Library versioning type.
9100 version_type=$version_type
9102 # Format of library name prefix.
9103 libname_spec=$lt_libname_spec
9105 # List of archive names. First name is the real one, the rest are links.
9106 # The last name is the one that the linker finds with -lNAME.
9107 library_names_spec=$lt_library_names_spec
9109 # The coded name of the library, if different from the real name.
9110 soname_spec=$lt_soname_spec
9112 # Commands used to build and install an old-style archive.
9114 old_archive_cmds=$lt_old_archive_cmds
9115 old_postinstall_cmds=$lt_old_postinstall_cmds
9116 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9118 # Create an old-style archive from a shared archive.
9119 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9121 # Create a temporary old-style archive to link instead of a shared archive.
9122 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9124 # Commands used to build and install a shared archive.
9125 archive_cmds=$lt_archive_cmds
9126 archive_expsym_cmds=$lt_archive_expsym_cmds
9127 postinstall_cmds=$lt_postinstall_cmds
9128 postuninstall_cmds=$lt_postuninstall_cmds
9130 # Commands used to build a loadable module (assumed same as above if empty)
9131 module_cmds=$lt_module_cmds
9132 module_expsym_cmds=$lt_module_expsym_cmds
9134 # Commands to strip libraries.
9135 old_striplib=$lt_old_striplib
9136 striplib=$lt_striplib
9138 # Dependencies to place before the objects being linked to create a
9140 predep_objects=$lt_predep_objects
9142 # Dependencies to place after the objects being linked to create a
9144 postdep_objects=$lt_postdep_objects
9146 # Dependencies to place before the objects being linked to create a
9150 # Dependencies to place after the objects being linked to create a
9152 postdeps=$lt_postdeps
9154 # The library search path used internally by the compiler when linking
9156 compiler_lib_search_path=$lt_compiler_lib_search_path
9158 # Method to check whether dependent libraries are shared objects.
9159 deplibs_check_method=$lt_deplibs_check_method
9161 # Command to use when deplibs_check_method == file_magic.
9162 file_magic_cmd=$lt_file_magic_cmd
9164 # Flag that allows shared libraries with undefined symbols to be built.
9165 allow_undefined_flag=$lt_allow_undefined_flag
9167 # Flag that forces no undefined symbols.
9168 no_undefined_flag=$lt_no_undefined_flag
9170 # Commands used to finish a libtool library installation in a directory.
9171 finish_cmds=$lt_finish_cmds
9173 # Same as above, but a single script fragment to be evaled but not shown.
9174 finish_eval=$lt_finish_eval
9176 # Take the output of nm and produce a listing of raw symbols and C names.
9177 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9179 # Transform the output of nm in a proper C declaration
9180 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9182 # Transform the output of nm in a C name address pair
9183 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9185 # This is the shared library runtime path variable.
9186 runpath_var=$runpath_var
9188 # This is the shared library path variable.
9189 shlibpath_var=$shlibpath_var
9191 # Is shlibpath searched before the hard-coded library search path?
9192 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9194 # How to hardcode a shared library path into an executable.
9195 hardcode_action=$hardcode_action
9197 # Whether we should hardcode library paths into libraries.
9198 hardcode_into_libs=$hardcode_into_libs
9200 # Flag to hardcode \$libdir into a binary during linking.
9201 # This must work even if \$libdir does not exist.
9202 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9204 # If ld is used when linking, flag to hardcode \$libdir into
9205 # a binary during linking. This must work even if \$libdir does
9207 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9209 # Whether we need a single -rpath flag with a separated argument.
9210 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9212 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9214 hardcode_direct=$hardcode_direct
9216 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9218 hardcode_minus_L=$hardcode_minus_L
9220 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9221 # the resulting binary.
9222 hardcode_shlibpath_var=$hardcode_shlibpath_var
9224 # Set to yes if building a shared library automatically hardcodes DIR into the library
9225 # and all subsequent libraries and executables linked against it.
9226 hardcode_automatic=$hardcode_automatic
9228 # Variables whose values should be saved in libtool wrapper scripts and
9229 # restored at relink time.
9230 variables_saved_for_relink="$variables_saved_for_relink"
9232 # Whether libtool must link a program against all its dependency libraries.
9233 link_all_deplibs=$link_all_deplibs
9235 # Compile-time system search path for libraries
9236 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9238 # Run-time system search path for libraries
9239 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9241 # Fix the shell variable \$srcfile for the compiler.
9242 fix_srcfile_path="$fix_srcfile_path"
9244 # Set to yes if exported symbols are required.
9245 always_export_symbols=$always_export_symbols
9247 # The commands to list exported symbols.
9248 export_symbols_cmds=$lt_export_symbols_cmds
9250 # The commands to extract the exported symbol list from a shared archive.
9251 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9253 # Symbols that should not be listed in the preloaded symbols.
9254 exclude_expsyms=$lt_exclude_expsyms
9256 # Symbols that must always be exported.
9257 include_expsyms=$lt_include_expsyms
9259 # ### END LIBTOOL CONFIG
9266 cat <<\EOF >> "$cfgfile"
9268 # AIX sometimes has problems with the GCC collect2 program. For some
9269 # reason, if we set the COLLECT_NAMES environment variable, the problems
9270 # vanish in a puff of smoke.
9271 if test "X${COLLECT_NAMES+set}" != Xset; then
9273 export COLLECT_NAMES
9279 # We use sed instead of cat because bash on DJGPP gets confused if
9280 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9281 # text mode, it properly converts lines to CR/LF. This bash problem
9282 # is reportedly fixed, but why not run on old versions too?
9283 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9285 mv -f "$cfgfile" "$ofile" || \
9286 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9290 # If there is no Makefile yet, we rely on a make rule to execute
9291 # `config.status --recheck' to rerun these tests and create the
9292 # libtool script then.
9293 test -f Makefile && make "$ltmain"
9298 ac_cpp='$CPP $CPPFLAGS'
9299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9306 # Check whether --with-tags or --without-tags was given.
9307 if test "${with_tags+set}" = set; then
9308 withval="$with_tags"
9312 if test -f "$ltmain" && test -n "$tagnames"; then
9313 if test ! -f "${ofile}"; then
9314 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9315 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9318 if test -z "$LTCC"; then
9319 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9320 if test -z "$LTCC"; then
9321 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9322 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9324 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9325 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9329 # Extract list of available tagged configurations in $ofile.
9330 # Note that this assumes the entire list is on one line.
9331 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9333 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9334 for tagname in $tagnames; do
9336 # Check whether tagname contains only valid characters
9337 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9339 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9340 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9341 { (exit 1); exit 1; }; }
9345 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9347 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9348 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9349 { (exit 1); exit 1; }; }
9352 # Update the list of available tags.
9353 if test -n "$tagname"; then
9354 echo appending configuration tag \"$tagname\" to $ofile
9358 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9360 ac_cpp='$CXXCPP $CPPFLAGS'
9361 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9362 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9363 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9368 archive_cmds_need_lc_CXX=no
9369 allow_undefined_flag_CXX=
9370 always_export_symbols_CXX=no
9371 archive_expsym_cmds_CXX=
9372 export_dynamic_flag_spec_CXX=
9373 hardcode_direct_CXX=no
9374 hardcode_libdir_flag_spec_CXX=
9375 hardcode_libdir_flag_spec_ld_CXX=
9376 hardcode_libdir_separator_CXX=
9377 hardcode_minus_L_CXX=no
9378 hardcode_automatic_CXX=no
9380 module_expsym_cmds_CXX=
9381 link_all_deplibs_CXX=unknown
9382 old_archive_cmds_CXX=$old_archive_cmds
9383 no_undefined_flag_CXX=
9384 whole_archive_flag_spec_CXX=
9385 enable_shared_with_static_runtimes_CXX=no
9387 # Dependencies to place before and after the object being linked:
9389 postdep_objects_CXX=
9392 compiler_lib_search_path_CXX=
9394 # Source file extension for C++ test sources.
9397 # Object file extension for compiled C++ test sources.
9401 # Code to be used in simple compile tests
9402 lt_simple_compile_test_code="int some_variable = 0;\n"
9404 # Code to be used in simple link tests
9405 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9407 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9409 # If no C compiler was specified, use CC.
9412 # Allow CC to be a program name with arguments.
9416 # Allow CC to be a program name with arguments.
9421 lt_save_with_gnu_ld=$with_gnu_ld
9422 lt_save_path_LD=$lt_cv_path_LD
9423 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9424 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9426 unset lt_cv_prog_gnu_ld
9428 if test -n "${lt_cv_path_LDCXX+set}"; then
9429 lt_cv_path_LD=$lt_cv_path_LDCXX
9433 test -z "${LDCXX+set}" || LD=$LDCXX
9437 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9439 # We don't want -fno-exception wen compiling C++ code, so set the
9440 # no_builtin_flag separately
9441 if test "$GXX" = yes; then
9442 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9444 lt_prog_compiler_no_builtin_flag_CXX=
9447 if test "$GXX" = yes; then
9448 # Set up default GNU C++ configuration
9451 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9452 if test "${with_gnu_ld+set}" = set; then
9453 withval="$with_gnu_ld"
9454 test "$withval" = no || with_gnu_ld=yes
9459 if test "$GCC" = yes; then
9460 # Check if gcc -print-prog-name=ld gives a path.
9461 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9462 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9465 # gcc leaves a trailing carriage return which upsets mingw
9466 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9468 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9471 # Accept absolute paths.
9473 re_direlt='/[^/][^/]*/\.\./'
9474 # Canonicalize the path of ld
9475 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9476 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9477 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9479 test -z "$LD" && LD="$ac_prog"
9482 # If it fails, then pretend we aren't using GCC.
9486 # If it is relative, then search for the first ld in PATH.
9490 elif test "$with_gnu_ld" = yes; then
9491 echo "$as_me:$LINENO: checking for GNU ld" >&5
9492 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9494 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9495 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9497 if test "${lt_cv_path_LD+set}" = set; then
9498 echo $ECHO_N "(cached) $ECHO_C" >&6
9500 if test -z "$LD"; then
9501 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9502 for ac_dir in $PATH; do
9504 test -z "$ac_dir" && ac_dir=.
9505 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9506 lt_cv_path_LD="$ac_dir/$ac_prog"
9507 # Check to see if the program is GNU ld. I'd rather use --version,
9508 # but apparently some GNU ld's only accept -v.
9509 # Break only if it was the GNU/non-GNU ld that we prefer.
9510 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9511 *GNU* | *'with BFD'*)
9512 test "$with_gnu_ld" != no && break
9515 test "$with_gnu_ld" != yes && break
9522 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9527 if test -n "$LD"; then
9528 echo "$as_me:$LINENO: result: $LD" >&5
9529 echo "${ECHO_T}$LD" >&6
9531 echo "$as_me:$LINENO: result: no" >&5
9532 echo "${ECHO_T}no" >&6
9534 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9535 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9536 { (exit 1); exit 1; }; }
9537 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9538 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9539 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9540 echo $ECHO_N "(cached) $ECHO_C" >&6
9542 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9543 case `"$LD" -v 2>&1 </dev/null` in
9544 *GNU* | *'with BFD'*)
9545 lt_cv_prog_gnu_ld=yes
9548 lt_cv_prog_gnu_ld=no
9552 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9553 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9554 with_gnu_ld=$lt_cv_prog_gnu_ld
9558 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9559 # archiving commands below assume that GNU ld is being used.
9560 if test "$with_gnu_ld" = yes; then
9561 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9562 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9564 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9565 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9567 # If archive_cmds runs LD, not CC, wlarc should be empty
9568 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9569 # investigate it a little bit more. (MM)
9572 # ancient GNU ld didn't support --whole-archive et. al.
9573 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9574 grep 'no-whole-archive' > /dev/null; then
9575 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9577 whole_archive_flag_spec_CXX=
9583 # A generic and very simple default shared library creation
9584 # command for GNU C++ for the case where it uses the native
9585 # linker, instead of GNU ld. If possible, this setting should
9586 # overridden to take advantage of the native linker features on
9587 # the platform it is being used on.
9588 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9591 # Commands to make compiler produce verbose output that lists
9592 # what "hidden" libraries, object files and flags are used when
9593 # linking a shared library.
9594 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9602 # PORTME: fill in a description of your system's C++ link characteristics
9603 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9604 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9608 # FIXME: insert proper C++ library support
9612 if test "$host_cpu" = ia64; then
9613 # On IA64, the linker does run time linking by default, so we don't
9614 # have to do anything special.
9615 aix_use_runtimelinking=no
9616 exp_sym_flag='-Bexport'
9619 aix_use_runtimelinking=no
9621 # Test if we are trying to use run time linking or normal
9622 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9623 # need to do runtime linking.
9624 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9625 for ld_flag in $LDFLAGS; do
9628 aix_use_runtimelinking=yes
9635 exp_sym_flag='-bexport'
9636 no_entry_flag='-bnoentry'
9639 # When large executables or shared objects are built, AIX ld can
9640 # have problems creating the table of contents. If linking a library
9641 # or program results in "error TOC overflow" add -mminimal-toc to
9642 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9643 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9646 hardcode_direct_CXX=yes
9647 hardcode_libdir_separator_CXX=':'
9648 link_all_deplibs_CXX=yes
9650 if test "$GXX" = yes; then
9651 case $host_os in aix4.012|aix4.012.*)
9652 # We only want to do this on AIX 4.2 and lower, the check
9653 # below for broken collect2 doesn't work under 4.3+
9654 collect2name=`${CC} -print-prog-name=collect2`
9655 if test -f "$collect2name" && \
9656 strings "$collect2name" | grep resolve_lib_name >/dev/null
9658 # We have reworked collect2
9659 hardcode_direct_CXX=yes
9661 # We have old collect2
9662 hardcode_direct_CXX=unsupported
9663 # It fails to find uninstalled libraries when the uninstalled
9664 # path is not listed in the libpath. Setting hardcode_minus_L
9665 # to unsupported forces relinking
9666 hardcode_minus_L_CXX=yes
9667 hardcode_libdir_flag_spec_CXX='-L$libdir'
9668 hardcode_libdir_separator_CXX=
9671 shared_flag='-shared'
9674 if test "$host_cpu" = ia64; then
9675 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9676 # chokes on -Wl,-G. The following line is correct:
9679 if test "$aix_use_runtimelinking" = yes; then
9680 shared_flag='${wl}-G'
9682 shared_flag='${wl}-bM:SRE'
9687 # It seems that -bexpall does not export symbols beginning with
9688 # underscore (_), so it is better to generate a list of symbols to export.
9689 always_export_symbols_CXX=yes
9690 if test "$aix_use_runtimelinking" = yes; then
9691 # Warning - without using the other runtime loading flags (-brtl),
9692 # -berok will link without error, but may produce a broken library.
9693 allow_undefined_flag_CXX='-berok'
9694 # Determine the default libpath from the value encoded in an empty executable.
9695 cat >conftest.$ac_ext <<_ACEOF
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h. */
9710 rm -f conftest.$ac_objext conftest$ac_exeext
9711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9712 (eval $ac_link) 2>conftest.er1
9714 grep -v '^ *+' conftest.er1 >conftest.err
9716 cat conftest.err >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } &&
9719 { ac_try='test -z "$ac_cxx_werror_flag"
9720 || test ! -s conftest.err'
9721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; } &&
9726 { ac_try='test -s conftest$ac_exeext'
9727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); }; }; then
9733 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9735 # Check for a 64-bit object if we didn't find anything.
9736 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9739 echo "$as_me: failed program was:" >&5
9740 sed 's/^/| /' conftest.$ac_ext >&5
9743 rm -f conftest.err conftest.$ac_objext \
9744 conftest$ac_exeext conftest.$ac_ext
9745 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9747 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9749 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9751 if test "$host_cpu" = ia64; then
9752 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9753 allow_undefined_flag_CXX="-z nodefs"
9754 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9756 # Determine the default libpath from the value encoded in an empty executable.
9757 cat >conftest.$ac_ext <<_ACEOF
9760 cat confdefs.h >>conftest.$ac_ext
9761 cat >>conftest.$ac_ext <<_ACEOF
9762 /* end confdefs.h. */
9772 rm -f conftest.$ac_objext conftest$ac_exeext
9773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9774 (eval $ac_link) 2>conftest.er1
9776 grep -v '^ *+' conftest.er1 >conftest.err
9778 cat conftest.err >&5
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); } &&
9781 { ac_try='test -z "$ac_cxx_werror_flag"
9782 || test ! -s conftest.err'
9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; } &&
9788 { ac_try='test -s conftest$ac_exeext'
9789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); }; }; then
9795 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9797 # Check for a 64-bit object if we didn't find anything.
9798 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9801 echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.$ac_ext >&5
9805 rm -f conftest.err conftest.$ac_objext \
9806 conftest$ac_exeext conftest.$ac_ext
9807 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9809 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9810 # Warning - without using the other run time loading flags,
9811 # -berok will link without error, but may produce a broken library.
9812 no_undefined_flag_CXX=' ${wl}-bernotok'
9813 allow_undefined_flag_CXX=' ${wl}-berok'
9814 # -bexpall does not export symbols beginning with underscore (_)
9815 always_export_symbols_CXX=yes
9816 # Exported symbols can be pulled into shared objects from archives
9817 whole_archive_flag_spec_CXX=' '
9818 archive_cmds_need_lc_CXX=yes
9819 # This is similar to how AIX traditionally builds it's shared libraries.
9820 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9825 case $cc_basename in
9827 # FIXME: insert proper C++ library support
9833 cygwin* | mingw* | pw32*)
9834 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9835 # as there is no search path for DLLs.
9836 hardcode_libdir_flag_spec_CXX='-L$libdir'
9837 allow_undefined_flag_CXX=unsupported
9838 always_export_symbols_CXX=no
9839 enable_shared_with_static_runtimes_CXX=yes
9841 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9842 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9843 # If the export-symbols file already is a .def file (1st line
9844 # is EXPORTS), use it as is; otherwise, prepend...
9845 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9846 cp $export_symbols $output_objdir/$soname.def;
9848 echo EXPORTS > $output_objdir/$soname.def;
9849 cat $export_symbols >> $output_objdir/$soname.def;
9851 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9857 darwin* | rhapsody*)
9858 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9859 archive_cmds_need_lc_CXX=no
9861 rhapsody* | darwin1.[012])
9862 allow_undefined_flag_CXX='-undefined suppress'
9865 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9868 lt_int_apple_cc_single_mod=no
9869 output_verbose_link_cmd='echo'
9870 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9871 lt_int_apple_cc_single_mod=yes
9873 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9874 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9876 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9878 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9880 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9881 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9882 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9884 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9886 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9887 hardcode_direct_CXX=no
9888 hardcode_automatic_CXX=yes
9889 hardcode_shlibpath_var_CXX=unsupported
9890 whole_archive_flag_spec_CXX='-all_load $convenience'
9891 link_all_deplibs_CXX=yes
9896 case $cc_basename in
9898 # FIXME: insert proper C++ library support
9902 # Green Hills C++ Compiler
9903 # FIXME: insert proper C++ library support
9907 # FIXME: insert proper C++ library support
9913 # C++ shared libraries reported to be fairly broken before switch to ELF
9917 archive_cmds_need_lc_CXX=no
9920 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9927 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9928 hardcode_libdir_separator_CXX=:
9929 export_dynamic_flag_spec_CXX='${wl}-E'
9930 hardcode_direct_CXX=yes
9931 hardcode_minus_L_CXX=yes # Not in the search PATH,
9932 # but as the default
9933 # location of the library.
9935 case $cc_basename in
9937 # FIXME: insert proper C++ library support
9941 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9942 # Commands to make compiler produce verbose output that lists
9943 # what "hidden" libraries, object files and flags are used when
9944 # linking a shared library.
9946 # There doesn't appear to be a way to prevent this compiler from
9947 # explicitly linking system object files so we need to strip them
9948 # from the output so that they don't get included in the library
9950 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9953 if test "$GXX" = yes; then
9954 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9956 # FIXME: insert proper C++ library support
9963 if test $with_gnu_ld = no; then
9966 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9967 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9968 hardcode_libdir_separator_CXX=:
9971 hardcode_libdir_flag_spec_CXX='-L$libdir'
9974 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9975 hardcode_libdir_separator_CXX=:
9976 export_dynamic_flag_spec_CXX='${wl}-E'
9982 hardcode_direct_CXX=no
9983 hardcode_shlibpath_var_CXX=no
9986 hardcode_direct_CXX=no
9987 hardcode_shlibpath_var_CXX=no
9988 hardcode_minus_L_CXX=yes # Not in the search PATH,
9989 # but as the default
9990 # location of the library.
9993 hardcode_direct_CXX=yes
9994 hardcode_minus_L_CXX=yes # Not in the search PATH,
9995 # but as the default
9996 # location of the library.
10000 case $cc_basename in
10002 # FIXME: insert proper C++ library support
10006 case "$host_cpu" in
10008 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10011 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10014 # Commands to make compiler produce verbose output that lists
10015 # what "hidden" libraries, object files and flags are used when
10016 # linking a shared library.
10018 # There doesn't appear to be a way to prevent this compiler from
10019 # explicitly linking system object files so we need to strip them
10020 # from the output so that they don't get included in the library
10022 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10025 if test "$GXX" = yes; then
10026 if test $with_gnu_ld = no; then
10027 case "$host_cpu" in
10029 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10032 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10037 # FIXME: insert proper C++ library support
10044 case $cc_basename in
10047 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10049 # Archives containing C++ object files must be created using
10050 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10051 # necessary to make sure instantiated templates are included
10053 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10056 if test "$GXX" = yes; then
10057 if test "$with_gnu_ld" = no; then
10058 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10060 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10063 link_all_deplibs_CXX=yes
10066 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10067 hardcode_libdir_separator_CXX=:
10070 case $cc_basename in
10072 # Kuck and Associates, Inc. (KAI) C++ Compiler
10074 # KCC will only create a shared library if the output file
10075 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10076 # to its proper name (with version) after linking.
10077 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10078 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10079 # Commands to make compiler produce verbose output that lists
10080 # what "hidden" libraries, object files and flags are used when
10081 # linking a shared library.
10083 # There doesn't appear to be a way to prevent this compiler from
10084 # explicitly linking system object files so we need to strip them
10085 # from the output so that they don't get included in the library
10087 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10089 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10090 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10092 # Archives containing C++ object files must be created using
10093 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10094 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10099 archive_cmds_need_lc_CXX=no
10100 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10101 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10102 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10103 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10104 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10108 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10109 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10111 runpath_var=LD_RUN_PATH
10112 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10113 hardcode_libdir_separator_CXX=:
10115 # Commands to make compiler produce verbose output that lists
10116 # what "hidden" libraries, object files and flags are used when
10117 # linking a shared library.
10119 # There doesn't appear to be a way to prevent this compiler from
10120 # explicitly linking system object files so we need to strip them
10121 # from the output so that they don't get included in the library
10123 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10128 # FIXME: insert proper C++ library support
10132 # FIXME: insert proper C++ library support
10136 case $cc_basename in
10138 # FIXME: insert proper C++ library support
10142 # FIXME: insert proper C++ library support
10148 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10149 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10151 hardcode_libdir_flag_spec_CXX='-R$libdir'
10152 hardcode_direct_CXX=yes
10153 hardcode_shlibpath_var_CXX=no
10155 # Workaround some broken pre-1.5 toolchains
10156 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10159 case $cc_basename in
10161 # Kuck and Associates, Inc. (KAI) C++ Compiler
10163 # KCC will only create a shared library if the output file
10164 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10165 # to its proper name (with version) after linking.
10166 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10168 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10169 hardcode_libdir_separator_CXX=:
10171 # Archives containing C++ object files must be created using
10172 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10173 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10177 # Rational C++ 2.4.1
10178 # FIXME: insert proper C++ library support
10182 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10183 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10185 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10186 hardcode_libdir_separator_CXX=:
10188 # Commands to make compiler produce verbose output that lists
10189 # what "hidden" libraries, object files and flags are used when
10190 # linking a shared library.
10192 # There doesn't appear to be a way to prevent this compiler from
10193 # explicitly linking system object files so we need to strip them
10194 # from the output so that they don't get included in the library
10196 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10199 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10200 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10201 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10203 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10204 hardcode_libdir_separator_CXX=:
10206 # Commands to make compiler produce verbose output that lists
10207 # what "hidden" libraries, object files and flags are used when
10208 # linking a shared library.
10209 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10212 # FIXME: insert proper C++ library support
10219 case $cc_basename in
10221 # Kuck and Associates, Inc. (KAI) C++ Compiler
10223 # KCC will only create a shared library if the output file
10224 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10225 # to its proper name (with version) after linking.
10226 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10228 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10229 hardcode_libdir_separator_CXX=:
10231 # Archives containing C++ object files must be created using
10232 # the KAI C++ compiler.
10233 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10236 # Rational C++ 2.4.1
10237 # FIXME: insert proper C++ library support
10241 allow_undefined_flag_CXX=' -expect_unresolved \*'
10242 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10243 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10244 echo "-hidden">> $lib.exp~
10245 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10248 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10249 hardcode_libdir_separator_CXX=:
10251 # Commands to make compiler produce verbose output that lists
10252 # what "hidden" libraries, object files and flags are used when
10253 # linking a shared library.
10255 # There doesn't appear to be a way to prevent this compiler from
10256 # explicitly linking system object files so we need to strip them
10257 # from the output so that they don't get included in the library
10259 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10262 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10263 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10264 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10266 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10267 hardcode_libdir_separator_CXX=:
10269 # Commands to make compiler produce verbose output that lists
10270 # what "hidden" libraries, object files and flags are used when
10271 # linking a shared library.
10272 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10275 # FIXME: insert proper C++ library support
10282 # FIXME: insert proper C++ library support
10286 archive_cmds_need_lc_CXX=no
10287 case $cc_basename in
10289 # FIXME: insert proper C++ library support
10293 # FIXME: insert proper C++ library support
10299 case $cc_basename in
10302 # FIXME: insert proper C++ library support
10307 # FIXME: insert proper C++ library support
10311 # FIXME: insert proper C++ library support
10317 case $cc_basename in
10319 # Sun C++ 4.2, 5.x and Centerline C++
10320 no_undefined_flag_CXX=' -zdefs'
10321 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10322 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10323 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10325 hardcode_libdir_flag_spec_CXX='-R$libdir'
10326 hardcode_shlibpath_var_CXX=no
10328 solaris2.0-5 | solaris2.0-5.*) ;;
10330 # The C++ compiler is used as linker so we must use $wl
10331 # flag to pass the commands to the underlying system
10333 # Supported since Solaris 2.6 (maybe 2.5.1?)
10334 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10337 link_all_deplibs_CXX=yes
10339 # Commands to make compiler produce verbose output that lists
10340 # what "hidden" libraries, object files and flags are used when
10341 # linking a shared library.
10343 # There doesn't appear to be a way to prevent this compiler from
10344 # explicitly linking system object files so we need to strip them
10345 # from the output so that they don't get included in the library
10347 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10349 # Archives containing C++ object files must be created using
10350 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10351 # necessary to make sure instantiated templates are included
10353 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10356 # Green Hills C++ Compiler
10357 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10359 # The C++ compiler must be used to create the archive.
10360 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10363 # GNU C++ compiler with Solaris linker
10364 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10365 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10366 if $CC --version | grep -v '^2\.7' > /dev/null; then
10367 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10368 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10369 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10371 # Commands to make compiler produce verbose output that lists
10372 # what "hidden" libraries, object files and flags are used when
10373 # linking a shared library.
10374 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10376 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10378 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10379 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10380 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10382 # Commands to make compiler produce verbose output that lists
10383 # what "hidden" libraries, object files and flags are used when
10384 # linking a shared library.
10385 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10388 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10393 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10394 archive_cmds_need_lc_CXX=no
10397 case $cc_basename in
10399 # NonStop-UX NCC 3.20
10400 # FIXME: insert proper C++ library support
10404 # FIXME: insert proper C++ library support
10410 # FIXME: insert proper C++ library support
10414 # FIXME: insert proper C++ library support
10418 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10419 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10420 test "$ld_shlibs_CXX" = no && can_build_shared=no
10426 ## There is no encapsulation within the following macros, do not change
10427 ## the running order or otherwise move them around unless you know exactly
10428 ## what you are doing...
10430 cat > conftest.$ac_ext <<EOF
10434 Foo (void) { a = 0; }
10440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10441 (eval $ac_compile) 2>&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); }; then
10445 # Parse the compiler output and extract the necessary
10446 # objects, libraries and library flags.
10448 # Sentinel used to keep track of whether or not we are before
10449 # the conftest object file.
10450 pre_test_object_deps_done=no
10452 # The `*' in the case matches for architectures that use `case' in
10453 # $output_verbose_cmd can trigger glob expansion during the loop
10454 # eval without this substitution.
10455 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10457 for p in `eval $output_verbose_link_cmd`; do
10461 # Some compilers place space between "-{L,R}" and the path.
10462 # Remove the space.
10463 if test $p = "-L" \
10464 || test $p = "-R"; then
10471 if test "$pre_test_object_deps_done" = no; then
10474 # Internal compiler library paths should come after those
10475 # provided the user. The postdeps already come after the
10476 # user supplied libs so there is no need to process them.
10477 if test -z "$compiler_lib_search_path_CXX"; then
10478 compiler_lib_search_path_CXX="${prev}${p}"
10480 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10483 # The "-l" case would never come before the object being
10484 # linked, so don't bother handling this case.
10487 if test -z "$postdeps_CXX"; then
10488 postdeps_CXX="${prev}${p}"
10490 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10496 # This assumes that the test object file only shows up
10497 # once in the compiler output.
10498 if test "$p" = "conftest.$objext"; then
10499 pre_test_object_deps_done=yes
10503 if test "$pre_test_object_deps_done" = no; then
10504 if test -z "$predep_objects_CXX"; then
10505 predep_objects_CXX="$p"
10507 predep_objects_CXX="$predep_objects_CXX $p"
10510 if test -z "$postdep_objects_CXX"; then
10511 postdep_objects_CXX="$p"
10513 postdep_objects_CXX="$postdep_objects_CXX $p"
10518 *) ;; # Ignore the rest.
10526 echo "libtool.m4: error: problem compiling CXX test program"
10529 $rm -f confest.$objext
10531 case " $postdeps_CXX " in
10532 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10535 lt_prog_compiler_wl_CXX=
10536 lt_prog_compiler_pic_CXX=
10537 lt_prog_compiler_static_CXX=
10539 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10540 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10542 # C++ specific cases for pic, static, wl, etc.
10543 if test "$GXX" = yes; then
10544 lt_prog_compiler_wl_CXX='-Wl,'
10545 lt_prog_compiler_static_CXX='-static'
10549 # All AIX code is PIC.
10550 if test "$host_cpu" = ia64; then
10551 # AIX 5 now supports IA64 processor
10552 lt_prog_compiler_static_CXX='-Bstatic'
10556 # FIXME: we need at least 68020 code to build shared libraries, but
10557 # adding the `-m68020' flag to GCC prevents building anything better,
10559 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10561 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10562 # PIC is the default for these OSes.
10564 mingw* | os2* | pw32*)
10565 # This hack is so that the source file can tell whether it is being
10566 # built for inclusion in a dll (and should export symbols for example).
10567 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10569 darwin* | rhapsody*)
10570 # PIC is the default on this platform
10571 # Common symbols not allowed in MH_DYLIB files
10572 lt_prog_compiler_pic_CXX='-fno-common'
10575 # DJGPP does not support shared libraries at all
10576 lt_prog_compiler_pic_CXX=
10579 if test -d /usr/nec; then
10580 lt_prog_compiler_pic_CXX=-Kconform_pic
10584 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10585 # not for PA HP-UX.
10586 case "$host_cpu" in
10590 lt_prog_compiler_pic_CXX='-fPIC'
10595 lt_prog_compiler_pic_CXX='-fPIC'
10601 # All AIX code is PIC.
10602 if test "$host_cpu" = ia64; then
10603 # AIX 5 now supports IA64 processor
10604 lt_prog_compiler_static_CXX='-Bstatic'
10606 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10610 case $cc_basename in
10612 # Green Hills C++ Compiler
10613 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
10618 case $cc_basename in
10620 lt_prog_compiler_pic_CXX='-KPIC'
10623 # Green Hills C++ Compiler
10624 lt_prog_compiler_pic_CXX='-pic'
10631 # FreeBSD uses GNU C++
10633 hpux9* | hpux10* | hpux11*)
10634 case $cc_basename in
10636 lt_prog_compiler_wl_CXX='-Wl,'
10637 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10638 if test "$host_cpu" != ia64; then
10639 lt_prog_compiler_pic_CXX='+Z'
10643 lt_prog_compiler_wl_CXX='-Wl,'
10644 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10645 case "$host_cpu" in
10650 lt_prog_compiler_pic_CXX='+Z'
10658 irix5* | irix6* | nonstopux*)
10659 case $cc_basename in
10661 lt_prog_compiler_wl_CXX='-Wl,'
10662 lt_prog_compiler_static_CXX='-non_shared'
10663 # CC pic flag -KPIC is the default.
10670 case $cc_basename in
10673 lt_prog_compiler_wl_CXX='--backend -Wl,'
10674 lt_prog_compiler_pic_CXX='-fPIC'
10678 lt_prog_compiler_wl_CXX='-Wl,'
10679 lt_prog_compiler_pic_CXX='-KPIC'
10680 lt_prog_compiler_static_CXX='-static'
10684 # Make sure the PIC flag is empty. It appears that all Alpha
10685 # Linux and Compaq Tru64 Unix objects are PIC.
10686 lt_prog_compiler_pic_CXX=
10687 lt_prog_compiler_static_CXX='-non_shared'
10698 case $cc_basename in
10700 lt_prog_compiler_pic_CXX='-W c,exportall'
10708 osf3* | osf4* | osf5*)
10709 case $cc_basename in
10711 lt_prog_compiler_wl_CXX='--backend -Wl,'
10714 # Rational C++ 2.4.1
10715 lt_prog_compiler_pic_CXX='-pic'
10718 # Digital/Compaq C++
10719 lt_prog_compiler_wl_CXX='-Wl,'
10720 # Make sure the PIC flag is empty. It appears that all Alpha
10721 # Linux and Compaq Tru64 Unix objects are PIC.
10722 lt_prog_compiler_pic_CXX=
10723 lt_prog_compiler_static_CXX='-non_shared'
10732 case $cc_basename in
10734 lt_prog_compiler_pic_CXX='-fPIC'
10741 case $cc_basename in
10743 # Sun C++ 4.2, 5.x and Centerline C++
10744 lt_prog_compiler_pic_CXX='-KPIC'
10745 lt_prog_compiler_static_CXX='-Bstatic'
10746 lt_prog_compiler_wl_CXX='-Qoption ld '
10749 # Green Hills C++ Compiler
10750 lt_prog_compiler_pic_CXX='-PIC'
10757 case $cc_basename in
10760 lt_prog_compiler_pic_CXX='-pic'
10761 lt_prog_compiler_static_CXX='-Bstatic'
10765 lt_prog_compiler_pic_CXX='-pic'
10772 case $cc_basename in
10774 # NonStop-UX NCC 3.20
10775 lt_prog_compiler_pic_CXX='-KPIC'
10786 lt_prog_compiler_can_build_shared_CXX=no
10791 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10792 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10795 # Check to make sure the PIC flag actually works.
10797 if test -n "$lt_prog_compiler_pic_CXX"; then
10798 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10799 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10800 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10801 echo $ECHO_N "(cached) $ECHO_C" >&6
10803 lt_prog_compiler_pic_works_CXX=no
10804 ac_outfile=conftest.$ac_objext
10805 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10806 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10807 # Insert the option either (1) after the last *FLAGS variable, or
10808 # (2) before a word containing "conftest.", or (3) at the end.
10809 # Note that $ac_compile itself does not contain backslashes and begins
10810 # with a dollar sign (not a hyphen), so the echo should work correctly.
10811 # The option is referenced via a variable to avoid confusing sed.
10812 lt_compile=`echo "$ac_compile" | $SED \
10813 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10814 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10815 -e 's:$: $lt_compiler_flag:'`
10816 (eval echo "\"\$as_me:10816: $lt_compile\"" >&5)
10817 (eval "$lt_compile" 2>conftest.err)
10819 cat conftest.err >&5
10820 echo "$as_me:10820: \$? = $ac_status" >&5
10821 if (exit $ac_status) && test -s "$ac_outfile"; then
10822 # The compiler can only warn and ignore the option if not recognized
10823 # So say no if there are warnings
10824 if test ! -s conftest.err; then
10825 lt_prog_compiler_pic_works_CXX=yes
10831 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10832 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10834 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10835 case $lt_prog_compiler_pic_CXX in
10837 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10840 lt_prog_compiler_pic_CXX=
10841 lt_prog_compiler_can_build_shared_CXX=no
10846 # For platforms which do not support PIC, -DPIC is meaningless:
10848 lt_prog_compiler_pic_CXX=
10851 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10855 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10856 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10857 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10858 echo $ECHO_N "(cached) $ECHO_C" >&6
10860 lt_cv_prog_compiler_c_o_CXX=no
10861 $rm -r conftest 2>/dev/null
10865 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10867 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10868 # that will create temporary files in the current directory regardless of
10869 # the output directory. Thus, making CWD read-only will cause this test
10870 # to fail, enabling locking or at least warning the user not to do parallel
10874 lt_compiler_flag="-o out/conftest2.$ac_objext"
10875 # Insert the option either (1) after the last *FLAGS variable, or
10876 # (2) before a word containing "conftest.", or (3) at the end.
10877 # Note that $ac_compile itself does not contain backslashes and begins
10878 # with a dollar sign (not a hyphen), so the echo should work correctly.
10879 lt_compile=`echo "$ac_compile" | $SED \
10880 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10882 -e 's:$: $lt_compiler_flag:'`
10883 (eval echo "\"\$as_me:10883: $lt_compile\"" >&5)
10884 (eval "$lt_compile" 2>out/conftest.err)
10886 cat out/conftest.err >&5
10887 echo "$as_me:10887: \$? = $ac_status" >&5
10888 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10890 # The compiler can only warn and ignore the option if not recognized
10891 # So say no if there are warnings
10892 if test ! -s out/conftest.err; then
10893 lt_cv_prog_compiler_c_o_CXX=yes
10897 $rm conftest* out/*
10904 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10905 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10908 hard_links="nottested"
10909 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10910 # do not overwrite the value of need_locks provided by the user
10911 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10912 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10915 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10917 ln conftest.a conftest.b 2>&5 || hard_links=no
10918 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10919 echo "$as_me:$LINENO: result: $hard_links" >&5
10920 echo "${ECHO_T}$hard_links" >&6
10921 if test "$hard_links" = no; then
10922 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10923 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10930 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10931 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10933 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10936 # If we're using GNU nm, then we don't want the "-C" option.
10937 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10938 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10939 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10941 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10945 export_symbols_cmds_CXX="$ltdll_cmds"
10948 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10951 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10955 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10956 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10957 test "$ld_shlibs_CXX" = no && can_build_shared=no
10959 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10960 if test "$GCC" = yes; then
10961 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10965 # Do we need to explicitly link libc?
10967 case "x$archive_cmds_need_lc_CXX" in
10969 # Assume -lc should be added
10970 archive_cmds_need_lc_CXX=yes
10972 if test "$enable_shared" = yes && test "$GCC" = yes; then
10973 case $archive_cmds_CXX in
10975 # FIXME: we may have to deal with multi-command sequences.
10978 # Test whether the compiler implicitly links with -lc since on some
10979 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10980 # to ld, don't add -lc before -lgcc.
10981 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10982 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10984 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10987 (eval $ac_compile) 2>&5
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); } 2>conftest.err; then
10993 libobjs=conftest.$ac_objext
10995 wl=$lt_prog_compiler_wl_CXX
11001 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11002 allow_undefined_flag_CXX=
11003 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11004 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }
11009 archive_cmds_need_lc_CXX=no
11011 archive_cmds_need_lc_CXX=yes
11013 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11015 cat conftest.err 1>&5
11018 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11019 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11026 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11027 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11028 hardcode_action_CXX=
11029 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11030 test -n "$runpath_var CXX" || \
11031 test "X$hardcode_automatic_CXX"="Xyes" ; then
11033 # We can hardcode non-existant directories.
11034 if test "$hardcode_direct_CXX" != no &&
11035 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11036 # have to relink, otherwise we might link with an installed library
11037 # when we should be linking with a yet-to-be-installed one
11038 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11039 test "$hardcode_minus_L_CXX" != no; then
11040 # Linking always hardcodes the temporary library directory.
11041 hardcode_action_CXX=relink
11043 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11044 hardcode_action_CXX=immediate
11047 # We cannot hardcode anything, or else we can only hardcode existing
11049 hardcode_action_CXX=unsupported
11051 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11052 echo "${ECHO_T}$hardcode_action_CXX" >&6
11054 if test "$hardcode_action_CXX" = relink; then
11055 # Fast installation is not supported
11056 enable_fast_install=no
11057 elif test "$shlibpath_overrides_runpath" = yes ||
11058 test "$enable_shared" = no; then
11059 # Fast installation is not necessary
11060 enable_fast_install=needless
11065 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11066 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11067 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11068 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11069 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11070 echo "$as_me:$LINENO: result: yes" >&5
11071 echo "${ECHO_T}yes" >&6
11073 # FIXME - insert some real tests, host_os isn't really good enough
11076 if test -n "$STRIP" ; then
11077 striplib="$STRIP -x"
11078 echo "$as_me:$LINENO: result: yes" >&5
11079 echo "${ECHO_T}yes" >&6
11081 echo "$as_me:$LINENO: result: no" >&5
11082 echo "${ECHO_T}no" >&6
11086 echo "$as_me:$LINENO: result: no" >&5
11087 echo "${ECHO_T}no" >&6
11092 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11093 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11094 library_names_spec=
11095 libname_spec='lib$name'
11099 postuninstall_cmds=
11103 shlibpath_overrides_runpath=unknown
11105 dynamic_linker="$host_os ld.so"
11106 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11107 if test "$GCC" = yes; then
11108 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11109 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11110 # if the path contains ";" then we assume it to be the separator
11111 # otherwise default to the standard path separator (i.e. ":") - it is
11112 # assumed that no part of a normal pathname contains ";" but that should
11113 # okay in the real world where ";" in dirpaths is itself problematic.
11114 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11116 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11119 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11121 need_lib_prefix=unknown
11122 hardcode_into_libs=no
11124 # when you set need_version to no, make sure it does not cause -set_version
11125 # flags to be left without arguments
11126 need_version=unknown
11131 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11132 shlibpath_var=LIBPATH
11134 # AIX 3 has no versioning support, so we append a major version to the name.
11135 soname_spec='${libname}${release}${shared_ext}$major'
11142 hardcode_into_libs=yes
11143 if test "$host_cpu" = ia64; then
11144 # AIX 5 supports IA64
11145 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11146 shlibpath_var=LD_LIBRARY_PATH
11148 # With GCC up to 2.95.x, collect2 would create an import file
11149 # for dependence libraries. The import file would start with
11150 # the line `#! .'. This would cause the generated library to
11151 # depend on `.', always an invalid library. This was fixed in
11152 # development snapshots of GCC prior to 3.0.
11154 aix4 | aix4.[01] | aix4.[01].*)
11155 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11157 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11160 can_build_shared=no
11164 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11165 # soname into executable. Probably we can add versioning support to
11166 # collect2, so additional links can be useful in future.
11167 if test "$aix_use_runtimelinking" = yes; then
11168 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11169 # instead of lib<name>.a to let people know that these are not
11170 # typical AIX shared libraries.
11171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11173 # We preserve .a as extension for shared libraries through AIX4.2
11174 # and later when we are not doing run time linking.
11175 library_names_spec='${libname}${release}.a $libname.a'
11176 soname_spec='${libname}${release}${shared_ext}$major'
11178 shlibpath_var=LIBPATH
11183 library_names_spec='$libname.ixlibrary $libname.a'
11184 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11185 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
11189 library_names_spec='${libname}${shared_ext}'
11190 dynamic_linker="$host_os ld.so"
11191 shlibpath_var=LIBRARY_PATH
11197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11198 soname_spec='${libname}${release}${shared_ext}$major'
11199 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11200 shlibpath_var=LD_LIBRARY_PATH
11201 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11202 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11203 # the default ld.so.conf also contains /usr/contrib/lib and
11204 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11205 # libtool to hard-code these into programs
11208 cygwin* | mingw* | pw32*)
11209 version_type=windows
11214 case $GCC,$host_os in
11215 yes,cygwin* | yes,mingw* | yes,pw32*)
11216 library_names_spec='$libname.dll.a'
11217 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11218 postinstall_cmds='base_file=`basename \${file}`~
11219 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11220 dldir=$destdir/`dirname \$dlpath`~
11221 test -d \$dldir || mkdir -p \$dldir~
11222 $install_prog $dir/$dlname \$dldir/$dlname'
11223 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11224 dlpath=$dir/\$dldll~
11226 shlibpath_overrides_runpath=yes
11230 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11231 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11232 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11235 # MinGW DLLs use traditional 'lib' prefix
11236 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11237 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11238 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11239 # It is most probably a Windows format PATH printed by
11240 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11241 # path with ; separators, and with drive letters. We can handle the
11242 # drive letters (cygwin fileutils understands them), so leave them,
11243 # especially as we might pass files found there to a mingw objdump,
11244 # which wouldn't understand a cygwinified path. Ahh.
11245 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11247 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11251 # pw32 DLLs use 'pw' prefix rather than 'lib'
11252 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11258 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11261 dynamic_linker='Win32 ld.exe'
11262 # FIXME: first we should search . and the directory the executable is in
11266 darwin* | rhapsody*)
11267 dynamic_linker="$host_os dyld"
11268 version_type=darwin
11271 # FIXME: Relying on posixy $() will cause problems for
11272 # cross-compilation, but unfortunately the echo tests do not
11273 # yet detect zsh echo's removal of \ escapes.
11274 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11275 soname_spec='${libname}${release}${major}$shared_ext'
11276 shlibpath_overrides_runpath=yes
11277 shlibpath_var=DYLD_LIBRARY_PATH
11278 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11279 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11280 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11281 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11283 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11291 soname_spec='${libname}${release}${shared_ext}$major'
11292 shlibpath_var=LD_LIBRARY_PATH
11300 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11301 version_type=freebsd-$objformat
11302 case $version_type in
11304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11309 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11313 shlibpath_var=LD_LIBRARY_PATH
11316 shlibpath_overrides_runpath=yes
11318 freebsd3.01* | freebsdelf3.01*)
11319 shlibpath_overrides_runpath=yes
11320 hardcode_into_libs=yes
11323 shlibpath_overrides_runpath=no
11324 hardcode_into_libs=yes
11333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11334 soname_spec='${libname}${release}${shared_ext}$major'
11335 shlibpath_var=LD_LIBRARY_PATH
11336 hardcode_into_libs=yes
11339 hpux9* | hpux10* | hpux11*)
11340 # Give a soname corresponding to the major version so that dld.sl refuses to
11341 # link against other versions.
11345 case "$host_cpu" in
11348 hardcode_into_libs=yes
11349 dynamic_linker="$host_os dld.so"
11350 shlibpath_var=LD_LIBRARY_PATH
11351 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11353 soname_spec='${libname}${release}${shared_ext}$major'
11354 if test "X$HPUX_IA64_MODE" = X32; then
11355 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11357 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11359 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11363 hardcode_into_libs=yes
11364 dynamic_linker="$host_os dld.sl"
11365 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11366 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11368 soname_spec='${libname}${release}${shared_ext}$major'
11369 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11370 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11374 dynamic_linker="$host_os dld.sl"
11375 shlibpath_var=SHLIB_PATH
11376 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11378 soname_spec='${libname}${release}${shared_ext}$major'
11381 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11382 postinstall_cmds='chmod 555 $lib'
11385 irix5* | irix6* | nonstopux*)
11387 nonstopux*) version_type=nonstopux ;;
11389 if test "$lt_cv_prog_gnu_ld" = yes; then
11397 soname_spec='${libname}${release}${shared_ext}$major'
11398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11400 irix5* | nonstopux*)
11401 libsuff= shlibsuff=
11404 case $LD in # libtool.m4 will add one of these switches to LD
11405 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11406 libsuff= shlibsuff= libmagic=32-bit;;
11407 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11408 libsuff=32 shlibsuff=N32 libmagic=N32;;
11409 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11410 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11411 *) libsuff= shlibsuff= libmagic=never-match;;
11415 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11416 shlibpath_overrides_runpath=no
11417 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11418 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11419 hardcode_into_libs=yes
11422 # No shared lib support for Linux oldld, aout, or coff.
11423 linux*oldld* | linux*aout* | linux*coff*)
11427 # This must be Linux ELF.
11432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11433 soname_spec='${libname}${release}${shared_ext}$major'
11434 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11435 shlibpath_var=LD_LIBRARY_PATH
11436 shlibpath_overrides_runpath=no
11437 # This implies no fast_install, which is unacceptable.
11438 # Some rework will be needed to allow for fast_install
11439 # before this can be enabled.
11440 hardcode_into_libs=yes
11442 # We used to test for /lib/ld.so.1 and disable shared libraries on
11443 # powerpc, because MkLinux only supported shared libraries with the
11444 # GNU dynamic linker. Since this was broken with cross compilers,
11445 # most powerpc-linux boxes support dynamic linking these days and
11446 # people can always --disable-shared, the test was removed, and we
11447 # assume the GNU/Linux dynamic linker is in use.
11448 dynamic_linker='GNU/Linux ld.so'
11455 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11457 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11458 dynamic_linker='NetBSD (a.out) ld.so'
11460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11461 soname_spec='${libname}${release}${shared_ext}$major'
11462 dynamic_linker='NetBSD ld.elf_so'
11464 shlibpath_var=LD_LIBRARY_PATH
11465 shlibpath_overrides_runpath=yes
11466 hardcode_into_libs=yes
11471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11472 shlibpath_var=LD_LIBRARY_PATH
11473 shlibpath_overrides_runpath=yes
11480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11481 soname_spec='${libname}${release}${shared_ext}$major'
11482 shlibpath_var=LD_LIBRARY_PATH
11483 shlibpath_overrides_runpath=yes
11490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11491 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11492 shlibpath_var=LD_LIBRARY_PATH
11493 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11495 openbsd2.[89] | openbsd2.[89].*)
11496 shlibpath_overrides_runpath=no
11499 shlibpath_overrides_runpath=yes
11503 shlibpath_overrides_runpath=yes
11508 libname_spec='$name'
11511 library_names_spec='$libname${shared_ext} $libname.a'
11512 dynamic_linker='OS/2 ld.exe'
11513 shlibpath_var=LIBPATH
11516 osf3* | osf4* | osf5*)
11520 soname_spec='${libname}${release}${shared_ext}$major'
11521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11522 shlibpath_var=LD_LIBRARY_PATH
11523 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11524 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11529 soname_spec='${libname}${release}${shared_ext}$major'
11530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11531 shlibpath_var=LD_LIBRARY_PATH
11538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11539 soname_spec='${libname}${release}${shared_ext}$major'
11540 shlibpath_var=LD_LIBRARY_PATH
11541 shlibpath_overrides_runpath=yes
11542 hardcode_into_libs=yes
11543 # ldd complains unless libraries are executable
11544 postinstall_cmds='chmod +x $lib'
11549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11550 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11551 shlibpath_var=LD_LIBRARY_PATH
11552 shlibpath_overrides_runpath=yes
11553 if test "$with_gnu_ld" = yes; then
11559 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11562 soname_spec='${libname}${release}${shared_ext}$major'
11563 shlibpath_var=LD_LIBRARY_PATH
11564 case $host_vendor in
11566 shlibpath_overrides_runpath=no
11568 export_dynamic_flag_spec='${wl}-Blargedynsym'
11569 runpath_var=LD_RUN_PATH
11577 shlibpath_overrides_runpath=no
11578 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11584 if test -d /usr/nec ;then
11586 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11587 soname_spec='$libname${shared_ext}.$major'
11588 shlibpath_var=LD_LIBRARY_PATH
11594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11595 soname_spec='${libname}${release}${shared_ext}$major'
11596 shlibpath_var=LD_LIBRARY_PATH
11603 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11604 echo "${ECHO_T}$dynamic_linker" >&6
11605 test "$dynamic_linker" = no && can_build_shared=no
11607 if test "x$enable_dlopen" != xyes; then
11608 enable_dlopen=unknown
11609 enable_dlopen_self=unknown
11610 enable_dlopen_self_static=unknown
11617 lt_cv_dlopen="load_add_on"
11619 lt_cv_dlopen_self=yes
11623 lt_cv_dlopen="LoadLibrary"
11628 lt_cv_dlopen="dlopen"
11633 # if libdl is installed we need to link against it
11634 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11635 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11636 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11637 echo $ECHO_N "(cached) $ECHO_C" >&6
11639 ac_check_lib_save_LIBS=$LIBS
11641 cat >conftest.$ac_ext <<_ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h. */
11648 /* Override any gcc2 internal prototype to avoid an error. */
11652 /* We use char because int might match the return type of a gcc2
11653 builtin and then its argument prototype would still apply. */
11663 rm -f conftest.$ac_objext conftest$ac_exeext
11664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11665 (eval $ac_link) 2>conftest.er1
11667 grep -v '^ *+' conftest.er1 >conftest.err
11669 cat conftest.err >&5
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); } &&
11672 { ac_try='test -z "$ac_cxx_werror_flag"
11673 || test ! -s conftest.err'
11674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11675 (eval $ac_try) 2>&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); }; } &&
11679 { ac_try='test -s conftest$ac_exeext'
11680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11681 (eval $ac_try) 2>&5
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); }; }; then
11685 ac_cv_lib_dl_dlopen=yes
11687 echo "$as_me: failed program was:" >&5
11688 sed 's/^/| /' conftest.$ac_ext >&5
11690 ac_cv_lib_dl_dlopen=no
11692 rm -f conftest.err conftest.$ac_objext \
11693 conftest$ac_exeext conftest.$ac_ext
11694 LIBS=$ac_check_lib_save_LIBS
11696 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11697 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11698 if test $ac_cv_lib_dl_dlopen = yes; then
11699 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11702 lt_cv_dlopen="dyld"
11704 lt_cv_dlopen_self=yes
11711 echo "$as_me:$LINENO: checking for shl_load" >&5
11712 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11713 if test "${ac_cv_func_shl_load+set}" = set; then
11714 echo $ECHO_N "(cached) $ECHO_C" >&6
11716 cat >conftest.$ac_ext <<_ACEOF
11719 cat confdefs.h >>conftest.$ac_ext
11720 cat >>conftest.$ac_ext <<_ACEOF
11721 /* end confdefs.h. */
11722 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11724 #define shl_load innocuous_shl_load
11726 /* System header to define __stub macros and hopefully few prototypes,
11727 which can conflict with char shl_load (); below.
11728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11729 <limits.h> exists even on freestanding compilers. */
11732 # include <limits.h>
11734 # include <assert.h>
11739 /* Override any gcc2 internal prototype to avoid an error. */
11744 /* We use char because int might match the return type of a gcc2
11745 builtin and then its argument prototype would still apply. */
11747 /* The GNU C library defines this for functions which it implements
11748 to always fail with ENOSYS. Some functions are actually named
11749 something starting with __ and the normal name is an alias. */
11750 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11753 char (*f) () = shl_load;
11762 return f != shl_load;
11767 rm -f conftest.$ac_objext conftest$ac_exeext
11768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11769 (eval $ac_link) 2>conftest.er1
11771 grep -v '^ *+' conftest.er1 >conftest.err
11773 cat conftest.err >&5
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); } &&
11776 { ac_try='test -z "$ac_cxx_werror_flag"
11777 || test ! -s conftest.err'
11778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11779 (eval $ac_try) 2>&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); }; } &&
11783 { ac_try='test -s conftest$ac_exeext'
11784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785 (eval $ac_try) 2>&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }; }; then
11789 ac_cv_func_shl_load=yes
11791 echo "$as_me: failed program was:" >&5
11792 sed 's/^/| /' conftest.$ac_ext >&5
11794 ac_cv_func_shl_load=no
11796 rm -f conftest.err conftest.$ac_objext \
11797 conftest$ac_exeext conftest.$ac_ext
11799 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11800 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11801 if test $ac_cv_func_shl_load = yes; then
11802 lt_cv_dlopen="shl_load"
11804 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11805 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11806 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11807 echo $ECHO_N "(cached) $ECHO_C" >&6
11809 ac_check_lib_save_LIBS=$LIBS
11811 cat >conftest.$ac_ext <<_ACEOF
11814 cat confdefs.h >>conftest.$ac_ext
11815 cat >>conftest.$ac_ext <<_ACEOF
11816 /* end confdefs.h. */
11818 /* Override any gcc2 internal prototype to avoid an error. */
11822 /* We use char because int might match the return type of a gcc2
11823 builtin and then its argument prototype would still apply. */
11833 rm -f conftest.$ac_objext conftest$ac_exeext
11834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11835 (eval $ac_link) 2>conftest.er1
11837 grep -v '^ *+' conftest.er1 >conftest.err
11839 cat conftest.err >&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); } &&
11842 { ac_try='test -z "$ac_cxx_werror_flag"
11843 || test ! -s conftest.err'
11844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11845 (eval $ac_try) 2>&5
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); }; } &&
11849 { ac_try='test -s conftest$ac_exeext'
11850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11851 (eval $ac_try) 2>&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); }; }; then
11855 ac_cv_lib_dld_shl_load=yes
11857 echo "$as_me: failed program was:" >&5
11858 sed 's/^/| /' conftest.$ac_ext >&5
11860 ac_cv_lib_dld_shl_load=no
11862 rm -f conftest.err conftest.$ac_objext \
11863 conftest$ac_exeext conftest.$ac_ext
11864 LIBS=$ac_check_lib_save_LIBS
11866 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11867 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11868 if test $ac_cv_lib_dld_shl_load = yes; then
11869 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11871 echo "$as_me:$LINENO: checking for dlopen" >&5
11872 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11873 if test "${ac_cv_func_dlopen+set}" = set; then
11874 echo $ECHO_N "(cached) $ECHO_C" >&6
11876 cat >conftest.$ac_ext <<_ACEOF
11879 cat confdefs.h >>conftest.$ac_ext
11880 cat >>conftest.$ac_ext <<_ACEOF
11881 /* end confdefs.h. */
11882 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11884 #define dlopen innocuous_dlopen
11886 /* System header to define __stub macros and hopefully few prototypes,
11887 which can conflict with char dlopen (); below.
11888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11889 <limits.h> exists even on freestanding compilers. */
11892 # include <limits.h>
11894 # include <assert.h>
11899 /* Override any gcc2 internal prototype to avoid an error. */
11904 /* We use char because int might match the return type of a gcc2
11905 builtin and then its argument prototype would still apply. */
11907 /* The GNU C library defines this for functions which it implements
11908 to always fail with ENOSYS. Some functions are actually named
11909 something starting with __ and the normal name is an alias. */
11910 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11913 char (*f) () = dlopen;
11922 return f != dlopen;
11927 rm -f conftest.$ac_objext conftest$ac_exeext
11928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11929 (eval $ac_link) 2>conftest.er1
11931 grep -v '^ *+' conftest.er1 >conftest.err
11933 cat conftest.err >&5
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); } &&
11936 { ac_try='test -z "$ac_cxx_werror_flag"
11937 || test ! -s conftest.err'
11938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11939 (eval $ac_try) 2>&5
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); }; } &&
11943 { ac_try='test -s conftest$ac_exeext'
11944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11945 (eval $ac_try) 2>&5
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); }; }; then
11949 ac_cv_func_dlopen=yes
11951 echo "$as_me: failed program was:" >&5
11952 sed 's/^/| /' conftest.$ac_ext >&5
11954 ac_cv_func_dlopen=no
11956 rm -f conftest.err conftest.$ac_objext \
11957 conftest$ac_exeext conftest.$ac_ext
11959 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11960 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11961 if test $ac_cv_func_dlopen = yes; then
11962 lt_cv_dlopen="dlopen"
11964 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11965 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11966 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11967 echo $ECHO_N "(cached) $ECHO_C" >&6
11969 ac_check_lib_save_LIBS=$LIBS
11971 cat >conftest.$ac_ext <<_ACEOF
11974 cat confdefs.h >>conftest.$ac_ext
11975 cat >>conftest.$ac_ext <<_ACEOF
11976 /* end confdefs.h. */
11978 /* Override any gcc2 internal prototype to avoid an error. */
11982 /* We use char because int might match the return type of a gcc2
11983 builtin and then its argument prototype would still apply. */
11993 rm -f conftest.$ac_objext conftest$ac_exeext
11994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11995 (eval $ac_link) 2>conftest.er1
11997 grep -v '^ *+' conftest.er1 >conftest.err
11999 cat conftest.err >&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); } &&
12002 { ac_try='test -z "$ac_cxx_werror_flag"
12003 || test ! -s conftest.err'
12004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12005 (eval $ac_try) 2>&5
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); }; } &&
12009 { ac_try='test -s conftest$ac_exeext'
12010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12011 (eval $ac_try) 2>&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); }; }; then
12015 ac_cv_lib_dl_dlopen=yes
12017 echo "$as_me: failed program was:" >&5
12018 sed 's/^/| /' conftest.$ac_ext >&5
12020 ac_cv_lib_dl_dlopen=no
12022 rm -f conftest.err conftest.$ac_objext \
12023 conftest$ac_exeext conftest.$ac_ext
12024 LIBS=$ac_check_lib_save_LIBS
12026 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12027 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12028 if test $ac_cv_lib_dl_dlopen = yes; then
12029 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12031 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12032 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12033 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12034 echo $ECHO_N "(cached) $ECHO_C" >&6
12036 ac_check_lib_save_LIBS=$LIBS
12037 LIBS="-lsvld $LIBS"
12038 cat >conftest.$ac_ext <<_ACEOF
12041 cat confdefs.h >>conftest.$ac_ext
12042 cat >>conftest.$ac_ext <<_ACEOF
12043 /* end confdefs.h. */
12045 /* Override any gcc2 internal prototype to avoid an error. */
12049 /* We use char because int might match the return type of a gcc2
12050 builtin and then its argument prototype would still apply. */
12060 rm -f conftest.$ac_objext conftest$ac_exeext
12061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12062 (eval $ac_link) 2>conftest.er1
12064 grep -v '^ *+' conftest.er1 >conftest.err
12066 cat conftest.err >&5
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); } &&
12069 { ac_try='test -z "$ac_cxx_werror_flag"
12070 || test ! -s conftest.err'
12071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072 (eval $ac_try) 2>&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; } &&
12076 { ac_try='test -s conftest$ac_exeext'
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; }; then
12082 ac_cv_lib_svld_dlopen=yes
12084 echo "$as_me: failed program was:" >&5
12085 sed 's/^/| /' conftest.$ac_ext >&5
12087 ac_cv_lib_svld_dlopen=no
12089 rm -f conftest.err conftest.$ac_objext \
12090 conftest$ac_exeext conftest.$ac_ext
12091 LIBS=$ac_check_lib_save_LIBS
12093 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12094 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12095 if test $ac_cv_lib_svld_dlopen = yes; then
12096 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12098 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12099 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12100 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12101 echo $ECHO_N "(cached) $ECHO_C" >&6
12103 ac_check_lib_save_LIBS=$LIBS
12105 cat >conftest.$ac_ext <<_ACEOF
12108 cat confdefs.h >>conftest.$ac_ext
12109 cat >>conftest.$ac_ext <<_ACEOF
12110 /* end confdefs.h. */
12112 /* Override any gcc2 internal prototype to avoid an error. */
12116 /* We use char because int might match the return type of a gcc2
12117 builtin and then its argument prototype would still apply. */
12127 rm -f conftest.$ac_objext conftest$ac_exeext
12128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12129 (eval $ac_link) 2>conftest.er1
12131 grep -v '^ *+' conftest.er1 >conftest.err
12133 cat conftest.err >&5
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); } &&
12136 { ac_try='test -z "$ac_cxx_werror_flag"
12137 || test ! -s conftest.err'
12138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12139 (eval $ac_try) 2>&5
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); }; } &&
12143 { ac_try='test -s conftest$ac_exeext'
12144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12145 (eval $ac_try) 2>&5
12147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); }; }; then
12149 ac_cv_lib_dld_dld_link=yes
12151 echo "$as_me: failed program was:" >&5
12152 sed 's/^/| /' conftest.$ac_ext >&5
12154 ac_cv_lib_dld_dld_link=no
12156 rm -f conftest.err conftest.$ac_objext \
12157 conftest$ac_exeext conftest.$ac_ext
12158 LIBS=$ac_check_lib_save_LIBS
12160 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12161 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12162 if test $ac_cv_lib_dld_dld_link = yes; then
12163 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12184 if test "x$lt_cv_dlopen" != xno; then
12190 case $lt_cv_dlopen in
12192 save_CPPFLAGS="$CPPFLAGS"
12193 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12195 save_LDFLAGS="$LDFLAGS"
12196 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12199 LIBS="$lt_cv_dlopen_libs $LIBS"
12201 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12202 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12203 if test "${lt_cv_dlopen_self+set}" = set; then
12204 echo $ECHO_N "(cached) $ECHO_C" >&6
12206 if test "$cross_compiling" = yes; then :
12207 lt_cv_dlopen_self=cross
12209 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12210 lt_status=$lt_dlunknown
12211 cat > conftest.$ac_ext <<EOF
12212 #line 12212 "configure"
12213 #include "confdefs.h"
12222 # define LT_DLGLOBAL RTLD_GLOBAL
12225 # define LT_DLGLOBAL DL_GLOBAL
12227 # define LT_DLGLOBAL 0
12231 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12232 find out it does not work in some platform. */
12233 #ifndef LT_DLLAZY_OR_NOW
12235 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12238 # define LT_DLLAZY_OR_NOW DL_LAZY
12241 # define LT_DLLAZY_OR_NOW RTLD_NOW
12244 # define LT_DLLAZY_OR_NOW DL_NOW
12246 # define LT_DLLAZY_OR_NOW 0
12254 extern "C" void exit (int);
12257 void fnord() { int i=42;}
12260 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12261 int status = $lt_dlunknown;
12265 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12266 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12267 /* dlclose (self); */
12273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12274 (eval $ac_link) 2>&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12278 (./conftest; exit; ) 2>/dev/null
12280 case x$lt_status in
12281 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12282 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12283 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12286 # compilation failed
12287 lt_cv_dlopen_self=no
12294 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12295 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12297 if test "x$lt_cv_dlopen_self" = xyes; then
12298 LDFLAGS="$LDFLAGS $link_static_flag"
12299 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12300 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12301 if test "${lt_cv_dlopen_self_static+set}" = set; then
12302 echo $ECHO_N "(cached) $ECHO_C" >&6
12304 if test "$cross_compiling" = yes; then :
12305 lt_cv_dlopen_self_static=cross
12307 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12308 lt_status=$lt_dlunknown
12309 cat > conftest.$ac_ext <<EOF
12310 #line 12310 "configure"
12311 #include "confdefs.h"
12320 # define LT_DLGLOBAL RTLD_GLOBAL
12323 # define LT_DLGLOBAL DL_GLOBAL
12325 # define LT_DLGLOBAL 0
12329 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12330 find out it does not work in some platform. */
12331 #ifndef LT_DLLAZY_OR_NOW
12333 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12336 # define LT_DLLAZY_OR_NOW DL_LAZY
12339 # define LT_DLLAZY_OR_NOW RTLD_NOW
12342 # define LT_DLLAZY_OR_NOW DL_NOW
12344 # define LT_DLLAZY_OR_NOW 0
12352 extern "C" void exit (int);
12355 void fnord() { int i=42;}
12358 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12359 int status = $lt_dlunknown;
12363 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12364 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12365 /* dlclose (self); */
12371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12372 (eval $ac_link) 2>&5
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12376 (./conftest; exit; ) 2>/dev/null
12378 case x$lt_status in
12379 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12380 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12381 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12384 # compilation failed
12385 lt_cv_dlopen_self_static=no
12392 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12393 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12396 CPPFLAGS="$save_CPPFLAGS"
12397 LDFLAGS="$save_LDFLAGS"
12402 case $lt_cv_dlopen_self in
12403 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12404 *) enable_dlopen_self=unknown ;;
12407 case $lt_cv_dlopen_self_static in
12408 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12409 *) enable_dlopen_self_static=unknown ;;
12414 # The else clause should only fire when bootstrapping the
12415 # libtool distribution, otherwise you forgot to ship ltmain.sh
12416 # with your package, and you will get complaints that there are
12417 # no rules to generate ltmain.sh.
12418 if test -f "$ltmain"; then
12419 # See if we are running on zsh, and set the options which allow our commands through
12420 # without removal of \ escapes.
12421 if test -n "${ZSH_VERSION+set}" ; then
12422 setopt NO_GLOB_SUBST
12424 # Now quote all the things that may contain metacharacters while being
12425 # careful not to overquote the AC_SUBSTed values. We take copies of the
12426 # variables and quote the copies for generation of the libtool script.
12427 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12428 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12429 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12430 deplibs_check_method reload_flag reload_cmds need_locks \
12431 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12432 lt_cv_sys_global_symbol_to_c_name_address \
12433 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12434 old_postinstall_cmds old_postuninstall_cmds \
12438 lt_prog_compiler_wl_CXX \
12439 lt_prog_compiler_pic_CXX \
12440 lt_prog_compiler_static_CXX \
12441 lt_prog_compiler_no_builtin_flag_CXX \
12442 export_dynamic_flag_spec_CXX \
12443 thread_safe_flag_spec_CXX \
12444 whole_archive_flag_spec_CXX \
12445 enable_shared_with_static_runtimes_CXX \
12446 old_archive_cmds_CXX \
12447 old_archive_from_new_cmds_CXX \
12448 predep_objects_CXX \
12449 postdep_objects_CXX \
12452 compiler_lib_search_path_CXX \
12454 archive_expsym_cmds_CXX \
12455 postinstall_cmds_CXX \
12456 postuninstall_cmds_CXX \
12457 old_archive_from_expsyms_cmds_CXX \
12458 allow_undefined_flag_CXX \
12459 no_undefined_flag_CXX \
12460 export_symbols_cmds_CXX \
12461 hardcode_libdir_flag_spec_CXX \
12462 hardcode_libdir_flag_spec_ld_CXX \
12463 hardcode_libdir_separator_CXX \
12464 hardcode_automatic_CXX \
12466 module_expsym_cmds_CXX \
12467 lt_cv_prog_compiler_c_o_CXX \
12468 exclude_expsyms_CXX \
12469 include_expsyms_CXX; do
12472 old_archive_cmds_CXX | \
12473 old_archive_from_new_cmds_CXX | \
12474 archive_cmds_CXX | \
12475 archive_expsym_cmds_CXX | \
12476 module_cmds_CXX | \
12477 module_expsym_cmds_CXX | \
12478 old_archive_from_expsyms_cmds_CXX | \
12479 export_symbols_cmds_CXX | \
12480 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12481 postinstall_cmds | postuninstall_cmds | \
12482 old_postinstall_cmds | old_postuninstall_cmds | \
12483 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12484 # Double-quote double-evaled strings.
12485 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12488 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12494 *'\$0 --fallback-echo"')
12495 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12501 cat <<__EOF__ >> "$cfgfile"
12502 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12504 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12506 # Shell to use when invoking shell scripts.
12509 # Whether or not to build shared libraries.
12510 build_libtool_libs=$enable_shared
12512 # Whether or not to build static libraries.
12513 build_old_libs=$enable_static
12515 # Whether or not to add -lc for building shared libraries.
12516 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12518 # Whether or not to disallow shared libs when runtime libs are static
12519 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12521 # Whether or not to optimize for fast installation.
12522 fast_install=$enable_fast_install
12525 host_alias=$host_alias
12528 # An echo program that does not interpret backslashes.
12533 AR_FLAGS=$lt_AR_FLAGS
12538 # A language-specific compiler.
12539 CC=$lt_compiler_CXX
12541 # Is the compiler the GNU C compiler?
12547 # The linker used to build libraries.
12550 # Whether we need hard or soft links.
12553 # A BSD-compatible nm program.
12556 # A symbol stripping program
12559 # Used to examine libraries when file_magic_cmd begins "file"
12560 MAGIC_CMD=$MAGIC_CMD
12562 # Used on cygwin: DLL creation program.
12565 # Used on cygwin: object dumper.
12568 # Used on cygwin: assembler.
12571 # The name of the directory that contains temporary libtool files.
12574 # How to create reloadable object files.
12575 reload_flag=$lt_reload_flag
12576 reload_cmds=$lt_reload_cmds
12578 # How to pass a linker flag through the compiler.
12579 wl=$lt_lt_prog_compiler_wl_CXX
12581 # Object file suffix (normally "o").
12582 objext="$ac_objext"
12584 # Old archive suffix (normally "a").
12587 # Shared library suffix (normally ".so").
12590 # Executable file suffix (normally "").
12593 # Additional compiler flags for building library objects.
12594 pic_flag=$lt_lt_prog_compiler_pic_CXX
12597 # What is the maximum length of a command?
12598 max_cmd_len=$lt_cv_sys_max_cmd_len
12600 # Does compiler simultaneously support -c and -o options?
12601 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12603 # Must we lock files when doing compilation ?
12604 need_locks=$lt_need_locks
12606 # Do we need the lib prefix for modules?
12607 need_lib_prefix=$need_lib_prefix
12609 # Do we need a version for libraries?
12610 need_version=$need_version
12612 # Whether dlopen is supported.
12613 dlopen_support=$enable_dlopen
12615 # Whether dlopen of programs is supported.
12616 dlopen_self=$enable_dlopen_self
12618 # Whether dlopen of statically linked programs is supported.
12619 dlopen_self_static=$enable_dlopen_self_static
12621 # Compiler flag to prevent dynamic linking.
12622 link_static_flag=$lt_lt_prog_compiler_static_CXX
12624 # Compiler flag to turn off builtin functions.
12625 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12627 # Compiler flag to allow reflexive dlopens.
12628 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12630 # Compiler flag to generate shared objects directly from archives.
12631 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12633 # Compiler flag to generate thread-safe objects.
12634 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12636 # Library versioning type.
12637 version_type=$version_type
12639 # Format of library name prefix.
12640 libname_spec=$lt_libname_spec
12642 # List of archive names. First name is the real one, the rest are links.
12643 # The last name is the one that the linker finds with -lNAME.
12644 library_names_spec=$lt_library_names_spec
12646 # The coded name of the library, if different from the real name.
12647 soname_spec=$lt_soname_spec
12649 # Commands used to build and install an old-style archive.
12651 old_archive_cmds=$lt_old_archive_cmds_CXX
12652 old_postinstall_cmds=$lt_old_postinstall_cmds
12653 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12655 # Create an old-style archive from a shared archive.
12656 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12658 # Create a temporary old-style archive to link instead of a shared archive.
12659 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12661 # Commands used to build and install a shared archive.
12662 archive_cmds=$lt_archive_cmds_CXX
12663 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12664 postinstall_cmds=$lt_postinstall_cmds
12665 postuninstall_cmds=$lt_postuninstall_cmds
12667 # Commands used to build a loadable module (assumed same as above if empty)
12668 module_cmds=$lt_module_cmds_CXX
12669 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12671 # Commands to strip libraries.
12672 old_striplib=$lt_old_striplib
12673 striplib=$lt_striplib
12675 # Dependencies to place before the objects being linked to create a
12677 predep_objects=$lt_predep_objects_CXX
12679 # Dependencies to place after the objects being linked to create a
12681 postdep_objects=$lt_postdep_objects_CXX
12683 # Dependencies to place before the objects being linked to create a
12685 predeps=$lt_predeps_CXX
12687 # Dependencies to place after the objects being linked to create a
12689 postdeps=$lt_postdeps_CXX
12691 # The library search path used internally by the compiler when linking
12692 # a shared library.
12693 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12695 # Method to check whether dependent libraries are shared objects.
12696 deplibs_check_method=$lt_deplibs_check_method
12698 # Command to use when deplibs_check_method == file_magic.
12699 file_magic_cmd=$lt_file_magic_cmd
12701 # Flag that allows shared libraries with undefined symbols to be built.
12702 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12704 # Flag that forces no undefined symbols.
12705 no_undefined_flag=$lt_no_undefined_flag_CXX
12707 # Commands used to finish a libtool library installation in a directory.
12708 finish_cmds=$lt_finish_cmds
12710 # Same as above, but a single script fragment to be evaled but not shown.
12711 finish_eval=$lt_finish_eval
12713 # Take the output of nm and produce a listing of raw symbols and C names.
12714 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12716 # Transform the output of nm in a proper C declaration
12717 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12719 # Transform the output of nm in a C name address pair
12720 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12722 # This is the shared library runtime path variable.
12723 runpath_var=$runpath_var
12725 # This is the shared library path variable.
12726 shlibpath_var=$shlibpath_var
12728 # Is shlibpath searched before the hard-coded library search path?
12729 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12731 # How to hardcode a shared library path into an executable.
12732 hardcode_action=$hardcode_action_CXX
12734 # Whether we should hardcode library paths into libraries.
12735 hardcode_into_libs=$hardcode_into_libs
12737 # Flag to hardcode \$libdir into a binary during linking.
12738 # This must work even if \$libdir does not exist.
12739 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12741 # If ld is used when linking, flag to hardcode \$libdir into
12742 # a binary during linking. This must work even if \$libdir does
12744 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12746 # Whether we need a single -rpath flag with a separated argument.
12747 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12749 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12750 # resulting binary.
12751 hardcode_direct=$hardcode_direct_CXX
12753 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12754 # resulting binary.
12755 hardcode_minus_L=$hardcode_minus_L_CXX
12757 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12758 # the resulting binary.
12759 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12761 # Set to yes if building a shared library automatically hardcodes DIR into the library
12762 # and all subsequent libraries and executables linked against it.
12763 hardcode_automatic=$hardcode_automatic_CXX
12765 # Variables whose values should be saved in libtool wrapper scripts and
12766 # restored at relink time.
12767 variables_saved_for_relink="$variables_saved_for_relink"
12769 # Whether libtool must link a program against all its dependency libraries.
12770 link_all_deplibs=$link_all_deplibs_CXX
12772 # Compile-time system search path for libraries
12773 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12775 # Run-time system search path for libraries
12776 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12778 # Fix the shell variable \$srcfile for the compiler.
12779 fix_srcfile_path="$fix_srcfile_path_CXX"
12781 # Set to yes if exported symbols are required.
12782 always_export_symbols=$always_export_symbols_CXX
12784 # The commands to list exported symbols.
12785 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12787 # The commands to extract the exported symbol list from a shared archive.
12788 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12790 # Symbols that should not be listed in the preloaded symbols.
12791 exclude_expsyms=$lt_exclude_expsyms_CXX
12793 # Symbols that must always be exported.
12794 include_expsyms=$lt_include_expsyms_CXX
12796 # ### END LIBTOOL TAG CONFIG: $tagname
12802 # If there is no Makefile yet, we rely on a make rule to execute
12803 # `config.status --recheck' to rerun these tests and create the
12804 # libtool script then.
12805 test -f Makefile && make "$ltmain"
12810 ac_cpp='$CPP $CPPFLAGS'
12811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12819 with_gnu_ldcxx=$with_gnu_ld
12820 with_gnu_ld=$lt_save_with_gnu_ld
12821 lt_cv_path_LDCXX=$lt_cv_path_LD
12822 lt_cv_path_LD=$lt_save_path_LD
12823 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12824 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12832 if test -n "$F77" && test "X$F77" != "Xno"; then
12835 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12836 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12837 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12840 archive_cmds_need_lc_F77=no
12841 allow_undefined_flag_F77=
12842 always_export_symbols_F77=no
12843 archive_expsym_cmds_F77=
12844 export_dynamic_flag_spec_F77=
12845 hardcode_direct_F77=no
12846 hardcode_libdir_flag_spec_F77=
12847 hardcode_libdir_flag_spec_ld_F77=
12848 hardcode_libdir_separator_F77=
12849 hardcode_minus_L_F77=no
12850 hardcode_automatic_F77=no
12852 module_expsym_cmds_F77=
12853 link_all_deplibs_F77=unknown
12854 old_archive_cmds_F77=$old_archive_cmds
12855 no_undefined_flag_F77=
12856 whole_archive_flag_spec_F77=
12857 enable_shared_with_static_runtimes_F77=no
12859 # Source file extension for f77 test sources.
12862 # Object file extension for compiled f77 test sources.
12866 # Code to be used in simple compile tests
12867 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12869 # Code to be used in simple link tests
12870 lt_simple_link_test_code=" program t\n end\n"
12872 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12874 # If no C compiler was specified, use CC.
12877 # Allow CC to be a program name with arguments.
12881 # Allow CC to be a program name with arguments.
12886 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12888 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12889 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12890 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12891 echo "${ECHO_T}$can_build_shared" >&6
12893 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12894 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12895 test "$can_build_shared" = "no" && enable_shared=no
12897 # On AIX, shared libraries and static libraries use the same namespace, and
12898 # are all built from PIC.
12901 test "$enable_shared" = yes && enable_static=no
12902 if test -n "$RANLIB"; then
12903 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12904 postinstall_cmds='$RANLIB $lib'
12908 test "$enable_shared" = yes && enable_static=no
12911 echo "$as_me:$LINENO: result: $enable_shared" >&5
12912 echo "${ECHO_T}$enable_shared" >&6
12914 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12915 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12916 # Make sure either enable_shared or enable_static is yes.
12917 test "$enable_shared" = yes || enable_static=yes
12918 echo "$as_me:$LINENO: result: $enable_static" >&5
12919 echo "${ECHO_T}$enable_static" >&6
12921 test "$ld_shlibs_F77" = no && can_build_shared=no
12926 lt_prog_compiler_wl_F77=
12927 lt_prog_compiler_pic_F77=
12928 lt_prog_compiler_static_F77=
12930 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12931 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12933 if test "$GCC" = yes; then
12934 lt_prog_compiler_wl_F77='-Wl,'
12935 lt_prog_compiler_static_F77='-static'
12939 # All AIX code is PIC.
12940 if test "$host_cpu" = ia64; then
12941 # AIX 5 now supports IA64 processor
12942 lt_prog_compiler_static_F77='-Bstatic'
12947 # FIXME: we need at least 68020 code to build shared libraries, but
12948 # adding the `-m68020' flag to GCC prevents building anything better,
12950 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12953 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12954 # PIC is the default for these OSes.
12957 mingw* | pw32* | os2*)
12958 # This hack is so that the source file can tell whether it is being
12959 # built for inclusion in a dll (and should export symbols for example).
12960 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12963 darwin* | rhapsody*)
12964 # PIC is the default on this platform
12965 # Common symbols not allowed in MH_DYLIB files
12966 lt_prog_compiler_pic_F77='-fno-common'
12970 # Just because we use GCC doesn't mean we suddenly get shared libraries
12971 # on systems that don't support them.
12972 lt_prog_compiler_can_build_shared_F77=no
12977 if test -d /usr/nec; then
12978 lt_prog_compiler_pic_F77=-Kconform_pic
12983 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12984 # not for PA HP-UX.
12985 case "$host_cpu" in
12990 lt_prog_compiler_pic_F77='-fPIC'
12996 lt_prog_compiler_pic_F77='-fPIC'
13000 # PORTME Check for flag to pass linker flags through the system compiler.
13003 lt_prog_compiler_wl_F77='-Wl,'
13004 if test "$host_cpu" = ia64; then
13005 # AIX 5 now supports IA64 processor
13006 lt_prog_compiler_static_F77='-Bstatic'
13008 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13012 mingw* | pw32* | os2*)
13013 # This hack is so that the source file can tell whether it is being
13014 # built for inclusion in a dll (and should export symbols for example).
13015 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13018 hpux9* | hpux10* | hpux11*)
13019 lt_prog_compiler_wl_F77='-Wl,'
13020 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13021 # not for PA HP-UX.
13022 case "$host_cpu" in
13027 lt_prog_compiler_pic_F77='+Z'
13030 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13031 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13034 irix5* | irix6* | nonstopux*)
13035 lt_prog_compiler_wl_F77='-Wl,'
13036 # PIC (with -KPIC) is the default.
13037 lt_prog_compiler_static_F77='-non_shared'
13041 lt_prog_compiler_pic_F77='-KPIC'
13042 lt_prog_compiler_static_F77='-Bstatic'
13048 lt_prog_compiler_wl_F77='-Wl,'
13049 lt_prog_compiler_pic_F77='-KPIC'
13050 lt_prog_compiler_static_F77='-static'
13053 lt_prog_compiler_wl_F77='-Wl,'
13054 # All Alpha code is PIC.
13055 lt_prog_compiler_static_F77='-non_shared'
13060 osf3* | osf4* | osf5*)
13061 lt_prog_compiler_wl_F77='-Wl,'
13062 # All OSF/1 code is PIC.
13063 lt_prog_compiler_static_F77='-non_shared'
13067 lt_prog_compiler_pic_F77='-Kpic'
13068 lt_prog_compiler_static_F77='-dn'
13072 lt_prog_compiler_wl_F77='-Wl,'
13073 lt_prog_compiler_pic_F77='-KPIC'
13074 lt_prog_compiler_static_F77='-Bstatic'
13078 lt_prog_compiler_wl_F77='-Qoption ld '
13079 lt_prog_compiler_pic_F77='-PIC'
13080 lt_prog_compiler_static_F77='-Bstatic'
13083 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13084 lt_prog_compiler_wl_F77='-Wl,'
13085 lt_prog_compiler_pic_F77='-KPIC'
13086 lt_prog_compiler_static_F77='-Bstatic'
13090 if test -d /usr/nec ;then
13091 lt_prog_compiler_pic_F77='-Kconform_pic'
13092 lt_prog_compiler_static_F77='-Bstatic'
13097 lt_prog_compiler_pic_F77='-pic'
13098 lt_prog_compiler_static_F77='-Bstatic'
13102 lt_prog_compiler_can_build_shared_F77=no
13107 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13108 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13111 # Check to make sure the PIC flag actually works.
13113 if test -n "$lt_prog_compiler_pic_F77"; then
13114 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13115 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13116 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13117 echo $ECHO_N "(cached) $ECHO_C" >&6
13119 lt_prog_compiler_pic_works_F77=no
13120 ac_outfile=conftest.$ac_objext
13121 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13122 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13123 # Insert the option either (1) after the last *FLAGS variable, or
13124 # (2) before a word containing "conftest.", or (3) at the end.
13125 # Note that $ac_compile itself does not contain backslashes and begins
13126 # with a dollar sign (not a hyphen), so the echo should work correctly.
13127 # The option is referenced via a variable to avoid confusing sed.
13128 lt_compile=`echo "$ac_compile" | $SED \
13129 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13130 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13131 -e 's:$: $lt_compiler_flag:'`
13132 (eval echo "\"\$as_me:13132: $lt_compile\"" >&5)
13133 (eval "$lt_compile" 2>conftest.err)
13135 cat conftest.err >&5
13136 echo "$as_me:13136: \$? = $ac_status" >&5
13137 if (exit $ac_status) && test -s "$ac_outfile"; then
13138 # The compiler can only warn and ignore the option if not recognized
13139 # So say no if there are warnings
13140 if test ! -s conftest.err; then
13141 lt_prog_compiler_pic_works_F77=yes
13147 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13148 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13150 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13151 case $lt_prog_compiler_pic_F77 in
13153 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13156 lt_prog_compiler_pic_F77=
13157 lt_prog_compiler_can_build_shared_F77=no
13162 # For platforms which do not support PIC, -DPIC is meaningless:
13164 lt_prog_compiler_pic_F77=
13167 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13171 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13172 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13173 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13174 echo $ECHO_N "(cached) $ECHO_C" >&6
13176 lt_cv_prog_compiler_c_o_F77=no
13177 $rm -r conftest 2>/dev/null
13181 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13183 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13184 # that will create temporary files in the current directory regardless of
13185 # the output directory. Thus, making CWD read-only will cause this test
13186 # to fail, enabling locking or at least warning the user not to do parallel
13190 lt_compiler_flag="-o out/conftest2.$ac_objext"
13191 # Insert the option either (1) after the last *FLAGS variable, or
13192 # (2) before a word containing "conftest.", or (3) at the end.
13193 # Note that $ac_compile itself does not contain backslashes and begins
13194 # with a dollar sign (not a hyphen), so the echo should work correctly.
13195 lt_compile=`echo "$ac_compile" | $SED \
13196 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13197 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13198 -e 's:$: $lt_compiler_flag:'`
13199 (eval echo "\"\$as_me:13199: $lt_compile\"" >&5)
13200 (eval "$lt_compile" 2>out/conftest.err)
13202 cat out/conftest.err >&5
13203 echo "$as_me:13203: \$? = $ac_status" >&5
13204 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13206 # The compiler can only warn and ignore the option if not recognized
13207 # So say no if there are warnings
13208 if test ! -s out/conftest.err; then
13209 lt_cv_prog_compiler_c_o_F77=yes
13213 $rm conftest* out/*
13220 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13221 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13224 hard_links="nottested"
13225 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13226 # do not overwrite the value of need_locks provided by the user
13227 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13228 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13231 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13233 ln conftest.a conftest.b 2>&5 || hard_links=no
13234 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13235 echo "$as_me:$LINENO: result: $hard_links" >&5
13236 echo "${ECHO_T}$hard_links" >&6
13237 if test "$hard_links" = no; then
13238 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13239 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13246 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13247 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13250 allow_undefined_flag_F77=
13251 enable_shared_with_static_runtimes_F77=no
13253 archive_expsym_cmds_F77=
13254 old_archive_From_new_cmds_F77=
13255 old_archive_from_expsyms_cmds_F77=
13256 export_dynamic_flag_spec_F77=
13257 whole_archive_flag_spec_F77=
13258 thread_safe_flag_spec_F77=
13259 hardcode_libdir_flag_spec_F77=
13260 hardcode_libdir_flag_spec_ld_F77=
13261 hardcode_libdir_separator_F77=
13262 hardcode_direct_F77=no
13263 hardcode_minus_L_F77=no
13264 hardcode_shlibpath_var_F77=unsupported
13265 link_all_deplibs_F77=unknown
13266 hardcode_automatic_F77=no
13268 module_expsym_cmds_F77=
13269 always_export_symbols_F77=no
13270 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13271 # include_expsyms should be a list of space-separated symbols to be *always*
13272 # included in the symbol list
13273 include_expsyms_F77=
13274 # exclude_expsyms can be an extended regexp of symbols to exclude
13275 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13276 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13277 # as well as any symbol that contains `d'.
13278 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13279 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13280 # platforms (ab)use it in PIC code, but their linkers get confused if
13281 # the symbol is explicitly referenced. Since portable code cannot
13282 # rely on this symbol name, it's probably fine to never include it in
13283 # preloaded symbol tables.
13284 extract_expsyms_cmds=
13287 cygwin* | mingw* | pw32*)
13288 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13289 # When not using gcc, we currently assume that we are using
13290 # Microsoft Visual C++.
13291 if test "$GCC" != yes; then
13301 if test "$with_gnu_ld" = yes; then
13302 # If archive_cmds runs LD, not CC, wlarc should be empty
13305 # See if GNU ld supports shared libraries.
13307 aix3* | aix4* | aix5*)
13308 # On AIX/PPC, the GNU linker is very broken
13309 if test "$host_cpu" != ia64; then
13313 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13314 *** to be unable to reliably create shared libraries on AIX.
13315 *** Therefore, libtool is disabling shared libraries support. If you
13316 *** really care for shared libraries, you may want to modify your PATH
13317 *** so that a non-GNU linker is found, and then restart.
13324 archive_cmds_F77='$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)'
13325 hardcode_libdir_flag_spec_F77='-L$libdir'
13326 hardcode_minus_L_F77=yes
13328 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13329 # that the semantics of dynamic libraries on AmigaOS, at least up
13330 # to version 4, is to share data among multiple programs linked
13331 # with the same dynamic library. Since this doesn't match the
13332 # behavior of shared libraries on other platforms, we can't use
13338 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13339 allow_undefined_flag_F77=unsupported
13340 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13341 # support --undefined. This deserves some investigation. FIXME
13342 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13348 cygwin* | mingw* | pw32*)
13349 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13350 # as there is no search path for DLLs.
13351 hardcode_libdir_flag_spec_F77='-L$libdir'
13352 allow_undefined_flag_F77=unsupported
13353 always_export_symbols_F77=no
13354 enable_shared_with_static_runtimes_F77=yes
13355 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13357 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13358 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13359 # If the export-symbols file already is a .def file (1st line
13360 # is EXPORTS), use it as is; otherwise, prepend...
13361 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13362 cp $export_symbols $output_objdir/$soname.def;
13364 echo EXPORTS > $output_objdir/$soname.def;
13365 cat $export_symbols >> $output_objdir/$soname.def;
13367 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13374 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13375 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13378 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13379 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13384 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13388 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13389 *** create shared libraries on Solaris systems. Therefore, libtool
13390 *** is disabling shared libraries support. We urge you to upgrade GNU
13391 *** binutils to release 2.9.1 or newer. Another option is to modify
13392 *** your PATH or compiler configuration so that the native linker is
13393 *** used, and then restart.
13396 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13397 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13398 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13405 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13407 hardcode_direct_F77=yes
13408 hardcode_shlibpath_var_F77=no
13412 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13413 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13414 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13421 if test "$ld_shlibs_F77" = yes; then
13422 runpath_var=LD_RUN_PATH
13423 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13424 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13425 # ancient GNU ld didn't support --whole-archive et. al.
13426 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13427 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13429 whole_archive_flag_spec_F77=
13433 # PORTME fill in a description of your system's linker (not GNU ld)
13436 allow_undefined_flag_F77=unsupported
13437 always_export_symbols_F77=yes
13438 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13439 # Note: this linker hardcodes the directories in LIBPATH if there
13440 # are no directories specified by -L.
13441 hardcode_minus_L_F77=yes
13442 if test "$GCC" = yes && test -z "$link_static_flag"; then
13443 # Neither direct hardcoding nor static linking is supported with a
13445 hardcode_direct_F77=unsupported
13450 if test "$host_cpu" = ia64; then
13451 # On IA64, the linker does run time linking by default, so we don't
13452 # have to do anything special.
13453 aix_use_runtimelinking=no
13454 exp_sym_flag='-Bexport'
13457 # If we're using GNU nm, then we don't want the "-C" option.
13458 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13459 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13460 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13462 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13464 aix_use_runtimelinking=no
13466 # Test if we are trying to use run time linking or normal
13467 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13468 # need to do runtime linking.
13469 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13470 for ld_flag in $LDFLAGS; do
13471 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13472 aix_use_runtimelinking=yes
13478 exp_sym_flag='-bexport'
13479 no_entry_flag='-bnoentry'
13482 # When large executables or shared objects are built, AIX ld can
13483 # have problems creating the table of contents. If linking a library
13484 # or program results in "error TOC overflow" add -mminimal-toc to
13485 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13486 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13488 archive_cmds_F77=''
13489 hardcode_direct_F77=yes
13490 hardcode_libdir_separator_F77=':'
13491 link_all_deplibs_F77=yes
13493 if test "$GCC" = yes; then
13494 case $host_os in aix4.012|aix4.012.*)
13495 # We only want to do this on AIX 4.2 and lower, the check
13496 # below for broken collect2 doesn't work under 4.3+
13497 collect2name=`${CC} -print-prog-name=collect2`
13498 if test -f "$collect2name" && \
13499 strings "$collect2name" | grep resolve_lib_name >/dev/null
13501 # We have reworked collect2
13502 hardcode_direct_F77=yes
13504 # We have old collect2
13505 hardcode_direct_F77=unsupported
13506 # It fails to find uninstalled libraries when the uninstalled
13507 # path is not listed in the libpath. Setting hardcode_minus_L
13508 # to unsupported forces relinking
13509 hardcode_minus_L_F77=yes
13510 hardcode_libdir_flag_spec_F77='-L$libdir'
13511 hardcode_libdir_separator_F77=
13514 shared_flag='-shared'
13517 if test "$host_cpu" = ia64; then
13518 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13519 # chokes on -Wl,-G. The following line is correct:
13522 if test "$aix_use_runtimelinking" = yes; then
13523 shared_flag='${wl}-G'
13525 shared_flag='${wl}-bM:SRE'
13530 # It seems that -bexpall does not export symbols beginning with
13531 # underscore (_), so it is better to generate a list of symbols to export.
13532 always_export_symbols_F77=yes
13533 if test "$aix_use_runtimelinking" = yes; then
13534 # Warning - without using the other runtime loading flags (-brtl),
13535 # -berok will link without error, but may produce a broken library.
13536 allow_undefined_flag_F77='-berok'
13537 # Determine the default libpath from the value encoded in an empty executable.
13538 cat >conftest.$ac_ext <<_ACEOF
13543 rm -f conftest.$ac_objext conftest$ac_exeext
13544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13545 (eval $ac_link) 2>conftest.er1
13547 grep -v '^ *+' conftest.er1 >conftest.err
13549 cat conftest.err >&5
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); } &&
13552 { ac_try='test -z "$ac_f77_werror_flag"
13553 || test ! -s conftest.err'
13554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13555 (eval $ac_try) 2>&5
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); }; } &&
13559 { ac_try='test -s conftest$ac_exeext'
13560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13561 (eval $ac_try) 2>&5
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); }; }; then
13566 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13568 # Check for a 64-bit object if we didn't find anything.
13569 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13572 echo "$as_me: failed program was:" >&5
13573 sed 's/^/| /' conftest.$ac_ext >&5
13576 rm -f conftest.err conftest.$ac_objext \
13577 conftest$ac_exeext conftest.$ac_ext
13578 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13580 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13581 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13583 if test "$host_cpu" = ia64; then
13584 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13585 allow_undefined_flag_F77="-z nodefs"
13586 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13588 # Determine the default libpath from the value encoded in an empty executable.
13589 cat >conftest.$ac_ext <<_ACEOF
13594 rm -f conftest.$ac_objext conftest$ac_exeext
13595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13596 (eval $ac_link) 2>conftest.er1
13598 grep -v '^ *+' conftest.er1 >conftest.err
13600 cat conftest.err >&5
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); } &&
13603 { ac_try='test -z "$ac_f77_werror_flag"
13604 || test ! -s conftest.err'
13605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13606 (eval $ac_try) 2>&5
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); }; } &&
13610 { ac_try='test -s conftest$ac_exeext'
13611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13612 (eval $ac_try) 2>&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; }; then
13617 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13619 # Check for a 64-bit object if we didn't find anything.
13620 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13623 echo "$as_me: failed program was:" >&5
13624 sed 's/^/| /' conftest.$ac_ext >&5
13627 rm -f conftest.err conftest.$ac_objext \
13628 conftest$ac_exeext conftest.$ac_ext
13629 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13631 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13632 # Warning - without using the other run time loading flags,
13633 # -berok will link without error, but may produce a broken library.
13634 no_undefined_flag_F77=' ${wl}-bernotok'
13635 allow_undefined_flag_F77=' ${wl}-berok'
13636 # -bexpall does not export symbols beginning with underscore (_)
13637 always_export_symbols_F77=yes
13638 # Exported symbols can be pulled into shared objects from archives
13639 whole_archive_flag_spec_F77=' '
13640 archive_cmds_need_lc_F77=yes
13641 # This is similar to how AIX traditionally builds it's shared libraries.
13642 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13648 archive_cmds_F77='$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)'
13649 hardcode_libdir_flag_spec_F77='-L$libdir'
13650 hardcode_minus_L_F77=yes
13651 # see comment about different semantics on the GNU ld section
13656 export_dynamic_flag_spec_F77=-rdynamic
13659 cygwin* | mingw* | pw32*)
13660 # When not using gcc, we currently assume that we are using
13661 # Microsoft Visual C++.
13662 # hardcode_libdir_flag_spec is actually meaningless, as there is
13663 # no search path for DLLs.
13664 hardcode_libdir_flag_spec_F77=' '
13665 allow_undefined_flag_F77=unsupported
13666 # Tell ltmain to make .lib files, not .a files.
13668 # Tell ltmain to make .dll files, not .so files.
13670 # FIXME: Setting linknames here is a bad hack.
13671 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13672 # The linker will automatically build a .lib file if we build a DLL.
13673 old_archive_From_new_cmds_F77='true'
13674 # FIXME: Should let the user specify the lib program.
13675 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13676 fix_srcfile_path='`cygpath -w "$srcfile"`'
13677 enable_shared_with_static_runtimes_F77=yes
13680 darwin* | rhapsody*)
13681 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13682 archive_cmds_need_lc_F77=no
13684 rhapsody* | darwin1.[012])
13685 allow_undefined_flag_F77='-undefined suppress'
13688 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13691 # FIXME: Relying on posixy $() will cause problems for
13692 # cross-compilation, but unfortunately the echo tests do not
13693 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13694 # `"' quotes if we put them in here... so don't!
13695 lt_int_apple_cc_single_mod=no
13696 output_verbose_link_cmd='echo'
13697 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13698 lt_int_apple_cc_single_mod=yes
13700 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13701 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13703 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13705 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13706 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13707 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13708 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13710 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13712 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13713 hardcode_direct_F77=no
13714 hardcode_automatic_F77=yes
13715 hardcode_shlibpath_var_F77=unsupported
13716 whole_archive_flag_spec_F77='-all_load $convenience'
13717 link_all_deplibs_F77=yes
13722 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13723 hardcode_libdir_flag_spec_F77='-L$libdir'
13724 hardcode_shlibpath_var_F77=no
13731 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13732 # support. Future versions do this automatically, but an explicit c++rt0.o
13733 # does not break anything, and helps significantly (at the cost of a little
13736 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13737 hardcode_libdir_flag_spec_F77='-R$libdir'
13738 hardcode_direct_F77=yes
13739 hardcode_shlibpath_var_F77=no
13742 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13744 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13745 hardcode_direct_F77=yes
13746 hardcode_minus_L_F77=yes
13747 hardcode_shlibpath_var_F77=no
13750 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13752 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13753 hardcode_libdir_flag_spec_F77='-R$libdir'
13754 hardcode_direct_F77=yes
13755 hardcode_shlibpath_var_F77=no
13759 if test "$GCC" = yes; then
13760 archive_cmds_F77='$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'
13762 archive_cmds_F77='$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'
13764 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13765 hardcode_libdir_separator_F77=:
13766 hardcode_direct_F77=yes
13768 # hardcode_minus_L: Not really in the search PATH,
13769 # but as the default location of the library.
13770 hardcode_minus_L_F77=yes
13771 export_dynamic_flag_spec_F77='${wl}-E'
13775 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13776 case "$host_cpu" in
13778 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13781 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13785 case "$host_cpu" in
13787 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13790 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13794 if test "$with_gnu_ld" = no; then
13795 case "$host_cpu" in
13797 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13798 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13799 hardcode_libdir_separator_F77=:
13800 hardcode_direct_F77=no
13801 hardcode_shlibpath_var_F77=no
13804 hardcode_libdir_flag_spec_F77='-L$libdir'
13805 hardcode_direct_F77=no
13806 hardcode_shlibpath_var_F77=no
13808 # hardcode_minus_L: Not really in the search PATH,
13809 # but as the default location of the library.
13810 hardcode_minus_L_F77=yes
13813 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13814 hardcode_libdir_separator_F77=:
13815 hardcode_direct_F77=yes
13816 export_dynamic_flag_spec_F77='${wl}-E'
13818 # hardcode_minus_L: Not really in the search PATH,
13819 # but as the default location of the library.
13820 hardcode_minus_L_F77=yes
13826 irix5* | irix6* | nonstopux*)
13827 if test "$GCC" = yes; then
13828 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13830 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13831 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13833 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13834 hardcode_libdir_separator_F77=:
13835 link_all_deplibs_F77=yes
13839 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13840 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13842 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13844 hardcode_libdir_flag_spec_F77='-R$libdir'
13845 hardcode_direct_F77=yes
13846 hardcode_shlibpath_var_F77=no
13850 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13851 hardcode_direct_F77=yes
13852 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13853 hardcode_libdir_separator_F77=:
13854 hardcode_shlibpath_var_F77=no
13858 hardcode_direct_F77=yes
13859 hardcode_shlibpath_var_F77=no
13860 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13861 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13862 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13863 export_dynamic_flag_spec_F77='${wl}-E'
13866 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13867 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13868 hardcode_libdir_flag_spec_F77='-R$libdir'
13871 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13872 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13879 hardcode_libdir_flag_spec_F77='-L$libdir'
13880 hardcode_minus_L_F77=yes
13881 allow_undefined_flag_F77=unsupported
13882 archive_cmds_F77='$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'
13883 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13887 if test "$GCC" = yes; then
13888 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13889 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13891 allow_undefined_flag_F77=' -expect_unresolved \*'
13892 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13894 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13895 hardcode_libdir_separator_F77=:
13898 osf4* | osf5*) # as osf3* with the addition of -msym flag
13899 if test "$GCC" = yes; then
13900 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13901 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13902 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13904 allow_undefined_flag_F77=' -expect_unresolved \*'
13905 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13906 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13907 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
13909 # Both c and cxx compiler support -rpath directly
13910 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13912 hardcode_libdir_separator_F77=:
13916 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13917 hardcode_shlibpath_var_F77=no
13918 export_dynamic_flag_spec_F77='${wl}-Bexport'
13919 runpath_var=LD_RUN_PATH
13920 hardcode_runpath_var=yes
13924 no_undefined_flag_F77=' -z text'
13925 if test "$GCC" = yes; then
13926 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13927 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13928 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13930 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13931 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13932 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13934 hardcode_libdir_flag_spec_F77='-R$libdir'
13935 hardcode_shlibpath_var_F77=no
13937 solaris2.[0-5] | solaris2.[0-5].*) ;;
13938 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13939 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13941 link_all_deplibs_F77=yes
13945 if test "x$host_vendor" = xsequent; then
13946 # Use $CC to link under sequent, because it throws in some extra .o
13947 # files that make .init and .fini sections work.
13948 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13950 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13952 hardcode_libdir_flag_spec_F77='-L$libdir'
13953 hardcode_direct_F77=yes
13954 hardcode_minus_L_F77=yes
13955 hardcode_shlibpath_var_F77=no
13959 case $host_vendor in
13961 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13962 hardcode_direct_F77=yes # is this really true???
13965 ## LD is ld it makes a PLAMLIB
13966 ## CC just makes a GrossModule.
13967 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13968 reload_cmds_F77='$CC -r -o $output$reload_objs'
13969 hardcode_direct_F77=no
13972 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13973 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13976 runpath_var='LD_RUN_PATH'
13977 hardcode_shlibpath_var_F77=no
13981 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13982 hardcode_shlibpath_var_F77=no
13983 export_dynamic_flag_spec_F77='-Bexport'
13987 if test -d /usr/nec; then
13988 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13989 hardcode_shlibpath_var_F77=no
13990 runpath_var=LD_RUN_PATH
13991 hardcode_runpath_var=yes
13997 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13998 hardcode_direct_F77=yes
13999 hardcode_minus_L_F77=no
14000 hardcode_shlibpath_var_F77=no
14001 hardcode_runpath_var=yes
14002 runpath_var=LD_RUN_PATH
14005 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14006 no_undefined_flag_F77='${wl}-z ${wl}text'
14007 if test "$GCC" = yes; then
14008 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14010 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14012 runpath_var='LD_RUN_PATH'
14013 hardcode_shlibpath_var_F77=no
14017 no_undefined_flag_F77=' -z text'
14018 # $CC -shared without GNU ld will not create a library from C++
14019 # object files and a static libstdc++, better avoid it by now
14020 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14021 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14022 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14023 hardcode_libdir_flag_spec_F77=
14024 hardcode_shlibpath_var_F77=no
14025 runpath_var='LD_RUN_PATH'
14029 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14030 hardcode_libdir_flag_spec_F77='-L$libdir'
14031 hardcode_shlibpath_var_F77=no
14040 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14041 echo "${ECHO_T}$ld_shlibs_F77" >&6
14042 test "$ld_shlibs_F77" = no && can_build_shared=no
14044 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14045 if test "$GCC" = yes; then
14046 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14050 # Do we need to explicitly link libc?
14052 case "x$archive_cmds_need_lc_F77" in
14054 # Assume -lc should be added
14055 archive_cmds_need_lc_F77=yes
14057 if test "$enable_shared" = yes && test "$GCC" = yes; then
14058 case $archive_cmds_F77 in
14060 # FIXME: we may have to deal with multi-command sequences.
14063 # Test whether the compiler implicitly links with -lc since on some
14064 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14065 # to ld, don't add -lc before -lgcc.
14066 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14067 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14069 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14072 (eval $ac_compile) 2>&5
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); } 2>conftest.err; then
14078 libobjs=conftest.$ac_objext
14080 wl=$lt_prog_compiler_wl_F77
14086 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14087 allow_undefined_flag_F77=
14088 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14089 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); }
14094 archive_cmds_need_lc_F77=no
14096 archive_cmds_need_lc_F77=yes
14098 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14100 cat conftest.err 1>&5
14103 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14104 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14111 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14112 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14113 hardcode_action_F77=
14114 if test -n "$hardcode_libdir_flag_spec_F77" || \
14115 test -n "$runpath_var F77" || \
14116 test "X$hardcode_automatic_F77"="Xyes" ; then
14118 # We can hardcode non-existant directories.
14119 if test "$hardcode_direct_F77" != no &&
14120 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14121 # have to relink, otherwise we might link with an installed library
14122 # when we should be linking with a yet-to-be-installed one
14123 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14124 test "$hardcode_minus_L_F77" != no; then
14125 # Linking always hardcodes the temporary library directory.
14126 hardcode_action_F77=relink
14128 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14129 hardcode_action_F77=immediate
14132 # We cannot hardcode anything, or else we can only hardcode existing
14134 hardcode_action_F77=unsupported
14136 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14137 echo "${ECHO_T}$hardcode_action_F77" >&6
14139 if test "$hardcode_action_F77" = relink; then
14140 # Fast installation is not supported
14141 enable_fast_install=no
14142 elif test "$shlibpath_overrides_runpath" = yes ||
14143 test "$enable_shared" = no; then
14144 # Fast installation is not necessary
14145 enable_fast_install=needless
14150 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14151 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14152 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14153 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14154 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14155 echo "$as_me:$LINENO: result: yes" >&5
14156 echo "${ECHO_T}yes" >&6
14158 # FIXME - insert some real tests, host_os isn't really good enough
14161 if test -n "$STRIP" ; then
14162 striplib="$STRIP -x"
14163 echo "$as_me:$LINENO: result: yes" >&5
14164 echo "${ECHO_T}yes" >&6
14166 echo "$as_me:$LINENO: result: no" >&5
14167 echo "${ECHO_T}no" >&6
14171 echo "$as_me:$LINENO: result: no" >&5
14172 echo "${ECHO_T}no" >&6
14177 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14178 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14179 library_names_spec=
14180 libname_spec='lib$name'
14184 postuninstall_cmds=
14188 shlibpath_overrides_runpath=unknown
14190 dynamic_linker="$host_os ld.so"
14191 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14192 if test "$GCC" = yes; then
14193 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14194 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14195 # if the path contains ";" then we assume it to be the separator
14196 # otherwise default to the standard path separator (i.e. ":") - it is
14197 # assumed that no part of a normal pathname contains ";" but that should
14198 # okay in the real world where ";" in dirpaths is itself problematic.
14199 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14201 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14204 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14206 need_lib_prefix=unknown
14207 hardcode_into_libs=no
14209 # when you set need_version to no, make sure it does not cause -set_version
14210 # flags to be left without arguments
14211 need_version=unknown
14216 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14217 shlibpath_var=LIBPATH
14219 # AIX 3 has no versioning support, so we append a major version to the name.
14220 soname_spec='${libname}${release}${shared_ext}$major'
14227 hardcode_into_libs=yes
14228 if test "$host_cpu" = ia64; then
14229 # AIX 5 supports IA64
14230 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14231 shlibpath_var=LD_LIBRARY_PATH
14233 # With GCC up to 2.95.x, collect2 would create an import file
14234 # for dependence libraries. The import file would start with
14235 # the line `#! .'. This would cause the generated library to
14236 # depend on `.', always an invalid library. This was fixed in
14237 # development snapshots of GCC prior to 3.0.
14239 aix4 | aix4.[01] | aix4.[01].*)
14240 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14242 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14245 can_build_shared=no
14249 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14250 # soname into executable. Probably we can add versioning support to
14251 # collect2, so additional links can be useful in future.
14252 if test "$aix_use_runtimelinking" = yes; then
14253 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14254 # instead of lib<name>.a to let people know that these are not
14255 # typical AIX shared libraries.
14256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14258 # We preserve .a as extension for shared libraries through AIX4.2
14259 # and later when we are not doing run time linking.
14260 library_names_spec='${libname}${release}.a $libname.a'
14261 soname_spec='${libname}${release}${shared_ext}$major'
14263 shlibpath_var=LIBPATH
14268 library_names_spec='$libname.ixlibrary $libname.a'
14269 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14270 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
14274 library_names_spec='${libname}${shared_ext}'
14275 dynamic_linker="$host_os ld.so"
14276 shlibpath_var=LIBRARY_PATH
14282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14283 soname_spec='${libname}${release}${shared_ext}$major'
14284 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14285 shlibpath_var=LD_LIBRARY_PATH
14286 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14287 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14288 # the default ld.so.conf also contains /usr/contrib/lib and
14289 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14290 # libtool to hard-code these into programs
14293 cygwin* | mingw* | pw32*)
14294 version_type=windows
14299 case $GCC,$host_os in
14300 yes,cygwin* | yes,mingw* | yes,pw32*)
14301 library_names_spec='$libname.dll.a'
14302 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14303 postinstall_cmds='base_file=`basename \${file}`~
14304 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14305 dldir=$destdir/`dirname \$dlpath`~
14306 test -d \$dldir || mkdir -p \$dldir~
14307 $install_prog $dir/$dlname \$dldir/$dlname'
14308 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14309 dlpath=$dir/\$dldll~
14311 shlibpath_overrides_runpath=yes
14315 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14316 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14317 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14320 # MinGW DLLs use traditional 'lib' prefix
14321 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14322 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14323 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14324 # It is most probably a Windows format PATH printed by
14325 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14326 # path with ; separators, and with drive letters. We can handle the
14327 # drive letters (cygwin fileutils understands them), so leave them,
14328 # especially as we might pass files found there to a mingw objdump,
14329 # which wouldn't understand a cygwinified path. Ahh.
14330 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14332 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14336 # pw32 DLLs use 'pw' prefix rather than 'lib'
14337 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14343 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14346 dynamic_linker='Win32 ld.exe'
14347 # FIXME: first we should search . and the directory the executable is in
14351 darwin* | rhapsody*)
14352 dynamic_linker="$host_os dyld"
14353 version_type=darwin
14356 # FIXME: Relying on posixy $() will cause problems for
14357 # cross-compilation, but unfortunately the echo tests do not
14358 # yet detect zsh echo's removal of \ escapes.
14359 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14360 soname_spec='${libname}${release}${major}$shared_ext'
14361 shlibpath_overrides_runpath=yes
14362 shlibpath_var=DYLD_LIBRARY_PATH
14363 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14364 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14365 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14366 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14368 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14376 soname_spec='${libname}${release}${shared_ext}$major'
14377 shlibpath_var=LD_LIBRARY_PATH
14385 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14386 version_type=freebsd-$objformat
14387 case $version_type in
14389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14394 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14398 shlibpath_var=LD_LIBRARY_PATH
14401 shlibpath_overrides_runpath=yes
14403 freebsd3.01* | freebsdelf3.01*)
14404 shlibpath_overrides_runpath=yes
14405 hardcode_into_libs=yes
14408 shlibpath_overrides_runpath=no
14409 hardcode_into_libs=yes
14418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14419 soname_spec='${libname}${release}${shared_ext}$major'
14420 shlibpath_var=LD_LIBRARY_PATH
14421 hardcode_into_libs=yes
14424 hpux9* | hpux10* | hpux11*)
14425 # Give a soname corresponding to the major version so that dld.sl refuses to
14426 # link against other versions.
14430 case "$host_cpu" in
14433 hardcode_into_libs=yes
14434 dynamic_linker="$host_os dld.so"
14435 shlibpath_var=LD_LIBRARY_PATH
14436 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14438 soname_spec='${libname}${release}${shared_ext}$major'
14439 if test "X$HPUX_IA64_MODE" = X32; then
14440 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14442 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14444 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14448 hardcode_into_libs=yes
14449 dynamic_linker="$host_os dld.sl"
14450 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14451 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14453 soname_spec='${libname}${release}${shared_ext}$major'
14454 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14455 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14459 dynamic_linker="$host_os dld.sl"
14460 shlibpath_var=SHLIB_PATH
14461 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14463 soname_spec='${libname}${release}${shared_ext}$major'
14466 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14467 postinstall_cmds='chmod 555 $lib'
14470 irix5* | irix6* | nonstopux*)
14472 nonstopux*) version_type=nonstopux ;;
14474 if test "$lt_cv_prog_gnu_ld" = yes; then
14482 soname_spec='${libname}${release}${shared_ext}$major'
14483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14485 irix5* | nonstopux*)
14486 libsuff= shlibsuff=
14489 case $LD in # libtool.m4 will add one of these switches to LD
14490 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14491 libsuff= shlibsuff= libmagic=32-bit;;
14492 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14493 libsuff=32 shlibsuff=N32 libmagic=N32;;
14494 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14495 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14496 *) libsuff= shlibsuff= libmagic=never-match;;
14500 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14501 shlibpath_overrides_runpath=no
14502 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14503 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14504 hardcode_into_libs=yes
14507 # No shared lib support for Linux oldld, aout, or coff.
14508 linux*oldld* | linux*aout* | linux*coff*)
14512 # This must be Linux ELF.
14517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14518 soname_spec='${libname}${release}${shared_ext}$major'
14519 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14520 shlibpath_var=LD_LIBRARY_PATH
14521 shlibpath_overrides_runpath=no
14522 # This implies no fast_install, which is unacceptable.
14523 # Some rework will be needed to allow for fast_install
14524 # before this can be enabled.
14525 hardcode_into_libs=yes
14527 # We used to test for /lib/ld.so.1 and disable shared libraries on
14528 # powerpc, because MkLinux only supported shared libraries with the
14529 # GNU dynamic linker. Since this was broken with cross compilers,
14530 # most powerpc-linux boxes support dynamic linking these days and
14531 # people can always --disable-shared, the test was removed, and we
14532 # assume the GNU/Linux dynamic linker is in use.
14533 dynamic_linker='GNU/Linux ld.so'
14540 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14543 dynamic_linker='NetBSD (a.out) ld.so'
14545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14546 soname_spec='${libname}${release}${shared_ext}$major'
14547 dynamic_linker='NetBSD ld.elf_so'
14549 shlibpath_var=LD_LIBRARY_PATH
14550 shlibpath_overrides_runpath=yes
14551 hardcode_into_libs=yes
14556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14557 shlibpath_var=LD_LIBRARY_PATH
14558 shlibpath_overrides_runpath=yes
14565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14566 soname_spec='${libname}${release}${shared_ext}$major'
14567 shlibpath_var=LD_LIBRARY_PATH
14568 shlibpath_overrides_runpath=yes
14575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14576 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14577 shlibpath_var=LD_LIBRARY_PATH
14578 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14580 openbsd2.[89] | openbsd2.[89].*)
14581 shlibpath_overrides_runpath=no
14584 shlibpath_overrides_runpath=yes
14588 shlibpath_overrides_runpath=yes
14593 libname_spec='$name'
14596 library_names_spec='$libname${shared_ext} $libname.a'
14597 dynamic_linker='OS/2 ld.exe'
14598 shlibpath_var=LIBPATH
14601 osf3* | osf4* | osf5*)
14605 soname_spec='${libname}${release}${shared_ext}$major'
14606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14607 shlibpath_var=LD_LIBRARY_PATH
14608 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14609 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14614 soname_spec='${libname}${release}${shared_ext}$major'
14615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14616 shlibpath_var=LD_LIBRARY_PATH
14623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14624 soname_spec='${libname}${release}${shared_ext}$major'
14625 shlibpath_var=LD_LIBRARY_PATH
14626 shlibpath_overrides_runpath=yes
14627 hardcode_into_libs=yes
14628 # ldd complains unless libraries are executable
14629 postinstall_cmds='chmod +x $lib'
14634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14635 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14636 shlibpath_var=LD_LIBRARY_PATH
14637 shlibpath_overrides_runpath=yes
14638 if test "$with_gnu_ld" = yes; then
14644 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14647 soname_spec='${libname}${release}${shared_ext}$major'
14648 shlibpath_var=LD_LIBRARY_PATH
14649 case $host_vendor in
14651 shlibpath_overrides_runpath=no
14653 export_dynamic_flag_spec='${wl}-Blargedynsym'
14654 runpath_var=LD_RUN_PATH
14662 shlibpath_overrides_runpath=no
14663 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14669 if test -d /usr/nec ;then
14671 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14672 soname_spec='$libname${shared_ext}.$major'
14673 shlibpath_var=LD_LIBRARY_PATH
14679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14680 soname_spec='${libname}${release}${shared_ext}$major'
14681 shlibpath_var=LD_LIBRARY_PATH
14688 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14689 echo "${ECHO_T}$dynamic_linker" >&6
14690 test "$dynamic_linker" = no && can_build_shared=no
14693 # The else clause should only fire when bootstrapping the
14694 # libtool distribution, otherwise you forgot to ship ltmain.sh
14695 # with your package, and you will get complaints that there are
14696 # no rules to generate ltmain.sh.
14697 if test -f "$ltmain"; then
14698 # See if we are running on zsh, and set the options which allow our commands through
14699 # without removal of \ escapes.
14700 if test -n "${ZSH_VERSION+set}" ; then
14701 setopt NO_GLOB_SUBST
14703 # Now quote all the things that may contain metacharacters while being
14704 # careful not to overquote the AC_SUBSTed values. We take copies of the
14705 # variables and quote the copies for generation of the libtool script.
14706 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14707 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14708 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14709 deplibs_check_method reload_flag reload_cmds need_locks \
14710 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14711 lt_cv_sys_global_symbol_to_c_name_address \
14712 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14713 old_postinstall_cmds old_postuninstall_cmds \
14717 lt_prog_compiler_wl_F77 \
14718 lt_prog_compiler_pic_F77 \
14719 lt_prog_compiler_static_F77 \
14720 lt_prog_compiler_no_builtin_flag_F77 \
14721 export_dynamic_flag_spec_F77 \
14722 thread_safe_flag_spec_F77 \
14723 whole_archive_flag_spec_F77 \
14724 enable_shared_with_static_runtimes_F77 \
14725 old_archive_cmds_F77 \
14726 old_archive_from_new_cmds_F77 \
14727 predep_objects_F77 \
14728 postdep_objects_F77 \
14731 compiler_lib_search_path_F77 \
14733 archive_expsym_cmds_F77 \
14734 postinstall_cmds_F77 \
14735 postuninstall_cmds_F77 \
14736 old_archive_from_expsyms_cmds_F77 \
14737 allow_undefined_flag_F77 \
14738 no_undefined_flag_F77 \
14739 export_symbols_cmds_F77 \
14740 hardcode_libdir_flag_spec_F77 \
14741 hardcode_libdir_flag_spec_ld_F77 \
14742 hardcode_libdir_separator_F77 \
14743 hardcode_automatic_F77 \
14745 module_expsym_cmds_F77 \
14746 lt_cv_prog_compiler_c_o_F77 \
14747 exclude_expsyms_F77 \
14748 include_expsyms_F77; do
14751 old_archive_cmds_F77 | \
14752 old_archive_from_new_cmds_F77 | \
14753 archive_cmds_F77 | \
14754 archive_expsym_cmds_F77 | \
14755 module_cmds_F77 | \
14756 module_expsym_cmds_F77 | \
14757 old_archive_from_expsyms_cmds_F77 | \
14758 export_symbols_cmds_F77 | \
14759 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14760 postinstall_cmds | postuninstall_cmds | \
14761 old_postinstall_cmds | old_postuninstall_cmds | \
14762 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14763 # Double-quote double-evaled strings.
14764 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14767 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14773 *'\$0 --fallback-echo"')
14774 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14780 cat <<__EOF__ >> "$cfgfile"
14781 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14783 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14785 # Shell to use when invoking shell scripts.
14788 # Whether or not to build shared libraries.
14789 build_libtool_libs=$enable_shared
14791 # Whether or not to build static libraries.
14792 build_old_libs=$enable_static
14794 # Whether or not to add -lc for building shared libraries.
14795 build_libtool_need_lc=$archive_cmds_need_lc_F77
14797 # Whether or not to disallow shared libs when runtime libs are static
14798 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14800 # Whether or not to optimize for fast installation.
14801 fast_install=$enable_fast_install
14804 host_alias=$host_alias
14807 # An echo program that does not interpret backslashes.
14812 AR_FLAGS=$lt_AR_FLAGS
14817 # A language-specific compiler.
14818 CC=$lt_compiler_F77
14820 # Is the compiler the GNU C compiler?
14826 # The linker used to build libraries.
14829 # Whether we need hard or soft links.
14832 # A BSD-compatible nm program.
14835 # A symbol stripping program
14838 # Used to examine libraries when file_magic_cmd begins "file"
14839 MAGIC_CMD=$MAGIC_CMD
14841 # Used on cygwin: DLL creation program.
14844 # Used on cygwin: object dumper.
14847 # Used on cygwin: assembler.
14850 # The name of the directory that contains temporary libtool files.
14853 # How to create reloadable object files.
14854 reload_flag=$lt_reload_flag
14855 reload_cmds=$lt_reload_cmds
14857 # How to pass a linker flag through the compiler.
14858 wl=$lt_lt_prog_compiler_wl_F77
14860 # Object file suffix (normally "o").
14861 objext="$ac_objext"
14863 # Old archive suffix (normally "a").
14866 # Shared library suffix (normally ".so").
14869 # Executable file suffix (normally "").
14872 # Additional compiler flags for building library objects.
14873 pic_flag=$lt_lt_prog_compiler_pic_F77
14876 # What is the maximum length of a command?
14877 max_cmd_len=$lt_cv_sys_max_cmd_len
14879 # Does compiler simultaneously support -c and -o options?
14880 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14882 # Must we lock files when doing compilation ?
14883 need_locks=$lt_need_locks
14885 # Do we need the lib prefix for modules?
14886 need_lib_prefix=$need_lib_prefix
14888 # Do we need a version for libraries?
14889 need_version=$need_version
14891 # Whether dlopen is supported.
14892 dlopen_support=$enable_dlopen
14894 # Whether dlopen of programs is supported.
14895 dlopen_self=$enable_dlopen_self
14897 # Whether dlopen of statically linked programs is supported.
14898 dlopen_self_static=$enable_dlopen_self_static
14900 # Compiler flag to prevent dynamic linking.
14901 link_static_flag=$lt_lt_prog_compiler_static_F77
14903 # Compiler flag to turn off builtin functions.
14904 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14906 # Compiler flag to allow reflexive dlopens.
14907 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14909 # Compiler flag to generate shared objects directly from archives.
14910 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14912 # Compiler flag to generate thread-safe objects.
14913 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14915 # Library versioning type.
14916 version_type=$version_type
14918 # Format of library name prefix.
14919 libname_spec=$lt_libname_spec
14921 # List of archive names. First name is the real one, the rest are links.
14922 # The last name is the one that the linker finds with -lNAME.
14923 library_names_spec=$lt_library_names_spec
14925 # The coded name of the library, if different from the real name.
14926 soname_spec=$lt_soname_spec
14928 # Commands used to build and install an old-style archive.
14930 old_archive_cmds=$lt_old_archive_cmds_F77
14931 old_postinstall_cmds=$lt_old_postinstall_cmds
14932 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14934 # Create an old-style archive from a shared archive.
14935 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14937 # Create a temporary old-style archive to link instead of a shared archive.
14938 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14940 # Commands used to build and install a shared archive.
14941 archive_cmds=$lt_archive_cmds_F77
14942 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14943 postinstall_cmds=$lt_postinstall_cmds
14944 postuninstall_cmds=$lt_postuninstall_cmds
14946 # Commands used to build a loadable module (assumed same as above if empty)
14947 module_cmds=$lt_module_cmds_F77
14948 module_expsym_cmds=$lt_module_expsym_cmds_F77
14950 # Commands to strip libraries.
14951 old_striplib=$lt_old_striplib
14952 striplib=$lt_striplib
14954 # Dependencies to place before the objects being linked to create a
14956 predep_objects=$lt_predep_objects_F77
14958 # Dependencies to place after the objects being linked to create a
14960 postdep_objects=$lt_postdep_objects_F77
14962 # Dependencies to place before the objects being linked to create a
14964 predeps=$lt_predeps_F77
14966 # Dependencies to place after the objects being linked to create a
14968 postdeps=$lt_postdeps_F77
14970 # The library search path used internally by the compiler when linking
14971 # a shared library.
14972 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14974 # Method to check whether dependent libraries are shared objects.
14975 deplibs_check_method=$lt_deplibs_check_method
14977 # Command to use when deplibs_check_method == file_magic.
14978 file_magic_cmd=$lt_file_magic_cmd
14980 # Flag that allows shared libraries with undefined symbols to be built.
14981 allow_undefined_flag=$lt_allow_undefined_flag_F77
14983 # Flag that forces no undefined symbols.
14984 no_undefined_flag=$lt_no_undefined_flag_F77
14986 # Commands used to finish a libtool library installation in a directory.
14987 finish_cmds=$lt_finish_cmds
14989 # Same as above, but a single script fragment to be evaled but not shown.
14990 finish_eval=$lt_finish_eval
14992 # Take the output of nm and produce a listing of raw symbols and C names.
14993 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14995 # Transform the output of nm in a proper C declaration
14996 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14998 # Transform the output of nm in a C name address pair
14999 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15001 # This is the shared library runtime path variable.
15002 runpath_var=$runpath_var
15004 # This is the shared library path variable.
15005 shlibpath_var=$shlibpath_var
15007 # Is shlibpath searched before the hard-coded library search path?
15008 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15010 # How to hardcode a shared library path into an executable.
15011 hardcode_action=$hardcode_action_F77
15013 # Whether we should hardcode library paths into libraries.
15014 hardcode_into_libs=$hardcode_into_libs
15016 # Flag to hardcode \$libdir into a binary during linking.
15017 # This must work even if \$libdir does not exist.
15018 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15020 # If ld is used when linking, flag to hardcode \$libdir into
15021 # a binary during linking. This must work even if \$libdir does
15023 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15025 # Whether we need a single -rpath flag with a separated argument.
15026 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15028 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15029 # resulting binary.
15030 hardcode_direct=$hardcode_direct_F77
15032 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15033 # resulting binary.
15034 hardcode_minus_L=$hardcode_minus_L_F77
15036 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15037 # the resulting binary.
15038 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15040 # Set to yes if building a shared library automatically hardcodes DIR into the library
15041 # and all subsequent libraries and executables linked against it.
15042 hardcode_automatic=$hardcode_automatic_F77
15044 # Variables whose values should be saved in libtool wrapper scripts and
15045 # restored at relink time.
15046 variables_saved_for_relink="$variables_saved_for_relink"
15048 # Whether libtool must link a program against all its dependency libraries.
15049 link_all_deplibs=$link_all_deplibs_F77
15051 # Compile-time system search path for libraries
15052 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15054 # Run-time system search path for libraries
15055 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15057 # Fix the shell variable \$srcfile for the compiler.
15058 fix_srcfile_path="$fix_srcfile_path_F77"
15060 # Set to yes if exported symbols are required.
15061 always_export_symbols=$always_export_symbols_F77
15063 # The commands to list exported symbols.
15064 export_symbols_cmds=$lt_export_symbols_cmds_F77
15066 # The commands to extract the exported symbol list from a shared archive.
15067 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15069 # Symbols that should not be listed in the preloaded symbols.
15070 exclude_expsyms=$lt_exclude_expsyms_F77
15072 # Symbols that must always be exported.
15073 include_expsyms=$lt_include_expsyms_F77
15075 # ### END LIBTOOL TAG CONFIG: $tagname
15081 # If there is no Makefile yet, we rely on a make rule to execute
15082 # `config.status --recheck' to rerun these tests and create the
15083 # libtool script then.
15084 test -f Makefile && make "$ltmain"
15089 ac_cpp='$CPP $CPPFLAGS'
15090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15102 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15106 # Source file extension for Java test sources.
15109 # Object file extension for compiled Java test sources.
15113 # Code to be used in simple compile tests
15114 lt_simple_compile_test_code="class foo {}\n"
15116 # Code to be used in simple link tests
15117 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15119 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15121 # If no C compiler was specified, use CC.
15124 # Allow CC to be a program name with arguments.
15128 # Allow CC to be a program name with arguments.
15134 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15135 archive_cmds_need_lc_GCJ=no
15138 ## There is no encapsulation within the following macros, do not change
15139 ## the running order or otherwise move them around unless you know exactly
15140 ## what you are doing...
15142 lt_prog_compiler_no_builtin_flag_GCJ=
15144 if test "$GCC" = yes; then
15145 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15147 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15148 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15149 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15150 echo $ECHO_N "(cached) $ECHO_C" >&6
15152 lt_cv_prog_compiler_rtti_exceptions=no
15153 ac_outfile=conftest.$ac_objext
15154 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15155 lt_compiler_flag="-fno-rtti -fno-exceptions"
15156 # Insert the option either (1) after the last *FLAGS variable, or
15157 # (2) before a word containing "conftest.", or (3) at the end.
15158 # Note that $ac_compile itself does not contain backslashes and begins
15159 # with a dollar sign (not a hyphen), so the echo should work correctly.
15160 # The option is referenced via a variable to avoid confusing sed.
15161 lt_compile=`echo "$ac_compile" | $SED \
15162 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15163 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15164 -e 's:$: $lt_compiler_flag:'`
15165 (eval echo "\"\$as_me:15165: $lt_compile\"" >&5)
15166 (eval "$lt_compile" 2>conftest.err)
15168 cat conftest.err >&5
15169 echo "$as_me:15169: \$? = $ac_status" >&5
15170 if (exit $ac_status) && test -s "$ac_outfile"; then
15171 # The compiler can only warn and ignore the option if not recognized
15172 # So say no if there are warnings
15173 if test ! -s conftest.err; then
15174 lt_cv_prog_compiler_rtti_exceptions=yes
15180 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15181 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15183 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15184 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15191 lt_prog_compiler_wl_GCJ=
15192 lt_prog_compiler_pic_GCJ=
15193 lt_prog_compiler_static_GCJ=
15195 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15196 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15198 if test "$GCC" = yes; then
15199 lt_prog_compiler_wl_GCJ='-Wl,'
15200 lt_prog_compiler_static_GCJ='-static'
15204 # All AIX code is PIC.
15205 if test "$host_cpu" = ia64; then
15206 # AIX 5 now supports IA64 processor
15207 lt_prog_compiler_static_GCJ='-Bstatic'
15212 # FIXME: we need at least 68020 code to build shared libraries, but
15213 # adding the `-m68020' flag to GCC prevents building anything better,
15215 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15218 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15219 # PIC is the default for these OSes.
15222 mingw* | pw32* | os2*)
15223 # This hack is so that the source file can tell whether it is being
15224 # built for inclusion in a dll (and should export symbols for example).
15225 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15228 darwin* | rhapsody*)
15229 # PIC is the default on this platform
15230 # Common symbols not allowed in MH_DYLIB files
15231 lt_prog_compiler_pic_GCJ='-fno-common'
15235 # Just because we use GCC doesn't mean we suddenly get shared libraries
15236 # on systems that don't support them.
15237 lt_prog_compiler_can_build_shared_GCJ=no
15242 if test -d /usr/nec; then
15243 lt_prog_compiler_pic_GCJ=-Kconform_pic
15248 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15249 # not for PA HP-UX.
15250 case "$host_cpu" in
15255 lt_prog_compiler_pic_GCJ='-fPIC'
15261 lt_prog_compiler_pic_GCJ='-fPIC'
15265 # PORTME Check for flag to pass linker flags through the system compiler.
15268 lt_prog_compiler_wl_GCJ='-Wl,'
15269 if test "$host_cpu" = ia64; then
15270 # AIX 5 now supports IA64 processor
15271 lt_prog_compiler_static_GCJ='-Bstatic'
15273 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15277 mingw* | pw32* | os2*)
15278 # This hack is so that the source file can tell whether it is being
15279 # built for inclusion in a dll (and should export symbols for example).
15280 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15283 hpux9* | hpux10* | hpux11*)
15284 lt_prog_compiler_wl_GCJ='-Wl,'
15285 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15286 # not for PA HP-UX.
15287 case "$host_cpu" in
15292 lt_prog_compiler_pic_GCJ='+Z'
15295 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15296 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15299 irix5* | irix6* | nonstopux*)
15300 lt_prog_compiler_wl_GCJ='-Wl,'
15301 # PIC (with -KPIC) is the default.
15302 lt_prog_compiler_static_GCJ='-non_shared'
15306 lt_prog_compiler_pic_GCJ='-KPIC'
15307 lt_prog_compiler_static_GCJ='-Bstatic'
15313 lt_prog_compiler_wl_GCJ='-Wl,'
15314 lt_prog_compiler_pic_GCJ='-KPIC'
15315 lt_prog_compiler_static_GCJ='-static'
15318 lt_prog_compiler_wl_GCJ='-Wl,'
15319 # All Alpha code is PIC.
15320 lt_prog_compiler_static_GCJ='-non_shared'
15325 osf3* | osf4* | osf5*)
15326 lt_prog_compiler_wl_GCJ='-Wl,'
15327 # All OSF/1 code is PIC.
15328 lt_prog_compiler_static_GCJ='-non_shared'
15332 lt_prog_compiler_pic_GCJ='-Kpic'
15333 lt_prog_compiler_static_GCJ='-dn'
15337 lt_prog_compiler_wl_GCJ='-Wl,'
15338 lt_prog_compiler_pic_GCJ='-KPIC'
15339 lt_prog_compiler_static_GCJ='-Bstatic'
15343 lt_prog_compiler_wl_GCJ='-Qoption ld '
15344 lt_prog_compiler_pic_GCJ='-PIC'
15345 lt_prog_compiler_static_GCJ='-Bstatic'
15348 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15349 lt_prog_compiler_wl_GCJ='-Wl,'
15350 lt_prog_compiler_pic_GCJ='-KPIC'
15351 lt_prog_compiler_static_GCJ='-Bstatic'
15355 if test -d /usr/nec ;then
15356 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15357 lt_prog_compiler_static_GCJ='-Bstatic'
15362 lt_prog_compiler_pic_GCJ='-pic'
15363 lt_prog_compiler_static_GCJ='-Bstatic'
15367 lt_prog_compiler_can_build_shared_GCJ=no
15372 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15373 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15376 # Check to make sure the PIC flag actually works.
15378 if test -n "$lt_prog_compiler_pic_GCJ"; then
15379 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15380 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15381 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15382 echo $ECHO_N "(cached) $ECHO_C" >&6
15384 lt_prog_compiler_pic_works_GCJ=no
15385 ac_outfile=conftest.$ac_objext
15386 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15387 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15388 # Insert the option either (1) after the last *FLAGS variable, or
15389 # (2) before a word containing "conftest.", or (3) at the end.
15390 # Note that $ac_compile itself does not contain backslashes and begins
15391 # with a dollar sign (not a hyphen), so the echo should work correctly.
15392 # The option is referenced via a variable to avoid confusing sed.
15393 lt_compile=`echo "$ac_compile" | $SED \
15394 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15395 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15396 -e 's:$: $lt_compiler_flag:'`
15397 (eval echo "\"\$as_me:15397: $lt_compile\"" >&5)
15398 (eval "$lt_compile" 2>conftest.err)
15400 cat conftest.err >&5
15401 echo "$as_me:15401: \$? = $ac_status" >&5
15402 if (exit $ac_status) && test -s "$ac_outfile"; then
15403 # The compiler can only warn and ignore the option if not recognized
15404 # So say no if there are warnings
15405 if test ! -s conftest.err; then
15406 lt_prog_compiler_pic_works_GCJ=yes
15412 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15413 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15415 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15416 case $lt_prog_compiler_pic_GCJ in
15418 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15421 lt_prog_compiler_pic_GCJ=
15422 lt_prog_compiler_can_build_shared_GCJ=no
15427 # For platforms which do not support PIC, -DPIC is meaningless:
15429 lt_prog_compiler_pic_GCJ=
15432 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15436 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15437 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15438 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15439 echo $ECHO_N "(cached) $ECHO_C" >&6
15441 lt_cv_prog_compiler_c_o_GCJ=no
15442 $rm -r conftest 2>/dev/null
15446 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15448 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15449 # that will create temporary files in the current directory regardless of
15450 # the output directory. Thus, making CWD read-only will cause this test
15451 # to fail, enabling locking or at least warning the user not to do parallel
15455 lt_compiler_flag="-o out/conftest2.$ac_objext"
15456 # Insert the option either (1) after the last *FLAGS variable, or
15457 # (2) before a word containing "conftest.", or (3) at the end.
15458 # Note that $ac_compile itself does not contain backslashes and begins
15459 # with a dollar sign (not a hyphen), so the echo should work correctly.
15460 lt_compile=`echo "$ac_compile" | $SED \
15461 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15462 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15463 -e 's:$: $lt_compiler_flag:'`
15464 (eval echo "\"\$as_me:15464: $lt_compile\"" >&5)
15465 (eval "$lt_compile" 2>out/conftest.err)
15467 cat out/conftest.err >&5
15468 echo "$as_me:15468: \$? = $ac_status" >&5
15469 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15471 # The compiler can only warn and ignore the option if not recognized
15472 # So say no if there are warnings
15473 if test ! -s out/conftest.err; then
15474 lt_cv_prog_compiler_c_o_GCJ=yes
15478 $rm conftest* out/*
15485 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15486 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15489 hard_links="nottested"
15490 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15491 # do not overwrite the value of need_locks provided by the user
15492 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15493 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15496 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15498 ln conftest.a conftest.b 2>&5 || hard_links=no
15499 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15500 echo "$as_me:$LINENO: result: $hard_links" >&5
15501 echo "${ECHO_T}$hard_links" >&6
15502 if test "$hard_links" = no; then
15503 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15504 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15511 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15512 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15515 allow_undefined_flag_GCJ=
15516 enable_shared_with_static_runtimes_GCJ=no
15518 archive_expsym_cmds_GCJ=
15519 old_archive_From_new_cmds_GCJ=
15520 old_archive_from_expsyms_cmds_GCJ=
15521 export_dynamic_flag_spec_GCJ=
15522 whole_archive_flag_spec_GCJ=
15523 thread_safe_flag_spec_GCJ=
15524 hardcode_libdir_flag_spec_GCJ=
15525 hardcode_libdir_flag_spec_ld_GCJ=
15526 hardcode_libdir_separator_GCJ=
15527 hardcode_direct_GCJ=no
15528 hardcode_minus_L_GCJ=no
15529 hardcode_shlibpath_var_GCJ=unsupported
15530 link_all_deplibs_GCJ=unknown
15531 hardcode_automatic_GCJ=no
15533 module_expsym_cmds_GCJ=
15534 always_export_symbols_GCJ=no
15535 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15536 # include_expsyms should be a list of space-separated symbols to be *always*
15537 # included in the symbol list
15538 include_expsyms_GCJ=
15539 # exclude_expsyms can be an extended regexp of symbols to exclude
15540 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15541 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15542 # as well as any symbol that contains `d'.
15543 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15544 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15545 # platforms (ab)use it in PIC code, but their linkers get confused if
15546 # the symbol is explicitly referenced. Since portable code cannot
15547 # rely on this symbol name, it's probably fine to never include it in
15548 # preloaded symbol tables.
15549 extract_expsyms_cmds=
15552 cygwin* | mingw* | pw32*)
15553 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15554 # When not using gcc, we currently assume that we are using
15555 # Microsoft Visual C++.
15556 if test "$GCC" != yes; then
15566 if test "$with_gnu_ld" = yes; then
15567 # If archive_cmds runs LD, not CC, wlarc should be empty
15570 # See if GNU ld supports shared libraries.
15572 aix3* | aix4* | aix5*)
15573 # On AIX/PPC, the GNU linker is very broken
15574 if test "$host_cpu" != ia64; then
15578 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15579 *** to be unable to reliably create shared libraries on AIX.
15580 *** Therefore, libtool is disabling shared libraries support. If you
15581 *** really care for shared libraries, you may want to modify your PATH
15582 *** so that a non-GNU linker is found, and then restart.
15589 archive_cmds_GCJ='$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)'
15590 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15591 hardcode_minus_L_GCJ=yes
15593 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15594 # that the semantics of dynamic libraries on AmigaOS, at least up
15595 # to version 4, is to share data among multiple programs linked
15596 # with the same dynamic library. Since this doesn't match the
15597 # behavior of shared libraries on other platforms, we can't use
15603 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15604 allow_undefined_flag_GCJ=unsupported
15605 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15606 # support --undefined. This deserves some investigation. FIXME
15607 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15613 cygwin* | mingw* | pw32*)
15614 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15615 # as there is no search path for DLLs.
15616 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15617 allow_undefined_flag_GCJ=unsupported
15618 always_export_symbols_GCJ=no
15619 enable_shared_with_static_runtimes_GCJ=yes
15620 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15622 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15623 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15624 # If the export-symbols file already is a .def file (1st line
15625 # is EXPORTS), use it as is; otherwise, prepend...
15626 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15627 cp $export_symbols $output_objdir/$soname.def;
15629 echo EXPORTS > $output_objdir/$soname.def;
15630 cat $export_symbols >> $output_objdir/$soname.def;
15632 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15639 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15640 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15643 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15644 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15649 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15653 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15654 *** create shared libraries on Solaris systems. Therefore, libtool
15655 *** is disabling shared libraries support. We urge you to upgrade GNU
15656 *** binutils to release 2.9.1 or newer. Another option is to modify
15657 *** your PATH or compiler configuration so that the native linker is
15658 *** used, and then restart.
15661 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15662 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15663 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15670 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15672 hardcode_direct_GCJ=yes
15673 hardcode_shlibpath_var_GCJ=no
15677 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15678 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15679 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15686 if test "$ld_shlibs_GCJ" = yes; then
15687 runpath_var=LD_RUN_PATH
15688 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15689 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15690 # ancient GNU ld didn't support --whole-archive et. al.
15691 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15692 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15694 whole_archive_flag_spec_GCJ=
15698 # PORTME fill in a description of your system's linker (not GNU ld)
15701 allow_undefined_flag_GCJ=unsupported
15702 always_export_symbols_GCJ=yes
15703 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15704 # Note: this linker hardcodes the directories in LIBPATH if there
15705 # are no directories specified by -L.
15706 hardcode_minus_L_GCJ=yes
15707 if test "$GCC" = yes && test -z "$link_static_flag"; then
15708 # Neither direct hardcoding nor static linking is supported with a
15710 hardcode_direct_GCJ=unsupported
15715 if test "$host_cpu" = ia64; then
15716 # On IA64, the linker does run time linking by default, so we don't
15717 # have to do anything special.
15718 aix_use_runtimelinking=no
15719 exp_sym_flag='-Bexport'
15722 # If we're using GNU nm, then we don't want the "-C" option.
15723 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15724 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15725 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15727 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15729 aix_use_runtimelinking=no
15731 # Test if we are trying to use run time linking or normal
15732 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15733 # need to do runtime linking.
15734 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15735 for ld_flag in $LDFLAGS; do
15736 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15737 aix_use_runtimelinking=yes
15743 exp_sym_flag='-bexport'
15744 no_entry_flag='-bnoentry'
15747 # When large executables or shared objects are built, AIX ld can
15748 # have problems creating the table of contents. If linking a library
15749 # or program results in "error TOC overflow" add -mminimal-toc to
15750 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15751 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15753 archive_cmds_GCJ=''
15754 hardcode_direct_GCJ=yes
15755 hardcode_libdir_separator_GCJ=':'
15756 link_all_deplibs_GCJ=yes
15758 if test "$GCC" = yes; then
15759 case $host_os in aix4.012|aix4.012.*)
15760 # We only want to do this on AIX 4.2 and lower, the check
15761 # below for broken collect2 doesn't work under 4.3+
15762 collect2name=`${CC} -print-prog-name=collect2`
15763 if test -f "$collect2name" && \
15764 strings "$collect2name" | grep resolve_lib_name >/dev/null
15766 # We have reworked collect2
15767 hardcode_direct_GCJ=yes
15769 # We have old collect2
15770 hardcode_direct_GCJ=unsupported
15771 # It fails to find uninstalled libraries when the uninstalled
15772 # path is not listed in the libpath. Setting hardcode_minus_L
15773 # to unsupported forces relinking
15774 hardcode_minus_L_GCJ=yes
15775 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15776 hardcode_libdir_separator_GCJ=
15779 shared_flag='-shared'
15782 if test "$host_cpu" = ia64; then
15783 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15784 # chokes on -Wl,-G. The following line is correct:
15787 if test "$aix_use_runtimelinking" = yes; then
15788 shared_flag='${wl}-G'
15790 shared_flag='${wl}-bM:SRE'
15795 # It seems that -bexpall does not export symbols beginning with
15796 # underscore (_), so it is better to generate a list of symbols to export.
15797 always_export_symbols_GCJ=yes
15798 if test "$aix_use_runtimelinking" = yes; then
15799 # Warning - without using the other runtime loading flags (-brtl),
15800 # -berok will link without error, but may produce a broken library.
15801 allow_undefined_flag_GCJ='-berok'
15802 # Determine the default libpath from the value encoded in an empty executable.
15803 cat >conftest.$ac_ext <<_ACEOF
15806 cat confdefs.h >>conftest.$ac_ext
15807 cat >>conftest.$ac_ext <<_ACEOF
15808 /* end confdefs.h. */
15818 rm -f conftest.$ac_objext conftest$ac_exeext
15819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15820 (eval $ac_link) 2>conftest.er1
15822 grep -v '^ *+' conftest.er1 >conftest.err
15824 cat conftest.err >&5
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); } &&
15827 { ac_try='test -z "$ac_c_werror_flag"
15828 || test ! -s conftest.err'
15829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15830 (eval $ac_try) 2>&5
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); }; } &&
15834 { ac_try='test -s conftest$ac_exeext'
15835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15836 (eval $ac_try) 2>&5
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); }; }; then
15841 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15843 # Check for a 64-bit object if we didn't find anything.
15844 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15847 echo "$as_me: failed program was:" >&5
15848 sed 's/^/| /' conftest.$ac_ext >&5
15851 rm -f conftest.err conftest.$ac_objext \
15852 conftest$ac_exeext conftest.$ac_ext
15853 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15855 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15856 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15858 if test "$host_cpu" = ia64; then
15859 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15860 allow_undefined_flag_GCJ="-z nodefs"
15861 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15863 # Determine the default libpath from the value encoded in an empty executable.
15864 cat >conftest.$ac_ext <<_ACEOF
15867 cat confdefs.h >>conftest.$ac_ext
15868 cat >>conftest.$ac_ext <<_ACEOF
15869 /* end confdefs.h. */
15879 rm -f conftest.$ac_objext conftest$ac_exeext
15880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15881 (eval $ac_link) 2>conftest.er1
15883 grep -v '^ *+' conftest.er1 >conftest.err
15885 cat conftest.err >&5
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); } &&
15888 { ac_try='test -z "$ac_c_werror_flag"
15889 || test ! -s conftest.err'
15890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15891 (eval $ac_try) 2>&5
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); }; } &&
15895 { ac_try='test -s conftest$ac_exeext'
15896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15897 (eval $ac_try) 2>&5
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); }; }; then
15902 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15904 # Check for a 64-bit object if we didn't find anything.
15905 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15908 echo "$as_me: failed program was:" >&5
15909 sed 's/^/| /' conftest.$ac_ext >&5
15912 rm -f conftest.err conftest.$ac_objext \
15913 conftest$ac_exeext conftest.$ac_ext
15914 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15916 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15917 # Warning - without using the other run time loading flags,
15918 # -berok will link without error, but may produce a broken library.
15919 no_undefined_flag_GCJ=' ${wl}-bernotok'
15920 allow_undefined_flag_GCJ=' ${wl}-berok'
15921 # -bexpall does not export symbols beginning with underscore (_)
15922 always_export_symbols_GCJ=yes
15923 # Exported symbols can be pulled into shared objects from archives
15924 whole_archive_flag_spec_GCJ=' '
15925 archive_cmds_need_lc_GCJ=yes
15926 # This is similar to how AIX traditionally builds it's shared libraries.
15927 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15933 archive_cmds_GCJ='$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)'
15934 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15935 hardcode_minus_L_GCJ=yes
15936 # see comment about different semantics on the GNU ld section
15941 export_dynamic_flag_spec_GCJ=-rdynamic
15944 cygwin* | mingw* | pw32*)
15945 # When not using gcc, we currently assume that we are using
15946 # Microsoft Visual C++.
15947 # hardcode_libdir_flag_spec is actually meaningless, as there is
15948 # no search path for DLLs.
15949 hardcode_libdir_flag_spec_GCJ=' '
15950 allow_undefined_flag_GCJ=unsupported
15951 # Tell ltmain to make .lib files, not .a files.
15953 # Tell ltmain to make .dll files, not .so files.
15955 # FIXME: Setting linknames here is a bad hack.
15956 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15957 # The linker will automatically build a .lib file if we build a DLL.
15958 old_archive_From_new_cmds_GCJ='true'
15959 # FIXME: Should let the user specify the lib program.
15960 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15961 fix_srcfile_path='`cygpath -w "$srcfile"`'
15962 enable_shared_with_static_runtimes_GCJ=yes
15965 darwin* | rhapsody*)
15966 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15967 archive_cmds_need_lc_GCJ=no
15969 rhapsody* | darwin1.[012])
15970 allow_undefined_flag_GCJ='-undefined suppress'
15973 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15976 # FIXME: Relying on posixy $() will cause problems for
15977 # cross-compilation, but unfortunately the echo tests do not
15978 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15979 # `"' quotes if we put them in here... so don't!
15980 lt_int_apple_cc_single_mod=no
15981 output_verbose_link_cmd='echo'
15982 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15983 lt_int_apple_cc_single_mod=yes
15985 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15986 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15988 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15990 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15991 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15992 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15993 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15995 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15997 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15998 hardcode_direct_GCJ=no
15999 hardcode_automatic_GCJ=yes
16000 hardcode_shlibpath_var_GCJ=unsupported
16001 whole_archive_flag_spec_GCJ='-all_load $convenience'
16002 link_all_deplibs_GCJ=yes
16007 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16008 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16009 hardcode_shlibpath_var_GCJ=no
16016 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16017 # support. Future versions do this automatically, but an explicit c++rt0.o
16018 # does not break anything, and helps significantly (at the cost of a little
16021 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16022 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16023 hardcode_direct_GCJ=yes
16024 hardcode_shlibpath_var_GCJ=no
16027 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16029 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16030 hardcode_direct_GCJ=yes
16031 hardcode_minus_L_GCJ=yes
16032 hardcode_shlibpath_var_GCJ=no
16035 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16037 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16038 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16039 hardcode_direct_GCJ=yes
16040 hardcode_shlibpath_var_GCJ=no
16044 if test "$GCC" = yes; then
16045 archive_cmds_GCJ='$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'
16047 archive_cmds_GCJ='$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'
16049 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16050 hardcode_libdir_separator_GCJ=:
16051 hardcode_direct_GCJ=yes
16053 # hardcode_minus_L: Not really in the search PATH,
16054 # but as the default location of the library.
16055 hardcode_minus_L_GCJ=yes
16056 export_dynamic_flag_spec_GCJ='${wl}-E'
16060 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16061 case "$host_cpu" in
16063 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16066 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16070 case "$host_cpu" in
16072 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16075 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16079 if test "$with_gnu_ld" = no; then
16080 case "$host_cpu" in
16082 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16083 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16084 hardcode_libdir_separator_GCJ=:
16085 hardcode_direct_GCJ=no
16086 hardcode_shlibpath_var_GCJ=no
16089 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16090 hardcode_direct_GCJ=no
16091 hardcode_shlibpath_var_GCJ=no
16093 # hardcode_minus_L: Not really in the search PATH,
16094 # but as the default location of the library.
16095 hardcode_minus_L_GCJ=yes
16098 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16099 hardcode_libdir_separator_GCJ=:
16100 hardcode_direct_GCJ=yes
16101 export_dynamic_flag_spec_GCJ='${wl}-E'
16103 # hardcode_minus_L: Not really in the search PATH,
16104 # but as the default location of the library.
16105 hardcode_minus_L_GCJ=yes
16111 irix5* | irix6* | nonstopux*)
16112 if test "$GCC" = yes; then
16113 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16115 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16116 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16118 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16119 hardcode_libdir_separator_GCJ=:
16120 link_all_deplibs_GCJ=yes
16124 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16125 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16127 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16129 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16130 hardcode_direct_GCJ=yes
16131 hardcode_shlibpath_var_GCJ=no
16135 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16136 hardcode_direct_GCJ=yes
16137 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16138 hardcode_libdir_separator_GCJ=:
16139 hardcode_shlibpath_var_GCJ=no
16143 hardcode_direct_GCJ=yes
16144 hardcode_shlibpath_var_GCJ=no
16145 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16146 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16147 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16148 export_dynamic_flag_spec_GCJ='${wl}-E'
16151 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16152 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16153 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16156 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16157 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16164 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16165 hardcode_minus_L_GCJ=yes
16166 allow_undefined_flag_GCJ=unsupported
16167 archive_cmds_GCJ='$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'
16168 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16172 if test "$GCC" = yes; then
16173 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16174 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16176 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16177 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16179 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16180 hardcode_libdir_separator_GCJ=:
16183 osf4* | osf5*) # as osf3* with the addition of -msym flag
16184 if test "$GCC" = yes; then
16185 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16186 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16187 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16189 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16190 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16191 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16192 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16194 # Both c and cxx compiler support -rpath directly
16195 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16197 hardcode_libdir_separator_GCJ=:
16201 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16202 hardcode_shlibpath_var_GCJ=no
16203 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16204 runpath_var=LD_RUN_PATH
16205 hardcode_runpath_var=yes
16209 no_undefined_flag_GCJ=' -z text'
16210 if test "$GCC" = yes; then
16211 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16212 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16213 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16215 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16216 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16217 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16219 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16220 hardcode_shlibpath_var_GCJ=no
16222 solaris2.[0-5] | solaris2.[0-5].*) ;;
16223 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16224 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16226 link_all_deplibs_GCJ=yes
16230 if test "x$host_vendor" = xsequent; then
16231 # Use $CC to link under sequent, because it throws in some extra .o
16232 # files that make .init and .fini sections work.
16233 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16235 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16237 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16238 hardcode_direct_GCJ=yes
16239 hardcode_minus_L_GCJ=yes
16240 hardcode_shlibpath_var_GCJ=no
16244 case $host_vendor in
16246 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16247 hardcode_direct_GCJ=yes # is this really true???
16250 ## LD is ld it makes a PLAMLIB
16251 ## CC just makes a GrossModule.
16252 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16253 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16254 hardcode_direct_GCJ=no
16257 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16258 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16261 runpath_var='LD_RUN_PATH'
16262 hardcode_shlibpath_var_GCJ=no
16266 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16267 hardcode_shlibpath_var_GCJ=no
16268 export_dynamic_flag_spec_GCJ='-Bexport'
16272 if test -d /usr/nec; then
16273 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16274 hardcode_shlibpath_var_GCJ=no
16275 runpath_var=LD_RUN_PATH
16276 hardcode_runpath_var=yes
16282 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16283 hardcode_direct_GCJ=yes
16284 hardcode_minus_L_GCJ=no
16285 hardcode_shlibpath_var_GCJ=no
16286 hardcode_runpath_var=yes
16287 runpath_var=LD_RUN_PATH
16290 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16291 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16292 if test "$GCC" = yes; then
16293 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16295 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16297 runpath_var='LD_RUN_PATH'
16298 hardcode_shlibpath_var_GCJ=no
16302 no_undefined_flag_GCJ=' -z text'
16303 # $CC -shared without GNU ld will not create a library from C++
16304 # object files and a static libstdc++, better avoid it by now
16305 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16306 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16307 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16308 hardcode_libdir_flag_spec_GCJ=
16309 hardcode_shlibpath_var_GCJ=no
16310 runpath_var='LD_RUN_PATH'
16314 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16315 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16316 hardcode_shlibpath_var_GCJ=no
16325 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16326 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16327 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16329 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16330 if test "$GCC" = yes; then
16331 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16335 # Do we need to explicitly link libc?
16337 case "x$archive_cmds_need_lc_GCJ" in
16339 # Assume -lc should be added
16340 archive_cmds_need_lc_GCJ=yes
16342 if test "$enable_shared" = yes && test "$GCC" = yes; then
16343 case $archive_cmds_GCJ in
16345 # FIXME: we may have to deal with multi-command sequences.
16348 # Test whether the compiler implicitly links with -lc since on some
16349 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16350 # to ld, don't add -lc before -lgcc.
16351 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16352 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16354 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16357 (eval $ac_compile) 2>&5
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); } 2>conftest.err; then
16363 libobjs=conftest.$ac_objext
16365 wl=$lt_prog_compiler_wl_GCJ
16371 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16372 allow_undefined_flag_GCJ=
16373 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16374 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); }
16379 archive_cmds_need_lc_GCJ=no
16381 archive_cmds_need_lc_GCJ=yes
16383 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16385 cat conftest.err 1>&5
16388 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16389 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16396 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16397 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16398 hardcode_action_GCJ=
16399 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16400 test -n "$runpath_var GCJ" || \
16401 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16403 # We can hardcode non-existant directories.
16404 if test "$hardcode_direct_GCJ" != no &&
16405 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16406 # have to relink, otherwise we might link with an installed library
16407 # when we should be linking with a yet-to-be-installed one
16408 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16409 test "$hardcode_minus_L_GCJ" != no; then
16410 # Linking always hardcodes the temporary library directory.
16411 hardcode_action_GCJ=relink
16413 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16414 hardcode_action_GCJ=immediate
16417 # We cannot hardcode anything, or else we can only hardcode existing
16419 hardcode_action_GCJ=unsupported
16421 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16422 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16424 if test "$hardcode_action_GCJ" = relink; then
16425 # Fast installation is not supported
16426 enable_fast_install=no
16427 elif test "$shlibpath_overrides_runpath" = yes ||
16428 test "$enable_shared" = no; then
16429 # Fast installation is not necessary
16430 enable_fast_install=needless
16435 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16436 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16437 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16438 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16439 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16440 echo "$as_me:$LINENO: result: yes" >&5
16441 echo "${ECHO_T}yes" >&6
16443 # FIXME - insert some real tests, host_os isn't really good enough
16446 if test -n "$STRIP" ; then
16447 striplib="$STRIP -x"
16448 echo "$as_me:$LINENO: result: yes" >&5
16449 echo "${ECHO_T}yes" >&6
16451 echo "$as_me:$LINENO: result: no" >&5
16452 echo "${ECHO_T}no" >&6
16456 echo "$as_me:$LINENO: result: no" >&5
16457 echo "${ECHO_T}no" >&6
16462 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16463 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16464 library_names_spec=
16465 libname_spec='lib$name'
16469 postuninstall_cmds=
16473 shlibpath_overrides_runpath=unknown
16475 dynamic_linker="$host_os ld.so"
16476 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16477 if test "$GCC" = yes; then
16478 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16479 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16480 # if the path contains ";" then we assume it to be the separator
16481 # otherwise default to the standard path separator (i.e. ":") - it is
16482 # assumed that no part of a normal pathname contains ";" but that should
16483 # okay in the real world where ";" in dirpaths is itself problematic.
16484 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16486 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16489 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16491 need_lib_prefix=unknown
16492 hardcode_into_libs=no
16494 # when you set need_version to no, make sure it does not cause -set_version
16495 # flags to be left without arguments
16496 need_version=unknown
16501 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16502 shlibpath_var=LIBPATH
16504 # AIX 3 has no versioning support, so we append a major version to the name.
16505 soname_spec='${libname}${release}${shared_ext}$major'
16512 hardcode_into_libs=yes
16513 if test "$host_cpu" = ia64; then
16514 # AIX 5 supports IA64
16515 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16516 shlibpath_var=LD_LIBRARY_PATH
16518 # With GCC up to 2.95.x, collect2 would create an import file
16519 # for dependence libraries. The import file would start with
16520 # the line `#! .'. This would cause the generated library to
16521 # depend on `.', always an invalid library. This was fixed in
16522 # development snapshots of GCC prior to 3.0.
16524 aix4 | aix4.[01] | aix4.[01].*)
16525 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16527 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16530 can_build_shared=no
16534 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16535 # soname into executable. Probably we can add versioning support to
16536 # collect2, so additional links can be useful in future.
16537 if test "$aix_use_runtimelinking" = yes; then
16538 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16539 # instead of lib<name>.a to let people know that these are not
16540 # typical AIX shared libraries.
16541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16543 # We preserve .a as extension for shared libraries through AIX4.2
16544 # and later when we are not doing run time linking.
16545 library_names_spec='${libname}${release}.a $libname.a'
16546 soname_spec='${libname}${release}${shared_ext}$major'
16548 shlibpath_var=LIBPATH
16553 library_names_spec='$libname.ixlibrary $libname.a'
16554 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16555 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
16559 library_names_spec='${libname}${shared_ext}'
16560 dynamic_linker="$host_os ld.so"
16561 shlibpath_var=LIBRARY_PATH
16567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16568 soname_spec='${libname}${release}${shared_ext}$major'
16569 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16570 shlibpath_var=LD_LIBRARY_PATH
16571 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16572 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16573 # the default ld.so.conf also contains /usr/contrib/lib and
16574 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16575 # libtool to hard-code these into programs
16578 cygwin* | mingw* | pw32*)
16579 version_type=windows
16584 case $GCC,$host_os in
16585 yes,cygwin* | yes,mingw* | yes,pw32*)
16586 library_names_spec='$libname.dll.a'
16587 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16588 postinstall_cmds='base_file=`basename \${file}`~
16589 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16590 dldir=$destdir/`dirname \$dlpath`~
16591 test -d \$dldir || mkdir -p \$dldir~
16592 $install_prog $dir/$dlname \$dldir/$dlname'
16593 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16594 dlpath=$dir/\$dldll~
16596 shlibpath_overrides_runpath=yes
16600 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16601 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16602 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16605 # MinGW DLLs use traditional 'lib' prefix
16606 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16607 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16608 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16609 # It is most probably a Windows format PATH printed by
16610 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16611 # path with ; separators, and with drive letters. We can handle the
16612 # drive letters (cygwin fileutils understands them), so leave them,
16613 # especially as we might pass files found there to a mingw objdump,
16614 # which wouldn't understand a cygwinified path. Ahh.
16615 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16617 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16621 # pw32 DLLs use 'pw' prefix rather than 'lib'
16622 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16628 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16631 dynamic_linker='Win32 ld.exe'
16632 # FIXME: first we should search . and the directory the executable is in
16636 darwin* | rhapsody*)
16637 dynamic_linker="$host_os dyld"
16638 version_type=darwin
16641 # FIXME: Relying on posixy $() will cause problems for
16642 # cross-compilation, but unfortunately the echo tests do not
16643 # yet detect zsh echo's removal of \ escapes.
16644 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16645 soname_spec='${libname}${release}${major}$shared_ext'
16646 shlibpath_overrides_runpath=yes
16647 shlibpath_var=DYLD_LIBRARY_PATH
16648 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16649 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16650 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16651 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16653 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16661 soname_spec='${libname}${release}${shared_ext}$major'
16662 shlibpath_var=LD_LIBRARY_PATH
16670 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16671 version_type=freebsd-$objformat
16672 case $version_type in
16674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16679 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16683 shlibpath_var=LD_LIBRARY_PATH
16686 shlibpath_overrides_runpath=yes
16688 freebsd3.01* | freebsdelf3.01*)
16689 shlibpath_overrides_runpath=yes
16690 hardcode_into_libs=yes
16693 shlibpath_overrides_runpath=no
16694 hardcode_into_libs=yes
16703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16704 soname_spec='${libname}${release}${shared_ext}$major'
16705 shlibpath_var=LD_LIBRARY_PATH
16706 hardcode_into_libs=yes
16709 hpux9* | hpux10* | hpux11*)
16710 # Give a soname corresponding to the major version so that dld.sl refuses to
16711 # link against other versions.
16715 case "$host_cpu" in
16718 hardcode_into_libs=yes
16719 dynamic_linker="$host_os dld.so"
16720 shlibpath_var=LD_LIBRARY_PATH
16721 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16723 soname_spec='${libname}${release}${shared_ext}$major'
16724 if test "X$HPUX_IA64_MODE" = X32; then
16725 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16727 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16729 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16733 hardcode_into_libs=yes
16734 dynamic_linker="$host_os dld.sl"
16735 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16736 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16738 soname_spec='${libname}${release}${shared_ext}$major'
16739 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16740 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16744 dynamic_linker="$host_os dld.sl"
16745 shlibpath_var=SHLIB_PATH
16746 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16748 soname_spec='${libname}${release}${shared_ext}$major'
16751 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16752 postinstall_cmds='chmod 555 $lib'
16755 irix5* | irix6* | nonstopux*)
16757 nonstopux*) version_type=nonstopux ;;
16759 if test "$lt_cv_prog_gnu_ld" = yes; then
16767 soname_spec='${libname}${release}${shared_ext}$major'
16768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16770 irix5* | nonstopux*)
16771 libsuff= shlibsuff=
16774 case $LD in # libtool.m4 will add one of these switches to LD
16775 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16776 libsuff= shlibsuff= libmagic=32-bit;;
16777 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16778 libsuff=32 shlibsuff=N32 libmagic=N32;;
16779 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16780 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16781 *) libsuff= shlibsuff= libmagic=never-match;;
16785 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16786 shlibpath_overrides_runpath=no
16787 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16788 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16789 hardcode_into_libs=yes
16792 # No shared lib support for Linux oldld, aout, or coff.
16793 linux*oldld* | linux*aout* | linux*coff*)
16797 # This must be Linux ELF.
16802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16803 soname_spec='${libname}${release}${shared_ext}$major'
16804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16805 shlibpath_var=LD_LIBRARY_PATH
16806 shlibpath_overrides_runpath=no
16807 # This implies no fast_install, which is unacceptable.
16808 # Some rework will be needed to allow for fast_install
16809 # before this can be enabled.
16810 hardcode_into_libs=yes
16812 # We used to test for /lib/ld.so.1 and disable shared libraries on
16813 # powerpc, because MkLinux only supported shared libraries with the
16814 # GNU dynamic linker. Since this was broken with cross compilers,
16815 # most powerpc-linux boxes support dynamic linking these days and
16816 # people can always --disable-shared, the test was removed, and we
16817 # assume the GNU/Linux dynamic linker is in use.
16818 dynamic_linker='GNU/Linux ld.so'
16825 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16827 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16828 dynamic_linker='NetBSD (a.out) ld.so'
16830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16831 soname_spec='${libname}${release}${shared_ext}$major'
16832 dynamic_linker='NetBSD ld.elf_so'
16834 shlibpath_var=LD_LIBRARY_PATH
16835 shlibpath_overrides_runpath=yes
16836 hardcode_into_libs=yes
16841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16842 shlibpath_var=LD_LIBRARY_PATH
16843 shlibpath_overrides_runpath=yes
16850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16851 soname_spec='${libname}${release}${shared_ext}$major'
16852 shlibpath_var=LD_LIBRARY_PATH
16853 shlibpath_overrides_runpath=yes
16860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16861 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16862 shlibpath_var=LD_LIBRARY_PATH
16863 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16865 openbsd2.[89] | openbsd2.[89].*)
16866 shlibpath_overrides_runpath=no
16869 shlibpath_overrides_runpath=yes
16873 shlibpath_overrides_runpath=yes
16878 libname_spec='$name'
16881 library_names_spec='$libname${shared_ext} $libname.a'
16882 dynamic_linker='OS/2 ld.exe'
16883 shlibpath_var=LIBPATH
16886 osf3* | osf4* | osf5*)
16890 soname_spec='${libname}${release}${shared_ext}$major'
16891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16892 shlibpath_var=LD_LIBRARY_PATH
16893 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16894 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16899 soname_spec='${libname}${release}${shared_ext}$major'
16900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16901 shlibpath_var=LD_LIBRARY_PATH
16908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16909 soname_spec='${libname}${release}${shared_ext}$major'
16910 shlibpath_var=LD_LIBRARY_PATH
16911 shlibpath_overrides_runpath=yes
16912 hardcode_into_libs=yes
16913 # ldd complains unless libraries are executable
16914 postinstall_cmds='chmod +x $lib'
16919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16920 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16921 shlibpath_var=LD_LIBRARY_PATH
16922 shlibpath_overrides_runpath=yes
16923 if test "$with_gnu_ld" = yes; then
16929 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16932 soname_spec='${libname}${release}${shared_ext}$major'
16933 shlibpath_var=LD_LIBRARY_PATH
16934 case $host_vendor in
16936 shlibpath_overrides_runpath=no
16938 export_dynamic_flag_spec='${wl}-Blargedynsym'
16939 runpath_var=LD_RUN_PATH
16947 shlibpath_overrides_runpath=no
16948 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16954 if test -d /usr/nec ;then
16956 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16957 soname_spec='$libname${shared_ext}.$major'
16958 shlibpath_var=LD_LIBRARY_PATH
16964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16965 soname_spec='${libname}${release}${shared_ext}$major'
16966 shlibpath_var=LD_LIBRARY_PATH
16973 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16974 echo "${ECHO_T}$dynamic_linker" >&6
16975 test "$dynamic_linker" = no && can_build_shared=no
16977 if test "x$enable_dlopen" != xyes; then
16978 enable_dlopen=unknown
16979 enable_dlopen_self=unknown
16980 enable_dlopen_self_static=unknown
16987 lt_cv_dlopen="load_add_on"
16989 lt_cv_dlopen_self=yes
16993 lt_cv_dlopen="LoadLibrary"
16998 lt_cv_dlopen="dlopen"
17003 # if libdl is installed we need to link against it
17004 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17005 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17006 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17007 echo $ECHO_N "(cached) $ECHO_C" >&6
17009 ac_check_lib_save_LIBS=$LIBS
17011 cat >conftest.$ac_ext <<_ACEOF
17014 cat confdefs.h >>conftest.$ac_ext
17015 cat >>conftest.$ac_ext <<_ACEOF
17016 /* end confdefs.h. */
17018 /* Override any gcc2 internal prototype to avoid an error. */
17022 /* We use char because int might match the return type of a gcc2
17023 builtin and then its argument prototype would still apply. */
17033 rm -f conftest.$ac_objext conftest$ac_exeext
17034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17035 (eval $ac_link) 2>conftest.er1
17037 grep -v '^ *+' conftest.er1 >conftest.err
17039 cat conftest.err >&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); } &&
17042 { ac_try='test -z "$ac_c_werror_flag"
17043 || test ! -s conftest.err'
17044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17045 (eval $ac_try) 2>&5
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); }; } &&
17049 { ac_try='test -s conftest$ac_exeext'
17050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17051 (eval $ac_try) 2>&5
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); }; }; then
17055 ac_cv_lib_dl_dlopen=yes
17057 echo "$as_me: failed program was:" >&5
17058 sed 's/^/| /' conftest.$ac_ext >&5
17060 ac_cv_lib_dl_dlopen=no
17062 rm -f conftest.err conftest.$ac_objext \
17063 conftest$ac_exeext conftest.$ac_ext
17064 LIBS=$ac_check_lib_save_LIBS
17066 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17067 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17068 if test $ac_cv_lib_dl_dlopen = yes; then
17069 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17072 lt_cv_dlopen="dyld"
17074 lt_cv_dlopen_self=yes
17081 echo "$as_me:$LINENO: checking for shl_load" >&5
17082 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17083 if test "${ac_cv_func_shl_load+set}" = set; then
17084 echo $ECHO_N "(cached) $ECHO_C" >&6
17086 cat >conftest.$ac_ext <<_ACEOF
17089 cat confdefs.h >>conftest.$ac_ext
17090 cat >>conftest.$ac_ext <<_ACEOF
17091 /* end confdefs.h. */
17092 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17094 #define shl_load innocuous_shl_load
17096 /* System header to define __stub macros and hopefully few prototypes,
17097 which can conflict with char shl_load (); below.
17098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17099 <limits.h> exists even on freestanding compilers. */
17102 # include <limits.h>
17104 # include <assert.h>
17109 /* Override any gcc2 internal prototype to avoid an error. */
17114 /* We use char because int might match the return type of a gcc2
17115 builtin and then its argument prototype would still apply. */
17117 /* The GNU C library defines this for functions which it implements
17118 to always fail with ENOSYS. Some functions are actually named
17119 something starting with __ and the normal name is an alias. */
17120 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17123 char (*f) () = shl_load;
17132 return f != shl_load;
17137 rm -f conftest.$ac_objext conftest$ac_exeext
17138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17139 (eval $ac_link) 2>conftest.er1
17141 grep -v '^ *+' conftest.er1 >conftest.err
17143 cat conftest.err >&5
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); } &&
17146 { ac_try='test -z "$ac_c_werror_flag"
17147 || test ! -s conftest.err'
17148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17149 (eval $ac_try) 2>&5
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); }; } &&
17153 { ac_try='test -s conftest$ac_exeext'
17154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17155 (eval $ac_try) 2>&5
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); }; }; then
17159 ac_cv_func_shl_load=yes
17161 echo "$as_me: failed program was:" >&5
17162 sed 's/^/| /' conftest.$ac_ext >&5
17164 ac_cv_func_shl_load=no
17166 rm -f conftest.err conftest.$ac_objext \
17167 conftest$ac_exeext conftest.$ac_ext
17169 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17170 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17171 if test $ac_cv_func_shl_load = yes; then
17172 lt_cv_dlopen="shl_load"
17174 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17175 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17176 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17177 echo $ECHO_N "(cached) $ECHO_C" >&6
17179 ac_check_lib_save_LIBS=$LIBS
17181 cat >conftest.$ac_ext <<_ACEOF
17184 cat confdefs.h >>conftest.$ac_ext
17185 cat >>conftest.$ac_ext <<_ACEOF
17186 /* end confdefs.h. */
17188 /* Override any gcc2 internal prototype to avoid an error. */
17192 /* We use char because int might match the return type of a gcc2
17193 builtin and then its argument prototype would still apply. */
17203 rm -f conftest.$ac_objext conftest$ac_exeext
17204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17205 (eval $ac_link) 2>conftest.er1
17207 grep -v '^ *+' conftest.er1 >conftest.err
17209 cat conftest.err >&5
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); } &&
17212 { ac_try='test -z "$ac_c_werror_flag"
17213 || test ! -s conftest.err'
17214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17215 (eval $ac_try) 2>&5
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); }; } &&
17219 { ac_try='test -s conftest$ac_exeext'
17220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17221 (eval $ac_try) 2>&5
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); }; }; then
17225 ac_cv_lib_dld_shl_load=yes
17227 echo "$as_me: failed program was:" >&5
17228 sed 's/^/| /' conftest.$ac_ext >&5
17230 ac_cv_lib_dld_shl_load=no
17232 rm -f conftest.err conftest.$ac_objext \
17233 conftest$ac_exeext conftest.$ac_ext
17234 LIBS=$ac_check_lib_save_LIBS
17236 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17237 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17238 if test $ac_cv_lib_dld_shl_load = yes; then
17239 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17241 echo "$as_me:$LINENO: checking for dlopen" >&5
17242 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17243 if test "${ac_cv_func_dlopen+set}" = set; then
17244 echo $ECHO_N "(cached) $ECHO_C" >&6
17246 cat >conftest.$ac_ext <<_ACEOF
17249 cat confdefs.h >>conftest.$ac_ext
17250 cat >>conftest.$ac_ext <<_ACEOF
17251 /* end confdefs.h. */
17252 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17254 #define dlopen innocuous_dlopen
17256 /* System header to define __stub macros and hopefully few prototypes,
17257 which can conflict with char dlopen (); below.
17258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17259 <limits.h> exists even on freestanding compilers. */
17262 # include <limits.h>
17264 # include <assert.h>
17269 /* Override any gcc2 internal prototype to avoid an error. */
17274 /* We use char because int might match the return type of a gcc2
17275 builtin and then its argument prototype would still apply. */
17277 /* The GNU C library defines this for functions which it implements
17278 to always fail with ENOSYS. Some functions are actually named
17279 something starting with __ and the normal name is an alias. */
17280 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17283 char (*f) () = dlopen;
17292 return f != dlopen;
17297 rm -f conftest.$ac_objext conftest$ac_exeext
17298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17299 (eval $ac_link) 2>conftest.er1
17301 grep -v '^ *+' conftest.er1 >conftest.err
17303 cat conftest.err >&5
17304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); } &&
17306 { ac_try='test -z "$ac_c_werror_flag"
17307 || test ! -s conftest.err'
17308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17309 (eval $ac_try) 2>&5
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); }; } &&
17313 { ac_try='test -s conftest$ac_exeext'
17314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17315 (eval $ac_try) 2>&5
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); }; }; then
17319 ac_cv_func_dlopen=yes
17321 echo "$as_me: failed program was:" >&5
17322 sed 's/^/| /' conftest.$ac_ext >&5
17324 ac_cv_func_dlopen=no
17326 rm -f conftest.err conftest.$ac_objext \
17327 conftest$ac_exeext conftest.$ac_ext
17329 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17330 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17331 if test $ac_cv_func_dlopen = yes; then
17332 lt_cv_dlopen="dlopen"
17334 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17335 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17336 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17337 echo $ECHO_N "(cached) $ECHO_C" >&6
17339 ac_check_lib_save_LIBS=$LIBS
17341 cat >conftest.$ac_ext <<_ACEOF
17344 cat confdefs.h >>conftest.$ac_ext
17345 cat >>conftest.$ac_ext <<_ACEOF
17346 /* end confdefs.h. */
17348 /* Override any gcc2 internal prototype to avoid an error. */
17352 /* We use char because int might match the return type of a gcc2
17353 builtin and then its argument prototype would still apply. */
17363 rm -f conftest.$ac_objext conftest$ac_exeext
17364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17365 (eval $ac_link) 2>conftest.er1
17367 grep -v '^ *+' conftest.er1 >conftest.err
17369 cat conftest.err >&5
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); } &&
17372 { ac_try='test -z "$ac_c_werror_flag"
17373 || test ! -s conftest.err'
17374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17375 (eval $ac_try) 2>&5
17377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378 (exit $ac_status); }; } &&
17379 { ac_try='test -s conftest$ac_exeext'
17380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17381 (eval $ac_try) 2>&5
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); }; }; then
17385 ac_cv_lib_dl_dlopen=yes
17387 echo "$as_me: failed program was:" >&5
17388 sed 's/^/| /' conftest.$ac_ext >&5
17390 ac_cv_lib_dl_dlopen=no
17392 rm -f conftest.err conftest.$ac_objext \
17393 conftest$ac_exeext conftest.$ac_ext
17394 LIBS=$ac_check_lib_save_LIBS
17396 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17397 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17398 if test $ac_cv_lib_dl_dlopen = yes; then
17399 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17401 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17402 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17403 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17404 echo $ECHO_N "(cached) $ECHO_C" >&6
17406 ac_check_lib_save_LIBS=$LIBS
17407 LIBS="-lsvld $LIBS"
17408 cat >conftest.$ac_ext <<_ACEOF
17411 cat confdefs.h >>conftest.$ac_ext
17412 cat >>conftest.$ac_ext <<_ACEOF
17413 /* end confdefs.h. */
17415 /* Override any gcc2 internal prototype to avoid an error. */
17419 /* We use char because int might match the return type of a gcc2
17420 builtin and then its argument prototype would still apply. */
17430 rm -f conftest.$ac_objext conftest$ac_exeext
17431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17432 (eval $ac_link) 2>conftest.er1
17434 grep -v '^ *+' conftest.er1 >conftest.err
17436 cat conftest.err >&5
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); } &&
17439 { ac_try='test -z "$ac_c_werror_flag"
17440 || test ! -s conftest.err'
17441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17442 (eval $ac_try) 2>&5
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); }; } &&
17446 { ac_try='test -s conftest$ac_exeext'
17447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17448 (eval $ac_try) 2>&5
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); }; }; then
17452 ac_cv_lib_svld_dlopen=yes
17454 echo "$as_me: failed program was:" >&5
17455 sed 's/^/| /' conftest.$ac_ext >&5
17457 ac_cv_lib_svld_dlopen=no
17459 rm -f conftest.err conftest.$ac_objext \
17460 conftest$ac_exeext conftest.$ac_ext
17461 LIBS=$ac_check_lib_save_LIBS
17463 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17464 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17465 if test $ac_cv_lib_svld_dlopen = yes; then
17466 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17468 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17469 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17470 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17471 echo $ECHO_N "(cached) $ECHO_C" >&6
17473 ac_check_lib_save_LIBS=$LIBS
17475 cat >conftest.$ac_ext <<_ACEOF
17478 cat confdefs.h >>conftest.$ac_ext
17479 cat >>conftest.$ac_ext <<_ACEOF
17480 /* end confdefs.h. */
17482 /* Override any gcc2 internal prototype to avoid an error. */
17486 /* We use char because int might match the return type of a gcc2
17487 builtin and then its argument prototype would still apply. */
17497 rm -f conftest.$ac_objext conftest$ac_exeext
17498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17499 (eval $ac_link) 2>conftest.er1
17501 grep -v '^ *+' conftest.er1 >conftest.err
17503 cat conftest.err >&5
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); } &&
17506 { ac_try='test -z "$ac_c_werror_flag"
17507 || test ! -s conftest.err'
17508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509 (eval $ac_try) 2>&5
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }; } &&
17513 { ac_try='test -s conftest$ac_exeext'
17514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17515 (eval $ac_try) 2>&5
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); }; }; then
17519 ac_cv_lib_dld_dld_link=yes
17521 echo "$as_me: failed program was:" >&5
17522 sed 's/^/| /' conftest.$ac_ext >&5
17524 ac_cv_lib_dld_dld_link=no
17526 rm -f conftest.err conftest.$ac_objext \
17527 conftest$ac_exeext conftest.$ac_ext
17528 LIBS=$ac_check_lib_save_LIBS
17530 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17531 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17532 if test $ac_cv_lib_dld_dld_link = yes; then
17533 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17554 if test "x$lt_cv_dlopen" != xno; then
17560 case $lt_cv_dlopen in
17562 save_CPPFLAGS="$CPPFLAGS"
17563 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17565 save_LDFLAGS="$LDFLAGS"
17566 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17569 LIBS="$lt_cv_dlopen_libs $LIBS"
17571 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17572 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17573 if test "${lt_cv_dlopen_self+set}" = set; then
17574 echo $ECHO_N "(cached) $ECHO_C" >&6
17576 if test "$cross_compiling" = yes; then :
17577 lt_cv_dlopen_self=cross
17579 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17580 lt_status=$lt_dlunknown
17581 cat > conftest.$ac_ext <<EOF
17582 #line 17582 "configure"
17583 #include "confdefs.h"
17592 # define LT_DLGLOBAL RTLD_GLOBAL
17595 # define LT_DLGLOBAL DL_GLOBAL
17597 # define LT_DLGLOBAL 0
17601 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17602 find out it does not work in some platform. */
17603 #ifndef LT_DLLAZY_OR_NOW
17605 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17608 # define LT_DLLAZY_OR_NOW DL_LAZY
17611 # define LT_DLLAZY_OR_NOW RTLD_NOW
17614 # define LT_DLLAZY_OR_NOW DL_NOW
17616 # define LT_DLLAZY_OR_NOW 0
17624 extern "C" void exit (int);
17627 void fnord() { int i=42;}
17630 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17631 int status = $lt_dlunknown;
17635 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17636 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17637 /* dlclose (self); */
17643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17644 (eval $ac_link) 2>&5
17646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17648 (./conftest; exit; ) 2>/dev/null
17650 case x$lt_status in
17651 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17652 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17653 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17656 # compilation failed
17657 lt_cv_dlopen_self=no
17664 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17665 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17667 if test "x$lt_cv_dlopen_self" = xyes; then
17668 LDFLAGS="$LDFLAGS $link_static_flag"
17669 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17670 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17671 if test "${lt_cv_dlopen_self_static+set}" = set; then
17672 echo $ECHO_N "(cached) $ECHO_C" >&6
17674 if test "$cross_compiling" = yes; then :
17675 lt_cv_dlopen_self_static=cross
17677 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17678 lt_status=$lt_dlunknown
17679 cat > conftest.$ac_ext <<EOF
17680 #line 17680 "configure"
17681 #include "confdefs.h"
17690 # define LT_DLGLOBAL RTLD_GLOBAL
17693 # define LT_DLGLOBAL DL_GLOBAL
17695 # define LT_DLGLOBAL 0
17699 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17700 find out it does not work in some platform. */
17701 #ifndef LT_DLLAZY_OR_NOW
17703 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17706 # define LT_DLLAZY_OR_NOW DL_LAZY
17709 # define LT_DLLAZY_OR_NOW RTLD_NOW
17712 # define LT_DLLAZY_OR_NOW DL_NOW
17714 # define LT_DLLAZY_OR_NOW 0
17722 extern "C" void exit (int);
17725 void fnord() { int i=42;}
17728 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17729 int status = $lt_dlunknown;
17733 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17734 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17735 /* dlclose (self); */
17741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17742 (eval $ac_link) 2>&5
17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17746 (./conftest; exit; ) 2>/dev/null
17748 case x$lt_status in
17749 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17750 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17751 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17754 # compilation failed
17755 lt_cv_dlopen_self_static=no
17762 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17763 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17766 CPPFLAGS="$save_CPPFLAGS"
17767 LDFLAGS="$save_LDFLAGS"
17772 case $lt_cv_dlopen_self in
17773 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17774 *) enable_dlopen_self=unknown ;;
17777 case $lt_cv_dlopen_self_static in
17778 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17779 *) enable_dlopen_self_static=unknown ;;
17784 # The else clause should only fire when bootstrapping the
17785 # libtool distribution, otherwise you forgot to ship ltmain.sh
17786 # with your package, and you will get complaints that there are
17787 # no rules to generate ltmain.sh.
17788 if test -f "$ltmain"; then
17789 # See if we are running on zsh, and set the options which allow our commands through
17790 # without removal of \ escapes.
17791 if test -n "${ZSH_VERSION+set}" ; then
17792 setopt NO_GLOB_SUBST
17794 # Now quote all the things that may contain metacharacters while being
17795 # careful not to overquote the AC_SUBSTed values. We take copies of the
17796 # variables and quote the copies for generation of the libtool script.
17797 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17798 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17799 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17800 deplibs_check_method reload_flag reload_cmds need_locks \
17801 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17802 lt_cv_sys_global_symbol_to_c_name_address \
17803 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17804 old_postinstall_cmds old_postuninstall_cmds \
17808 lt_prog_compiler_wl_GCJ \
17809 lt_prog_compiler_pic_GCJ \
17810 lt_prog_compiler_static_GCJ \
17811 lt_prog_compiler_no_builtin_flag_GCJ \
17812 export_dynamic_flag_spec_GCJ \
17813 thread_safe_flag_spec_GCJ \
17814 whole_archive_flag_spec_GCJ \
17815 enable_shared_with_static_runtimes_GCJ \
17816 old_archive_cmds_GCJ \
17817 old_archive_from_new_cmds_GCJ \
17818 predep_objects_GCJ \
17819 postdep_objects_GCJ \
17822 compiler_lib_search_path_GCJ \
17824 archive_expsym_cmds_GCJ \
17825 postinstall_cmds_GCJ \
17826 postuninstall_cmds_GCJ \
17827 old_archive_from_expsyms_cmds_GCJ \
17828 allow_undefined_flag_GCJ \
17829 no_undefined_flag_GCJ \
17830 export_symbols_cmds_GCJ \
17831 hardcode_libdir_flag_spec_GCJ \
17832 hardcode_libdir_flag_spec_ld_GCJ \
17833 hardcode_libdir_separator_GCJ \
17834 hardcode_automatic_GCJ \
17836 module_expsym_cmds_GCJ \
17837 lt_cv_prog_compiler_c_o_GCJ \
17838 exclude_expsyms_GCJ \
17839 include_expsyms_GCJ; do
17842 old_archive_cmds_GCJ | \
17843 old_archive_from_new_cmds_GCJ | \
17844 archive_cmds_GCJ | \
17845 archive_expsym_cmds_GCJ | \
17846 module_cmds_GCJ | \
17847 module_expsym_cmds_GCJ | \
17848 old_archive_from_expsyms_cmds_GCJ | \
17849 export_symbols_cmds_GCJ | \
17850 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17851 postinstall_cmds | postuninstall_cmds | \
17852 old_postinstall_cmds | old_postuninstall_cmds | \
17853 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17854 # Double-quote double-evaled strings.
17855 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17858 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17864 *'\$0 --fallback-echo"')
17865 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17871 cat <<__EOF__ >> "$cfgfile"
17872 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17874 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17876 # Shell to use when invoking shell scripts.
17879 # Whether or not to build shared libraries.
17880 build_libtool_libs=$enable_shared
17882 # Whether or not to build static libraries.
17883 build_old_libs=$enable_static
17885 # Whether or not to add -lc for building shared libraries.
17886 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17888 # Whether or not to disallow shared libs when runtime libs are static
17889 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17891 # Whether or not to optimize for fast installation.
17892 fast_install=$enable_fast_install
17895 host_alias=$host_alias
17898 # An echo program that does not interpret backslashes.
17903 AR_FLAGS=$lt_AR_FLAGS
17908 # A language-specific compiler.
17909 CC=$lt_compiler_GCJ
17911 # Is the compiler the GNU C compiler?
17917 # The linker used to build libraries.
17920 # Whether we need hard or soft links.
17923 # A BSD-compatible nm program.
17926 # A symbol stripping program
17929 # Used to examine libraries when file_magic_cmd begins "file"
17930 MAGIC_CMD=$MAGIC_CMD
17932 # Used on cygwin: DLL creation program.
17935 # Used on cygwin: object dumper.
17938 # Used on cygwin: assembler.
17941 # The name of the directory that contains temporary libtool files.
17944 # How to create reloadable object files.
17945 reload_flag=$lt_reload_flag
17946 reload_cmds=$lt_reload_cmds
17948 # How to pass a linker flag through the compiler.
17949 wl=$lt_lt_prog_compiler_wl_GCJ
17951 # Object file suffix (normally "o").
17952 objext="$ac_objext"
17954 # Old archive suffix (normally "a").
17957 # Shared library suffix (normally ".so").
17960 # Executable file suffix (normally "").
17963 # Additional compiler flags for building library objects.
17964 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17967 # What is the maximum length of a command?
17968 max_cmd_len=$lt_cv_sys_max_cmd_len
17970 # Does compiler simultaneously support -c and -o options?
17971 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17973 # Must we lock files when doing compilation ?
17974 need_locks=$lt_need_locks
17976 # Do we need the lib prefix for modules?
17977 need_lib_prefix=$need_lib_prefix
17979 # Do we need a version for libraries?
17980 need_version=$need_version
17982 # Whether dlopen is supported.
17983 dlopen_support=$enable_dlopen
17985 # Whether dlopen of programs is supported.
17986 dlopen_self=$enable_dlopen_self
17988 # Whether dlopen of statically linked programs is supported.
17989 dlopen_self_static=$enable_dlopen_self_static
17991 # Compiler flag to prevent dynamic linking.
17992 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17994 # Compiler flag to turn off builtin functions.
17995 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17997 # Compiler flag to allow reflexive dlopens.
17998 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18000 # Compiler flag to generate shared objects directly from archives.
18001 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18003 # Compiler flag to generate thread-safe objects.
18004 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18006 # Library versioning type.
18007 version_type=$version_type
18009 # Format of library name prefix.
18010 libname_spec=$lt_libname_spec
18012 # List of archive names. First name is the real one, the rest are links.
18013 # The last name is the one that the linker finds with -lNAME.
18014 library_names_spec=$lt_library_names_spec
18016 # The coded name of the library, if different from the real name.
18017 soname_spec=$lt_soname_spec
18019 # Commands used to build and install an old-style archive.
18021 old_archive_cmds=$lt_old_archive_cmds_GCJ
18022 old_postinstall_cmds=$lt_old_postinstall_cmds
18023 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18025 # Create an old-style archive from a shared archive.
18026 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18028 # Create a temporary old-style archive to link instead of a shared archive.
18029 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18031 # Commands used to build and install a shared archive.
18032 archive_cmds=$lt_archive_cmds_GCJ
18033 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18034 postinstall_cmds=$lt_postinstall_cmds
18035 postuninstall_cmds=$lt_postuninstall_cmds
18037 # Commands used to build a loadable module (assumed same as above if empty)
18038 module_cmds=$lt_module_cmds_GCJ
18039 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18041 # Commands to strip libraries.
18042 old_striplib=$lt_old_striplib
18043 striplib=$lt_striplib
18045 # Dependencies to place before the objects being linked to create a
18047 predep_objects=$lt_predep_objects_GCJ
18049 # Dependencies to place after the objects being linked to create a
18051 postdep_objects=$lt_postdep_objects_GCJ
18053 # Dependencies to place before the objects being linked to create a
18055 predeps=$lt_predeps_GCJ
18057 # Dependencies to place after the objects being linked to create a
18059 postdeps=$lt_postdeps_GCJ
18061 # The library search path used internally by the compiler when linking
18062 # a shared library.
18063 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18065 # Method to check whether dependent libraries are shared objects.
18066 deplibs_check_method=$lt_deplibs_check_method
18068 # Command to use when deplibs_check_method == file_magic.
18069 file_magic_cmd=$lt_file_magic_cmd
18071 # Flag that allows shared libraries with undefined symbols to be built.
18072 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18074 # Flag that forces no undefined symbols.
18075 no_undefined_flag=$lt_no_undefined_flag_GCJ
18077 # Commands used to finish a libtool library installation in a directory.
18078 finish_cmds=$lt_finish_cmds
18080 # Same as above, but a single script fragment to be evaled but not shown.
18081 finish_eval=$lt_finish_eval
18083 # Take the output of nm and produce a listing of raw symbols and C names.
18084 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18086 # Transform the output of nm in a proper C declaration
18087 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18089 # Transform the output of nm in a C name address pair
18090 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18092 # This is the shared library runtime path variable.
18093 runpath_var=$runpath_var
18095 # This is the shared library path variable.
18096 shlibpath_var=$shlibpath_var
18098 # Is shlibpath searched before the hard-coded library search path?
18099 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18101 # How to hardcode a shared library path into an executable.
18102 hardcode_action=$hardcode_action_GCJ
18104 # Whether we should hardcode library paths into libraries.
18105 hardcode_into_libs=$hardcode_into_libs
18107 # Flag to hardcode \$libdir into a binary during linking.
18108 # This must work even if \$libdir does not exist.
18109 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18111 # If ld is used when linking, flag to hardcode \$libdir into
18112 # a binary during linking. This must work even if \$libdir does
18114 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18116 # Whether we need a single -rpath flag with a separated argument.
18117 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18119 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18120 # resulting binary.
18121 hardcode_direct=$hardcode_direct_GCJ
18123 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18124 # resulting binary.
18125 hardcode_minus_L=$hardcode_minus_L_GCJ
18127 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18128 # the resulting binary.
18129 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18131 # Set to yes if building a shared library automatically hardcodes DIR into the library
18132 # and all subsequent libraries and executables linked against it.
18133 hardcode_automatic=$hardcode_automatic_GCJ
18135 # Variables whose values should be saved in libtool wrapper scripts and
18136 # restored at relink time.
18137 variables_saved_for_relink="$variables_saved_for_relink"
18139 # Whether libtool must link a program against all its dependency libraries.
18140 link_all_deplibs=$link_all_deplibs_GCJ
18142 # Compile-time system search path for libraries
18143 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18145 # Run-time system search path for libraries
18146 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18148 # Fix the shell variable \$srcfile for the compiler.
18149 fix_srcfile_path="$fix_srcfile_path_GCJ"
18151 # Set to yes if exported symbols are required.
18152 always_export_symbols=$always_export_symbols_GCJ
18154 # The commands to list exported symbols.
18155 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18157 # The commands to extract the exported symbol list from a shared archive.
18158 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18160 # Symbols that should not be listed in the preloaded symbols.
18161 exclude_expsyms=$lt_exclude_expsyms_GCJ
18163 # Symbols that must always be exported.
18164 include_expsyms=$lt_include_expsyms_GCJ
18166 # ### END LIBTOOL TAG CONFIG: $tagname
18172 # If there is no Makefile yet, we rely on a make rule to execute
18173 # `config.status --recheck' to rerun these tests and create the
18174 # libtool script then.
18175 test -f Makefile && make "$ltmain"
18180 ac_cpp='$CPP $CPPFLAGS'
18181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18196 # Source file extension for RC test sources.
18199 # Object file extension for compiled RC test sources.
18203 # Code to be used in simple compile tests
18204 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18206 # Code to be used in simple link tests
18207 lt_simple_link_test_code="$lt_simple_compile_test_code"
18209 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18211 # If no C compiler was specified, use CC.
18214 # Allow CC to be a program name with arguments.
18218 # Allow CC to be a program name with arguments.
18223 lt_cv_prog_compiler_c_o_RC=yes
18225 # The else clause should only fire when bootstrapping the
18226 # libtool distribution, otherwise you forgot to ship ltmain.sh
18227 # with your package, and you will get complaints that there are
18228 # no rules to generate ltmain.sh.
18229 if test -f "$ltmain"; then
18230 # See if we are running on zsh, and set the options which allow our commands through
18231 # without removal of \ escapes.
18232 if test -n "${ZSH_VERSION+set}" ; then
18233 setopt NO_GLOB_SUBST
18235 # Now quote all the things that may contain metacharacters while being
18236 # careful not to overquote the AC_SUBSTed values. We take copies of the
18237 # variables and quote the copies for generation of the libtool script.
18238 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18239 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18240 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18241 deplibs_check_method reload_flag reload_cmds need_locks \
18242 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18243 lt_cv_sys_global_symbol_to_c_name_address \
18244 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18245 old_postinstall_cmds old_postuninstall_cmds \
18249 lt_prog_compiler_wl_RC \
18250 lt_prog_compiler_pic_RC \
18251 lt_prog_compiler_static_RC \
18252 lt_prog_compiler_no_builtin_flag_RC \
18253 export_dynamic_flag_spec_RC \
18254 thread_safe_flag_spec_RC \
18255 whole_archive_flag_spec_RC \
18256 enable_shared_with_static_runtimes_RC \
18257 old_archive_cmds_RC \
18258 old_archive_from_new_cmds_RC \
18259 predep_objects_RC \
18260 postdep_objects_RC \
18263 compiler_lib_search_path_RC \
18265 archive_expsym_cmds_RC \
18266 postinstall_cmds_RC \
18267 postuninstall_cmds_RC \
18268 old_archive_from_expsyms_cmds_RC \
18269 allow_undefined_flag_RC \
18270 no_undefined_flag_RC \
18271 export_symbols_cmds_RC \
18272 hardcode_libdir_flag_spec_RC \
18273 hardcode_libdir_flag_spec_ld_RC \
18274 hardcode_libdir_separator_RC \
18275 hardcode_automatic_RC \
18277 module_expsym_cmds_RC \
18278 lt_cv_prog_compiler_c_o_RC \
18279 exclude_expsyms_RC \
18280 include_expsyms_RC; do
18283 old_archive_cmds_RC | \
18284 old_archive_from_new_cmds_RC | \
18285 archive_cmds_RC | \
18286 archive_expsym_cmds_RC | \
18288 module_expsym_cmds_RC | \
18289 old_archive_from_expsyms_cmds_RC | \
18290 export_symbols_cmds_RC | \
18291 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18292 postinstall_cmds | postuninstall_cmds | \
18293 old_postinstall_cmds | old_postuninstall_cmds | \
18294 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18295 # Double-quote double-evaled strings.
18296 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18299 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18305 *'\$0 --fallback-echo"')
18306 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18312 cat <<__EOF__ >> "$cfgfile"
18313 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18315 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18317 # Shell to use when invoking shell scripts.
18320 # Whether or not to build shared libraries.
18321 build_libtool_libs=$enable_shared
18323 # Whether or not to build static libraries.
18324 build_old_libs=$enable_static
18326 # Whether or not to add -lc for building shared libraries.
18327 build_libtool_need_lc=$archive_cmds_need_lc_RC
18329 # Whether or not to disallow shared libs when runtime libs are static
18330 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18332 # Whether or not to optimize for fast installation.
18333 fast_install=$enable_fast_install
18336 host_alias=$host_alias
18339 # An echo program that does not interpret backslashes.
18344 AR_FLAGS=$lt_AR_FLAGS
18349 # A language-specific compiler.
18352 # Is the compiler the GNU C compiler?
18358 # The linker used to build libraries.
18361 # Whether we need hard or soft links.
18364 # A BSD-compatible nm program.
18367 # A symbol stripping program
18370 # Used to examine libraries when file_magic_cmd begins "file"
18371 MAGIC_CMD=$MAGIC_CMD
18373 # Used on cygwin: DLL creation program.
18376 # Used on cygwin: object dumper.
18379 # Used on cygwin: assembler.
18382 # The name of the directory that contains temporary libtool files.
18385 # How to create reloadable object files.
18386 reload_flag=$lt_reload_flag
18387 reload_cmds=$lt_reload_cmds
18389 # How to pass a linker flag through the compiler.
18390 wl=$lt_lt_prog_compiler_wl_RC
18392 # Object file suffix (normally "o").
18393 objext="$ac_objext"
18395 # Old archive suffix (normally "a").
18398 # Shared library suffix (normally ".so").
18401 # Executable file suffix (normally "").
18404 # Additional compiler flags for building library objects.
18405 pic_flag=$lt_lt_prog_compiler_pic_RC
18408 # What is the maximum length of a command?
18409 max_cmd_len=$lt_cv_sys_max_cmd_len
18411 # Does compiler simultaneously support -c and -o options?
18412 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18414 # Must we lock files when doing compilation ?
18415 need_locks=$lt_need_locks
18417 # Do we need the lib prefix for modules?
18418 need_lib_prefix=$need_lib_prefix
18420 # Do we need a version for libraries?
18421 need_version=$need_version
18423 # Whether dlopen is supported.
18424 dlopen_support=$enable_dlopen
18426 # Whether dlopen of programs is supported.
18427 dlopen_self=$enable_dlopen_self
18429 # Whether dlopen of statically linked programs is supported.
18430 dlopen_self_static=$enable_dlopen_self_static
18432 # Compiler flag to prevent dynamic linking.
18433 link_static_flag=$lt_lt_prog_compiler_static_RC
18435 # Compiler flag to turn off builtin functions.
18436 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18438 # Compiler flag to allow reflexive dlopens.
18439 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18441 # Compiler flag to generate shared objects directly from archives.
18442 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18444 # Compiler flag to generate thread-safe objects.
18445 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18447 # Library versioning type.
18448 version_type=$version_type
18450 # Format of library name prefix.
18451 libname_spec=$lt_libname_spec
18453 # List of archive names. First name is the real one, the rest are links.
18454 # The last name is the one that the linker finds with -lNAME.
18455 library_names_spec=$lt_library_names_spec
18457 # The coded name of the library, if different from the real name.
18458 soname_spec=$lt_soname_spec
18460 # Commands used to build and install an old-style archive.
18462 old_archive_cmds=$lt_old_archive_cmds_RC
18463 old_postinstall_cmds=$lt_old_postinstall_cmds
18464 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18466 # Create an old-style archive from a shared archive.
18467 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18469 # Create a temporary old-style archive to link instead of a shared archive.
18470 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18472 # Commands used to build and install a shared archive.
18473 archive_cmds=$lt_archive_cmds_RC
18474 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18475 postinstall_cmds=$lt_postinstall_cmds
18476 postuninstall_cmds=$lt_postuninstall_cmds
18478 # Commands used to build a loadable module (assumed same as above if empty)
18479 module_cmds=$lt_module_cmds_RC
18480 module_expsym_cmds=$lt_module_expsym_cmds_RC
18482 # Commands to strip libraries.
18483 old_striplib=$lt_old_striplib
18484 striplib=$lt_striplib
18486 # Dependencies to place before the objects being linked to create a
18488 predep_objects=$lt_predep_objects_RC
18490 # Dependencies to place after the objects being linked to create a
18492 postdep_objects=$lt_postdep_objects_RC
18494 # Dependencies to place before the objects being linked to create a
18496 predeps=$lt_predeps_RC
18498 # Dependencies to place after the objects being linked to create a
18500 postdeps=$lt_postdeps_RC
18502 # The library search path used internally by the compiler when linking
18503 # a shared library.
18504 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18506 # Method to check whether dependent libraries are shared objects.
18507 deplibs_check_method=$lt_deplibs_check_method
18509 # Command to use when deplibs_check_method == file_magic.
18510 file_magic_cmd=$lt_file_magic_cmd
18512 # Flag that allows shared libraries with undefined symbols to be built.
18513 allow_undefined_flag=$lt_allow_undefined_flag_RC
18515 # Flag that forces no undefined symbols.
18516 no_undefined_flag=$lt_no_undefined_flag_RC
18518 # Commands used to finish a libtool library installation in a directory.
18519 finish_cmds=$lt_finish_cmds
18521 # Same as above, but a single script fragment to be evaled but not shown.
18522 finish_eval=$lt_finish_eval
18524 # Take the output of nm and produce a listing of raw symbols and C names.
18525 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18527 # Transform the output of nm in a proper C declaration
18528 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18530 # Transform the output of nm in a C name address pair
18531 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18533 # This is the shared library runtime path variable.
18534 runpath_var=$runpath_var
18536 # This is the shared library path variable.
18537 shlibpath_var=$shlibpath_var
18539 # Is shlibpath searched before the hard-coded library search path?
18540 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18542 # How to hardcode a shared library path into an executable.
18543 hardcode_action=$hardcode_action_RC
18545 # Whether we should hardcode library paths into libraries.
18546 hardcode_into_libs=$hardcode_into_libs
18548 # Flag to hardcode \$libdir into a binary during linking.
18549 # This must work even if \$libdir does not exist.
18550 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18552 # If ld is used when linking, flag to hardcode \$libdir into
18553 # a binary during linking. This must work even if \$libdir does
18555 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18557 # Whether we need a single -rpath flag with a separated argument.
18558 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18560 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18561 # resulting binary.
18562 hardcode_direct=$hardcode_direct_RC
18564 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18565 # resulting binary.
18566 hardcode_minus_L=$hardcode_minus_L_RC
18568 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18569 # the resulting binary.
18570 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18572 # Set to yes if building a shared library automatically hardcodes DIR into the library
18573 # and all subsequent libraries and executables linked against it.
18574 hardcode_automatic=$hardcode_automatic_RC
18576 # Variables whose values should be saved in libtool wrapper scripts and
18577 # restored at relink time.
18578 variables_saved_for_relink="$variables_saved_for_relink"
18580 # Whether libtool must link a program against all its dependency libraries.
18581 link_all_deplibs=$link_all_deplibs_RC
18583 # Compile-time system search path for libraries
18584 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18586 # Run-time system search path for libraries
18587 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18589 # Fix the shell variable \$srcfile for the compiler.
18590 fix_srcfile_path="$fix_srcfile_path_RC"
18592 # Set to yes if exported symbols are required.
18593 always_export_symbols=$always_export_symbols_RC
18595 # The commands to list exported symbols.
18596 export_symbols_cmds=$lt_export_symbols_cmds_RC
18598 # The commands to extract the exported symbol list from a shared archive.
18599 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18601 # Symbols that should not be listed in the preloaded symbols.
18602 exclude_expsyms=$lt_exclude_expsyms_RC
18604 # Symbols that must always be exported.
18605 include_expsyms=$lt_include_expsyms_RC
18607 # ### END LIBTOOL TAG CONFIG: $tagname
18613 # If there is no Makefile yet, we rely on a make rule to execute
18614 # `config.status --recheck' to rerun these tests and create the
18615 # libtool script then.
18616 test -f Makefile && make "$ltmain"
18621 ac_cpp='$CPP $CPPFLAGS'
18622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18631 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18632 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18633 { (exit 1); exit 1; }; }
18637 # Append the new tag name to the list of available tags.
18638 if test -n "$tagname" ; then
18639 available_tags="$available_tags $tagname"
18645 # Now substitute the updated list of available tags.
18646 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18647 mv "${ofile}T" "$ofile"
18651 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18652 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18653 { (exit 1); exit 1; }; }
18659 # This can be used to rebuild libtool when needed
18660 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18662 # Always use our own libtool.
18663 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18665 # Prevent multiple expansion
18687 # Extract the first word of "dot", so it can be a program name with args.
18688 set dummy dot; ac_word=$2
18689 echo "$as_me:$LINENO: checking for $ac_word" >&5
18690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18691 if test "${ac_cv_path_DOT+set}" = set; then
18692 echo $ECHO_N "(cached) $ECHO_C" >&6
18696 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18700 for as_dir in $PATH
18703 test -z "$as_dir" && as_dir=.
18704 for ac_exec_ext in '' $ac_executable_extensions; do
18705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18706 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18713 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18717 DOT=$ac_cv_path_DOT
18719 if test -n "$DOT"; then
18720 echo "$as_me:$LINENO: result: $DOT" >&5
18721 echo "${ECHO_T}$DOT" >&6
18723 echo "$as_me:$LINENO: result: no" >&5
18724 echo "${ECHO_T}no" >&6
18727 # Extract the first word of "etags", so it can be a program name with args.
18728 set dummy etags; ac_word=$2
18729 echo "$as_me:$LINENO: checking for $ac_word" >&5
18730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18731 if test "${ac_cv_path_ETAGS+set}" = set; then
18732 echo $ECHO_N "(cached) $ECHO_C" >&6
18736 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18740 for as_dir in $PATH
18743 test -z "$as_dir" && as_dir=.
18744 for ac_exec_ext in '' $ac_executable_extensions; do
18745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18746 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18753 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18757 ETAGS=$ac_cv_path_ETAGS
18759 if test -n "$ETAGS"; then
18760 echo "$as_me:$LINENO: result: $ETAGS" >&5
18761 echo "${ECHO_T}$ETAGS" >&6
18763 echo "$as_me:$LINENO: result: no" >&5
18764 echo "${ECHO_T}no" >&6
18767 etags_version=`$ETAGS --version 2>&1`
18768 case "$etags_version" in
18769 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18770 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18771 *) ETAGSFLAGS="" ;;
18773 ETAGSFLAGS=$ETAGSFLAGS
18775 # Extract the first word of "python", so it can be a program name with args.
18776 set dummy python; ac_word=$2
18777 echo "$as_me:$LINENO: checking for $ac_word" >&5
18778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18779 if test "${ac_cv_path_PYTHON+set}" = set; then
18780 echo $ECHO_N "(cached) $ECHO_C" >&6
18784 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18788 for as_dir in $PATH
18791 test -z "$as_dir" && as_dir=.
18792 for ac_exec_ext in '' $ac_executable_extensions; do
18793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18794 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18801 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
18805 PYTHON=$ac_cv_path_PYTHON
18807 if test -n "$PYTHON"; then
18808 echo "$as_me:$LINENO: result: $PYTHON" >&5
18809 echo "${ECHO_T}$PYTHON" >&6
18811 echo "$as_me:$LINENO: result: no" >&5
18812 echo "${ECHO_T}no" >&6
18815 if test "$PYTHON" = "false"
18817 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18818 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
18820 # Extract the first word of "qmtest", so it can be a program name with args.
18821 set dummy qmtest; ac_word=$2
18822 echo "$as_me:$LINENO: checking for $ac_word" >&5
18823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18824 if test "${ac_cv_path_QMTEST+set}" = set; then
18825 echo $ECHO_N "(cached) $ECHO_C" >&6
18829 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18833 for as_dir in $PATH
18836 test -z "$as_dir" && as_dir=.
18837 for ac_exec_ext in '' $ac_executable_extensions; do
18838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18839 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18846 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
18850 QMTEST=$ac_cv_path_QMTEST
18852 if test -n "$QMTEST"; then
18853 echo "$as_me:$LINENO: result: $QMTEST" >&5
18854 echo "${ECHO_T}$QMTEST" >&6
18856 echo "$as_me:$LINENO: result: no" >&5
18857 echo "${ECHO_T}no" >&6
18860 if test "$QMTEST" = "false"
18862 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18863 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
18866 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18867 pymajor=`echo $pyversion | cut -d. -f1`
18868 pyminor=`echo $pyversion | cut -d. -f2`
18870 if test "$pymajor" -ge "2"
18872 if test "$pymajor" -eq "2"
18874 if test "$pyminor" -lt "2"
18876 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18877 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18881 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18882 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18888 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18889 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18890 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18891 echo $ECHO_N "(cached) $ECHO_C" >&6
18893 ac_check_lib_save_LIBS=$LIBS
18895 cat >conftest.$ac_ext <<_ACEOF
18898 cat confdefs.h >>conftest.$ac_ext
18899 cat >>conftest.$ac_ext <<_ACEOF
18900 /* end confdefs.h. */
18902 /* Override any gcc2 internal prototype to avoid an error. */
18906 /* We use char because int might match the return type of a gcc2
18907 builtin and then its argument prototype would still apply. */
18917 rm -f conftest.$ac_objext conftest$ac_exeext
18918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18919 (eval $ac_link) 2>conftest.er1
18921 grep -v '^ *+' conftest.er1 >conftest.err
18923 cat conftest.err >&5
18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); } &&
18926 { ac_try='test -z "$ac_c_werror_flag"
18927 || test ! -s conftest.err'
18928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18929 (eval $ac_try) 2>&5
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); }; } &&
18933 { ac_try='test -s conftest$ac_exeext'
18934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18935 (eval $ac_try) 2>&5
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); }; }; then
18939 ac_cv_lib_elf_elf_begin=yes
18941 echo "$as_me: failed program was:" >&5
18942 sed 's/^/| /' conftest.$ac_ext >&5
18944 ac_cv_lib_elf_elf_begin=no
18946 rm -f conftest.err conftest.$ac_objext \
18947 conftest$ac_exeext conftest.$ac_ext
18948 LIBS=$ac_check_lib_save_LIBS
18950 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18951 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18952 if test $ac_cv_lib_elf_elf_begin = yes; then
18953 cat >>confdefs.h <<_ACEOF
18954 #define HAVE_LIBELF 1
18962 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18963 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18964 if test "${ac_cv_search_dlopen+set}" = set; then
18965 echo $ECHO_N "(cached) $ECHO_C" >&6
18967 ac_func_search_save_LIBS=$LIBS
18968 ac_cv_search_dlopen=no
18969 cat >conftest.$ac_ext <<_ACEOF
18972 cat confdefs.h >>conftest.$ac_ext
18973 cat >>conftest.$ac_ext <<_ACEOF
18974 /* end confdefs.h. */
18976 /* Override any gcc2 internal prototype to avoid an error. */
18980 /* We use char because int might match the return type of a gcc2
18981 builtin and then its argument prototype would still apply. */
18991 rm -f conftest.$ac_objext conftest$ac_exeext
18992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18993 (eval $ac_link) 2>conftest.er1
18995 grep -v '^ *+' conftest.er1 >conftest.err
18997 cat conftest.err >&5
18998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999 (exit $ac_status); } &&
19000 { ac_try='test -z "$ac_c_werror_flag"
19001 || test ! -s conftest.err'
19002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19003 (eval $ac_try) 2>&5
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); }; } &&
19007 { ac_try='test -s conftest$ac_exeext'
19008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19009 (eval $ac_try) 2>&5
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); }; }; then
19013 ac_cv_search_dlopen="none required"
19015 echo "$as_me: failed program was:" >&5
19016 sed 's/^/| /' conftest.$ac_ext >&5
19019 rm -f conftest.err conftest.$ac_objext \
19020 conftest$ac_exeext conftest.$ac_ext
19021 if test "$ac_cv_search_dlopen" = no; then
19022 for ac_lib in dl; do
19023 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19024 cat >conftest.$ac_ext <<_ACEOF
19027 cat confdefs.h >>conftest.$ac_ext
19028 cat >>conftest.$ac_ext <<_ACEOF
19029 /* end confdefs.h. */
19031 /* Override any gcc2 internal prototype to avoid an error. */
19035 /* We use char because int might match the return type of a gcc2
19036 builtin and then its argument prototype would still apply. */
19046 rm -f conftest.$ac_objext conftest$ac_exeext
19047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19048 (eval $ac_link) 2>conftest.er1
19050 grep -v '^ *+' conftest.er1 >conftest.err
19052 cat conftest.err >&5
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); } &&
19055 { ac_try='test -z "$ac_c_werror_flag"
19056 || test ! -s conftest.err'
19057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19058 (eval $ac_try) 2>&5
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); }; } &&
19062 { ac_try='test -s conftest$ac_exeext'
19063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19064 (eval $ac_try) 2>&5
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); }; }; then
19068 ac_cv_search_dlopen="-l$ac_lib"
19071 echo "$as_me: failed program was:" >&5
19072 sed 's/^/| /' conftest.$ac_ext >&5
19075 rm -f conftest.err conftest.$ac_objext \
19076 conftest$ac_exeext conftest.$ac_ext
19079 LIBS=$ac_func_search_save_LIBS
19081 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19082 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19083 if test "$ac_cv_search_dlopen" != no; then
19084 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19086 cat >>confdefs.h <<\_ACEOF
19087 #define HAVE_DLOPEN 1
19091 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19092 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19096 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19097 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19098 if test "${ac_cv_search_mallinfo+set}" = set; then
19099 echo $ECHO_N "(cached) $ECHO_C" >&6
19101 ac_func_search_save_LIBS=$LIBS
19102 ac_cv_search_mallinfo=no
19103 cat >conftest.$ac_ext <<_ACEOF
19106 cat confdefs.h >>conftest.$ac_ext
19107 cat >>conftest.$ac_ext <<_ACEOF
19108 /* end confdefs.h. */
19110 /* Override any gcc2 internal prototype to avoid an error. */
19114 /* We use char because int might match the return type of a gcc2
19115 builtin and then its argument prototype would still apply. */
19125 rm -f conftest.$ac_objext conftest$ac_exeext
19126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19127 (eval $ac_link) 2>conftest.er1
19129 grep -v '^ *+' conftest.er1 >conftest.err
19131 cat conftest.err >&5
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); } &&
19134 { ac_try='test -z "$ac_c_werror_flag"
19135 || test ! -s conftest.err'
19136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19137 (eval $ac_try) 2>&5
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); }; } &&
19141 { ac_try='test -s conftest$ac_exeext'
19142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19143 (eval $ac_try) 2>&5
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); }; }; then
19147 ac_cv_search_mallinfo="none required"
19149 echo "$as_me: failed program was:" >&5
19150 sed 's/^/| /' conftest.$ac_ext >&5
19153 rm -f conftest.err conftest.$ac_objext \
19154 conftest$ac_exeext conftest.$ac_ext
19155 if test "$ac_cv_search_mallinfo" = no; then
19156 for ac_lib in malloc; do
19157 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19158 cat >conftest.$ac_ext <<_ACEOF
19161 cat confdefs.h >>conftest.$ac_ext
19162 cat >>conftest.$ac_ext <<_ACEOF
19163 /* end confdefs.h. */
19165 /* Override any gcc2 internal prototype to avoid an error. */
19169 /* We use char because int might match the return type of a gcc2
19170 builtin and then its argument prototype would still apply. */
19180 rm -f conftest.$ac_objext conftest$ac_exeext
19181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19182 (eval $ac_link) 2>conftest.er1
19184 grep -v '^ *+' conftest.er1 >conftest.err
19186 cat conftest.err >&5
19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); } &&
19189 { ac_try='test -z "$ac_c_werror_flag"
19190 || test ! -s conftest.err'
19191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19192 (eval $ac_try) 2>&5
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); }; } &&
19196 { ac_try='test -s conftest$ac_exeext'
19197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19198 (eval $ac_try) 2>&5
19200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201 (exit $ac_status); }; }; then
19202 ac_cv_search_mallinfo="-l$ac_lib"
19205 echo "$as_me: failed program was:" >&5
19206 sed 's/^/| /' conftest.$ac_ext >&5
19209 rm -f conftest.err conftest.$ac_objext \
19210 conftest$ac_exeext conftest.$ac_ext
19213 LIBS=$ac_func_search_save_LIBS
19215 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19216 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19217 if test "$ac_cv_search_mallinfo" != no; then
19218 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19220 cat >>confdefs.h <<\_ACEOF
19221 #define HAVE_MALLINFO 1
19227 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19228 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19229 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19230 echo $ECHO_N "(cached) $ECHO_C" >&6
19232 ac_func_search_save_LIBS=$LIBS
19233 ac_cv_search_pthread_mutex_lock=no
19234 cat >conftest.$ac_ext <<_ACEOF
19237 cat confdefs.h >>conftest.$ac_ext
19238 cat >>conftest.$ac_ext <<_ACEOF
19239 /* end confdefs.h. */
19241 /* Override any gcc2 internal prototype to avoid an error. */
19245 /* We use char because int might match the return type of a gcc2
19246 builtin and then its argument prototype would still apply. */
19247 char pthread_mutex_lock ();
19251 pthread_mutex_lock ();
19256 rm -f conftest.$ac_objext conftest$ac_exeext
19257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19258 (eval $ac_link) 2>conftest.er1
19260 grep -v '^ *+' conftest.er1 >conftest.err
19262 cat conftest.err >&5
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); } &&
19265 { ac_try='test -z "$ac_c_werror_flag"
19266 || test ! -s conftest.err'
19267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19268 (eval $ac_try) 2>&5
19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); }; } &&
19272 { ac_try='test -s conftest$ac_exeext'
19273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19274 (eval $ac_try) 2>&5
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); }; }; then
19278 ac_cv_search_pthread_mutex_lock="none required"
19280 echo "$as_me: failed program was:" >&5
19281 sed 's/^/| /' conftest.$ac_ext >&5
19284 rm -f conftest.err conftest.$ac_objext \
19285 conftest$ac_exeext conftest.$ac_ext
19286 if test "$ac_cv_search_pthread_mutex_lock" = no; then
19287 for ac_lib in pthread; do
19288 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19289 cat >conftest.$ac_ext <<_ACEOF
19292 cat confdefs.h >>conftest.$ac_ext
19293 cat >>conftest.$ac_ext <<_ACEOF
19294 /* end confdefs.h. */
19296 /* Override any gcc2 internal prototype to avoid an error. */
19300 /* We use char because int might match the return type of a gcc2
19301 builtin and then its argument prototype would still apply. */
19302 char pthread_mutex_lock ();
19306 pthread_mutex_lock ();
19311 rm -f conftest.$ac_objext conftest$ac_exeext
19312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19313 (eval $ac_link) 2>conftest.er1
19315 grep -v '^ *+' conftest.er1 >conftest.err
19317 cat conftest.err >&5
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); } &&
19320 { ac_try='test -z "$ac_c_werror_flag"
19321 || test ! -s conftest.err'
19322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19323 (eval $ac_try) 2>&5
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); }; } &&
19327 { ac_try='test -s conftest$ac_exeext'
19328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19329 (eval $ac_try) 2>&5
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); }; }; then
19333 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
19336 echo "$as_me: failed program was:" >&5
19337 sed 's/^/| /' conftest.$ac_ext >&5
19340 rm -f conftest.err conftest.$ac_objext \
19341 conftest$ac_exeext conftest.$ac_ext
19344 LIBS=$ac_func_search_save_LIBS
19346 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
19347 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
19348 if test "$ac_cv_search_pthread_mutex_lock" != no; then
19349 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
19350 HAVE_PTHREAD_MUTEX_LOCK=1
19352 HAVE_PTHREAD_MUTEX_LOCK=0
19357 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19358 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19359 if test "${ac_cv_header_stdc+set}" = set; then
19360 echo $ECHO_N "(cached) $ECHO_C" >&6
19362 cat >conftest.$ac_ext <<_ACEOF
19365 cat confdefs.h >>conftest.$ac_ext
19366 cat >>conftest.$ac_ext <<_ACEOF
19367 /* end confdefs.h. */
19368 #include <stdlib.h>
19369 #include <stdarg.h>
19370 #include <string.h>
19381 rm -f conftest.$ac_objext
19382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19383 (eval $ac_compile) 2>conftest.er1
19385 grep -v '^ *+' conftest.er1 >conftest.err
19387 cat conftest.err >&5
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); } &&
19390 { ac_try='test -z "$ac_c_werror_flag"
19391 || test ! -s conftest.err'
19392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19393 (eval $ac_try) 2>&5
19395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 (exit $ac_status); }; } &&
19397 { ac_try='test -s conftest.$ac_objext'
19398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19399 (eval $ac_try) 2>&5
19401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402 (exit $ac_status); }; }; then
19403 ac_cv_header_stdc=yes
19405 echo "$as_me: failed program was:" >&5
19406 sed 's/^/| /' conftest.$ac_ext >&5
19408 ac_cv_header_stdc=no
19410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19412 if test $ac_cv_header_stdc = yes; then
19413 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19414 cat >conftest.$ac_ext <<_ACEOF
19417 cat confdefs.h >>conftest.$ac_ext
19418 cat >>conftest.$ac_ext <<_ACEOF
19419 /* end confdefs.h. */
19420 #include <string.h>
19423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19424 $EGREP "memchr" >/dev/null 2>&1; then
19427 ac_cv_header_stdc=no
19433 if test $ac_cv_header_stdc = yes; then
19434 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19435 cat >conftest.$ac_ext <<_ACEOF
19438 cat confdefs.h >>conftest.$ac_ext
19439 cat >>conftest.$ac_ext <<_ACEOF
19440 /* end confdefs.h. */
19441 #include <stdlib.h>
19444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19445 $EGREP "free" >/dev/null 2>&1; then
19448 ac_cv_header_stdc=no
19454 if test $ac_cv_header_stdc = yes; then
19455 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19456 if test "$cross_compiling" = yes; then
19459 cat >conftest.$ac_ext <<_ACEOF
19462 cat confdefs.h >>conftest.$ac_ext
19463 cat >>conftest.$ac_ext <<_ACEOF
19464 /* end confdefs.h. */
19466 #if ((' ' & 0x0FF) == 0x020)
19467 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19468 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19470 # define ISLOWER(c) \
19471 (('a' <= (c) && (c) <= 'i') \
19472 || ('j' <= (c) && (c) <= 'r') \
19473 || ('s' <= (c) && (c) <= 'z'))
19474 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19477 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19482 for (i = 0; i < 256; i++)
19483 if (XOR (islower (i), ISLOWER (i))
19484 || toupper (i) != TOUPPER (i))
19489 rm -f conftest$ac_exeext
19490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19491 (eval $ac_link) 2>&5
19493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19496 (eval $ac_try) 2>&5
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); }; }; then
19502 echo "$as_me: program exited with status $ac_status" >&5
19503 echo "$as_me: failed program was:" >&5
19504 sed 's/^/| /' conftest.$ac_ext >&5
19506 ( exit $ac_status )
19507 ac_cv_header_stdc=no
19509 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19513 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19514 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19515 if test $ac_cv_header_stdc = yes; then
19517 cat >>confdefs.h <<\_ACEOF
19518 #define STDC_HEADERS 1
19523 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19524 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19525 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19526 echo $ECHO_N "(cached) $ECHO_C" >&6
19528 cat >conftest.$ac_ext <<_ACEOF
19531 cat confdefs.h >>conftest.$ac_ext
19532 cat >>conftest.$ac_ext <<_ACEOF
19533 /* end confdefs.h. */
19534 #include <sys/types.h>
19535 #include <sys/wait.h>
19536 #ifndef WEXITSTATUS
19537 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19540 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19548 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19553 rm -f conftest.$ac_objext
19554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19555 (eval $ac_compile) 2>conftest.er1
19557 grep -v '^ *+' conftest.er1 >conftest.err
19559 cat conftest.err >&5
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); } &&
19562 { ac_try='test -z "$ac_c_werror_flag"
19563 || test ! -s conftest.err'
19564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19565 (eval $ac_try) 2>&5
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); }; } &&
19569 { ac_try='test -s conftest.$ac_objext'
19570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19571 (eval $ac_try) 2>&5
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); }; }; then
19575 ac_cv_header_sys_wait_h=yes
19577 echo "$as_me: failed program was:" >&5
19578 sed 's/^/| /' conftest.$ac_ext >&5
19580 ac_cv_header_sys_wait_h=no
19582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19584 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19585 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19586 if test $ac_cv_header_sys_wait_h = yes; then
19588 cat >>confdefs.h <<\_ACEOF
19589 #define HAVE_SYS_WAIT_H 1
19606 for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h link.h execinfo.h windows.h
19608 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19610 echo "$as_me:$LINENO: checking for $ac_header" >&5
19611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19613 echo $ECHO_N "(cached) $ECHO_C" >&6
19615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19616 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19618 # Is the header compilable?
19619 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19620 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19621 cat >conftest.$ac_ext <<_ACEOF
19624 cat confdefs.h >>conftest.$ac_ext
19625 cat >>conftest.$ac_ext <<_ACEOF
19626 /* end confdefs.h. */
19627 $ac_includes_default
19628 #include <$ac_header>
19630 rm -f conftest.$ac_objext
19631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19632 (eval $ac_compile) 2>conftest.er1
19634 grep -v '^ *+' conftest.er1 >conftest.err
19636 cat conftest.err >&5
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); } &&
19639 { ac_try='test -z "$ac_c_werror_flag"
19640 || test ! -s conftest.err'
19641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19642 (eval $ac_try) 2>&5
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); }; } &&
19646 { ac_try='test -s conftest.$ac_objext'
19647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19648 (eval $ac_try) 2>&5
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); }; }; then
19652 ac_header_compiler=yes
19654 echo "$as_me: failed program was:" >&5
19655 sed 's/^/| /' conftest.$ac_ext >&5
19657 ac_header_compiler=no
19659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19660 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19661 echo "${ECHO_T}$ac_header_compiler" >&6
19663 # Is the header present?
19664 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19665 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19666 cat >conftest.$ac_ext <<_ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h. */
19672 #include <$ac_header>
19674 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19675 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19677 grep -v '^ *+' conftest.er1 >conftest.err
19679 cat conftest.err >&5
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); } >/dev/null; then
19682 if test -s conftest.err; then
19683 ac_cpp_err=$ac_c_preproc_warn_flag
19684 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19691 if test -z "$ac_cpp_err"; then
19692 ac_header_preproc=yes
19694 echo "$as_me: failed program was:" >&5
19695 sed 's/^/| /' conftest.$ac_ext >&5
19697 ac_header_preproc=no
19699 rm -f conftest.err conftest.$ac_ext
19700 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19701 echo "${ECHO_T}$ac_header_preproc" >&6
19703 # So? What about this header?
19704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19706 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19707 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19709 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19710 ac_header_preproc=yes
19713 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19714 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19715 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19716 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19717 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19718 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19719 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19720 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19723 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19724 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19727 ## ----------------------------------- ##
19728 ## Report this to llvmbugs@cs.uiuc.edu ##
19729 ## ----------------------------------- ##
19732 sed "s/^/$as_me: WARNING: /" >&2
19735 echo "$as_me:$LINENO: checking for $ac_header" >&5
19736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19738 echo $ECHO_N "(cached) $ECHO_C" >&6
19740 eval "$as_ac_Header=\$ac_header_preproc"
19742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19747 cat >>confdefs.h <<_ACEOF
19748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19756 if test "${ac_cv_header_sys_types_h+set}" = set; then
19757 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19758 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19759 if test "${ac_cv_header_sys_types_h+set}" = set; then
19760 echo $ECHO_N "(cached) $ECHO_C" >&6
19762 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19763 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19765 # Is the header compilable?
19766 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19767 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19768 cat >conftest.$ac_ext <<_ACEOF
19771 cat confdefs.h >>conftest.$ac_ext
19772 cat >>conftest.$ac_ext <<_ACEOF
19773 /* end confdefs.h. */
19774 $ac_includes_default
19775 #include <sys/types.h>
19777 rm -f conftest.$ac_objext
19778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19779 (eval $ac_compile) 2>conftest.er1
19781 grep -v '^ *+' conftest.er1 >conftest.err
19783 cat conftest.err >&5
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); } &&
19786 { ac_try='test -z "$ac_c_werror_flag"
19787 || test ! -s conftest.err'
19788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19789 (eval $ac_try) 2>&5
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); }; } &&
19793 { ac_try='test -s conftest.$ac_objext'
19794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19795 (eval $ac_try) 2>&5
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); }; }; then
19799 ac_header_compiler=yes
19801 echo "$as_me: failed program was:" >&5
19802 sed 's/^/| /' conftest.$ac_ext >&5
19804 ac_header_compiler=no
19806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19807 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19808 echo "${ECHO_T}$ac_header_compiler" >&6
19810 # Is the header present?
19811 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19812 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19813 cat >conftest.$ac_ext <<_ACEOF
19816 cat confdefs.h >>conftest.$ac_ext
19817 cat >>conftest.$ac_ext <<_ACEOF
19818 /* end confdefs.h. */
19819 #include <sys/types.h>
19821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19822 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19824 grep -v '^ *+' conftest.er1 >conftest.err
19826 cat conftest.err >&5
19827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828 (exit $ac_status); } >/dev/null; then
19829 if test -s conftest.err; then
19830 ac_cpp_err=$ac_c_preproc_warn_flag
19831 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19838 if test -z "$ac_cpp_err"; then
19839 ac_header_preproc=yes
19841 echo "$as_me: failed program was:" >&5
19842 sed 's/^/| /' conftest.$ac_ext >&5
19844 ac_header_preproc=no
19846 rm -f conftest.err conftest.$ac_ext
19847 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19848 echo "${ECHO_T}$ac_header_preproc" >&6
19850 # So? What about this header?
19851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19853 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19854 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19855 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
19856 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
19857 ac_header_preproc=yes
19860 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19861 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
19862 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
19863 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
19864 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
19865 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
19866 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
19867 echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
19868 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19869 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19870 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
19871 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
19874 ## ----------------------------------- ##
19875 ## Report this to llvmbugs@cs.uiuc.edu ##
19876 ## ----------------------------------- ##
19879 sed "s/^/$as_me: WARNING: /" >&2
19882 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19883 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19884 if test "${ac_cv_header_sys_types_h+set}" = set; then
19885 echo $ECHO_N "(cached) $ECHO_C" >&6
19887 ac_cv_header_sys_types_h=$ac_header_preproc
19889 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19890 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19893 if test $ac_cv_header_sys_types_h = yes; then
19894 INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19896 INCLUDE_SYS_TYPES_H=''
19901 if test "${ac_cv_header_inttypes_h+set}" = set; then
19902 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19903 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19904 if test "${ac_cv_header_inttypes_h+set}" = set; then
19905 echo $ECHO_N "(cached) $ECHO_C" >&6
19907 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19908 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19910 # Is the header compilable?
19911 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19912 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19913 cat >conftest.$ac_ext <<_ACEOF
19916 cat confdefs.h >>conftest.$ac_ext
19917 cat >>conftest.$ac_ext <<_ACEOF
19918 /* end confdefs.h. */
19919 $ac_includes_default
19920 #include <inttypes.h>
19922 rm -f conftest.$ac_objext
19923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19924 (eval $ac_compile) 2>conftest.er1
19926 grep -v '^ *+' conftest.er1 >conftest.err
19928 cat conftest.err >&5
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); } &&
19931 { ac_try='test -z "$ac_c_werror_flag"
19932 || test ! -s conftest.err'
19933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19934 (eval $ac_try) 2>&5
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); }; } &&
19938 { ac_try='test -s conftest.$ac_objext'
19939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19940 (eval $ac_try) 2>&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); }; }; then
19944 ac_header_compiler=yes
19946 echo "$as_me: failed program was:" >&5
19947 sed 's/^/| /' conftest.$ac_ext >&5
19949 ac_header_compiler=no
19951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19952 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19953 echo "${ECHO_T}$ac_header_compiler" >&6
19955 # Is the header present?
19956 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19957 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19958 cat >conftest.$ac_ext <<_ACEOF
19961 cat confdefs.h >>conftest.$ac_ext
19962 cat >>conftest.$ac_ext <<_ACEOF
19963 /* end confdefs.h. */
19964 #include <inttypes.h>
19966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19969 grep -v '^ *+' conftest.er1 >conftest.err
19971 cat conftest.err >&5
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); } >/dev/null; then
19974 if test -s conftest.err; then
19975 ac_cpp_err=$ac_c_preproc_warn_flag
19976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19983 if test -z "$ac_cpp_err"; then
19984 ac_header_preproc=yes
19986 echo "$as_me: failed program was:" >&5
19987 sed 's/^/| /' conftest.$ac_ext >&5
19989 ac_header_preproc=no
19991 rm -f conftest.err conftest.$ac_ext
19992 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19993 echo "${ECHO_T}$ac_header_preproc" >&6
19995 # So? What about this header?
19996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19998 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
19999 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20000 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20001 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20002 ac_header_preproc=yes
20005 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20006 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
20007 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
20008 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
20009 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20010 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20011 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
20012 echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
20013 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20014 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20015 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20016 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20019 ## ----------------------------------- ##
20020 ## Report this to llvmbugs@cs.uiuc.edu ##
20021 ## ----------------------------------- ##
20024 sed "s/^/$as_me: WARNING: /" >&2
20027 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20028 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20029 if test "${ac_cv_header_inttypes_h+set}" = set; then
20030 echo $ECHO_N "(cached) $ECHO_C" >&6
20032 ac_cv_header_inttypes_h=$ac_header_preproc
20034 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20035 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20038 if test $ac_cv_header_inttypes_h = yes; then
20039 INCLUDE_INTTYPES_H='#include <inttypes.h>'
20041 INCLUDE_INTTYPES_H=''
20046 if test "${ac_cv_header_stdint_h+set}" = set; then
20047 echo "$as_me:$LINENO: checking for stdint.h" >&5
20048 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20049 if test "${ac_cv_header_stdint_h+set}" = set; then
20050 echo $ECHO_N "(cached) $ECHO_C" >&6
20052 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20053 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20055 # Is the header compilable?
20056 echo "$as_me:$LINENO: checking stdint.h usability" >&5
20057 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20058 cat >conftest.$ac_ext <<_ACEOF
20061 cat confdefs.h >>conftest.$ac_ext
20062 cat >>conftest.$ac_ext <<_ACEOF
20063 /* end confdefs.h. */
20064 $ac_includes_default
20065 #include <stdint.h>
20067 rm -f conftest.$ac_objext
20068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20069 (eval $ac_compile) 2>conftest.er1
20071 grep -v '^ *+' conftest.er1 >conftest.err
20073 cat conftest.err >&5
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); } &&
20076 { ac_try='test -z "$ac_c_werror_flag"
20077 || test ! -s conftest.err'
20078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20079 (eval $ac_try) 2>&5
20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082 (exit $ac_status); }; } &&
20083 { ac_try='test -s conftest.$ac_objext'
20084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20085 (eval $ac_try) 2>&5
20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); }; }; then
20089 ac_header_compiler=yes
20091 echo "$as_me: failed program was:" >&5
20092 sed 's/^/| /' conftest.$ac_ext >&5
20094 ac_header_compiler=no
20096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20097 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20098 echo "${ECHO_T}$ac_header_compiler" >&6
20100 # Is the header present?
20101 echo "$as_me:$LINENO: checking stdint.h presence" >&5
20102 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20103 cat >conftest.$ac_ext <<_ACEOF
20106 cat confdefs.h >>conftest.$ac_ext
20107 cat >>conftest.$ac_ext <<_ACEOF
20108 /* end confdefs.h. */
20109 #include <stdint.h>
20111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20114 grep -v '^ *+' conftest.er1 >conftest.err
20116 cat conftest.err >&5
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); } >/dev/null; then
20119 if test -s conftest.err; then
20120 ac_cpp_err=$ac_c_preproc_warn_flag
20121 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20128 if test -z "$ac_cpp_err"; then
20129 ac_header_preproc=yes
20131 echo "$as_me: failed program was:" >&5
20132 sed 's/^/| /' conftest.$ac_ext >&5
20134 ac_header_preproc=no
20136 rm -f conftest.err conftest.$ac_ext
20137 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20138 echo "${ECHO_T}$ac_header_preproc" >&6
20140 # So? What about this header?
20141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20143 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20144 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20145 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20146 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20147 ac_header_preproc=yes
20150 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20151 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20152 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
20153 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
20154 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20155 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20156 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
20157 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
20158 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20159 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20160 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20161 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20164 ## ----------------------------------- ##
20165 ## Report this to llvmbugs@cs.uiuc.edu ##
20166 ## ----------------------------------- ##
20169 sed "s/^/$as_me: WARNING: /" >&2
20172 echo "$as_me:$LINENO: checking for stdint.h" >&5
20173 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20174 if test "${ac_cv_header_stdint_h+set}" = set; then
20175 echo $ECHO_N "(cached) $ECHO_C" >&6
20177 ac_cv_header_stdint_h=$ac_header_preproc
20179 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20180 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20183 if test $ac_cv_header_stdint_h = yes; then
20184 INCLUDE_STDINT_H='#include <stdint.h>'
20186 INCLUDE_STDINT_H=''
20193 echo "$as_me:$LINENO: checking for pid_t" >&5
20194 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20195 if test "${ac_cv_type_pid_t+set}" = set; then
20196 echo $ECHO_N "(cached) $ECHO_C" >&6
20198 cat >conftest.$ac_ext <<_ACEOF
20201 cat confdefs.h >>conftest.$ac_ext
20202 cat >>conftest.$ac_ext <<_ACEOF
20203 /* end confdefs.h. */
20204 $ac_includes_default
20210 if (sizeof (pid_t))
20216 rm -f conftest.$ac_objext
20217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20218 (eval $ac_compile) 2>conftest.er1
20220 grep -v '^ *+' conftest.er1 >conftest.err
20222 cat conftest.err >&5
20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); } &&
20225 { ac_try='test -z "$ac_c_werror_flag"
20226 || test ! -s conftest.err'
20227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20228 (eval $ac_try) 2>&5
20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); }; } &&
20232 { ac_try='test -s conftest.$ac_objext'
20233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20234 (eval $ac_try) 2>&5
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); }; }; then
20238 ac_cv_type_pid_t=yes
20240 echo "$as_me: failed program was:" >&5
20241 sed 's/^/| /' conftest.$ac_ext >&5
20243 ac_cv_type_pid_t=no
20245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20247 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20248 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20249 if test $ac_cv_type_pid_t = yes; then
20253 cat >>confdefs.h <<_ACEOF
20259 echo "$as_me:$LINENO: checking for size_t" >&5
20260 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20261 if test "${ac_cv_type_size_t+set}" = set; then
20262 echo $ECHO_N "(cached) $ECHO_C" >&6
20264 cat >conftest.$ac_ext <<_ACEOF
20267 cat confdefs.h >>conftest.$ac_ext
20268 cat >>conftest.$ac_ext <<_ACEOF
20269 /* end confdefs.h. */
20270 $ac_includes_default
20276 if (sizeof (size_t))
20282 rm -f conftest.$ac_objext
20283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20284 (eval $ac_compile) 2>conftest.er1
20286 grep -v '^ *+' conftest.er1 >conftest.err
20288 cat conftest.err >&5
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); } &&
20291 { ac_try='test -z "$ac_c_werror_flag"
20292 || test ! -s conftest.err'
20293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20294 (eval $ac_try) 2>&5
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); }; } &&
20298 { ac_try='test -s conftest.$ac_objext'
20299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20300 (eval $ac_try) 2>&5
20302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303 (exit $ac_status); }; }; then
20304 ac_cv_type_size_t=yes
20306 echo "$as_me: failed program was:" >&5
20307 sed 's/^/| /' conftest.$ac_ext >&5
20309 ac_cv_type_size_t=no
20311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20313 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20314 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20315 if test $ac_cv_type_size_t = yes; then
20319 cat >>confdefs.h <<_ACEOF
20320 #define size_t unsigned
20325 echo "$as_me:$LINENO: checking for int64_t" >&5
20326 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20327 if test "${ac_cv_type_int64_t+set}" = set; then
20328 echo $ECHO_N "(cached) $ECHO_C" >&6
20330 cat >conftest.$ac_ext <<_ACEOF
20333 cat confdefs.h >>conftest.$ac_ext
20334 cat >>conftest.$ac_ext <<_ACEOF
20335 /* end confdefs.h. */
20336 $ac_includes_default
20342 if (sizeof (int64_t))
20348 rm -f conftest.$ac_objext
20349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20350 (eval $ac_compile) 2>conftest.er1
20352 grep -v '^ *+' conftest.er1 >conftest.err
20354 cat conftest.err >&5
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); } &&
20357 { ac_try='test -z "$ac_c_werror_flag"
20358 || test ! -s conftest.err'
20359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20360 (eval $ac_try) 2>&5
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); }; } &&
20364 { ac_try='test -s conftest.$ac_objext'
20365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20366 (eval $ac_try) 2>&5
20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); }; }; then
20370 ac_cv_type_int64_t=yes
20372 echo "$as_me: failed program was:" >&5
20373 sed 's/^/| /' conftest.$ac_ext >&5
20375 ac_cv_type_int64_t=no
20377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20379 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20380 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20381 if test $ac_cv_type_int64_t = yes; then
20383 cat >>confdefs.h <<_ACEOF
20384 #define HAVE_INT64_T 1
20389 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20390 echo "$as_me: error: Type int64_t required but not found" >&2;}
20391 { (exit 1); exit 1; }; }
20394 echo "$as_me:$LINENO: checking for uint64_t" >&5
20395 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20396 if test "${ac_cv_type_uint64_t+set}" = set; then
20397 echo $ECHO_N "(cached) $ECHO_C" >&6
20399 cat >conftest.$ac_ext <<_ACEOF
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h. */
20405 $ac_includes_default
20409 if ((uint64_t *) 0)
20411 if (sizeof (uint64_t))
20417 rm -f conftest.$ac_objext
20418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20419 (eval $ac_compile) 2>conftest.er1
20421 grep -v '^ *+' conftest.er1 >conftest.err
20423 cat conftest.err >&5
20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425 (exit $ac_status); } &&
20426 { ac_try='test -z "$ac_c_werror_flag"
20427 || test ! -s conftest.err'
20428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20429 (eval $ac_try) 2>&5
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); }; } &&
20433 { ac_try='test -s conftest.$ac_objext'
20434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20435 (eval $ac_try) 2>&5
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); }; }; then
20439 ac_cv_type_uint64_t=yes
20441 echo "$as_me: failed program was:" >&5
20442 sed 's/^/| /' conftest.$ac_ext >&5
20444 ac_cv_type_uint64_t=no
20446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20448 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20449 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20450 if test $ac_cv_type_uint64_t = yes; then
20452 cat >>confdefs.h <<_ACEOF
20453 #define HAVE_UINT64_T 1
20458 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20459 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20460 { (exit 1); exit 1; }; }
20463 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20464 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20465 if test "${ac_cv_header_time+set}" = set; then
20466 echo $ECHO_N "(cached) $ECHO_C" >&6
20468 cat >conftest.$ac_ext <<_ACEOF
20471 cat confdefs.h >>conftest.$ac_ext
20472 cat >>conftest.$ac_ext <<_ACEOF
20473 /* end confdefs.h. */
20474 #include <sys/types.h>
20475 #include <sys/time.h>
20481 if ((struct tm *) 0)
20487 rm -f conftest.$ac_objext
20488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20489 (eval $ac_compile) 2>conftest.er1
20491 grep -v '^ *+' conftest.er1 >conftest.err
20493 cat conftest.err >&5
20494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); } &&
20496 { ac_try='test -z "$ac_c_werror_flag"
20497 || test ! -s conftest.err'
20498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20499 (eval $ac_try) 2>&5
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); }; } &&
20503 { ac_try='test -s conftest.$ac_objext'
20504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20505 (eval $ac_try) 2>&5
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); }; }; then
20509 ac_cv_header_time=yes
20511 echo "$as_me: failed program was:" >&5
20512 sed 's/^/| /' conftest.$ac_ext >&5
20514 ac_cv_header_time=no
20516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20518 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20519 echo "${ECHO_T}$ac_cv_header_time" >&6
20520 if test $ac_cv_header_time = yes; then
20522 cat >>confdefs.h <<\_ACEOF
20523 #define TIME_WITH_SYS_TIME 1
20528 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20529 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20530 if test "${ac_cv_struct_tm+set}" = set; then
20531 echo $ECHO_N "(cached) $ECHO_C" >&6
20533 cat >conftest.$ac_ext <<_ACEOF
20536 cat confdefs.h >>conftest.$ac_ext
20537 cat >>conftest.$ac_ext <<_ACEOF
20538 /* end confdefs.h. */
20539 #include <sys/types.h>
20545 struct tm *tp; tp->tm_sec;
20550 rm -f conftest.$ac_objext
20551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20552 (eval $ac_compile) 2>conftest.er1
20554 grep -v '^ *+' conftest.er1 >conftest.err
20556 cat conftest.err >&5
20557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558 (exit $ac_status); } &&
20559 { ac_try='test -z "$ac_c_werror_flag"
20560 || test ! -s conftest.err'
20561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20562 (eval $ac_try) 2>&5
20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); }; } &&
20566 { ac_try='test -s conftest.$ac_objext'
20567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20568 (eval $ac_try) 2>&5
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); }; }; then
20572 ac_cv_struct_tm=time.h
20574 echo "$as_me: failed program was:" >&5
20575 sed 's/^/| /' conftest.$ac_ext >&5
20577 ac_cv_struct_tm=sys/time.h
20579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20581 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20582 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20583 if test $ac_cv_struct_tm = sys/time.h; then
20585 cat >>confdefs.h <<\_ACEOF
20586 #define TM_IN_SYS_TIME 1
20593 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
20594 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
20598 ac_cpp='$CPP $CPPFLAGS'
20599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20603 if test "$cross_compiling" = yes; then
20604 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20605 See \`config.log' for more details." >&5
20606 echo "$as_me: error: cannot run test program while cross compiling
20607 See \`config.log' for more details." >&2;}
20608 { (exit 1); exit 1; }; }
20610 cat >conftest.$ac_ext <<_ACEOF
20613 cat confdefs.h >>conftest.$ac_ext
20614 cat >>conftest.$ac_ext <<_ACEOF
20615 /* end confdefs.h. */
20617 #include <stdlib.h>
20622 volatile double A, B;
20626 sprintf(Buffer, "%a", A);
20630 if (A != 0x1.999999999999ap-4)
20637 rm -f conftest$ac_exeext
20638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20639 (eval $ac_link) 2>&5
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20644 (eval $ac_try) 2>&5
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); }; }; then
20650 echo "$as_me: program exited with status $ac_status" >&5
20651 echo "$as_me: failed program was:" >&5
20652 sed 's/^/| /' conftest.$ac_ext >&5
20654 ( exit $ac_status )
20657 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20660 ac_cpp='$CPP $CPPFLAGS'
20661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20665 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
20666 echo "${ECHO_T}$ac_c_printf_a" >&6
20667 if test "$ac_c_printf_a" = "yes"; then
20669 cat >>confdefs.h <<\_ACEOF
20670 #define HAVE_PRINTF_A 1
20676 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20677 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20678 if test "${ac_cv_c_bigendian+set}" = set; then
20679 echo $ECHO_N "(cached) $ECHO_C" >&6
20681 # See if sys/param.h defines the BYTE_ORDER macro.
20682 cat >conftest.$ac_ext <<_ACEOF
20685 cat confdefs.h >>conftest.$ac_ext
20686 cat >>conftest.$ac_ext <<_ACEOF
20687 /* end confdefs.h. */
20688 #include <sys/types.h>
20689 #include <sys/param.h>
20694 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20695 bogus endian macros
20702 rm -f conftest.$ac_objext
20703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20704 (eval $ac_compile) 2>conftest.er1
20706 grep -v '^ *+' conftest.er1 >conftest.err
20708 cat conftest.err >&5
20709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710 (exit $ac_status); } &&
20711 { ac_try='test -z "$ac_c_werror_flag"
20712 || test ! -s conftest.err'
20713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20714 (eval $ac_try) 2>&5
20716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717 (exit $ac_status); }; } &&
20718 { ac_try='test -s conftest.$ac_objext'
20719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20720 (eval $ac_try) 2>&5
20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723 (exit $ac_status); }; }; then
20724 # It does; now see whether it defined to BIG_ENDIAN or not.
20725 cat >conftest.$ac_ext <<_ACEOF
20728 cat confdefs.h >>conftest.$ac_ext
20729 cat >>conftest.$ac_ext <<_ACEOF
20730 /* end confdefs.h. */
20731 #include <sys/types.h>
20732 #include <sys/param.h>
20737 #if BYTE_ORDER != BIG_ENDIAN
20745 rm -f conftest.$ac_objext
20746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20747 (eval $ac_compile) 2>conftest.er1
20749 grep -v '^ *+' conftest.er1 >conftest.err
20751 cat conftest.err >&5
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); } &&
20754 { ac_try='test -z "$ac_c_werror_flag"
20755 || test ! -s conftest.err'
20756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20757 (eval $ac_try) 2>&5
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); }; } &&
20761 { ac_try='test -s conftest.$ac_objext'
20762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20763 (eval $ac_try) 2>&5
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); }; }; then
20767 ac_cv_c_bigendian=yes
20769 echo "$as_me: failed program was:" >&5
20770 sed 's/^/| /' conftest.$ac_ext >&5
20772 ac_cv_c_bigendian=no
20774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20776 echo "$as_me: failed program was:" >&5
20777 sed 's/^/| /' conftest.$ac_ext >&5
20779 # It does not; compile a test program.
20780 if test "$cross_compiling" = yes; then
20781 # try to guess the endianness by grepping values into an object file
20782 ac_cv_c_bigendian=unknown
20783 cat >conftest.$ac_ext <<_ACEOF
20786 cat confdefs.h >>conftest.$ac_ext
20787 cat >>conftest.$ac_ext <<_ACEOF
20788 /* end confdefs.h. */
20789 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20790 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20791 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20792 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20793 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20794 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20798 _ascii (); _ebcdic ();
20803 rm -f conftest.$ac_objext
20804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20805 (eval $ac_compile) 2>conftest.er1
20807 grep -v '^ *+' conftest.er1 >conftest.err
20809 cat conftest.err >&5
20810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811 (exit $ac_status); } &&
20812 { ac_try='test -z "$ac_c_werror_flag"
20813 || test ! -s conftest.err'
20814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20815 (eval $ac_try) 2>&5
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); }; } &&
20819 { ac_try='test -s conftest.$ac_objext'
20820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20821 (eval $ac_try) 2>&5
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); }; }; then
20825 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20826 ac_cv_c_bigendian=yes
20828 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20829 if test "$ac_cv_c_bigendian" = unknown; then
20830 ac_cv_c_bigendian=no
20832 # finding both strings is unlikely to happen, but who knows?
20833 ac_cv_c_bigendian=unknown
20837 echo "$as_me: failed program was:" >&5
20838 sed 's/^/| /' conftest.$ac_ext >&5
20841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20843 cat >conftest.$ac_ext <<_ACEOF
20846 cat confdefs.h >>conftest.$ac_ext
20847 cat >>conftest.$ac_ext <<_ACEOF
20848 /* end confdefs.h. */
20852 /* Are we little or big endian? From Harbison&Steele. */
20856 char c[sizeof (long)];
20859 exit (u.c[sizeof (long) - 1] == 1);
20862 rm -f conftest$ac_exeext
20863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20864 (eval $ac_link) 2>&5
20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20869 (eval $ac_try) 2>&5
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); }; }; then
20873 ac_cv_c_bigendian=no
20875 echo "$as_me: program exited with status $ac_status" >&5
20876 echo "$as_me: failed program was:" >&5
20877 sed 's/^/| /' conftest.$ac_ext >&5
20879 ( exit $ac_status )
20880 ac_cv_c_bigendian=yes
20882 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20887 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20888 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20889 case $ac_cv_c_bigendian in
20897 { { echo "$as_me:$LINENO: error: unknown endianness
20898 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20899 echo "$as_me: error: unknown endianness
20900 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20901 { (exit 1); exit 1; }; } ;;
20905 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20906 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20907 if test "${ac_cv_cxx_namespaces+set}" = set; then
20908 echo $ECHO_N "(cached) $ECHO_C" >&6
20913 ac_cpp='$CXXCPP $CPPFLAGS'
20914 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20915 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20916 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20918 cat >conftest.$ac_ext <<_ACEOF
20921 cat confdefs.h >>conftest.$ac_ext
20922 cat >>conftest.$ac_ext <<_ACEOF
20923 /* end confdefs.h. */
20924 namespace Outer { namespace Inner { int i = 0; }}
20928 using namespace Outer::Inner; return i;
20933 rm -f conftest.$ac_objext
20934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20935 (eval $ac_compile) 2>conftest.er1
20937 grep -v '^ *+' conftest.er1 >conftest.err
20939 cat conftest.err >&5
20940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941 (exit $ac_status); } &&
20942 { ac_try='test -z "$ac_cxx_werror_flag"
20943 || test ! -s conftest.err'
20944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20945 (eval $ac_try) 2>&5
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); }; } &&
20949 { ac_try='test -s conftest.$ac_objext'
20950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20951 (eval $ac_try) 2>&5
20953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954 (exit $ac_status); }; }; then
20955 ac_cv_cxx_namespaces=yes
20957 echo "$as_me: failed program was:" >&5
20958 sed 's/^/| /' conftest.$ac_ext >&5
20960 ac_cv_cxx_namespaces=no
20962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20964 ac_cpp='$CPP $CPPFLAGS'
20965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20971 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20972 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20973 if test "$ac_cv_cxx_namespaces" = yes; then
20975 cat >>confdefs.h <<\_ACEOF
20976 #define HAVE_NAMESPACES
20981 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20982 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20983 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
20984 echo $ECHO_N "(cached) $ECHO_C" >&6
20990 ac_cpp='$CXXCPP $CPPFLAGS'
20991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20995 cat >conftest.$ac_ext <<_ACEOF
20998 cat confdefs.h >>conftest.$ac_ext
20999 cat >>conftest.$ac_ext <<_ACEOF
21000 /* end confdefs.h. */
21001 #include <ext/hash_map>
21002 #ifdef HAVE_NAMESPACES
21003 using namespace std;
21008 hash_map<int, int> t;
21013 rm -f conftest.$ac_objext
21014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21015 (eval $ac_compile) 2>conftest.er1
21017 grep -v '^ *+' conftest.er1 >conftest.err
21019 cat conftest.err >&5
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); } &&
21022 { ac_try='test -z "$ac_cxx_werror_flag"
21023 || test ! -s conftest.err'
21024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21025 (eval $ac_try) 2>&5
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); }; } &&
21029 { ac_try='test -s conftest.$ac_objext'
21030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21031 (eval $ac_try) 2>&5
21033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034 (exit $ac_status); }; }; then
21035 ac_cv_cxx_have_std_ext_hash_map=yes
21037 echo "$as_me: failed program was:" >&5
21038 sed 's/^/| /' conftest.$ac_ext >&5
21040 ac_cv_cxx_have_std_ext_hash_map=no
21042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21044 ac_cpp='$CPP $CPPFLAGS'
21045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21050 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21051 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
21052 HAVE_STD_EXT_HASH_MAP=0
21053 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21055 HAVE_STD_EXT_HASH_MAP=1
21058 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21059 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21060 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21061 echo $ECHO_N "(cached) $ECHO_C" >&6
21067 ac_cpp='$CXXCPP $CPPFLAGS'
21068 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21069 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21070 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21072 cat >conftest.$ac_ext <<_ACEOF
21075 cat confdefs.h >>conftest.$ac_ext
21076 cat >>conftest.$ac_ext <<_ACEOF
21077 /* end confdefs.h. */
21078 #include <ext/hash_map>
21079 #ifdef HAVE_NAMESPACES
21080 using namespace __gnu_cxx;
21085 hash_map<int,int> t;
21090 rm -f conftest.$ac_objext
21091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21092 (eval $ac_compile) 2>conftest.er1
21094 grep -v '^ *+' conftest.er1 >conftest.err
21096 cat conftest.err >&5
21097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098 (exit $ac_status); } &&
21099 { ac_try='test -z "$ac_cxx_werror_flag"
21100 || test ! -s conftest.err'
21101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21102 (eval $ac_try) 2>&5
21104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105 (exit $ac_status); }; } &&
21106 { ac_try='test -s conftest.$ac_objext'
21107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21108 (eval $ac_try) 2>&5
21110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111 (exit $ac_status); }; }; then
21112 ac_cv_cxx_have_gnu_ext_hash_map=yes
21114 echo "$as_me: failed program was:" >&5
21115 sed 's/^/| /' conftest.$ac_ext >&5
21117 ac_cv_cxx_have_gnu_ext_hash_map=no
21119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21121 ac_cpp='$CPP $CPPFLAGS'
21122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21127 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21128 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
21129 HAVE_GNU_EXT_HASH_MAP=0
21130 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21132 HAVE_GNU_EXT_HASH_MAP=1
21135 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21136 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21137 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21138 echo $ECHO_N "(cached) $ECHO_C" >&6
21144 ac_cpp='$CXXCPP $CPPFLAGS'
21145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21149 cat >conftest.$ac_ext <<_ACEOF
21152 cat confdefs.h >>conftest.$ac_ext
21153 cat >>conftest.$ac_ext <<_ACEOF
21154 /* end confdefs.h. */
21155 #include <hash_map>
21159 hash_map<int,int> t;
21164 rm -f conftest.$ac_objext
21165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21166 (eval $ac_compile) 2>conftest.er1
21168 grep -v '^ *+' conftest.er1 >conftest.err
21170 cat conftest.err >&5
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); } &&
21173 { ac_try='test -z "$ac_cxx_werror_flag"
21174 || test ! -s conftest.err'
21175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21176 (eval $ac_try) 2>&5
21178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179 (exit $ac_status); }; } &&
21180 { ac_try='test -s conftest.$ac_objext'
21181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21182 (eval $ac_try) 2>&5
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); }; }; then
21186 ac_cv_cxx_have_global_hash_map=yes
21188 echo "$as_me: failed program was:" >&5
21189 sed 's/^/| /' conftest.$ac_ext >&5
21191 ac_cv_cxx_have_global_hash_map=no
21193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21195 ac_cpp='$CPP $CPPFLAGS'
21196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21201 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21202 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
21203 HAVE_GLOBAL_HASH_MAP=0
21204 if test "$ac_cv_cxx_have_global_hash_map" = yes
21206 HAVE_GLOBAL_HASH_MAP=1
21209 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21210 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21211 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
21212 echo $ECHO_N "(cached) $ECHO_C" >&6
21218 ac_cpp='$CXXCPP $CPPFLAGS'
21219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21223 cat >conftest.$ac_ext <<_ACEOF
21226 cat confdefs.h >>conftest.$ac_ext
21227 cat >>conftest.$ac_ext <<_ACEOF
21228 /* end confdefs.h. */
21229 #include <ext/hash_set>
21230 #ifdef HAVE_NAMESPACES
21231 using namespace std;
21241 rm -f conftest.$ac_objext
21242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21243 (eval $ac_compile) 2>conftest.er1
21245 grep -v '^ *+' conftest.er1 >conftest.err
21247 cat conftest.err >&5
21248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249 (exit $ac_status); } &&
21250 { ac_try='test -z "$ac_cxx_werror_flag"
21251 || test ! -s conftest.err'
21252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21253 (eval $ac_try) 2>&5
21255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256 (exit $ac_status); }; } &&
21257 { ac_try='test -s conftest.$ac_objext'
21258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21259 (eval $ac_try) 2>&5
21261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262 (exit $ac_status); }; }; then
21263 ac_cv_cxx_have_std_ext_hash_set=yes
21265 echo "$as_me: failed program was:" >&5
21266 sed 's/^/| /' conftest.$ac_ext >&5
21268 ac_cv_cxx_have_std_ext_hash_set=no
21270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21272 ac_cpp='$CPP $CPPFLAGS'
21273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21278 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21279 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
21280 HAVE_STD_EXT_HASH_SET=0
21281 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
21283 HAVE_STD_EXT_HASH_SET=1
21286 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21287 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21288 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21289 echo $ECHO_N "(cached) $ECHO_C" >&6
21295 ac_cpp='$CXXCPP $CPPFLAGS'
21296 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21297 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21298 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21300 cat >conftest.$ac_ext <<_ACEOF
21303 cat confdefs.h >>conftest.$ac_ext
21304 cat >>conftest.$ac_ext <<_ACEOF
21305 /* end confdefs.h. */
21306 #include <ext/hash_set>
21307 #ifdef HAVE_NAMESPACES
21308 using namespace __gnu_cxx;
21318 rm -f conftest.$ac_objext
21319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21320 (eval $ac_compile) 2>conftest.er1
21322 grep -v '^ *+' conftest.er1 >conftest.err
21324 cat conftest.err >&5
21325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326 (exit $ac_status); } &&
21327 { ac_try='test -z "$ac_cxx_werror_flag"
21328 || test ! -s conftest.err'
21329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21330 (eval $ac_try) 2>&5
21332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333 (exit $ac_status); }; } &&
21334 { ac_try='test -s conftest.$ac_objext'
21335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21336 (eval $ac_try) 2>&5
21338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339 (exit $ac_status); }; }; then
21340 ac_cv_cxx_have_gnu_ext_hash_set=yes
21342 echo "$as_me: failed program was:" >&5
21343 sed 's/^/| /' conftest.$ac_ext >&5
21345 ac_cv_cxx_have_gnu_ext_hash_set=no
21347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21349 ac_cpp='$CPP $CPPFLAGS'
21350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21355 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21356 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
21357 HAVE_GNU_EXT_HASH_SET=0
21358 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
21360 HAVE_GNU_EXT_HASH_SET=1
21363 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21364 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21365 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21366 echo $ECHO_N "(cached) $ECHO_C" >&6
21372 ac_cpp='$CXXCPP $CPPFLAGS'
21373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21377 cat >conftest.$ac_ext <<_ACEOF
21380 cat confdefs.h >>conftest.$ac_ext
21381 cat >>conftest.$ac_ext <<_ACEOF
21382 /* end confdefs.h. */
21383 #include <hash_set>
21387 hash_set<int> t; return 0;
21392 rm -f conftest.$ac_objext
21393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21394 (eval $ac_compile) 2>conftest.er1
21396 grep -v '^ *+' conftest.er1 >conftest.err
21398 cat conftest.err >&5
21399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400 (exit $ac_status); } &&
21401 { ac_try='test -z "$ac_cxx_werror_flag"
21402 || test ! -s conftest.err'
21403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21404 (eval $ac_try) 2>&5
21406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407 (exit $ac_status); }; } &&
21408 { ac_try='test -s conftest.$ac_objext'
21409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21410 (eval $ac_try) 2>&5
21412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413 (exit $ac_status); }; }; then
21414 ac_cv_cxx_have_global_hash_set=yes
21416 echo "$as_me: failed program was:" >&5
21417 sed 's/^/| /' conftest.$ac_ext >&5
21419 ac_cv_cxx_have_global_hash_set=no
21421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21423 ac_cpp='$CPP $CPPFLAGS'
21424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21429 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21430 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
21431 HAVE_GLOBAL_HASH_SET=0
21432 if test "$ac_cv_cxx_have_global_hash_set" = yes
21434 HAVE_GLOBAL_HASH_SET=1
21437 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21438 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21439 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21440 echo $ECHO_N "(cached) $ECHO_C" >&6
21446 ac_cpp='$CXXCPP $CPPFLAGS'
21447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21451 cat >conftest.$ac_ext <<_ACEOF
21454 cat confdefs.h >>conftest.$ac_ext
21455 cat >>conftest.$ac_ext <<_ACEOF
21456 /* end confdefs.h. */
21457 #include <iterator>
21458 #ifdef HAVE_NAMESPACES
21459 using namespace std;
21464 iterator<int,int,int> t; return 0;
21469 rm -f conftest.$ac_objext
21470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21471 (eval $ac_compile) 2>conftest.er1
21473 grep -v '^ *+' conftest.er1 >conftest.err
21475 cat conftest.err >&5
21476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477 (exit $ac_status); } &&
21478 { ac_try='test -z "$ac_cxx_werror_flag"
21479 || test ! -s conftest.err'
21480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21481 (eval $ac_try) 2>&5
21483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484 (exit $ac_status); }; } &&
21485 { ac_try='test -s conftest.$ac_objext'
21486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21487 (eval $ac_try) 2>&5
21489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490 (exit $ac_status); }; }; then
21491 ac_cv_cxx_have_std_iterator=yes
21493 echo "$as_me: failed program was:" >&5
21494 sed 's/^/| /' conftest.$ac_ext >&5
21496 ac_cv_cxx_have_std_iterator=no
21498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21500 ac_cpp='$CPP $CPPFLAGS'
21501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21507 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21508 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21509 HAVE_STD_ITERATOR=0
21510 if test "$ac_cv_cxx_have_std_iterator" = yes
21512 HAVE_STD_ITERATOR=1
21515 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21516 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21517 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21518 echo $ECHO_N "(cached) $ECHO_C" >&6
21524 ac_cpp='$CXXCPP $CPPFLAGS'
21525 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21526 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21527 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21529 cat >conftest.$ac_ext <<_ACEOF
21532 cat confdefs.h >>conftest.$ac_ext
21533 cat >>conftest.$ac_ext <<_ACEOF
21534 /* end confdefs.h. */
21535 #include <iterator>
21536 #ifdef HAVE_NAMESPACES
21537 using namespace std;
21542 bidirectional_iterator<int,int> t; return 0;
21547 rm -f conftest.$ac_objext
21548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21549 (eval $ac_compile) 2>conftest.er1
21551 grep -v '^ *+' conftest.er1 >conftest.err
21553 cat conftest.err >&5
21554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555 (exit $ac_status); } &&
21556 { ac_try='test -z "$ac_cxx_werror_flag"
21557 || test ! -s conftest.err'
21558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21559 (eval $ac_try) 2>&5
21561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562 (exit $ac_status); }; } &&
21563 { ac_try='test -s conftest.$ac_objext'
21564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21565 (eval $ac_try) 2>&5
21567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568 (exit $ac_status); }; }; then
21569 ac_cv_cxx_have_bi_iterator=yes
21571 echo "$as_me: failed program was:" >&5
21572 sed 's/^/| /' conftest.$ac_ext >&5
21574 ac_cv_cxx_have_bi_iterator=no
21576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21578 ac_cpp='$CPP $CPPFLAGS'
21579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21585 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21586 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21588 if test "$ac_cv_cxx_have_bi_iterator" = yes
21593 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21594 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21595 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21596 echo $ECHO_N "(cached) $ECHO_C" >&6
21602 ac_cpp='$CXXCPP $CPPFLAGS'
21603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21607 cat >conftest.$ac_ext <<_ACEOF
21610 cat confdefs.h >>conftest.$ac_ext
21611 cat >>conftest.$ac_ext <<_ACEOF
21612 /* end confdefs.h. */
21613 #include <iterator>
21614 #ifdef HAVE_NAMESPACES
21615 using namespace std;
21620 forward_iterator<int,int> t; return 0;
21625 rm -f conftest.$ac_objext
21626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21627 (eval $ac_compile) 2>conftest.er1
21629 grep -v '^ *+' conftest.er1 >conftest.err
21631 cat conftest.err >&5
21632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633 (exit $ac_status); } &&
21634 { ac_try='test -z "$ac_cxx_werror_flag"
21635 || test ! -s conftest.err'
21636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21637 (eval $ac_try) 2>&5
21639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640 (exit $ac_status); }; } &&
21641 { ac_try='test -s conftest.$ac_objext'
21642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21643 (eval $ac_try) 2>&5
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); }; }; then
21647 ac_cv_cxx_have_fwd_iterator=yes
21649 echo "$as_me: failed program was:" >&5
21650 sed 's/^/| /' conftest.$ac_ext >&5
21652 ac_cv_cxx_have_fwd_iterator=no
21654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21656 ac_cpp='$CPP $CPPFLAGS'
21657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21663 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21664 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21665 HAVE_FWD_ITERATOR=0
21666 if test "$ac_cv_cxx_have_fwd_iterator" = yes
21668 HAVE_FWD_ITERATOR=1
21673 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
21674 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
21675 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
21676 echo $ECHO_N "(cached) $ECHO_C" >&6
21679 ac_cpp='$CXXCPP $CPPFLAGS'
21680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21684 cat >conftest.$ac_ext <<_ACEOF
21687 cat confdefs.h >>conftest.$ac_ext
21688 cat >>conftest.$ac_ext <<_ACEOF
21689 /* end confdefs.h. */
21691 int foo(float f) {return isnan(f);}
21693 rm -f conftest.$ac_objext
21694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21695 (eval $ac_compile) 2>conftest.er1
21697 grep -v '^ *+' conftest.er1 >conftest.err
21699 cat conftest.err >&5
21700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701 (exit $ac_status); } &&
21702 { ac_try='test -z "$ac_cxx_werror_flag"
21703 || test ! -s conftest.err'
21704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21705 (eval $ac_try) 2>&5
21707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708 (exit $ac_status); }; } &&
21709 { ac_try='test -s conftest.$ac_objext'
21710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21711 (eval $ac_try) 2>&5
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); }; }; then
21715 ac_cv_func_isnan_in_math_h=yes
21717 echo "$as_me: failed program was:" >&5
21718 sed 's/^/| /' conftest.$ac_ext >&5
21720 ac_cv_func_isnan_in_math_h=no
21722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21724 ac_cpp='$CPP $CPPFLAGS'
21725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21730 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
21731 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
21732 if test "$ac_cv_func_isnan_in_math_h" = "yes"
21735 cat >>confdefs.h <<\_ACEOF
21736 #define HAVE_ISNAN_IN_MATH_H 1
21740 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
21741 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
21742 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
21743 echo $ECHO_N "(cached) $ECHO_C" >&6
21746 ac_cpp='$CXXCPP $CPPFLAGS'
21747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21751 cat >conftest.$ac_ext <<_ACEOF
21754 cat confdefs.h >>conftest.$ac_ext
21755 cat >>conftest.$ac_ext <<_ACEOF
21756 /* end confdefs.h. */
21758 int foo(float f) {return isnan(f);}
21760 rm -f conftest.$ac_objext
21761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21762 (eval $ac_compile) 2>conftest.er1
21764 grep -v '^ *+' conftest.er1 >conftest.err
21766 cat conftest.err >&5
21767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768 (exit $ac_status); } &&
21769 { ac_try='test -z "$ac_cxx_werror_flag"
21770 || test ! -s conftest.err'
21771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21772 (eval $ac_try) 2>&5
21774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775 (exit $ac_status); }; } &&
21776 { ac_try='test -s conftest.$ac_objext'
21777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21778 (eval $ac_try) 2>&5
21780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21781 (exit $ac_status); }; }; then
21782 ac_cv_func_isnan_in_cmath=yes
21784 echo "$as_me: failed program was:" >&5
21785 sed 's/^/| /' conftest.$ac_ext >&5
21787 ac_cv_func_isnan_in_cmath=no
21789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21791 ac_cpp='$CPP $CPPFLAGS'
21792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21797 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
21798 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
21799 if test "$ac_cv_func_isnan_in_cmath" = "yes"
21802 cat >>confdefs.h <<\_ACEOF
21803 #define HAVE_ISNAN_IN_CMATH 1
21807 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
21808 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
21809 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
21810 echo $ECHO_N "(cached) $ECHO_C" >&6
21813 ac_cpp='$CXXCPP $CPPFLAGS'
21814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21818 cat >conftest.$ac_ext <<_ACEOF
21821 cat confdefs.h >>conftest.$ac_ext
21822 cat >>conftest.$ac_ext <<_ACEOF
21823 /* end confdefs.h. */
21825 using std::isnan; int foo(float f) {return isnan(f);}
21827 rm -f conftest.$ac_objext
21828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21829 (eval $ac_compile) 2>conftest.er1
21831 grep -v '^ *+' conftest.er1 >conftest.err
21833 cat conftest.err >&5
21834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835 (exit $ac_status); } &&
21836 { ac_try='test -z "$ac_cxx_werror_flag"
21837 || test ! -s conftest.err'
21838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21839 (eval $ac_try) 2>&5
21841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842 (exit $ac_status); }; } &&
21843 { ac_try='test -s conftest.$ac_objext'
21844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21845 (eval $ac_try) 2>&5
21847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848 (exit $ac_status); }; }; then
21849 ac_cv_func_std_isnan_in_cmath=yes
21851 echo "$as_me: failed program was:" >&5
21852 sed 's/^/| /' conftest.$ac_ext >&5
21854 ac_cv_func_std_isnan_in_cmath=no
21856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21858 ac_cpp='$CPP $CPPFLAGS'
21859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21864 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21865 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
21866 if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
21869 cat >>confdefs.h <<\_ACEOF
21870 #define HAVE_STD_ISNAN_IN_CMATH 1
21876 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21877 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
21878 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21879 echo $ECHO_N "(cached) $ECHO_C" >&6
21882 ac_cpp='$CXXCPP $CPPFLAGS'
21883 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21884 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21885 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21887 cat >conftest.$ac_ext <<_ACEOF
21890 cat confdefs.h >>conftest.$ac_ext
21891 cat >>conftest.$ac_ext <<_ACEOF
21892 /* end confdefs.h. */
21894 int foo(float f) {return isinf(f);}
21896 rm -f conftest.$ac_objext
21897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21898 (eval $ac_compile) 2>conftest.er1
21900 grep -v '^ *+' conftest.er1 >conftest.err
21902 cat conftest.err >&5
21903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904 (exit $ac_status); } &&
21905 { ac_try='test -z "$ac_cxx_werror_flag"
21906 || test ! -s conftest.err'
21907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21908 (eval $ac_try) 2>&5
21910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911 (exit $ac_status); }; } &&
21912 { ac_try='test -s conftest.$ac_objext'
21913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21914 (eval $ac_try) 2>&5
21916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917 (exit $ac_status); }; }; then
21918 ac_cv_func_isinf_in_math_h=yes
21920 echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.$ac_ext >&5
21923 ac_cv_func_isinf_in_math_h=no
21925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21927 ac_cpp='$CPP $CPPFLAGS'
21928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21933 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21934 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
21935 if test "$ac_cv_func_isinf_in_math_h" = "yes"
21938 cat >>confdefs.h <<\_ACEOF
21939 #define HAVE_ISINF_IN_MATH_H 1
21943 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21944 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
21945 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21946 echo $ECHO_N "(cached) $ECHO_C" >&6
21949 ac_cpp='$CXXCPP $CPPFLAGS'
21950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21954 cat >conftest.$ac_ext <<_ACEOF
21957 cat confdefs.h >>conftest.$ac_ext
21958 cat >>conftest.$ac_ext <<_ACEOF
21959 /* end confdefs.h. */
21961 int foo(float f) {return isinf(f);}
21963 rm -f conftest.$ac_objext
21964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21965 (eval $ac_compile) 2>conftest.er1
21967 grep -v '^ *+' conftest.er1 >conftest.err
21969 cat conftest.err >&5
21970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971 (exit $ac_status); } &&
21972 { ac_try='test -z "$ac_cxx_werror_flag"
21973 || test ! -s conftest.err'
21974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21975 (eval $ac_try) 2>&5
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); }; } &&
21979 { ac_try='test -s conftest.$ac_objext'
21980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21981 (eval $ac_try) 2>&5
21983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984 (exit $ac_status); }; }; then
21985 ac_cv_func_isinf_in_cmath=yes
21987 echo "$as_me: failed program was:" >&5
21988 sed 's/^/| /' conftest.$ac_ext >&5
21990 ac_cv_func_isinf_in_cmath=no
21992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21994 ac_cpp='$CPP $CPPFLAGS'
21995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22000 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
22001 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
22002 if test "$ac_cv_func_isinf_in_cmath" = "yes"
22005 cat >>confdefs.h <<\_ACEOF
22006 #define HAVE_ISINF_IN_CMATH 1
22010 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
22011 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
22012 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
22013 echo $ECHO_N "(cached) $ECHO_C" >&6
22016 ac_cpp='$CXXCPP $CPPFLAGS'
22017 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22018 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22019 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22021 cat >conftest.$ac_ext <<_ACEOF
22024 cat confdefs.h >>conftest.$ac_ext
22025 cat >>conftest.$ac_ext <<_ACEOF
22026 /* end confdefs.h. */
22028 using std::isinf; int foo(float f) {return isinf(f);}
22030 rm -f conftest.$ac_objext
22031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22032 (eval $ac_compile) 2>conftest.er1
22034 grep -v '^ *+' conftest.er1 >conftest.err
22036 cat conftest.err >&5
22037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22038 (exit $ac_status); } &&
22039 { ac_try='test -z "$ac_cxx_werror_flag"
22040 || test ! -s conftest.err'
22041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22042 (eval $ac_try) 2>&5
22044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045 (exit $ac_status); }; } &&
22046 { ac_try='test -s conftest.$ac_objext'
22047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22048 (eval $ac_try) 2>&5
22050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051 (exit $ac_status); }; }; then
22052 ac_cv_func_std_isinf_in_cmath=yes
22054 echo "$as_me: failed program was:" >&5
22055 sed 's/^/| /' conftest.$ac_ext >&5
22057 ac_cv_func_std_isinf_in_cmath=no
22059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22061 ac_cpp='$CPP $CPPFLAGS'
22062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22067 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22068 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22069 if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
22072 cat >>confdefs.h <<\_ACEOF
22073 #define HAVE_STD_ISINF_IN_CMATH 1
22077 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22078 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22079 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22080 echo $ECHO_N "(cached) $ECHO_C" >&6
22083 ac_cpp='$CXXCPP $CPPFLAGS'
22084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22088 cat >conftest.$ac_ext <<_ACEOF
22091 cat confdefs.h >>conftest.$ac_ext
22092 cat >>conftest.$ac_ext <<_ACEOF
22093 /* end confdefs.h. */
22094 #include <ieeefp.h>
22095 int foo(float f) {return finite(f);}
22097 rm -f conftest.$ac_objext
22098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22099 (eval $ac_compile) 2>conftest.er1
22101 grep -v '^ *+' conftest.er1 >conftest.err
22103 cat conftest.err >&5
22104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105 (exit $ac_status); } &&
22106 { ac_try='test -z "$ac_cxx_werror_flag"
22107 || test ! -s conftest.err'
22108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22109 (eval $ac_try) 2>&5
22111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112 (exit $ac_status); }; } &&
22113 { ac_try='test -s conftest.$ac_objext'
22114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22115 (eval $ac_try) 2>&5
22117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118 (exit $ac_status); }; }; then
22119 ac_cv_func_finite_in_ieeefp_h=yes
22121 echo "$as_me: failed program was:" >&5
22122 sed 's/^/| /' conftest.$ac_ext >&5
22124 ac_cv_func_finite_in_ieeefp_h=no
22126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22128 ac_cpp='$CPP $CPPFLAGS'
22129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22134 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22135 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22136 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
22139 cat >>confdefs.h <<\_ACEOF
22140 #define HAVE_FINITE_IN_IEEEFP_H 1
22146 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22147 # for constant arguments. Useless!
22148 echo "$as_me:$LINENO: checking for working alloca.h" >&5
22149 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22150 if test "${ac_cv_working_alloca_h+set}" = set; then
22151 echo $ECHO_N "(cached) $ECHO_C" >&6
22153 cat >conftest.$ac_ext <<_ACEOF
22156 cat confdefs.h >>conftest.$ac_ext
22157 cat >>conftest.$ac_ext <<_ACEOF
22158 /* end confdefs.h. */
22159 #include <alloca.h>
22163 char *p = (char *) alloca (2 * sizeof (int));
22168 rm -f conftest.$ac_objext conftest$ac_exeext
22169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22170 (eval $ac_link) 2>conftest.er1
22172 grep -v '^ *+' conftest.er1 >conftest.err
22174 cat conftest.err >&5
22175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176 (exit $ac_status); } &&
22177 { ac_try='test -z "$ac_c_werror_flag"
22178 || test ! -s conftest.err'
22179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22180 (eval $ac_try) 2>&5
22182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183 (exit $ac_status); }; } &&
22184 { ac_try='test -s conftest$ac_exeext'
22185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22186 (eval $ac_try) 2>&5
22188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189 (exit $ac_status); }; }; then
22190 ac_cv_working_alloca_h=yes
22192 echo "$as_me: failed program was:" >&5
22193 sed 's/^/| /' conftest.$ac_ext >&5
22195 ac_cv_working_alloca_h=no
22197 rm -f conftest.err conftest.$ac_objext \
22198 conftest$ac_exeext conftest.$ac_ext
22200 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22201 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22202 if test $ac_cv_working_alloca_h = yes; then
22204 cat >>confdefs.h <<\_ACEOF
22205 #define HAVE_ALLOCA_H 1
22210 echo "$as_me:$LINENO: checking for alloca" >&5
22211 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22212 if test "${ac_cv_func_alloca_works+set}" = set; then
22213 echo $ECHO_N "(cached) $ECHO_C" >&6
22215 cat >conftest.$ac_ext <<_ACEOF
22218 cat confdefs.h >>conftest.$ac_ext
22219 cat >>conftest.$ac_ext <<_ACEOF
22220 /* end confdefs.h. */
22222 # define alloca __builtin_alloca
22225 # include <malloc.h>
22226 # define alloca _alloca
22229 # include <alloca.h>
22234 # ifndef alloca /* predefined by HP cc +Olibcalls */
22245 char *p = (char *) alloca (1);
22250 rm -f conftest.$ac_objext conftest$ac_exeext
22251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22252 (eval $ac_link) 2>conftest.er1
22254 grep -v '^ *+' conftest.er1 >conftest.err
22256 cat conftest.err >&5
22257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258 (exit $ac_status); } &&
22259 { ac_try='test -z "$ac_c_werror_flag"
22260 || test ! -s conftest.err'
22261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22262 (eval $ac_try) 2>&5
22264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265 (exit $ac_status); }; } &&
22266 { ac_try='test -s conftest$ac_exeext'
22267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22268 (eval $ac_try) 2>&5
22270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271 (exit $ac_status); }; }; then
22272 ac_cv_func_alloca_works=yes
22274 echo "$as_me: failed program was:" >&5
22275 sed 's/^/| /' conftest.$ac_ext >&5
22277 ac_cv_func_alloca_works=no
22279 rm -f conftest.err conftest.$ac_objext \
22280 conftest$ac_exeext conftest.$ac_ext
22282 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22283 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22285 if test $ac_cv_func_alloca_works = yes; then
22287 cat >>confdefs.h <<\_ACEOF
22288 #define HAVE_ALLOCA 1
22292 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22293 # that cause trouble. Some versions do not even contain alloca or
22294 # contain a buggy version. If you still want to use their alloca,
22295 # use ar to extract alloca.o from them instead of compiling alloca.c.
22297 ALLOCA=alloca.$ac_objext
22299 cat >>confdefs.h <<\_ACEOF
22304 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22305 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22306 if test "${ac_cv_os_cray+set}" = set; then
22307 echo $ECHO_N "(cached) $ECHO_C" >&6
22309 cat >conftest.$ac_ext <<_ACEOF
22312 cat confdefs.h >>conftest.$ac_ext
22313 cat >>conftest.$ac_ext <<_ACEOF
22314 /* end confdefs.h. */
22315 #if defined(CRAY) && ! defined(CRAY2)
22322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22323 $EGREP "webecray" >/dev/null 2>&1; then
22331 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22332 echo "${ECHO_T}$ac_cv_os_cray" >&6
22333 if test $ac_cv_os_cray = yes; then
22334 for ac_func in _getb67 GETB67 getb67; do
22335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22336 echo "$as_me:$LINENO: checking for $ac_func" >&5
22337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22338 if eval "test \"\${$as_ac_var+set}\" = set"; then
22339 echo $ECHO_N "(cached) $ECHO_C" >&6
22341 cat >conftest.$ac_ext <<_ACEOF
22344 cat confdefs.h >>conftest.$ac_ext
22345 cat >>conftest.$ac_ext <<_ACEOF
22346 /* end confdefs.h. */
22347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22349 #define $ac_func innocuous_$ac_func
22351 /* System header to define __stub macros and hopefully few prototypes,
22352 which can conflict with char $ac_func (); below.
22353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22354 <limits.h> exists even on freestanding compilers. */
22357 # include <limits.h>
22359 # include <assert.h>
22364 /* Override any gcc2 internal prototype to avoid an error. */
22369 /* We use char because int might match the return type of a gcc2
22370 builtin and then its argument prototype would still apply. */
22372 /* The GNU C library defines this for functions which it implements
22373 to always fail with ENOSYS. Some functions are actually named
22374 something starting with __ and the normal name is an alias. */
22375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22378 char (*f) () = $ac_func;
22387 return f != $ac_func;
22392 rm -f conftest.$ac_objext conftest$ac_exeext
22393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22394 (eval $ac_link) 2>conftest.er1
22396 grep -v '^ *+' conftest.er1 >conftest.err
22398 cat conftest.err >&5
22399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400 (exit $ac_status); } &&
22401 { ac_try='test -z "$ac_c_werror_flag"
22402 || test ! -s conftest.err'
22403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22404 (eval $ac_try) 2>&5
22406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407 (exit $ac_status); }; } &&
22408 { ac_try='test -s conftest$ac_exeext'
22409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22410 (eval $ac_try) 2>&5
22412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413 (exit $ac_status); }; }; then
22414 eval "$as_ac_var=yes"
22416 echo "$as_me: failed program was:" >&5
22417 sed 's/^/| /' conftest.$ac_ext >&5
22419 eval "$as_ac_var=no"
22421 rm -f conftest.err conftest.$ac_objext \
22422 conftest$ac_exeext conftest.$ac_ext
22424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22425 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22426 if test `eval echo '${'$as_ac_var'}'` = yes; then
22428 cat >>confdefs.h <<_ACEOF
22429 #define CRAY_STACKSEG_END $ac_func
22438 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22439 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22440 if test "${ac_cv_c_stack_direction+set}" = set; then
22441 echo $ECHO_N "(cached) $ECHO_C" >&6
22443 if test "$cross_compiling" = yes; then
22444 ac_cv_c_stack_direction=0
22446 cat >conftest.$ac_ext <<_ACEOF
22449 cat confdefs.h >>conftest.$ac_ext
22450 cat >>conftest.$ac_ext <<_ACEOF
22451 /* end confdefs.h. */
22453 find_stack_direction ()
22455 static char *addr = 0;
22460 return find_stack_direction ();
22463 return (&dummy > addr) ? 1 : -1;
22469 exit (find_stack_direction () < 0);
22472 rm -f conftest$ac_exeext
22473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22474 (eval $ac_link) 2>&5
22476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22479 (eval $ac_try) 2>&5
22481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22482 (exit $ac_status); }; }; then
22483 ac_cv_c_stack_direction=1
22485 echo "$as_me: program exited with status $ac_status" >&5
22486 echo "$as_me: failed program was:" >&5
22487 sed 's/^/| /' conftest.$ac_ext >&5
22489 ( exit $ac_status )
22490 ac_cv_c_stack_direction=-1
22492 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22495 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22496 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22498 cat >>confdefs.h <<_ACEOF
22499 #define STACK_DIRECTION $ac_cv_c_stack_direction
22507 for ac_header in stdlib.h unistd.h
22509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22511 echo "$as_me:$LINENO: checking for $ac_header" >&5
22512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22514 echo $ECHO_N "(cached) $ECHO_C" >&6
22516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22519 # Is the header compilable?
22520 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22521 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22522 cat >conftest.$ac_ext <<_ACEOF
22525 cat confdefs.h >>conftest.$ac_ext
22526 cat >>conftest.$ac_ext <<_ACEOF
22527 /* end confdefs.h. */
22528 $ac_includes_default
22529 #include <$ac_header>
22531 rm -f conftest.$ac_objext
22532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22533 (eval $ac_compile) 2>conftest.er1
22535 grep -v '^ *+' conftest.er1 >conftest.err
22537 cat conftest.err >&5
22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); } &&
22540 { ac_try='test -z "$ac_c_werror_flag"
22541 || test ! -s conftest.err'
22542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22543 (eval $ac_try) 2>&5
22545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546 (exit $ac_status); }; } &&
22547 { ac_try='test -s conftest.$ac_objext'
22548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22549 (eval $ac_try) 2>&5
22551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552 (exit $ac_status); }; }; then
22553 ac_header_compiler=yes
22555 echo "$as_me: failed program was:" >&5
22556 sed 's/^/| /' conftest.$ac_ext >&5
22558 ac_header_compiler=no
22560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22561 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22562 echo "${ECHO_T}$ac_header_compiler" >&6
22564 # Is the header present?
22565 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22566 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22567 cat >conftest.$ac_ext <<_ACEOF
22570 cat confdefs.h >>conftest.$ac_ext
22571 cat >>conftest.$ac_ext <<_ACEOF
22572 /* end confdefs.h. */
22573 #include <$ac_header>
22575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22578 grep -v '^ *+' conftest.er1 >conftest.err
22580 cat conftest.err >&5
22581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582 (exit $ac_status); } >/dev/null; then
22583 if test -s conftest.err; then
22584 ac_cpp_err=$ac_c_preproc_warn_flag
22585 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22592 if test -z "$ac_cpp_err"; then
22593 ac_header_preproc=yes
22595 echo "$as_me: failed program was:" >&5
22596 sed 's/^/| /' conftest.$ac_ext >&5
22598 ac_header_preproc=no
22600 rm -f conftest.err conftest.$ac_ext
22601 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22602 echo "${ECHO_T}$ac_header_preproc" >&6
22604 # So? What about this header?
22605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22607 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22608 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22610 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22611 ac_header_preproc=yes
22614 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22615 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22616 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22617 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22618 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22619 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22620 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22621 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22623 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22624 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22625 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22628 ## ----------------------------------- ##
22629 ## Report this to llvmbugs@cs.uiuc.edu ##
22630 ## ----------------------------------- ##
22633 sed "s/^/$as_me: WARNING: /" >&2
22636 echo "$as_me:$LINENO: checking for $ac_header" >&5
22637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22639 echo $ECHO_N "(cached) $ECHO_C" >&6
22641 eval "$as_ac_Header=\$ac_header_preproc"
22643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22648 cat >>confdefs.h <<_ACEOF
22649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22657 for ac_func in getpagesize
22659 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22660 echo "$as_me:$LINENO: checking for $ac_func" >&5
22661 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22662 if eval "test \"\${$as_ac_var+set}\" = set"; then
22663 echo $ECHO_N "(cached) $ECHO_C" >&6
22665 cat >conftest.$ac_ext <<_ACEOF
22668 cat confdefs.h >>conftest.$ac_ext
22669 cat >>conftest.$ac_ext <<_ACEOF
22670 /* end confdefs.h. */
22671 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22673 #define $ac_func innocuous_$ac_func
22675 /* System header to define __stub macros and hopefully few prototypes,
22676 which can conflict with char $ac_func (); below.
22677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22678 <limits.h> exists even on freestanding compilers. */
22681 # include <limits.h>
22683 # include <assert.h>
22688 /* Override any gcc2 internal prototype to avoid an error. */
22693 /* We use char because int might match the return type of a gcc2
22694 builtin and then its argument prototype would still apply. */
22696 /* The GNU C library defines this for functions which it implements
22697 to always fail with ENOSYS. Some functions are actually named
22698 something starting with __ and the normal name is an alias. */
22699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22702 char (*f) () = $ac_func;
22711 return f != $ac_func;
22716 rm -f conftest.$ac_objext conftest$ac_exeext
22717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22718 (eval $ac_link) 2>conftest.er1
22720 grep -v '^ *+' conftest.er1 >conftest.err
22722 cat conftest.err >&5
22723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724 (exit $ac_status); } &&
22725 { ac_try='test -z "$ac_c_werror_flag"
22726 || test ! -s conftest.err'
22727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22728 (eval $ac_try) 2>&5
22730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22731 (exit $ac_status); }; } &&
22732 { ac_try='test -s conftest$ac_exeext'
22733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22734 (eval $ac_try) 2>&5
22736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737 (exit $ac_status); }; }; then
22738 eval "$as_ac_var=yes"
22740 echo "$as_me: failed program was:" >&5
22741 sed 's/^/| /' conftest.$ac_ext >&5
22743 eval "$as_ac_var=no"
22745 rm -f conftest.err conftest.$ac_objext \
22746 conftest$ac_exeext conftest.$ac_ext
22748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22749 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22750 if test `eval echo '${'$as_ac_var'}'` = yes; then
22751 cat >>confdefs.h <<_ACEOF
22752 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22758 echo "$as_me:$LINENO: checking for working mmap" >&5
22759 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22760 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22761 echo $ECHO_N "(cached) $ECHO_C" >&6
22763 if test "$cross_compiling" = yes; then
22764 ac_cv_func_mmap_fixed_mapped=no
22766 cat >conftest.$ac_ext <<_ACEOF
22769 cat confdefs.h >>conftest.$ac_ext
22770 cat >>conftest.$ac_ext <<_ACEOF
22771 /* end confdefs.h. */
22772 $ac_includes_default
22773 /* malloc might have been renamed as rpl_malloc. */
22776 /* Thanks to Mike Haertel and Jim Avera for this test.
22777 Here is a matrix of mmap possibilities:
22778 mmap private not fixed
22779 mmap private fixed at somewhere currently unmapped
22780 mmap private fixed at somewhere already mapped
22781 mmap shared not fixed
22782 mmap shared fixed at somewhere currently unmapped
22783 mmap shared fixed at somewhere already mapped
22784 For private mappings, we should verify that changes cannot be read()
22785 back from the file, nor mmap's back from the file at a different
22786 address. (There have been systems where private was not correctly
22787 implemented like the infamous i386 svr4.0, and systems where the
22788 VM page cache was not coherent with the file system buffer cache
22789 like early versions of FreeBSD and possibly contemporary NetBSD.)
22790 For shared mappings, we should conversely verify that changes get
22791 propagated back to all the places they're supposed to be.
22793 Grep wants private fixed already mapped.
22794 The main things grep needs to know about mmap are:
22795 * does it exist and is it safe to write into the mmap'd area
22796 * how to use it (BSD variants) */
22799 #include <sys/mman.h>
22801 #if !STDC_HEADERS && !HAVE_STDLIB_H
22805 /* This mess was copied from the GNU getpagesize.h. */
22806 #if !HAVE_GETPAGESIZE
22807 /* Assume that all systems that can run configure have sys/param.h. */
22808 # if !HAVE_SYS_PARAM_H
22809 # define HAVE_SYS_PARAM_H 1
22812 # ifdef _SC_PAGESIZE
22813 # define getpagesize() sysconf(_SC_PAGESIZE)
22814 # else /* no _SC_PAGESIZE */
22815 # if HAVE_SYS_PARAM_H
22816 # include <sys/param.h>
22817 # ifdef EXEC_PAGESIZE
22818 # define getpagesize() EXEC_PAGESIZE
22819 # else /* no EXEC_PAGESIZE */
22821 # define getpagesize() NBPG * CLSIZE
22824 # endif /* no CLSIZE */
22825 # else /* no NBPG */
22827 # define getpagesize() NBPC
22828 # else /* no NBPC */
22830 # define getpagesize() PAGESIZE
22831 # endif /* PAGESIZE */
22832 # endif /* no NBPC */
22833 # endif /* no NBPG */
22834 # endif /* no EXEC_PAGESIZE */
22835 # else /* no HAVE_SYS_PARAM_H */
22836 # define getpagesize() 8192 /* punt totally */
22837 # endif /* no HAVE_SYS_PARAM_H */
22838 # endif /* no _SC_PAGESIZE */
22840 #endif /* no HAVE_GETPAGESIZE */
22845 char *data, *data2, *data3;
22849 pagesize = getpagesize ();
22851 /* First, make a file with some known garbage in it. */
22852 data = (char *) malloc (pagesize);
22855 for (i = 0; i < pagesize; ++i)
22856 *(data + i) = rand ();
22858 fd = creat ("conftest.mmap", 0600);
22861 if (write (fd, data, pagesize) != pagesize)
22865 /* Next, try to mmap the file at a fixed address which already has
22866 something else allocated at it. If we can, also make sure that
22867 we see the same garbage. */
22868 fd = open ("conftest.mmap", O_RDWR);
22871 data2 = (char *) malloc (2 * pagesize);
22874 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
22875 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22876 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22878 for (i = 0; i < pagesize; ++i)
22879 if (*(data + i) != *(data2 + i))
22882 /* Finally, make sure that changes to the mapped area do not
22883 percolate back to the file as seen by read(). (This is a bug on
22884 some variants of i386 svr4.0.) */
22885 for (i = 0; i < pagesize; ++i)
22886 *(data2 + i) = *(data2 + i) + 1;
22887 data3 = (char *) malloc (pagesize);
22890 if (read (fd, data3, pagesize) != pagesize)
22892 for (i = 0; i < pagesize; ++i)
22893 if (*(data + i) != *(data3 + i))
22899 rm -f conftest$ac_exeext
22900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22901 (eval $ac_link) 2>&5
22903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22906 (eval $ac_try) 2>&5
22908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909 (exit $ac_status); }; }; then
22910 ac_cv_func_mmap_fixed_mapped=yes
22912 echo "$as_me: program exited with status $ac_status" >&5
22913 echo "$as_me: failed program was:" >&5
22914 sed 's/^/| /' conftest.$ac_ext >&5
22916 ( exit $ac_status )
22917 ac_cv_func_mmap_fixed_mapped=no
22919 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22922 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22923 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22924 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22926 cat >>confdefs.h <<\_ACEOF
22927 #define HAVE_MMAP 1
22931 rm -f conftest.mmap
22933 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
22935 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
22936 echo "$as_me: WARNING: mmap() required but not found" >&2;}
22938 echo "$as_me:$LINENO: checking for mmap of files" >&5
22939 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22940 if test "${ac_cv_func_mmap_file+set}" = set; then
22941 echo $ECHO_N "(cached) $ECHO_C" >&6
22946 ac_cpp='$CPP $CPPFLAGS'
22947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22951 if test "$cross_compiling" = yes; then
22952 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22953 See \`config.log' for more details." >&5
22954 echo "$as_me: error: cannot run test program while cross compiling
22955 See \`config.log' for more details." >&2;}
22956 { (exit 1); exit 1; }; }
22958 cat >conftest.$ac_ext <<_ACEOF
22961 cat confdefs.h >>conftest.$ac_ext
22962 cat >>conftest.$ac_ext <<_ACEOF
22963 /* end confdefs.h. */
22965 #ifdef HAVE_SYS_TYPES_H
22966 #include <sys/types.h>
22969 #ifdef HAVE_SYS_MMAN_H
22970 #include <sys/mman.h>
22973 #ifdef HAVE_FCNTL_H
22979 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
22981 rm -f conftest$ac_exeext
22982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22983 (eval $ac_link) 2>&5
22985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22988 (eval $ac_try) 2>&5
22990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22991 (exit $ac_status); }; }; then
22992 ac_cv_func_mmap_file=yes
22994 echo "$as_me: program exited with status $ac_status" >&5
22995 echo "$as_me: failed program was:" >&5
22996 sed 's/^/| /' conftest.$ac_ext >&5
22998 ( exit $ac_status )
22999 ac_cv_func_mmap_file=no
23001 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23004 ac_cpp='$CPP $CPPFLAGS'
23005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23011 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
23012 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
23013 if test "$ac_cv_func_mmap_file" = yes; then
23015 cat >>confdefs.h <<\_ACEOF
23016 #define HAVE_MMAP_FILE
23023 if test "$ac_cv_func_mmap_file" = "no"
23025 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23026 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
23028 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23029 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23030 if test "${ac_cv_header_mmap_anon+set}" = set; then
23031 echo $ECHO_N "(cached) $ECHO_C" >&6
23036 ac_cpp='$CPP $CPPFLAGS'
23037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23041 cat >conftest.$ac_ext <<_ACEOF
23044 cat confdefs.h >>conftest.$ac_ext
23045 cat >>conftest.$ac_ext <<_ACEOF
23046 /* end confdefs.h. */
23047 #include <sys/mman.h>
23048 #include <unistd.h>
23053 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23058 rm -f conftest.$ac_objext
23059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23060 (eval $ac_compile) 2>conftest.er1
23062 grep -v '^ *+' conftest.er1 >conftest.err
23064 cat conftest.err >&5
23065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066 (exit $ac_status); } &&
23067 { ac_try='test -z "$ac_c_werror_flag"
23068 || test ! -s conftest.err'
23069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23070 (eval $ac_try) 2>&5
23072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073 (exit $ac_status); }; } &&
23074 { ac_try='test -s conftest.$ac_objext'
23075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23076 (eval $ac_try) 2>&5
23078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079 (exit $ac_status); }; }; then
23080 ac_cv_header_mmap_anon=yes
23082 echo "$as_me: failed program was:" >&5
23083 sed 's/^/| /' conftest.$ac_ext >&5
23085 ac_cv_header_mmap_anon=no
23087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23089 ac_cpp='$CPP $CPPFLAGS'
23090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23096 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23097 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23098 if test "$ac_cv_header_mmap_anon" = yes; then
23100 cat >>confdefs.h <<\_ACEOF
23101 #define HAVE_MMAP_ANONYMOUS
23106 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23107 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23108 if test "${ac_cv_type_signal+set}" = set; then
23109 echo $ECHO_N "(cached) $ECHO_C" >&6
23111 cat >conftest.$ac_ext <<_ACEOF
23114 cat confdefs.h >>conftest.$ac_ext
23115 cat >>conftest.$ac_ext <<_ACEOF
23116 /* end confdefs.h. */
23117 #include <sys/types.h>
23118 #include <signal.h>
23123 extern "C" void (*signal (int, void (*)(int)))(int);
23125 void (*signal ()) ();
23136 rm -f conftest.$ac_objext
23137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23138 (eval $ac_compile) 2>conftest.er1
23140 grep -v '^ *+' conftest.er1 >conftest.err
23142 cat conftest.err >&5
23143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23144 (exit $ac_status); } &&
23145 { ac_try='test -z "$ac_c_werror_flag"
23146 || test ! -s conftest.err'
23147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23148 (eval $ac_try) 2>&5
23150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151 (exit $ac_status); }; } &&
23152 { ac_try='test -s conftest.$ac_objext'
23153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23154 (eval $ac_try) 2>&5
23156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23157 (exit $ac_status); }; }; then
23158 ac_cv_type_signal=void
23160 echo "$as_me: failed program was:" >&5
23161 sed 's/^/| /' conftest.$ac_ext >&5
23163 ac_cv_type_signal=int
23165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23167 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23168 echo "${ECHO_T}$ac_cv_type_signal" >&6
23170 cat >>confdefs.h <<_ACEOF
23171 #define RETSIGTYPE $ac_cv_type_signal
23184 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
23186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23187 echo "$as_me:$LINENO: checking for $ac_func" >&5
23188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23189 if eval "test \"\${$as_ac_var+set}\" = set"; then
23190 echo $ECHO_N "(cached) $ECHO_C" >&6
23192 cat >conftest.$ac_ext <<_ACEOF
23195 cat confdefs.h >>conftest.$ac_ext
23196 cat >>conftest.$ac_ext <<_ACEOF
23197 /* end confdefs.h. */
23198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23200 #define $ac_func innocuous_$ac_func
23202 /* System header to define __stub macros and hopefully few prototypes,
23203 which can conflict with char $ac_func (); below.
23204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23205 <limits.h> exists even on freestanding compilers. */
23208 # include <limits.h>
23210 # include <assert.h>
23215 /* Override any gcc2 internal prototype to avoid an error. */
23220 /* We use char because int might match the return type of a gcc2
23221 builtin and then its argument prototype would still apply. */
23223 /* The GNU C library defines this for functions which it implements
23224 to always fail with ENOSYS. Some functions are actually named
23225 something starting with __ and the normal name is an alias. */
23226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23229 char (*f) () = $ac_func;
23238 return f != $ac_func;
23243 rm -f conftest.$ac_objext conftest$ac_exeext
23244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23245 (eval $ac_link) 2>conftest.er1
23247 grep -v '^ *+' conftest.er1 >conftest.err
23249 cat conftest.err >&5
23250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23251 (exit $ac_status); } &&
23252 { ac_try='test -z "$ac_c_werror_flag"
23253 || test ! -s conftest.err'
23254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23255 (eval $ac_try) 2>&5
23257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258 (exit $ac_status); }; } &&
23259 { ac_try='test -s conftest$ac_exeext'
23260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23261 (eval $ac_try) 2>&5
23263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264 (exit $ac_status); }; }; then
23265 eval "$as_ac_var=yes"
23267 echo "$as_me: failed program was:" >&5
23268 sed 's/^/| /' conftest.$ac_ext >&5
23270 eval "$as_ac_var=no"
23272 rm -f conftest.err conftest.$ac_objext \
23273 conftest$ac_exeext conftest.$ac_ext
23275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23276 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23277 if test `eval echo '${'$as_ac_var'}'` = yes; then
23278 cat >>confdefs.h <<_ACEOF
23279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23285 echo "$as_me:$LINENO: checking for mprotect" >&5
23286 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
23287 if test "${ac_cv_func_mprotect+set}" = set; then
23288 echo $ECHO_N "(cached) $ECHO_C" >&6
23290 cat >conftest.$ac_ext <<_ACEOF
23293 cat confdefs.h >>conftest.$ac_ext
23294 cat >>conftest.$ac_ext <<_ACEOF
23295 /* end confdefs.h. */
23296 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
23297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23298 #define mprotect innocuous_mprotect
23300 /* System header to define __stub macros and hopefully few prototypes,
23301 which can conflict with char mprotect (); below.
23302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23303 <limits.h> exists even on freestanding compilers. */
23306 # include <limits.h>
23308 # include <assert.h>
23313 /* Override any gcc2 internal prototype to avoid an error. */
23318 /* We use char because int might match the return type of a gcc2
23319 builtin and then its argument prototype would still apply. */
23321 /* The GNU C library defines this for functions which it implements
23322 to always fail with ENOSYS. Some functions are actually named
23323 something starting with __ and the normal name is an alias. */
23324 #if defined (__stub_mprotect) || defined (__stub___mprotect)
23327 char (*f) () = mprotect;
23336 return f != mprotect;
23341 rm -f conftest.$ac_objext conftest$ac_exeext
23342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23343 (eval $ac_link) 2>conftest.er1
23345 grep -v '^ *+' conftest.er1 >conftest.err
23347 cat conftest.err >&5
23348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349 (exit $ac_status); } &&
23350 { ac_try='test -z "$ac_c_werror_flag"
23351 || test ! -s conftest.err'
23352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23353 (eval $ac_try) 2>&5
23355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356 (exit $ac_status); }; } &&
23357 { ac_try='test -s conftest$ac_exeext'
23358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23359 (eval $ac_try) 2>&5
23361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362 (exit $ac_status); }; }; then
23363 ac_cv_func_mprotect=yes
23365 echo "$as_me: failed program was:" >&5
23366 sed 's/^/| /' conftest.$ac_ext >&5
23368 ac_cv_func_mprotect=no
23370 rm -f conftest.err conftest.$ac_objext \
23371 conftest$ac_exeext conftest.$ac_ext
23373 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
23374 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
23375 if test $ac_cv_func_mprotect = yes; then
23378 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
23379 echo "$as_me: error: Function mprotect() required but not found" >&2;}
23380 { (exit 1); exit 1; }; }
23385 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
23386 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
23390 ac_cpp='$CPP $CPPFLAGS'
23391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23395 oldcflags="$CFLAGS"
23396 CFLAGS="$CFLAGS -Wl,-R."
23397 cat >conftest.$ac_ext <<_ACEOF
23398 int main() { return 0; }
23400 rm -f conftest.$ac_objext conftest$ac_exeext
23401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23402 (eval $ac_link) 2>conftest.er1
23404 grep -v '^ *+' conftest.er1 >conftest.err
23406 cat conftest.err >&5
23407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23408 (exit $ac_status); } &&
23409 { ac_try='test -z "$ac_c_werror_flag"
23410 || test ! -s conftest.err'
23411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23412 (eval $ac_try) 2>&5
23414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23415 (exit $ac_status); }; } &&
23416 { ac_try='test -s conftest$ac_exeext'
23417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23418 (eval $ac_try) 2>&5
23420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23421 (exit $ac_status); }; }; then
23422 ac_cv_link_use_r=yes
23424 echo "$as_me: failed program was:" >&5
23425 sed 's/^/| /' conftest.$ac_ext >&5
23427 ac_cv_link_use_r=no
23429 rm -f conftest.err conftest.$ac_objext \
23430 conftest$ac_exeext conftest.$ac_ext
23431 CFLAGS="$oldcflags"
23433 ac_cpp='$CPP $CPPFLAGS'
23434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23438 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
23439 echo "${ECHO_T}$ac_cv_link_use_r" >&6
23440 if test "$ac_cv_link_use_r" = yes
23443 cat >>confdefs.h <<\_ACEOF
23444 #define HAVE_LINK_R 1
23450 # Check whether --enable-optimized or --disable-optimized was given.
23451 if test "${enable_optimized+set}" = set; then
23452 enableval="$enable_optimized"
23457 if test ${enableval} = "no"
23462 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
23469 # Check whether --enable-spec95 or --disable-spec95 was given.
23470 if test "${enable_spec95+set}" = set; then
23471 enableval="$enable_spec95"
23472 checkresult=$enableval
23476 echo "$as_me:$LINENO: checking for spec95 benchmark sources" >&5
23477 echo $ECHO_N "checking for spec95 benchmark sources... $ECHO_C" >&6
23478 case "$checkresult" in
23480 defaultdir=/home/vadve/shared/benchmarks/spec95/benchspec
23481 if test -d "$defaultdir"
23483 SPEC95_ROOT=$defaultdir
23485 USE_SPEC95=USE_SPEC95=1
23487 checkresult="yes, found in $defaultdir"
23497 *) if test -d "$checkresult"
23499 SPEC95_ROOT="$checkresult"
23501 USE_SPEC95=USE_SPEC95=1
23503 checkresult="yes, in $checkresult"
23507 checkresult="no, not found in $checkresult"
23511 echo "$as_me:$LINENO: result: $checkresult" >&5
23512 echo "${ECHO_T}$checkresult" >&6
23516 # Check whether --enable-spec2000 or --disable-spec2000 was given.
23517 if test "${enable_spec2000+set}" = set; then
23518 enableval="$enable_spec2000"
23519 checkresult=$enableval
23523 echo "$as_me:$LINENO: checking for spec2000 benchmark sources" >&5
23524 echo $ECHO_N "checking for spec2000 benchmark sources... $ECHO_C" >&6
23525 case "$checkresult" in
23527 defaultdir=/home/vadve/shared/benchmarks/speccpu2000/benchspec
23528 if test -d "$defaultdir"
23530 SPEC2000_ROOT=$defaultdir
23532 USE_SPEC2000=USE_SPEC2000=1
23534 checkresult="yes, found in $defaultdir"
23544 *) if test -d "$checkresult"
23546 SPEC2000_ROOT="$checkresult"
23548 USE_SPEC2000=USE_SPEC2000=1
23550 checkresult="yes, in $checkresult"
23554 checkresult="no, not found in $checkresult"
23558 echo "$as_me:$LINENO: result: $checkresult" >&5
23559 echo "${ECHO_T}$checkresult" >&6
23563 # Check whether --enable-povray or --disable-povray was given.
23564 if test "${enable_povray+set}" = set; then
23565 enableval="$enable_povray"
23566 checkresult=$enableval
23570 echo "$as_me:$LINENO: checking for povray benchmark sources" >&5
23571 echo $ECHO_N "checking for povray benchmark sources... $ECHO_C" >&6
23572 case "$checkresult" in
23574 defaultdir=/home/vadve/shared/benchmarks/povray31
23575 if test -d "$defaultdir"
23577 POVRAY_ROOT=$defaultdir
23579 USE_POVRAY=USE_POVRAY=1
23581 checkresult="yes, found in $defaultdir"
23591 *) if test -d "$checkresult"
23593 POVRAY_ROOT="$checkresult"
23595 USE_POVRAY=USE_POVRAY=1
23597 checkresult="yes, in $checkresult"
23601 checkresult="no, not found in $checkresult"
23605 echo "$as_me:$LINENO: result: $checkresult" >&5
23606 echo "${ECHO_T}$checkresult" >&6
23610 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
23611 if test "${enable_precompiled_bytecode+set}" = set; then
23612 enableval="$enable_precompiled_bytecode"
23617 if test ${enableval} = "no"
23622 UPB=USE_PRECOMPILED_BYTECODE=1
23626 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
23627 if test "${enable_llc_diffs+set}" = set; then
23628 enableval="$enable_llc_diffs"
23633 if test ${enableval} = "no"
23635 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
23642 # Check whether --enable-jit or --disable-jit was given.
23643 if test "${enable_jit+set}" = set; then
23644 enableval="$enable_jit"
23649 if test ${enableval} = "no"
23656 JIT=TARGET_HAS_JIT=1
23660 JIT=TARGET_HAS_JIT=1
23671 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
23672 if test "${with_llvmgccdir+set}" = set; then
23673 withval="$with_llvmgccdir"
23674 LLVMGCCDIR=$withval
23677 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
23678 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
23680 if test -d "$LLVMGCCDIR"
23682 if test -x "$LLVMGCCDIR/bin/gcc"
23684 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
23688 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
23689 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
23690 if test "$LLVM_GCC_CHECK" = "no"
23694 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
23695 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
23697 if test -x "$LLVM_GCC_CHECK"
23699 cp /dev/null conftest.c
23700 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
23706 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
23707 LLVMCC1=$llvmcc1path
23709 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
23710 LLVMCC1PLUS=$llvmcc1pluspath
23713 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
23714 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
23715 if test "$LLVM_GCC_SANE" = "no"
23721 # Check whether --with-bcrepos or --without-bcrepos was given.
23722 if test "${with_bcrepos+set}" = set; then
23723 withval="$with_bcrepos"
23727 BCR=/home/vadve/lattner/LLVMPrograms
23732 # Check whether --with-papi or --without-papi was given.
23733 if test "${with_papi+set}" = set; then
23734 withval="$with_papi"
23738 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
23742 echo "$as_me:$LINENO: checking for shared library suffix" >&5
23743 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
23744 eval "SHLIBEXT=$shrext"
23745 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
23746 echo "${ECHO_T}$SHLIBEXT" >&6
23750 cat >>confdefs.h <<_ACEOF
23751 #define SHLIBEXT "$SHLIBEXT"
23755 # Translate the various configuration directories and other basic
23756 # information into substitutions that will end up in config.h.in so
23757 # that these configured values can be hard-wired into a program.
23758 eval LLVM_PREFIX="${prefix}";
23759 eval LLVM_BINDIR="${prefix}/bin";
23760 eval LLVM_LIBDIR="${prefix}/lib";
23761 eval LLVM_DATADIR="${prefix}/data";
23762 eval LLVM_DOCSDIR="${prefix}/docs";
23763 eval LLVM_ETCDIR="${prefix}/etc";
23764 eval LLVM_INCLUDEDIR="${prefix}/include";
23765 eval LLVM_INFODIR="${prefix}/info";
23766 eval LLVM_MANDIR="${prefix}/man";
23767 LLVM_CONFIGTIME=`date`
23779 cat >>confdefs.h <<_ACEOF
23780 #define LLVM_PREFIX "$LLVM_PREFIX"
23784 cat >>confdefs.h <<_ACEOF
23785 #define LLVM_BINDIR "$LLVM_BINDIR"
23789 cat >>confdefs.h <<_ACEOF
23790 #define LLVM_LIBDIR "$LLVM_LIBDIR"
23794 cat >>confdefs.h <<_ACEOF
23795 #define LLVM_DATADIR "$LLVM_DATADIR"
23799 cat >>confdefs.h <<_ACEOF
23800 #define LLVM_DATADIR "$LLVM_DOCSDIR"
23804 cat >>confdefs.h <<_ACEOF
23805 #define LLVM_ETCDIR "$LLVM_ETCDIR"
23809 cat >>confdefs.h <<_ACEOF
23810 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
23814 cat >>confdefs.h <<_ACEOF
23815 #define LLVM_INFODIR "$LLVM_INFODIR"
23819 cat >>confdefs.h <<_ACEOF
23820 #define LLVM_MANDIR "$LLVM_MANDIR"
23824 cat >>confdefs.h <<_ACEOF
23825 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
23829 cat >confcache <<\_ACEOF
23830 # This file is a shell script that caches the results of configure
23831 # tests run on this system so they can be shared between configure
23832 # scripts and configure runs, see configure's option --config-cache.
23833 # It is not useful on other systems. If it contains results you don't
23834 # want to keep, you may remove or edit it.
23836 # config.status only pays attention to the cache file if you give it
23837 # the --recheck option to rerun configure.
23839 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23840 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23841 # following values.
23845 # The following way of writing the cache mishandles newlines in values,
23846 # but we know of no workaround that is simple, portable, and efficient.
23847 # So, don't put newlines in cache variables' values.
23848 # Ultrix sh set writes to stderr and can't be redirected directly,
23849 # and sets the high bit in the cache file unless we assign to the vars.
23852 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23854 # `set' does not quote correctly, so add quotes (double-quote
23855 # substitution turns \\\\ into \\, and sed turns \\ into \).
23858 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23861 # `set' quotes correctly as required by POSIX, so do not add quotes.
23863 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23870 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23872 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23874 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23875 if test -w $cache_file; then
23876 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23877 cat confcache >$cache_file
23879 echo "not updating unwritable cache $cache_file"
23884 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23885 # Let make expand exec_prefix.
23886 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23888 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23889 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23890 # trailing colons and then remove the whole line if VPATH becomes empty
23891 # (actually we leave an empty line to preserve line numbers).
23892 if test "x$srcdir" = x.; then
23893 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23894 s/:*\$(srcdir):*/:/;
23895 s/:*\${srcdir}:*/:/;
23897 s/^\([^=]*=[ ]*\):*/\1/;
23903 DEFS=-DHAVE_CONFIG_H
23907 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23908 # 1. Remove the extension, and $U if already installed.
23909 ac_i=`echo "$ac_i" |
23910 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23912 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23913 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23915 LIBOBJS=$ac_libobjs
23917 LTLIBOBJS=$ac_ltlibobjs
23921 : ${CONFIG_STATUS=./config.status}
23922 ac_clean_files_save=$ac_clean_files
23923 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23924 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23925 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23926 cat >$CONFIG_STATUS <<_ACEOF
23928 # Generated by $as_me.
23929 # Run this file to recreate the current configuration.
23930 # Compiler output produced by configure, useful for debugging
23931 # configure, is in config.log if it exists.
23934 ac_cs_recheck=false
23936 SHELL=\${CONFIG_SHELL-$SHELL}
23939 cat >>$CONFIG_STATUS <<\_ACEOF
23940 ## --------------------- ##
23941 ## M4sh Initialization. ##
23942 ## --------------------- ##
23944 # Be Bourne compatible
23945 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23948 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23949 # is contrary to our usage. Disable this feature.
23950 alias -g '${1+"$@"}'='"$@"'
23951 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23954 DUALCASE=1; export DUALCASE # for MKS sh
23956 # Support unset when possible.
23957 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23964 # Work around bugs in pre-3.0 UWIN ksh.
23965 $as_unset ENV MAIL MAILPATH
23972 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23973 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23974 LC_TELEPHONE LC_TIME
23976 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23977 eval $as_var=C; export $as_var
23983 # Required to use basename.
23984 if expr a : '\(a\)' >/dev/null 2>&1; then
23990 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23991 as_basename=basename
23997 # Name of the executable.
23998 as_me=`$as_basename "$0" ||
23999 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24000 X"$0" : 'X\(//\)$' \| \
24001 X"$0" : 'X\(/\)$' \| \
24002 . : '\(.\)' 2>/dev/null ||
24004 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24005 /^X\/\(\/\/\)$/{ s//\1/; q; }
24006 /^X\/\(\/\).*/{ s//\1/; q; }
24010 # PATH needs CR, and LINENO needs CR and PATH.
24011 # Avoid depending upon Character Ranges.
24012 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24013 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24014 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24015 as_cr_digits='0123456789'
24016 as_cr_alnum=$as_cr_Letters$as_cr_digits
24018 # The user is always right.
24019 if test "${PATH_SEPARATOR+set}" != set; then
24020 echo "#! /bin/sh" >conf$$.sh
24021 echo "exit 0" >>conf$$.sh
24023 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24032 as_lineno_1=$LINENO
24033 as_lineno_2=$LINENO
24034 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24035 test "x$as_lineno_1" != "x$as_lineno_2" &&
24036 test "x$as_lineno_3" = "x$as_lineno_2" || {
24037 # Find who we are. Look in the path if we contain no path at all
24040 *[\\/]* ) as_myself=$0 ;;
24041 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24042 for as_dir in $PATH
24045 test -z "$as_dir" && as_dir=.
24046 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24051 # We did not find ourselves, most probably we were run as `sh COMMAND'
24052 # in which case we are not to be found in the path.
24053 if test "x$as_myself" = x; then
24056 if test ! -f "$as_myself"; then
24057 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24058 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24059 { (exit 1); exit 1; }; }
24061 case $CONFIG_SHELL in
24063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24064 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24067 test -z "$as_dir" && as_dir=.
24068 for as_base in sh bash ksh sh5; do
24071 if ("$as_dir/$as_base" -c '
24072 as_lineno_1=$LINENO
24073 as_lineno_2=$LINENO
24074 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24075 test "x$as_lineno_1" != "x$as_lineno_2" &&
24076 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24077 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24078 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24079 CONFIG_SHELL=$as_dir/$as_base
24080 export CONFIG_SHELL
24081 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24089 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24090 # uniformly replaced by the line number. The first 'sed' inserts a
24091 # line-number line before each line; the second 'sed' does the real
24092 # work. The second script uses 'N' to pair each line-number line
24093 # with the numbered line, and appends trailing '-' during
24094 # substitution so that $LINENO is not a special case at line end.
24095 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24096 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24097 sed '=' <$as_myself |
24102 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24105 s,^['$as_cr_digits']*\n,,
24106 ' >$as_me.lineno &&
24107 chmod +x $as_me.lineno ||
24108 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24109 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24110 { (exit 1); exit 1; }; }
24112 # Don't try to exec as it changes $[0], causing all sort of problems
24113 # (the dirname of $[0] is not the place where we might find the
24114 # original and so on. Autoconf is especially sensible to this).
24116 # Exit status is that of the last command.
24121 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24122 *c*,-n*) ECHO_N= ECHO_C='
24124 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24125 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24128 if expr a : '\(a\)' >/dev/null 2>&1; then
24134 rm -f conf$$ conf$$.exe conf$$.file
24136 if ln -s conf$$.file conf$$ 2>/dev/null; then
24137 # We could just check for DJGPP; but this test a) works b) is more generic
24138 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24139 if test -f conf$$.exe; then
24140 # Don't use ln at all; we don't have any links
24145 elif ln conf$$.file conf$$ 2>/dev/null; then
24150 rm -f conf$$ conf$$.exe conf$$.file
24152 if mkdir -p . 2>/dev/null; then
24155 test -d ./-p && rmdir ./-p
24159 as_executable_p="test -f"
24161 # Sed expression to map a string onto a valid CPP name.
24162 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24164 # Sed expression to map a string onto a valid variable name.
24165 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24169 # We need space, tab and new line, in precisely that order.
24179 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24180 # report actual input values of CONFIG_FILES etc. instead of their
24181 # values after options handling. Logging --version etc. is OK.
24185 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24186 ## Running $as_me. ##
24191 This file was extended by LLVM $as_me 1.4, which was
24192 generated by GNU Autoconf 2.59. Invocation command line was
24194 CONFIG_FILES = $CONFIG_FILES
24195 CONFIG_HEADERS = $CONFIG_HEADERS
24196 CONFIG_LINKS = $CONFIG_LINKS
24197 CONFIG_COMMANDS = $CONFIG_COMMANDS
24201 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24205 # Files that config.status was made for.
24206 if test -n "$ac_config_files"; then
24207 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24210 if test -n "$ac_config_headers"; then
24211 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24214 if test -n "$ac_config_links"; then
24215 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24218 if test -n "$ac_config_commands"; then
24219 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24222 cat >>$CONFIG_STATUS <<\_ACEOF
24225 \`$as_me' instantiates files from templates according to the
24226 current configuration.
24228 Usage: $0 [OPTIONS] [FILE]...
24230 -h, --help print this help, then exit
24231 -V, --version print version number, then exit
24232 -q, --quiet do not print progress messages
24233 -d, --debug don't remove temporary files
24234 --recheck update $as_me by reconfiguring in the same conditions
24235 --file=FILE[:TEMPLATE]
24236 instantiate the configuration file FILE
24237 --header=FILE[:TEMPLATE]
24238 instantiate the configuration header FILE
24240 Configuration files:
24243 Configuration headers:
24246 Configuration links:
24249 Configuration commands:
24252 Report bugs to <bug-autoconf@gnu.org>."
24255 cat >>$CONFIG_STATUS <<_ACEOF
24257 LLVM config.status 1.4
24258 configured by $0, generated by GNU Autoconf 2.59,
24259 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24261 Copyright (C) 2003 Free Software Foundation, Inc.
24262 This config.status script is free software; the Free Software Foundation
24263 gives unlimited permission to copy, distribute and modify it."
24268 cat >>$CONFIG_STATUS <<\_ACEOF
24269 # If no file are specified by the user, then we need to provide default
24270 # value. By we need to know if files were specified by the user.
24276 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24277 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24285 *) # This is not an option, so the user has probably given explicit
24288 ac_need_defaults=false;;
24292 # Handling of the options.
24294 cat >>$CONFIG_STATUS <<\_ACEOF
24295 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24297 --version | --vers* | -V )
24298 echo "$ac_cs_version"; exit 0 ;;
24300 # Conflict between --help and --header
24301 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24302 Try \`$0 --help' for more information." >&5
24303 echo "$as_me: error: ambiguous option: $1
24304 Try \`$0 --help' for more information." >&2;}
24305 { (exit 1); exit 1; }; };;
24306 --help | --hel | -h )
24307 echo "$ac_cs_usage"; exit 0 ;;
24308 --debug | --d* | -d )
24310 --file | --fil | --fi | --f )
24312 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24313 ac_need_defaults=false;;
24314 --header | --heade | --head | --hea )
24316 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24317 ac_need_defaults=false;;
24318 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24319 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24322 # This is an error.
24323 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24324 Try \`$0 --help' for more information." >&5
24325 echo "$as_me: error: unrecognized option: $1
24326 Try \`$0 --help' for more information." >&2;}
24327 { (exit 1); exit 1; }; } ;;
24329 *) ac_config_targets="$ac_config_targets $1" ;;
24335 ac_configure_extra_args=
24337 if $ac_cs_silent; then
24339 ac_configure_extra_args="$ac_configure_extra_args --silent"
24343 cat >>$CONFIG_STATUS <<_ACEOF
24344 if \$ac_cs_recheck; then
24345 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24346 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24351 cat >>$CONFIG_STATUS <<_ACEOF
24353 # INIT-COMMANDS section.
24356 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
24357 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
24358 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
24359 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
24360 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
24361 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
24362 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24363 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
24364 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
24365 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
24366 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
24367 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.tests`
24368 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
24369 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
24370 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
24371 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
24372 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
24373 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
24374 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
24375 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
24376 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
24377 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
24378 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
24379 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
24380 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.vtl.Makefile`
24381 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
24382 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
24383 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
24384 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec2000`
24385 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
24386 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
24387 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
24388 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
24389 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
24390 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
24391 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
24392 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
24393 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
24394 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
24395 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
24396 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
24397 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
24398 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
24399 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
24400 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
24401 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
24402 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
24403 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
24404 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
24405 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
24406 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
24412 cat >>$CONFIG_STATUS <<\_ACEOF
24413 for ac_config_target in $ac_config_targets
24415 case "$ac_config_target" in
24416 # Handling of arguments.
24417 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
24418 "include/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/DataTypes.h" ;;
24419 "include/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/ThreadSupport.h" ;;
24420 "include/Support/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_map" ;;
24421 "include/Support/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_set" ;;
24422 "include/Support/iterator" ) CONFIG_FILES="$CONFIG_FILES include/Support/iterator" ;;
24423 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
24424 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
24425 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
24426 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
24427 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
24428 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
24429 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
24430 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
24431 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
24432 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
24433 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
24434 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
24435 "test/Programs/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.tests" ;;
24436 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
24437 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
24438 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
24439 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
24440 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
24441 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
24442 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
24443 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
24444 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
24445 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
24446 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
24447 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
24448 "test/Programs/TEST.vtl.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.vtl.Makefile" ;;
24449 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
24450 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
24451 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
24452 "test/Programs/External/SPEC/Makefile.spec2000" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec2000" ;;
24453 "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
24454 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
24455 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
24456 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
24457 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
24458 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
24459 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
24460 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
24461 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
24462 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
24463 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
24464 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
24465 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
24466 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
24467 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
24468 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
24469 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
24470 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
24471 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
24472 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
24473 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
24474 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
24475 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
24476 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24477 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24478 { (exit 1); exit 1; }; };;
24482 # If the user did not use the arguments to specify the items to instantiate,
24483 # then the envvar interface is used. Set only those that are not.
24484 # We use the long form for the default assignment because of an extremely
24485 # bizarre bug on SunOS 4.1.3.
24486 if $ac_need_defaults; then
24487 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24488 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24489 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
24490 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24493 # Have a temporary directory for convenience. Make it in the build tree
24494 # simply because there is no reason to put it here, and in addition,
24495 # creating and moving files from /tmp can sometimes cause problems.
24496 # Create a temporary directory, and hook for its removal unless debugging.
24499 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24500 trap '{ (exit 1); exit 1; }' 1 2 13 15
24503 # Create a (secure) tmp directory for tmp files.
24506 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24507 test -n "$tmp" && test -d "$tmp"
24510 tmp=./confstat$$-$RANDOM
24511 (umask 077 && mkdir $tmp)
24514 echo "$me: cannot create a temporary directory in ." >&2
24515 { (exit 1); exit 1; }
24520 cat >>$CONFIG_STATUS <<_ACEOF
24523 # CONFIG_FILES section.
24526 # No need to generate the scripts if there are no CONFIG_FILES.
24527 # This happens for instance when ./config.status config.h
24528 if test -n "\$CONFIG_FILES"; then
24529 # Protect against being on the right side of a sed subst in config.status.
24530 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24531 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24532 s,@SHELL@,$SHELL,;t t
24533 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24534 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24535 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24536 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24537 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24538 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24539 s,@exec_prefix@,$exec_prefix,;t t
24540 s,@prefix@,$prefix,;t t
24541 s,@program_transform_name@,$program_transform_name,;t t
24542 s,@bindir@,$bindir,;t t
24543 s,@sbindir@,$sbindir,;t t
24544 s,@libexecdir@,$libexecdir,;t t
24545 s,@datadir@,$datadir,;t t
24546 s,@sysconfdir@,$sysconfdir,;t t
24547 s,@sharedstatedir@,$sharedstatedir,;t t
24548 s,@localstatedir@,$localstatedir,;t t
24549 s,@libdir@,$libdir,;t t
24550 s,@includedir@,$includedir,;t t
24551 s,@oldincludedir@,$oldincludedir,;t t
24552 s,@infodir@,$infodir,;t t
24553 s,@mandir@,$mandir,;t t
24554 s,@build_alias@,$build_alias,;t t
24555 s,@host_alias@,$host_alias,;t t
24556 s,@target_alias@,$target_alias,;t t
24557 s,@DEFS@,$DEFS,;t t
24558 s,@ECHO_C@,$ECHO_C,;t t
24559 s,@ECHO_N@,$ECHO_N,;t t
24560 s,@ECHO_T@,$ECHO_T,;t t
24561 s,@LIBS@,$LIBS,;t t
24562 s,@subdirs@,$subdirs,;t t
24563 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24564 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24565 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24566 s,@build@,$build,;t t
24567 s,@build_cpu@,$build_cpu,;t t
24568 s,@build_vendor@,$build_vendor,;t t
24569 s,@build_os@,$build_os,;t t
24570 s,@host@,$host,;t t
24571 s,@host_cpu@,$host_cpu,;t t
24572 s,@host_vendor@,$host_vendor,;t t
24573 s,@host_os@,$host_os,;t t
24574 s,@target@,$target,;t t
24575 s,@target_cpu@,$target_cpu,;t t
24576 s,@target_vendor@,$target_vendor,;t t
24577 s,@target_os@,$target_os,;t t
24579 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
24580 s,@ARCH@,$ARCH,;t t
24582 s,@CXXFLAGS@,$CXXFLAGS,;t t
24583 s,@LDFLAGS@,$LDFLAGS,;t t
24584 s,@CPPFLAGS@,$CPPFLAGS,;t t
24585 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24586 s,@EXEEXT@,$EXEEXT,;t t
24587 s,@OBJEXT@,$OBJEXT,;t t
24589 s,@CFLAGS@,$CFLAGS,;t t
24590 s,@ac_ct_CC@,$ac_ct_CC,;t t
24592 s,@ifGNUmake@,$ifGNUmake,;t t
24594 s,@LEXLIB@,$LEXLIB,;t t
24595 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
24596 s,@YACC@,$YACC,;t t
24597 s,@BISON@,$BISON,;t t
24598 s,@EGREP@,$EGREP,;t t
24599 s,@LN_S@,$LN_S,;t t
24600 s,@ECHO@,$ECHO,;t t
24602 s,@ac_ct_AR@,$ac_ct_AR,;t t
24603 s,@RANLIB@,$RANLIB,;t t
24604 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24605 s,@STRIP@,$STRIP,;t t
24606 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24607 s,@CXXCPP@,$CXXCPP,;t t
24609 s,@FFLAGS@,$FFLAGS,;t t
24610 s,@ac_ct_F77@,$ac_ct_F77,;t t
24611 s,@LIBTOOL@,$LIBTOOL,;t t
24613 s,@ETAGS@,$ETAGS,;t t
24614 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
24615 s,@PYTHON@,$PYTHON,;t t
24616 s,@QMTEST@,$QMTEST,;t t
24617 s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
24618 s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
24619 s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
24620 s,@INCLUDE_STDINT_H@,$INCLUDE_STDINT_H,;t t
24621 s,@ENDIAN@,$ENDIAN,;t t
24622 s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
24623 s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
24624 s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
24625 s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
24626 s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
24627 s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
24628 s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
24629 s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
24630 s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
24631 s,@ALLOCA@,$ALLOCA,;t t
24632 s,@MMAP_FILE@,$MMAP_FILE,;t t
24633 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
24634 s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
24635 s,@USE_SPEC95@,$USE_SPEC95,;t t
24636 s,@SPEC2000_ROOT@,$SPEC2000_ROOT,;t t
24637 s,@USE_SPEC2000@,$USE_SPEC2000,;t t
24638 s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t
24639 s,@USE_POVRAY@,$USE_POVRAY,;t t
24641 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
24643 s,@LLVMCC1@,$LLVMCC1,;t t
24644 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
24646 s,@PAPIDIR@,$PAPIDIR,;t t
24647 s,@SHLIBEXT@,$SHLIBEXT,;t t
24648 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
24649 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
24650 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
24651 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
24652 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
24653 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
24654 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
24655 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
24656 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
24657 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
24658 s,@LIBOBJS@,$LIBOBJS,;t t
24659 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24664 cat >>$CONFIG_STATUS <<\_ACEOF
24665 # Split the substitutions into bite-sized pieces for seds with
24666 # small command number limits, like on Digital OSF/1 and HP-UX.
24667 ac_max_sed_lines=48
24668 ac_sed_frag=1 # Number of current file.
24669 ac_beg=1 # First line for current file.
24670 ac_end=$ac_max_sed_lines # Line after last line for current file.
24673 while $ac_more_lines; do
24674 if test $ac_beg -gt 1; then
24675 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24677 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24679 if test ! -s $tmp/subs.frag; then
24680 ac_more_lines=false
24682 # The purpose of the label and of the branching condition is to
24683 # speed up the sed processing (if there are no `@' at all, there
24684 # is no need to browse any of the substitutions).
24685 # These are the two extra sed commands mentioned above.
24687 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24688 if test -z "$ac_sed_cmds"; then
24689 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24691 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24693 ac_sed_frag=`expr $ac_sed_frag + 1`
24695 ac_end=`expr $ac_end + $ac_max_sed_lines`
24698 if test -z "$ac_sed_cmds"; then
24701 fi # test -n "$CONFIG_FILES"
24704 cat >>$CONFIG_STATUS <<\_ACEOF
24705 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24706 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24708 - | *:- | *:-:* ) # input from stdin
24710 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24711 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24712 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24713 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24714 * ) ac_file_in=$ac_file.in ;;
24717 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24718 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24719 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24720 X"$ac_file" : 'X\(//\)[^/]' \| \
24721 X"$ac_file" : 'X\(//\)$' \| \
24722 X"$ac_file" : 'X\(/\)' \| \
24723 . : '\(.\)' 2>/dev/null ||
24725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24726 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24727 /^X\(\/\/\)$/{ s//\1/; q; }
24728 /^X\(\/\).*/{ s//\1/; q; }
24730 { if $as_mkdir_p; then
24735 while test ! -d "$as_dir"; do
24736 as_dirs="$as_dir $as_dirs"
24737 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24738 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24739 X"$as_dir" : 'X\(//\)[^/]' \| \
24740 X"$as_dir" : 'X\(//\)$' \| \
24741 X"$as_dir" : 'X\(/\)' \| \
24742 . : '\(.\)' 2>/dev/null ||
24744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24745 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24746 /^X\(\/\/\)$/{ s//\1/; q; }
24747 /^X\(\/\).*/{ s//\1/; q; }
24750 test ! -n "$as_dirs" || mkdir $as_dirs
24751 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24752 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24753 { (exit 1); exit 1; }; }; }
24757 if test "$ac_dir" != .; then
24758 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24759 # A "../" for each directory in $ac_dir_suffix.
24760 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24762 ac_dir_suffix= ac_top_builddir=
24766 .) # No --srcdir option. We are building in place.
24768 if test -z "$ac_top_builddir"; then
24771 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24773 [\\/]* | ?:[\\/]* ) # Absolute path.
24774 ac_srcdir=$srcdir$ac_dir_suffix;
24775 ac_top_srcdir=$srcdir ;;
24776 *) # Relative path.
24777 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24778 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24781 # Do not use `cd foo && pwd` to compute absolute paths, because
24782 # the directories may not exist.
24784 .) ac_abs_builddir="$ac_dir";;
24787 .) ac_abs_builddir=`pwd`;;
24788 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24789 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24792 case $ac_abs_builddir in
24793 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24795 case ${ac_top_builddir}. in
24796 .) ac_abs_top_builddir=$ac_abs_builddir;;
24797 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24798 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24801 case $ac_abs_builddir in
24802 .) ac_abs_srcdir=$ac_srcdir;;
24805 .) ac_abs_srcdir=$ac_abs_builddir;;
24806 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24807 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24810 case $ac_abs_builddir in
24811 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24813 case $ac_top_srcdir in
24814 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24815 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24816 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24822 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24823 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24826 if test x"$ac_file" != x-; then
24827 { echo "$as_me:$LINENO: creating $ac_file" >&5
24828 echo "$as_me: creating $ac_file" >&6;}
24831 # Let's still pretend it is `configure' which instantiates (i.e., don't
24832 # use $as_me), people would be surprised to read:
24833 # /* config.h. Generated by config.status. */
24834 if test x"$ac_file" = x-; then
24837 configure_input="$ac_file. "
24839 configure_input=$configure_input"Generated from `echo $ac_file_in |
24840 sed 's,.*/,,'` by configure."
24842 # First look for the input files in the build tree, otherwise in the
24844 ac_file_inputs=`IFS=:
24845 for f in $ac_file_in; do
24847 -) echo $tmp/stdin ;;
24849 # Absolute (can't be DOS-style, as IFS=:)
24850 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24851 echo "$as_me: error: cannot find input file: $f" >&2;}
24852 { (exit 1); exit 1; }; }
24855 if test -f "$f"; then
24858 elif test -f "$srcdir/$f"; then
24863 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24864 echo "$as_me: error: cannot find input file: $f" >&2;}
24865 { (exit 1); exit 1; }; }
24868 done` || { (exit 1); exit 1; }
24870 cat >>$CONFIG_STATUS <<_ACEOF
24874 cat >>$CONFIG_STATUS <<\_ACEOF
24876 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24877 s,@configure_input@,$configure_input,;t t
24878 s,@srcdir@,$ac_srcdir,;t t
24879 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24880 s,@top_srcdir@,$ac_top_srcdir,;t t
24881 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24882 s,@builddir@,$ac_builddir,;t t
24883 s,@abs_builddir@,$ac_abs_builddir,;t t
24884 s,@top_builddir@,$ac_top_builddir,;t t
24885 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24886 s,@INSTALL@,$ac_INSTALL,;t t
24887 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24889 if test x"$ac_file" != x-; then
24890 mv $tmp/out $ac_file
24898 cat >>$CONFIG_STATUS <<\_ACEOF
24901 # CONFIG_HEADER section.
24904 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24905 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24907 # ac_d sets the value in "#define NAME VALUE" lines.
24908 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24909 ac_dB='[ ].*$,\1#\2'
24912 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24913 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24914 ac_uB='$,\1#\2define\3'
24918 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24919 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24921 - | *:- | *:-:* ) # input from stdin
24923 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24924 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24925 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24926 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24927 * ) ac_file_in=$ac_file.in ;;
24930 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24931 echo "$as_me: creating $ac_file" >&6;}
24933 # First look for the input files in the build tree, otherwise in the
24935 ac_file_inputs=`IFS=:
24936 for f in $ac_file_in; do
24938 -) echo $tmp/stdin ;;
24940 # Absolute (can't be DOS-style, as IFS=:)
24941 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24942 echo "$as_me: error: cannot find input file: $f" >&2;}
24943 { (exit 1); exit 1; }; }
24944 # Do quote $f, to prevent DOS paths from being IFS'd.
24947 if test -f "$f"; then
24950 elif test -f "$srcdir/$f"; then
24955 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24956 echo "$as_me: error: cannot find input file: $f" >&2;}
24957 { (exit 1); exit 1; }; }
24960 done` || { (exit 1); exit 1; }
24961 # Remove the trailing spaces.
24962 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24966 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24967 # `conftest.undefs', that substitutes the proper values into
24968 # config.h.in to produce config.h. The first handles `#define'
24969 # templates, and the second `#undef' templates.
24970 # And first: Protect against being on the right side of a sed subst in
24971 # config.status. Protect against being in an unquoted here document
24972 # in config.status.
24973 rm -f conftest.defines conftest.undefs
24974 # Using a here document instead of a string reduces the quoting nightmare.
24975 # Putting comments in sed scripts is not portable.
24977 # `end' is used to avoid that the second main sed command (meant for
24978 # 0-ary CPP macros) applies to n-ary macro definitions.
24979 # See the Autoconf documentation for `clear'.
24980 cat >confdef2sed.sed <<\_ACEOF
24985 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24987 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24990 # If some macros were called several times there might be several times
24991 # the same #defines, which is useless. Nevertheless, we may not want to
24992 # sort them, since we want the *last* AC-DEFINE to be honored.
24993 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24994 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24995 rm -f confdef2sed.sed
24997 # This sed command replaces #undef with comments. This is necessary, for
24998 # example, in the case of _POSIX_SOURCE, which is predefined and required
24999 # on some systems where configure will not decide to define it.
25000 cat >>conftest.undefs <<\_ACEOF
25001 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25004 # Break up conftest.defines because some shells have a limit on the size
25005 # of here documents, and old seds have small limits too (100 cmds).
25006 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25007 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25008 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25009 echo ' :' >>$CONFIG_STATUS
25010 rm -f conftest.tail
25011 while grep . conftest.defines >/dev/null
25013 # Write a limited-size here document to $tmp/defines.sed.
25014 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25015 # Speed up: don't consider the non `#define' lines.
25016 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25017 # Work around the forget-to-reset-the-flag bug.
25018 echo 't clr' >>$CONFIG_STATUS
25019 echo ': clr' >>$CONFIG_STATUS
25020 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25022 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25024 mv $tmp/out $tmp/in
25026 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25027 rm -f conftest.defines
25028 mv conftest.tail conftest.defines
25030 rm -f conftest.defines
25031 echo ' fi # grep' >>$CONFIG_STATUS
25032 echo >>$CONFIG_STATUS
25034 # Break up conftest.undefs because some shells have a limit on the size
25035 # of here documents, and old seds have small limits too (100 cmds).
25036 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25037 rm -f conftest.tail
25038 while grep . conftest.undefs >/dev/null
25040 # Write a limited-size here document to $tmp/undefs.sed.
25041 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25042 # Speed up: don't consider the non `#undef'
25043 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25044 # Work around the forget-to-reset-the-flag bug.
25045 echo 't clr' >>$CONFIG_STATUS
25046 echo ': clr' >>$CONFIG_STATUS
25047 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25049 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25051 mv $tmp/out $tmp/in
25053 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25054 rm -f conftest.undefs
25055 mv conftest.tail conftest.undefs
25057 rm -f conftest.undefs
25059 cat >>$CONFIG_STATUS <<\_ACEOF
25060 # Let's still pretend it is `configure' which instantiates (i.e., don't
25061 # use $as_me), people would be surprised to read:
25062 # /* config.h. Generated by config.status. */
25063 if test x"$ac_file" = x-; then
25064 echo "/* Generated by configure. */" >$tmp/config.h
25066 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25068 cat $tmp/in >>$tmp/config.h
25070 if test x"$ac_file" != x-; then
25071 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25072 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25073 echo "$as_me: $ac_file is unchanged" >&6;}
25075 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25076 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25077 X"$ac_file" : 'X\(//\)[^/]' \| \
25078 X"$ac_file" : 'X\(//\)$' \| \
25079 X"$ac_file" : 'X\(/\)' \| \
25080 . : '\(.\)' 2>/dev/null ||
25082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25083 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25084 /^X\(\/\/\)$/{ s//\1/; q; }
25085 /^X\(\/\).*/{ s//\1/; q; }
25087 { if $as_mkdir_p; then
25092 while test ! -d "$as_dir"; do
25093 as_dirs="$as_dir $as_dirs"
25094 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25095 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25096 X"$as_dir" : 'X\(//\)[^/]' \| \
25097 X"$as_dir" : 'X\(//\)$' \| \
25098 X"$as_dir" : 'X\(/\)' \| \
25099 . : '\(.\)' 2>/dev/null ||
25101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25102 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25103 /^X\(\/\/\)$/{ s//\1/; q; }
25104 /^X\(\/\).*/{ s//\1/; q; }
25107 test ! -n "$as_dirs" || mkdir $as_dirs
25108 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25109 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25110 { (exit 1); exit 1; }; }; }
25113 mv $tmp/config.h $ac_file
25117 rm -f $tmp/config.h
25121 cat >>$CONFIG_STATUS <<\_ACEOF
25124 # CONFIG_LINKS section.
25127 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25128 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25129 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25131 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25132 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25134 if test ! -r $srcdir/$ac_source; then
25135 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25136 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25137 { (exit 1); exit 1; }; }
25141 # Make relative symlinks.
25142 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25143 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25144 X"$ac_dest" : 'X\(//\)[^/]' \| \
25145 X"$ac_dest" : 'X\(//\)$' \| \
25146 X"$ac_dest" : 'X\(/\)' \| \
25147 . : '\(.\)' 2>/dev/null ||
25149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25150 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25151 /^X\(\/\/\)$/{ s//\1/; q; }
25152 /^X\(\/\).*/{ s//\1/; q; }
25154 { if $as_mkdir_p; then
25155 mkdir -p "$ac_dest_dir"
25157 as_dir="$ac_dest_dir"
25159 while test ! -d "$as_dir"; do
25160 as_dirs="$as_dir $as_dirs"
25161 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25162 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25163 X"$as_dir" : 'X\(//\)[^/]' \| \
25164 X"$as_dir" : 'X\(//\)$' \| \
25165 X"$as_dir" : 'X\(/\)' \| \
25166 . : '\(.\)' 2>/dev/null ||
25168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25169 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25170 /^X\(\/\/\)$/{ s//\1/; q; }
25171 /^X\(\/\).*/{ s//\1/; q; }
25174 test ! -n "$as_dirs" || mkdir $as_dirs
25175 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25176 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25177 { (exit 1); exit 1; }; }; }
25181 if test "$ac_dest_dir" != .; then
25182 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25183 # A "../" for each directory in $ac_dir_suffix.
25184 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25186 ac_dir_suffix= ac_top_builddir=
25190 .) # No --srcdir option. We are building in place.
25192 if test -z "$ac_top_builddir"; then
25195 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25197 [\\/]* | ?:[\\/]* ) # Absolute path.
25198 ac_srcdir=$srcdir$ac_dir_suffix;
25199 ac_top_srcdir=$srcdir ;;
25200 *) # Relative path.
25201 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25202 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25205 # Do not use `cd foo && pwd` to compute absolute paths, because
25206 # the directories may not exist.
25208 .) ac_abs_builddir="$ac_dest_dir";;
25210 case "$ac_dest_dir" in
25211 .) ac_abs_builddir=`pwd`;;
25212 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25213 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25216 case $ac_abs_builddir in
25217 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25219 case ${ac_top_builddir}. in
25220 .) ac_abs_top_builddir=$ac_abs_builddir;;
25221 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25222 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25225 case $ac_abs_builddir in
25226 .) ac_abs_srcdir=$ac_srcdir;;
25229 .) ac_abs_srcdir=$ac_abs_builddir;;
25230 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25231 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25234 case $ac_abs_builddir in
25235 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25237 case $ac_top_srcdir in
25238 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25239 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25240 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25246 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25247 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25250 # Try a symlink, then a hard link, then a copy.
25251 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25252 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25253 cp -p $srcdir/$ac_source $ac_dest ||
25254 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25255 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25256 { (exit 1); exit 1; }; }
25259 cat >>$CONFIG_STATUS <<\_ACEOF
25262 # CONFIG_COMMANDS section.
25264 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25265 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25266 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25267 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25268 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25269 X"$ac_dest" : 'X\(//\)[^/]' \| \
25270 X"$ac_dest" : 'X\(//\)$' \| \
25271 X"$ac_dest" : 'X\(/\)' \| \
25272 . : '\(.\)' 2>/dev/null ||
25274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25275 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25276 /^X\(\/\/\)$/{ s//\1/; q; }
25277 /^X\(\/\).*/{ s//\1/; q; }
25279 { if $as_mkdir_p; then
25284 while test ! -d "$as_dir"; do
25285 as_dirs="$as_dir $as_dirs"
25286 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25287 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25288 X"$as_dir" : 'X\(//\)[^/]' \| \
25289 X"$as_dir" : 'X\(//\)$' \| \
25290 X"$as_dir" : 'X\(/\)' \| \
25291 . : '\(.\)' 2>/dev/null ||
25293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25294 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25295 /^X\(\/\/\)$/{ s//\1/; q; }
25296 /^X\(\/\).*/{ s//\1/; q; }
25299 test ! -n "$as_dirs" || mkdir $as_dirs
25300 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25301 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25302 { (exit 1); exit 1; }; }; }
25306 if test "$ac_dir" != .; then
25307 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25308 # A "../" for each directory in $ac_dir_suffix.
25309 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25311 ac_dir_suffix= ac_top_builddir=
25315 .) # No --srcdir option. We are building in place.
25317 if test -z "$ac_top_builddir"; then
25320 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25322 [\\/]* | ?:[\\/]* ) # Absolute path.
25323 ac_srcdir=$srcdir$ac_dir_suffix;
25324 ac_top_srcdir=$srcdir ;;
25325 *) # Relative path.
25326 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25327 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25330 # Do not use `cd foo && pwd` to compute absolute paths, because
25331 # the directories may not exist.
25333 .) ac_abs_builddir="$ac_dir";;
25336 .) ac_abs_builddir=`pwd`;;
25337 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25338 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25341 case $ac_abs_builddir in
25342 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25344 case ${ac_top_builddir}. in
25345 .) ac_abs_top_builddir=$ac_abs_builddir;;
25346 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25347 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25350 case $ac_abs_builddir in
25351 .) ac_abs_srcdir=$ac_srcdir;;
25354 .) ac_abs_srcdir=$ac_abs_builddir;;
25355 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25356 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25359 case $ac_abs_builddir in
25360 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25362 case $ac_top_srcdir in
25363 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25364 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25365 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25370 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25371 echo "$as_me: executing $ac_dest commands" >&6;}
25373 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25374 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
25375 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
25376 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
25377 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
25378 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25379 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
25380 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25381 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
25382 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
25383 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
25384 test/Programs/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.tests test/Programs/Makefile.tests ;;
25385 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
25386 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
25387 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
25388 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
25389 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
25390 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
25391 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
25392 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
25393 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
25394 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
25395 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
25396 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
25397 test/Programs/TEST.vtl.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.vtl.Makefile test/Programs/TEST.vtl.Makefile ;;
25398 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
25399 test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
25400 test/Programs/External/SPEC/Makefile.spec ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec test/Programs/External/SPEC/Makefile.spec ;;
25401 test/Programs/External/SPEC/Makefile.spec2000 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec2000 test/Programs/External/SPEC/Makefile.spec2000 ;;
25402 test/Programs/External/SPEC/Makefile.spec95 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec95 test/Programs/External/SPEC/Makefile.spec95 ;;
25403 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
25404 test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
25405 test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ;;
25406 test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ;;
25407 test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ;;
25408 test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ;;
25409 test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ;;
25410 test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ;;
25411 test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ;;
25412 test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ;;
25413 test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ;;
25414 test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ;;
25415 test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ;;
25416 test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ;;
25417 test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ;;
25418 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
25419 test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
25420 test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ;;
25421 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
25422 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
25423 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
25428 cat >>$CONFIG_STATUS <<\_ACEOF
25430 { (exit 0); exit 0; }
25432 chmod +x $CONFIG_STATUS
25433 ac_clean_files=$ac_clean_files_save
25436 # configure is writing to config.log, and then calls config.status.
25437 # config.status does its own redirection, appending to config.log.
25438 # Unfortunately, on DOS this fails, as config.log is still kept open
25439 # by configure, so config.status won't be able to write to it; its
25440 # output is simply discarded. So we exec the FD to /dev/null,
25441 # effectively closing config.log, so it can be properly (re)opened and
25442 # appended to by config.status. When coming back to configure, we
25443 # need to make the FD available again.
25444 if test "$no_create" != yes; then
25446 ac_config_status_args=
25447 test "$silent" = yes &&
25448 ac_config_status_args="$ac_config_status_args --quiet"
25450 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25452 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25453 # would make configure fail if this is the last instruction.
25454 $ac_cs_success || { (exit 1); exit 1; }
25458 # CONFIG_SUBDIRS section.
25460 if test "$no_recursion" != yes; then
25462 # Remove --cache-file and --srcdir arguments so they do not pile up.
25463 ac_sub_configure_args=
25465 for ac_arg in $ac_configure_args; do
25466 if test -n "$ac_prev"; then
25471 -cache-file | --cache-file | --cache-fil | --cache-fi \
25472 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25473 ac_prev=cache_file ;;
25474 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25475 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25478 --config-cache | -C)
25480 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25482 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25484 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25486 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25488 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25492 # Always prepend --prefix to ensure using the same prefix
25493 # in subdir configurations.
25494 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25497 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25499 # Do not complain, so a configure script can configure whichever
25500 # parts of a large source tree are present.
25501 test -d $srcdir/$ac_dir || continue
25503 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25504 echo "$as_me: configuring in $ac_dir" >&6;}
25505 { if $as_mkdir_p; then
25510 while test ! -d "$as_dir"; do
25511 as_dirs="$as_dir $as_dirs"
25512 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25513 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25514 X"$as_dir" : 'X\(//\)[^/]' \| \
25515 X"$as_dir" : 'X\(//\)$' \| \
25516 X"$as_dir" : 'X\(/\)' \| \
25517 . : '\(.\)' 2>/dev/null ||
25519 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25520 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25521 /^X\(\/\/\)$/{ s//\1/; q; }
25522 /^X\(\/\).*/{ s//\1/; q; }
25525 test ! -n "$as_dirs" || mkdir $as_dirs
25526 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25527 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25528 { (exit 1); exit 1; }; }; }
25532 if test "$ac_dir" != .; then
25533 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25534 # A "../" for each directory in $ac_dir_suffix.
25535 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25537 ac_dir_suffix= ac_top_builddir=
25541 .) # No --srcdir option. We are building in place.
25543 if test -z "$ac_top_builddir"; then
25546 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25548 [\\/]* | ?:[\\/]* ) # Absolute path.
25549 ac_srcdir=$srcdir$ac_dir_suffix;
25550 ac_top_srcdir=$srcdir ;;
25551 *) # Relative path.
25552 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25553 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25556 # Do not use `cd foo && pwd` to compute absolute paths, because
25557 # the directories may not exist.
25559 .) ac_abs_builddir="$ac_dir";;
25562 .) ac_abs_builddir=`pwd`;;
25563 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25564 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25567 case $ac_abs_builddir in
25568 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25570 case ${ac_top_builddir}. in
25571 .) ac_abs_top_builddir=$ac_abs_builddir;;
25572 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25573 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25576 case $ac_abs_builddir in
25577 .) ac_abs_srcdir=$ac_srcdir;;
25580 .) ac_abs_srcdir=$ac_abs_builddir;;
25581 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25582 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25585 case $ac_abs_builddir in
25586 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25588 case $ac_top_srcdir in
25589 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25590 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25591 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25598 # Check for guested configure; otherwise get Cygnus style configure.
25599 if test -f $ac_srcdir/configure.gnu; then
25600 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25601 elif test -f $ac_srcdir/configure; then
25602 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25603 elif test -f $ac_srcdir/configure.in; then
25604 ac_sub_configure=$ac_configure
25606 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25607 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25611 # The recursion is here.
25612 if test -n "$ac_sub_configure"; then
25613 # Make the cache file name correct relative to the subdirectory.
25614 case $cache_file in
25615 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25616 *) # Relative path.
25617 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25620 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25621 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25622 # The eval makes quoting arguments work.
25623 eval $ac_sub_configure $ac_sub_configure_args \
25624 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25625 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25626 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25627 { (exit 1); exit 1; }; }
25635 if test $llvmgccwarn = yes
25637 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
25638 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
25639 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
25640 echo "$as_me: WARNING: ***** appear to be working." >&2;}
25641 { echo "$as_me:$LINENO: WARNING: ***** " >&5
25642 echo "$as_me: WARNING: ***** " >&2;}
25643 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
25644 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
25645 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
25646 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
25647 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
25648 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}