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 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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=${tagnames+${tagnames},}CXX
398 tagnames=${tagnames+${tagnames},}F77
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_unique_file=""Makefile.config.in""
431 ac_subdirs_all="$ac_subdirs_all projects/sample"
432 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
433 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
434 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
435 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
436 ac_subdirs_all="$ac_subdirs_all projects/Java"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
438 ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
439 # Factoring default headers for most tests.
440 ac_includes_default="\
443 # include <sys/types.h>
446 # include <sys/stat.h>
457 # if !STDC_HEADERS && HAVE_MEMORY_H
463 # include <strings.h>
466 # include <inttypes.h>
476 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 FLEX 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 JIT LLVMCC1 LLVMCC1PLUS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
479 # Initialize some variables set by options.
481 ac_init_version=false
482 # The variables have the same names as the options, with
483 # dashes changed to underlines.
491 program_transform_name=s,x,x,
499 # Installation directory options.
500 # These are left unexpanded so users can "make install exec_prefix=/foo"
501 # and all the variables that are supposed to be based on exec_prefix
502 # by default will actually change.
503 # Use braces instead of parens because sh, perl, etc. also accept them.
504 bindir='${exec_prefix}/bin'
505 sbindir='${exec_prefix}/sbin'
506 libexecdir='${exec_prefix}/libexec'
507 datadir='${prefix}/share'
508 sysconfdir='${prefix}/etc'
509 sharedstatedir='${prefix}/com'
510 localstatedir='${prefix}/var'
511 libdir='${exec_prefix}/lib'
512 includedir='${prefix}/include'
513 oldincludedir='/usr/include'
514 infodir='${prefix}/info'
515 mandir='${prefix}/man'
520 # If the previous option needs an argument, assign it.
521 if test -n "$ac_prev"; then
522 eval "$ac_prev=\$ac_option"
527 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
529 # Accept the important Cygnus configure options, so we can diagnose typos.
533 -bindir | --bindir | --bindi | --bind | --bin | --bi)
535 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
538 -build | --build | --buil | --bui | --bu)
539 ac_prev=build_alias ;;
540 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
541 build_alias=$ac_optarg ;;
543 -cache-file | --cache-file | --cache-fil | --cache-fi \
544 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
545 ac_prev=cache_file ;;
546 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
547 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
548 cache_file=$ac_optarg ;;
551 cache_file=config.cache ;;
553 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
555 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
557 datadir=$ac_optarg ;;
559 -disable-* | --disable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 eval "enable_$ac_feature=no" ;;
568 -enable-* | --enable-*)
569 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
570 # Reject names that are not valid shell variable names.
571 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
572 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
573 { (exit 1); exit 1; }; }
574 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
576 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
579 eval "enable_$ac_feature='$ac_optarg'" ;;
581 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
582 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
583 | --exec | --exe | --ex)
584 ac_prev=exec_prefix ;;
585 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
586 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
587 | --exec=* | --exe=* | --ex=*)
588 exec_prefix=$ac_optarg ;;
590 -gas | --gas | --ga | --g)
591 # Obsolete; use --with-gas.
594 -help | --help | --hel | --he | -h)
596 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
597 ac_init_help=recursive ;;
598 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
599 ac_init_help=short ;;
601 -host | --host | --hos | --ho)
602 ac_prev=host_alias ;;
603 -host=* | --host=* | --hos=* | --ho=*)
604 host_alias=$ac_optarg ;;
606 -includedir | --includedir | --includedi | --included | --include \
607 | --includ | --inclu | --incl | --inc)
608 ac_prev=includedir ;;
609 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
610 | --includ=* | --inclu=* | --incl=* | --inc=*)
611 includedir=$ac_optarg ;;
613 -infodir | --infodir | --infodi | --infod | --info | --inf)
615 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
616 infodir=$ac_optarg ;;
618 -libdir | --libdir | --libdi | --libd)
620 -libdir=* | --libdir=* | --libdi=* | --libd=*)
623 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
624 | --libexe | --libex | --libe)
625 ac_prev=libexecdir ;;
626 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
627 | --libexe=* | --libex=* | --libe=*)
628 libexecdir=$ac_optarg ;;
630 -localstatedir | --localstatedir | --localstatedi | --localstated \
631 | --localstate | --localstat | --localsta | --localst \
632 | --locals | --local | --loca | --loc | --lo)
633 ac_prev=localstatedir ;;
634 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
635 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
636 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
637 localstatedir=$ac_optarg ;;
639 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
641 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645 # Obsolete; use --without-fp.
648 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
649 | --no-cr | --no-c | -n)
652 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
653 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
656 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
657 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
658 | --oldin | --oldi | --old | --ol | --o)
659 ac_prev=oldincludedir ;;
660 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
661 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
662 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
663 oldincludedir=$ac_optarg ;;
665 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
667 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
670 -program-prefix | --program-prefix | --program-prefi | --program-pref \
671 | --program-pre | --program-pr | --program-p)
672 ac_prev=program_prefix ;;
673 -program-prefix=* | --program-prefix=* | --program-prefi=* \
674 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
675 program_prefix=$ac_optarg ;;
677 -program-suffix | --program-suffix | --program-suffi | --program-suff \
678 | --program-suf | --program-su | --program-s)
679 ac_prev=program_suffix ;;
680 -program-suffix=* | --program-suffix=* | --program-suffi=* \
681 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
682 program_suffix=$ac_optarg ;;
684 -program-transform-name | --program-transform-name \
685 | --program-transform-nam | --program-transform-na \
686 | --program-transform-n | --program-transform- \
687 | --program-transform | --program-transfor \
688 | --program-transfo | --program-transf \
689 | --program-trans | --program-tran \
690 | --progr-tra | --program-tr | --program-t)
691 ac_prev=program_transform_name ;;
692 -program-transform-name=* | --program-transform-name=* \
693 | --program-transform-nam=* | --program-transform-na=* \
694 | --program-transform-n=* | --program-transform-=* \
695 | --program-transform=* | --program-transfor=* \
696 | --program-transfo=* | --program-transf=* \
697 | --program-trans=* | --program-tran=* \
698 | --progr-tra=* | --program-tr=* | --program-t=*)
699 program_transform_name=$ac_optarg ;;
701 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
702 | -silent | --silent | --silen | --sile | --sil)
705 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
707 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
709 sbindir=$ac_optarg ;;
711 -sharedstatedir | --sharedstatedir | --sharedstatedi \
712 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
713 | --sharedst | --shareds | --shared | --share | --shar \
715 ac_prev=sharedstatedir ;;
716 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
717 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
718 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
720 sharedstatedir=$ac_optarg ;;
722 -site | --site | --sit)
724 -site=* | --site=* | --sit=*)
727 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
729 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
732 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
733 | --syscon | --sysco | --sysc | --sys | --sy)
734 ac_prev=sysconfdir ;;
735 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
736 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
737 sysconfdir=$ac_optarg ;;
739 -target | --target | --targe | --targ | --tar | --ta | --t)
740 ac_prev=target_alias ;;
741 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
742 target_alias=$ac_optarg ;;
744 -v | -verbose | --verbose | --verbos | --verbo | --verb)
747 -version | --version | --versio | --versi | --vers | -V)
751 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
752 # Reject names that are not valid shell variable names.
753 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
754 { echo "$as_me: error: invalid package name: $ac_package" >&2
755 { (exit 1); exit 1; }; }
756 ac_package=`echo $ac_package| sed 's/-/_/g'`
758 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
761 eval "with_$ac_package='$ac_optarg'" ;;
763 -without-* | --without-*)
764 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
765 # Reject names that are not valid shell variable names.
766 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
767 { echo "$as_me: error: invalid package name: $ac_package" >&2
768 { (exit 1); exit 1; }; }
769 ac_package=`echo $ac_package | sed 's/-/_/g'`
770 eval "with_$ac_package=no" ;;
773 # Obsolete; use --with-x.
776 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
777 | --x-incl | --x-inc | --x-in | --x-i)
778 ac_prev=x_includes ;;
779 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
780 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
781 x_includes=$ac_optarg ;;
783 -x-libraries | --x-libraries | --x-librarie | --x-librari \
784 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
785 ac_prev=x_libraries ;;
786 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
787 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
788 x_libraries=$ac_optarg ;;
790 -*) { echo "$as_me: error: unrecognized option: $ac_option
791 Try \`$0 --help' for more information." >&2
792 { (exit 1); exit 1; }; }
796 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
797 # Reject names that are not valid shell variable names.
798 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
799 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
800 { (exit 1); exit 1; }; }
801 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
802 eval "$ac_envvar='$ac_optarg'"
806 # FIXME: should be removed in autoconf 3.0.
807 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
808 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
809 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
810 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
816 if test -n "$ac_prev"; then
817 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
818 { echo "$as_me: error: missing argument to $ac_option" >&2
819 { (exit 1); exit 1; }; }
822 # Be sure to have absolute paths.
823 for ac_var in exec_prefix prefix
825 eval ac_val=$`echo $ac_var`
827 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
828 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
829 { (exit 1); exit 1; }; };;
833 # Be sure to have absolute paths.
834 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
835 localstatedir libdir includedir oldincludedir infodir mandir
837 eval ac_val=$`echo $ac_var`
839 [\\/$]* | ?:[\\/]* ) ;;
840 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
841 { (exit 1); exit 1; }; };;
845 # There might be people who depend on the old broken behavior: `$host'
846 # used to hold the argument of --host etc.
847 # FIXME: To remove some day.
852 # FIXME: To remove some day.
853 if test "x$host_alias" != x; then
854 if test "x$build_alias" = x; then
855 cross_compiling=maybe
856 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
857 If a cross compiler is detected then cross compile mode will be used." >&2
858 elif test "x$build_alias" != "x$host_alias"; then
864 test -n "$host_alias" && ac_tool_prefix=$host_alias-
866 test "$silent" = yes && exec 6>/dev/null
869 # Find the source files, if location was not specified.
870 if test -z "$srcdir"; then
871 ac_srcdir_defaulted=yes
872 # Try the directory containing this script, then its parent.
873 ac_confdir=`(dirname "$0") 2>/dev/null ||
874 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
875 X"$0" : 'X\(//\)[^/]' \| \
876 X"$0" : 'X\(//\)$' \| \
877 X"$0" : 'X\(/\)' \| \
878 . : '\(.\)' 2>/dev/null ||
880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
881 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
882 /^X\(\/\/\)$/{ s//\1/; q; }
883 /^X\(\/\).*/{ s//\1/; q; }
886 if test ! -r $srcdir/$ac_unique_file; then
890 ac_srcdir_defaulted=no
892 if test ! -r $srcdir/$ac_unique_file; then
893 if test "$ac_srcdir_defaulted" = yes; then
894 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
895 { (exit 1); exit 1; }; }
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
898 { (exit 1); exit 1; }; }
901 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
902 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
903 { (exit 1); exit 1; }; }
904 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
905 ac_env_build_alias_set=${build_alias+set}
906 ac_env_build_alias_value=$build_alias
907 ac_cv_env_build_alias_set=${build_alias+set}
908 ac_cv_env_build_alias_value=$build_alias
909 ac_env_host_alias_set=${host_alias+set}
910 ac_env_host_alias_value=$host_alias
911 ac_cv_env_host_alias_set=${host_alias+set}
912 ac_cv_env_host_alias_value=$host_alias
913 ac_env_target_alias_set=${target_alias+set}
914 ac_env_target_alias_value=$target_alias
915 ac_cv_env_target_alias_set=${target_alias+set}
916 ac_cv_env_target_alias_value=$target_alias
917 ac_env_CXX_set=${CXX+set}
918 ac_env_CXX_value=$CXX
919 ac_cv_env_CXX_set=${CXX+set}
920 ac_cv_env_CXX_value=$CXX
921 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
922 ac_env_CXXFLAGS_value=$CXXFLAGS
923 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
924 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
925 ac_env_LDFLAGS_set=${LDFLAGS+set}
926 ac_env_LDFLAGS_value=$LDFLAGS
927 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
928 ac_cv_env_LDFLAGS_value=$LDFLAGS
929 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
930 ac_env_CPPFLAGS_value=$CPPFLAGS
931 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
932 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
933 ac_env_CC_set=${CC+set}
935 ac_cv_env_CC_set=${CC+set}
936 ac_cv_env_CC_value=$CC
937 ac_env_CFLAGS_set=${CFLAGS+set}
938 ac_env_CFLAGS_value=$CFLAGS
939 ac_cv_env_CFLAGS_set=${CFLAGS+set}
940 ac_cv_env_CFLAGS_value=$CFLAGS
941 ac_env_CPP_set=${CPP+set}
942 ac_env_CPP_value=$CPP
943 ac_cv_env_CPP_set=${CPP+set}
944 ac_cv_env_CPP_value=$CPP
945 ac_env_CXXCPP_set=${CXXCPP+set}
946 ac_env_CXXCPP_value=$CXXCPP
947 ac_cv_env_CXXCPP_set=${CXXCPP+set}
948 ac_cv_env_CXXCPP_value=$CXXCPP
949 ac_env_F77_set=${F77+set}
950 ac_env_F77_value=$F77
951 ac_cv_env_F77_set=${F77+set}
952 ac_cv_env_F77_value=$F77
953 ac_env_FFLAGS_set=${FFLAGS+set}
954 ac_env_FFLAGS_value=$FFLAGS
955 ac_cv_env_FFLAGS_set=${FFLAGS+set}
956 ac_cv_env_FFLAGS_value=$FFLAGS
959 # Report the --help message.
961 if test "$ac_init_help" = "long"; then
962 # Omit some internal or obsolete options to make the list less imposing.
963 # This message is too long to be a string in the A/UX 3.1 sh.
965 \`configure' configures LLVM 1.4 to adapt to many kinds of systems.
967 Usage: $0 [OPTION]... [VAR=VALUE]...
969 To assign environment variables (e.g., CC, CFLAGS...), specify them as
970 VAR=VALUE. See below for descriptions of some of the useful variables.
972 Defaults for the options are specified in brackets.
975 -h, --help display this help and exit
976 --help=short display options specific to this package
977 --help=recursive display the short help of all the included packages
978 -V, --version display version information and exit
979 -q, --quiet, --silent do not print \`checking...' messages
980 --cache-file=FILE cache test results in FILE [disabled]
981 -C, --config-cache alias for \`--cache-file=config.cache'
982 -n, --no-create do not create output files
983 --srcdir=DIR find the sources in DIR [configure dir or \`..']
988 Installation directories:
989 --prefix=PREFIX install architecture-independent files in PREFIX
991 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
994 By default, \`make install' will install all the files in
995 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
996 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
997 for instance \`--prefix=\$HOME'.
999 For better control, use the options below.
1001 Fine tuning of the installation directories:
1002 --bindir=DIR user executables [EPREFIX/bin]
1003 --sbindir=DIR system admin executables [EPREFIX/sbin]
1004 --libexecdir=DIR program executables [EPREFIX/libexec]
1005 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1006 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1007 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1008 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1009 --libdir=DIR object code libraries [EPREFIX/lib]
1010 --includedir=DIR C header files [PREFIX/include]
1011 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1012 --infodir=DIR info documentation [PREFIX/info]
1013 --mandir=DIR man documentation [PREFIX/man]
1019 --build=BUILD configure for building on BUILD [guessed]
1020 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1021 --target=TARGET configure for building compilers for TARGET [HOST]
1025 if test -n "$ac_init_help"; then
1026 case $ac_init_help in
1027 short | recursive ) echo "Configuration of LLVM 1.4:";;
1032 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1033 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1034 --enable-shared[=PKGS]
1035 build shared libraries [default=yes]
1036 --enable-static[=PKGS]
1037 build static libraries [default=yes]
1038 --enable-fast-install[=PKGS]
1039 optimize for fast installation [default=yes]
1040 --disable-libtool-lock avoid locking (might break parallel builds)
1041 --enable-optimized Compile with optimizations enabled (default is NO)
1042 --enable-jit Enable Just In Time Compiling (default is YES)
1045 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1046 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1047 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1048 --with-pic try to use only PIC/non-PIC objects [default=use
1051 include additional configurations [automatic]
1052 --with-llvmgccdir Location of LLVM GCC front-end
1054 Some influential environment variables:
1055 CXX C++ compiler command
1056 CXXFLAGS C++ compiler flags
1057 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1058 nonstandard directory <lib dir>
1059 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060 headers in a nonstandard directory <include dir>
1061 CC C compiler command
1062 CFLAGS C compiler flags
1064 CXXCPP C++ preprocessor
1065 F77 Fortran 77 compiler command
1066 FFLAGS Fortran 77 compiler flags
1068 Use these variables to override the choices made by `configure' or to help
1069 it to find libraries and programs with nonstandard names/locations.
1071 Report bugs to <llvmbugs@cs.uiuc.edu>.
1075 if test "$ac_init_help" = "recursive"; then
1076 # If there are subdirs, report their specific --help.
1078 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079 test -d $ac_dir || continue
1082 if test "$ac_dir" != .; then
1083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084 # A "../" for each directory in $ac_dir_suffix.
1085 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087 ac_dir_suffix= ac_top_builddir=
1091 .) # No --srcdir option. We are building in place.
1093 if test -z "$ac_top_builddir"; then
1096 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098 [\\/]* | ?:[\\/]* ) # Absolute path.
1099 ac_srcdir=$srcdir$ac_dir_suffix;
1100 ac_top_srcdir=$srcdir ;;
1102 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1106 # Do not use `cd foo && pwd` to compute absolute paths, because
1107 # the directories may not exist.
1109 .) ac_abs_builddir="$ac_dir";;
1112 .) ac_abs_builddir=`pwd`;;
1113 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1114 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1117 case $ac_abs_builddir in
1118 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1120 case ${ac_top_builddir}. in
1121 .) ac_abs_top_builddir=$ac_abs_builddir;;
1122 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1123 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1126 case $ac_abs_builddir in
1127 .) ac_abs_srcdir=$ac_srcdir;;
1130 .) ac_abs_srcdir=$ac_abs_builddir;;
1131 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1132 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1135 case $ac_abs_builddir in
1136 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1138 case $ac_top_srcdir in
1139 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1140 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1141 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1146 # Check for guested configure; otherwise get Cygnus style configure.
1147 if test -f $ac_srcdir/configure.gnu; then
1149 $SHELL $ac_srcdir/configure.gnu --help=recursive
1150 elif test -f $ac_srcdir/configure; then
1152 $SHELL $ac_srcdir/configure --help=recursive
1153 elif test -f $ac_srcdir/configure.ac ||
1154 test -f $ac_srcdir/configure.in; then
1156 $ac_configure --help
1158 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1164 test -n "$ac_init_help" && exit 0
1165 if $ac_init_version; then
1168 generated by GNU Autoconf 2.59
1170 Copyright (C) 2003 Free Software Foundation, Inc.
1171 This configure script is free software; the Free Software Foundation
1172 gives unlimited permission to copy, distribute and modify it.
1178 This file contains any messages produced by compilers while
1179 running configure, to aid debugging if configure makes a mistake.
1181 It was created by LLVM $as_me 1.4, which was
1182 generated by GNU Autoconf 2.59. Invocation command line was
1193 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1194 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1195 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1196 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1197 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1199 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1200 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1202 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1203 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1204 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1205 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1206 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1207 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1208 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1216 test -z "$as_dir" && as_dir=.
1217 echo "PATH: $as_dir"
1232 # Keep a trace of the command line.
1233 # Strip out --no-create and --no-recursion so they do not pile up.
1234 # Strip out --silent because we don't want to record it for future runs.
1235 # Also quote any args containing shell meta-characters.
1236 # Make two passes to allow for proper duplicate-argument suppression.
1241 ac_must_keep_next=false
1247 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1249 | -silent | --silent | --silen | --sile | --sil)
1251 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1252 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1255 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1257 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1258 if test $ac_must_keep_next = true; then
1259 ac_must_keep_next=false # Got value, back to normal.
1262 *=* | --config-cache | -C | -disable-* | --disable-* \
1263 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1264 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1265 | -with-* | --with-* | -without-* | --without-* | --x)
1266 case "$ac_configure_args0 " in
1267 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1270 -* ) ac_must_keep_next=true ;;
1273 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1274 # Get rid of the leading space.
1280 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1281 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1283 # When interrupted or exit'd, cleanup temporary files, and complete
1284 # config.log. We remove comments because anyway the quotes in there
1285 # would cause problems or look ugly.
1286 # WARNING: Be sure not to use single quotes in there, as some shells,
1287 # such as our DU 5.0 friend, will then `close' the trap.
1288 trap 'exit_status=$?
1289 # Save into config.log some information that might help in debugging.
1294 ## ---------------- ##
1295 ## Cache variables. ##
1296 ## ---------------- ##
1299 # The following way of writing the cache mishandles newlines in values,
1302 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1305 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1306 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1310 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1317 ## ----------------- ##
1318 ## Output variables. ##
1319 ## ----------------- ##
1322 for ac_var in $ac_subst_vars
1324 eval ac_val=$`echo $ac_var`
1325 echo "$ac_var='"'"'$ac_val'"'"'"
1329 if test -n "$ac_subst_files"; then
1336 for ac_var in $ac_subst_files
1338 eval ac_val=$`echo $ac_var`
1339 echo "$ac_var='"'"'$ac_val'"'"'"
1344 if test -s confdefs.h; then
1351 sed "/^$/d" confdefs.h | sort
1354 test "$ac_signal" != 0 &&
1355 echo "$as_me: caught signal $ac_signal"
1356 echo "$as_me: exit $exit_status"
1358 rm -f core *.core &&
1359 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1362 for ac_signal in 1 2 13 15; do
1363 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1367 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1368 rm -rf conftest* confdefs.h
1369 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1372 # Predefined preprocessor variables.
1374 cat >>confdefs.h <<_ACEOF
1375 #define PACKAGE_NAME "$PACKAGE_NAME"
1379 cat >>confdefs.h <<_ACEOF
1380 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_STRING "$PACKAGE_STRING"
1394 cat >>confdefs.h <<_ACEOF
1395 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1399 # Let the site file select an alternate cache file if it wants to.
1400 # Prefer explicitly selected file to automatically selected ones.
1401 if test -z "$CONFIG_SITE"; then
1402 if test "x$prefix" != xNONE; then
1403 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1405 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1408 for ac_site_file in $CONFIG_SITE; do
1409 if test -r "$ac_site_file"; then
1410 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1411 echo "$as_me: loading site script $ac_site_file" >&6;}
1412 sed 's/^/| /' "$ac_site_file" >&5
1417 if test -r "$cache_file"; then
1418 # Some versions of bash will fail to source /dev/null (special
1419 # files actually), so we avoid doing that.
1420 if test -f "$cache_file"; then
1421 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1422 echo "$as_me: loading cache $cache_file" >&6;}
1424 [\\/]* | ?:[\\/]* ) . $cache_file;;
1425 *) . ./$cache_file;;
1429 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1430 echo "$as_me: creating cache $cache_file" >&6;}
1434 # Check that the precious variables saved in the cache have kept the same
1436 ac_cache_corrupted=false
1437 for ac_var in `(set) 2>&1 |
1438 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1439 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1440 eval ac_new_set=\$ac_env_${ac_var}_set
1441 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1442 eval ac_new_val="\$ac_env_${ac_var}_value"
1443 case $ac_old_set,$ac_new_set in
1445 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1446 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1447 ac_cache_corrupted=: ;;
1449 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1450 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1451 ac_cache_corrupted=: ;;
1454 if test "x$ac_old_val" != "x$ac_new_val"; then
1455 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1456 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1457 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1458 echo "$as_me: former value: $ac_old_val" >&2;}
1459 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1460 echo "$as_me: current value: $ac_new_val" >&2;}
1461 ac_cache_corrupted=:
1464 # Pass precious variables to config.status.
1465 if test "$ac_new_set" = set; then
1467 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1468 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1469 *) ac_arg=$ac_var=$ac_new_val ;;
1471 case " $ac_configure_args " in
1472 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1473 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1477 if $ac_cache_corrupted; then
1478 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1479 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1480 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1481 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1482 { (exit 1); exit 1; }; }
1486 ac_cpp='$CPP $CPPFLAGS'
1487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1519 for ac_dir in autoconf $srcdir/autoconf; do
1520 if test -f $ac_dir/install-sh; then
1522 ac_install_sh="$ac_aux_dir/install-sh -c"
1524 elif test -f $ac_dir/install.sh; then
1526 ac_install_sh="$ac_aux_dir/install.sh -c"
1528 elif test -f $ac_dir/shtool; then
1530 ac_install_sh="$ac_aux_dir/shtool install -c"
1534 if test -z "$ac_aux_dir"; then
1535 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1536 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1537 { (exit 1); exit 1; }; }
1539 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1540 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1541 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1545 if test ${srcdir} != "." ; then
1546 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1547 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1548 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1549 { (exit 1); exit 1; }; }
1553 for i in `ls ${srcdir}/projects`
1555 if test -d ${srcdir}/projects/${i} ; then
1560 subdirs="$subdirs projects/sample"
1564 subdirs="$subdirs projects/Stacker"
1568 subdirs="$subdirs projects/llvm-test"
1572 subdirs="$subdirs projects/llvm-reopt"
1576 subdirs="$subdirs projects/llvm-gcc"
1580 subdirs="$subdirs projects/Java"
1584 subdirs="$subdirs projects/llvm-tv"
1588 subdirs="$subdirs projects/llvm-fefw"
1591 { echo "$as_me:$LINENO: WARNING: Unknown projects (${i})won't be configured automatically" >&5
1592 echo "$as_me: WARNING: Unknown projects (${i})won't be configured automatically" >&2;}
1598 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
1601 ac_config_files="$ac_config_files Makefile.config include/llvm/Support/DataTypes.h include/llvm/Support/ThreadSupport.h include/llvm/ADT/hash_map include/llvm/ADT/hash_set include/llvm/ADT/iterator"
1604 ac_config_commands="$ac_config_commands Makefile"
1607 ac_config_commands="$ac_config_commands Makefile.common"
1610 ac_config_commands="$ac_config_commands examples/Makefile"
1613 ac_config_commands="$ac_config_commands lib/Makefile"
1616 ac_config_commands="$ac_config_commands runtime/Makefile"
1619 ac_config_commands="$ac_config_commands test/Makefile"
1622 ac_config_commands="$ac_config_commands test/Makefile.tests"
1625 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1628 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1631 ac_config_commands="$ac_config_commands tools/Makefile"
1634 ac_config_commands="$ac_config_commands utils/Makefile"
1637 ac_config_commands="$ac_config_commands projects/Makefile"
1641 # Find a good install program. We prefer a C program (faster),
1642 # so one script is as good as another. But avoid the broken or
1643 # incompatible versions:
1644 # SysV /etc/install, /usr/sbin/install
1645 # SunOS /usr/etc/install
1646 # IRIX /sbin/install
1648 # AmigaOS /C/install, which installs bootblocks on floppy discs
1649 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1650 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1651 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1652 # OS/2's system install, which has a completely different semantic
1653 # ./install, which can be erroneously created by make from ./install.sh.
1654 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1655 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1656 if test -z "$INSTALL"; then
1657 if test "${ac_cv_path_install+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664 test -z "$as_dir" && as_dir=.
1665 # Account for people who put trailing slashes in PATH elements.
1667 ./ | .// | /cC/* | \
1668 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1669 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1672 # OSF1 and SCO ODT 3.0 have their own names for install.
1673 # Don't use installbsd from OSF since it installs stuff as root
1675 for ac_prog in ginstall scoinst install; do
1676 for ac_exec_ext in '' $ac_executable_extensions; do
1677 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1678 if test $ac_prog = install &&
1679 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1680 # AIX install. It has an incompatible calling convention.
1682 elif test $ac_prog = install &&
1683 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1684 # program-specific install script used by HP pwplus--don't use.
1687 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1699 if test "${ac_cv_path_install+set}" = set; then
1700 INSTALL=$ac_cv_path_install
1702 # As a last resort, use the slow shell script. We don't cache a
1703 # path for INSTALL within a source directory, because that will
1704 # break other packages using the cache if that directory is
1705 # removed, or if the path is relative.
1706 INSTALL=$ac_install_sh
1709 echo "$as_me:$LINENO: result: $INSTALL" >&5
1710 echo "${ECHO_T}$INSTALL" >&6
1712 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1713 # It thinks the first close brace ends the variable substitution.
1714 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1716 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1718 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1721 # Make sure we can run config.sub.
1722 $ac_config_sub sun4 >/dev/null 2>&1 ||
1723 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1724 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1725 { (exit 1); exit 1; }; }
1727 echo "$as_me:$LINENO: checking build system type" >&5
1728 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1729 if test "${ac_cv_build+set}" = set; then
1730 echo $ECHO_N "(cached) $ECHO_C" >&6
1732 ac_cv_build_alias=$build_alias
1733 test -z "$ac_cv_build_alias" &&
1734 ac_cv_build_alias=`$ac_config_guess`
1735 test -z "$ac_cv_build_alias" &&
1736 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1737 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1738 { (exit 1); exit 1; }; }
1739 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1740 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1741 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1742 { (exit 1); exit 1; }; }
1745 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1746 echo "${ECHO_T}$ac_cv_build" >&6
1748 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1749 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1750 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1753 echo "$as_me:$LINENO: checking host system type" >&5
1754 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1755 if test "${ac_cv_host+set}" = set; then
1756 echo $ECHO_N "(cached) $ECHO_C" >&6
1758 ac_cv_host_alias=$host_alias
1759 test -z "$ac_cv_host_alias" &&
1760 ac_cv_host_alias=$ac_cv_build_alias
1761 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1762 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1763 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1764 { (exit 1); exit 1; }; }
1767 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1768 echo "${ECHO_T}$ac_cv_host" >&6
1770 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1771 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1772 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1775 echo "$as_me:$LINENO: checking target system type" >&5
1776 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1777 if test "${ac_cv_target+set}" = set; then
1778 echo $ECHO_N "(cached) $ECHO_C" >&6
1780 ac_cv_target_alias=$target_alias
1781 test "x$ac_cv_target_alias" = "x" &&
1782 ac_cv_target_alias=$ac_cv_host_alias
1783 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1784 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1785 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1786 { (exit 1); exit 1; }; }
1789 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1790 echo "${ECHO_T}$ac_cv_target" >&6
1791 target=$ac_cv_target
1792 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1793 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1794 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1797 # The aliases save the names the user supplied, while $host etc.
1798 # will get canonicalized.
1799 test -n "$target_alias" &&
1800 test "$program_prefix$program_suffix$program_transform_name" = \
1802 program_prefix=${target_alias}-
1805 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1806 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
1816 platform_type="Cygwin"
1821 platform_type="Darwin"
1826 platform_type="FreeBSD"
1831 platform_type="Interix"
1836 platform_type="Linux"
1837 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1839 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1846 platform_type="SunOS"
1847 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1849 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1856 platform_type="Win32"
1861 platform_type="Win32"
1866 platform_type="Unknown"
1870 if test "$platform_type" = "Unknown" ; then
1871 { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1872 echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1873 { (exit 1); exit 1; }; }
1876 ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1880 echo "$as_me:$LINENO: checking target architecture" >&5
1881 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1883 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1911 echo "$as_me:$LINENO: result: $ARCH" >&5
1912 echo "${ECHO_T}$ARCH" >&6
1915 ac_cpp='$CXXCPP $CPPFLAGS'
1916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1919 if test -n "$ac_tool_prefix"; then
1920 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1922 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1923 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1924 echo "$as_me:$LINENO: checking for $ac_word" >&5
1925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1926 if test "${ac_cv_prog_CXX+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1929 if test -n "$CXX"; then
1930 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936 test -z "$as_dir" && as_dir=.
1937 for ac_exec_ext in '' $ac_executable_extensions; do
1938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1939 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1949 if test -n "$CXX"; then
1950 echo "$as_me:$LINENO: result: $CXX" >&5
1951 echo "${ECHO_T}$CXX" >&6
1953 echo "$as_me:$LINENO: result: no" >&5
1954 echo "${ECHO_T}no" >&6
1957 test -n "$CXX" && break
1960 if test -z "$CXX"; then
1962 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1964 # Extract the first word of "$ac_prog", so it can be a program name with args.
1965 set dummy $ac_prog; ac_word=$2
1966 echo "$as_me:$LINENO: checking for $ac_word" >&5
1967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1968 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1971 if test -n "$ac_ct_CXX"; then
1972 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978 test -z "$as_dir" && as_dir=.
1979 for ac_exec_ext in '' $ac_executable_extensions; do
1980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1981 ac_cv_prog_ac_ct_CXX="$ac_prog"
1982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1991 if test -n "$ac_ct_CXX"; then
1992 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1993 echo "${ECHO_T}$ac_ct_CXX" >&6
1995 echo "$as_me:$LINENO: result: no" >&5
1996 echo "${ECHO_T}no" >&6
1999 test -n "$ac_ct_CXX" && break
2001 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2007 # Provide some information about the compiler.
2008 echo "$as_me:$LINENO:" \
2009 "checking for C++ compiler version" >&5
2010 ac_compiler=`set X $ac_compile; echo $2`
2011 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2012 (eval $ac_compiler --version </dev/null >&5) 2>&5
2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015 (exit $ac_status); }
2016 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2017 (eval $ac_compiler -v </dev/null >&5) 2>&5
2019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2020 (exit $ac_status); }
2021 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2022 (eval $ac_compiler -V </dev/null >&5) 2>&5
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); }
2027 cat >conftest.$ac_ext <<_ACEOF
2030 cat confdefs.h >>conftest.$ac_ext
2031 cat >>conftest.$ac_ext <<_ACEOF
2032 /* end confdefs.h. */
2042 ac_clean_files_save=$ac_clean_files
2043 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2044 # Try to create an executable without -o first, disregard a.out.
2045 # It will help us diagnose broken compilers, and finding out an intuition
2047 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2048 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2049 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2050 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2051 (eval $ac_link_default) 2>&5
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); }; then
2055 # Find the output, starting from the most likely. This scheme is
2056 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2059 # Be careful to initialize this variable, since it used to be cached.
2060 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2062 # b.out is created by i960 compilers.
2063 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2065 test -f "$ac_file" || continue
2067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2070 # This is the source file.
2073 # We found the default executable, but exeext='' is most
2077 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2078 # FIXME: I believe we export ac_cv_exeext for Libtool,
2079 # but it would be cool to find out if it's true. Does anybody
2080 # maintain Libtool? --akim.
2088 echo "$as_me: failed program was:" >&5
2089 sed 's/^/| /' conftest.$ac_ext >&5
2091 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2092 See \`config.log' for more details." >&5
2093 echo "$as_me: error: C++ compiler cannot create executables
2094 See \`config.log' for more details." >&2;}
2095 { (exit 77); exit 77; }; }
2098 ac_exeext=$ac_cv_exeext
2099 echo "$as_me:$LINENO: result: $ac_file" >&5
2100 echo "${ECHO_T}$ac_file" >&6
2102 # Check the compiler produces executables we can run. If not, either
2103 # the compiler is broken, or we cross compile.
2104 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2105 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2106 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2107 # If not cross compiling, check that we can run a simple program.
2108 if test "$cross_compiling" != yes; then
2109 if { ac_try='./$ac_file'
2110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }; }; then
2117 if test "$cross_compiling" = maybe; then
2120 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2121 If you meant to cross compile, use \`--host'.
2122 See \`config.log' for more details." >&5
2123 echo "$as_me: error: cannot run C++ compiled programs.
2124 If you meant to cross compile, use \`--host'.
2125 See \`config.log' for more details." >&2;}
2126 { (exit 1); exit 1; }; }
2130 echo "$as_me:$LINENO: result: yes" >&5
2131 echo "${ECHO_T}yes" >&6
2133 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2134 ac_clean_files=$ac_clean_files_save
2135 # Check the compiler produces executables we can run. If not, either
2136 # the compiler is broken, or we cross compile.
2137 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2138 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2139 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2140 echo "${ECHO_T}$cross_compiling" >&6
2142 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2143 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2145 (eval $ac_link) 2>&5
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }; then
2149 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2150 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2151 # work properly (i.e., refer to `conftest.exe'), while it won't with
2153 for ac_file in conftest.exe conftest conftest.*; do
2154 test -f "$ac_file" || continue
2156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2157 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2164 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2165 See \`config.log' for more details." >&5
2166 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2167 See \`config.log' for more details." >&2;}
2168 { (exit 1); exit 1; }; }
2171 rm -f conftest$ac_cv_exeext
2172 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2173 echo "${ECHO_T}$ac_cv_exeext" >&6
2175 rm -f conftest.$ac_ext
2176 EXEEXT=$ac_cv_exeext
2178 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2179 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2180 if test "${ac_cv_objext+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2183 cat >conftest.$ac_ext <<_ACEOF
2186 cat confdefs.h >>conftest.$ac_ext
2187 cat >>conftest.$ac_ext <<_ACEOF
2188 /* end confdefs.h. */
2198 rm -f conftest.o conftest.obj
2199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200 (eval $ac_compile) 2>&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; then
2204 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2207 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2212 echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2215 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2216 See \`config.log' for more details." >&5
2217 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2218 See \`config.log' for more details." >&2;}
2219 { (exit 1); exit 1; }; }
2222 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2224 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2225 echo "${ECHO_T}$ac_cv_objext" >&6
2226 OBJEXT=$ac_cv_objext
2228 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2229 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2230 if test "${ac_cv_cxx_compiler_gnu+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. */
2251 rm -f conftest.$ac_objext
2252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253 (eval $ac_compile) 2>conftest.er1
2255 grep -v '^ *+' conftest.er1 >conftest.err
2257 cat conftest.err >&5
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); } &&
2260 { ac_try='test -z "$ac_cxx_werror_flag"
2261 || test ! -s conftest.err'
2262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; } &&
2267 { ac_try='test -s conftest.$ac_objext'
2268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; }; then
2275 echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2281 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2284 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2285 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2286 GXX=`test $ac_compiler_gnu = yes && echo yes`
2287 ac_test_CXXFLAGS=${CXXFLAGS+set}
2288 ac_save_CXXFLAGS=$CXXFLAGS
2290 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2291 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2292 if test "${ac_cv_prog_cxx_g+set}" = set; then
2293 echo $ECHO_N "(cached) $ECHO_C" >&6
2295 cat >conftest.$ac_ext <<_ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h. */
2310 rm -f conftest.$ac_objext
2311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312 (eval $ac_compile) 2>conftest.er1
2314 grep -v '^ *+' conftest.er1 >conftest.err
2316 cat conftest.err >&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); } &&
2319 { ac_try='test -z "$ac_cxx_werror_flag"
2320 || test ! -s conftest.err'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; } &&
2326 { ac_try='test -s conftest.$ac_objext'
2327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; }; then
2332 ac_cv_prog_cxx_g=yes
2334 echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2341 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2342 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2343 if test "$ac_test_CXXFLAGS" = set; then
2344 CXXFLAGS=$ac_save_CXXFLAGS
2345 elif test $ac_cv_prog_cxx_g = yes; then
2346 if test "$GXX" = yes; then
2352 if test "$GXX" = yes; then
2358 for ac_declaration in \
2360 'extern "C" void std::exit (int) throw (); using std::exit;' \
2361 'extern "C" void std::exit (int); using std::exit;' \
2362 'extern "C" void exit (int) throw ();' \
2363 'extern "C" void exit (int);' \
2366 cat >conftest.$ac_ext <<_ACEOF
2369 cat confdefs.h >>conftest.$ac_ext
2370 cat >>conftest.$ac_ext <<_ACEOF
2371 /* end confdefs.h. */
2382 rm -f conftest.$ac_objext
2383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2384 (eval $ac_compile) 2>conftest.er1
2386 grep -v '^ *+' conftest.er1 >conftest.err
2388 cat conftest.err >&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); } &&
2391 { ac_try='test -z "$ac_cxx_werror_flag"
2392 || test ! -s conftest.err'
2393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; } &&
2398 { ac_try='test -s conftest.$ac_objext'
2399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; }; then
2406 echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.$ac_ext >&5
2411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2412 cat >conftest.$ac_ext <<_ACEOF
2415 cat confdefs.h >>conftest.$ac_ext
2416 cat >>conftest.$ac_ext <<_ACEOF
2417 /* end confdefs.h. */
2427 rm -f conftest.$ac_objext
2428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2429 (eval $ac_compile) 2>conftest.er1
2431 grep -v '^ *+' conftest.er1 >conftest.err
2433 cat conftest.err >&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); } &&
2436 { ac_try='test -z "$ac_cxx_werror_flag"
2437 || test ! -s conftest.err'
2438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; } &&
2443 { ac_try='test -s conftest.$ac_objext'
2444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; }; then
2451 echo "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.$ac_ext >&5
2455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2458 if test -n "$ac_declaration"; then
2459 echo '#ifdef __cplusplus' >>confdefs.h
2460 echo $ac_declaration >>confdefs.h
2461 echo '#endif' >>confdefs.h
2465 ac_cpp='$CPP $CPPFLAGS'
2466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2471 ac_cpp='$CPP $CPPFLAGS'
2472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2475 if test -n "$ac_tool_prefix"; then
2478 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2479 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2480 echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2482 if test "${ac_cv_prog_CC+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2485 if test -n "$CC"; then
2486 ac_cv_prog_CC="$CC" # Let the user override the test.
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492 test -z "$as_dir" && as_dir=.
2493 for ac_exec_ext in '' $ac_executable_extensions; do
2494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2495 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2505 if test -n "$CC"; then
2506 echo "$as_me:$LINENO: result: $CC" >&5
2507 echo "${ECHO_T}$CC" >&6
2509 echo "$as_me:$LINENO: result: no" >&5
2510 echo "${ECHO_T}no" >&6
2513 test -n "$CC" && break
2516 if test -z "$CC"; then
2520 # Extract the first word of "$ac_prog", so it can be a program name with args.
2521 set dummy $ac_prog; ac_word=$2
2522 echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2524 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2527 if test -n "$ac_ct_CC"; then
2528 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2537 ac_cv_prog_ac_ct_CC="$ac_prog"
2538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2546 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2547 if test -n "$ac_ct_CC"; then
2548 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2549 echo "${ECHO_T}$ac_ct_CC" >&6
2551 echo "$as_me:$LINENO: result: no" >&5
2552 echo "${ECHO_T}no" >&6
2555 test -n "$ac_ct_CC" && break
2562 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2563 See \`config.log' for more details." >&5
2564 echo "$as_me: error: no acceptable C compiler found in \$PATH
2565 See \`config.log' for more details." >&2;}
2566 { (exit 1); exit 1; }; }
2568 # Provide some information about the compiler.
2569 echo "$as_me:$LINENO:" \
2570 "checking for C compiler version" >&5
2571 ac_compiler=`set X $ac_compile; echo $2`
2572 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2573 (eval $ac_compiler --version </dev/null >&5) 2>&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }
2577 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2578 (eval $ac_compiler -v </dev/null >&5) 2>&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }
2582 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2583 (eval $ac_compiler -V </dev/null >&5) 2>&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }
2588 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2589 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2590 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2591 echo $ECHO_N "(cached) $ECHO_C" >&6
2593 cat >conftest.$ac_ext <<_ACEOF
2596 cat confdefs.h >>conftest.$ac_ext
2597 cat >>conftest.$ac_ext <<_ACEOF
2598 /* end confdefs.h. */
2611 rm -f conftest.$ac_objext
2612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613 (eval $ac_compile) 2>conftest.er1
2615 grep -v '^ *+' conftest.er1 >conftest.err
2617 cat conftest.err >&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); } &&
2620 { ac_try='test -z "$ac_c_werror_flag"
2621 || test ! -s conftest.err'
2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; } &&
2627 { ac_try='test -s conftest.$ac_objext'
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; }; then
2635 echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2641 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2644 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2645 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2646 GCC=`test $ac_compiler_gnu = yes && echo yes`
2647 ac_test_CFLAGS=${CFLAGS+set}
2648 ac_save_CFLAGS=$CFLAGS
2650 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2651 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2652 if test "${ac_cv_prog_cc_g+set}" = set; then
2653 echo $ECHO_N "(cached) $ECHO_C" >&6
2655 cat >conftest.$ac_ext <<_ACEOF
2658 cat confdefs.h >>conftest.$ac_ext
2659 cat >>conftest.$ac_ext <<_ACEOF
2660 /* end confdefs.h. */
2670 rm -f conftest.$ac_objext
2671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2672 (eval $ac_compile) 2>conftest.er1
2674 grep -v '^ *+' conftest.er1 >conftest.err
2676 cat conftest.err >&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); } &&
2679 { ac_try='test -z "$ac_c_werror_flag"
2680 || test ! -s conftest.err'
2681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }; } &&
2686 { ac_try='test -s conftest.$ac_objext'
2687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; }; then
2694 echo "$as_me: failed program was:" >&5
2695 sed 's/^/| /' conftest.$ac_ext >&5
2699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2701 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2702 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2703 if test "$ac_test_CFLAGS" = set; then
2704 CFLAGS=$ac_save_CFLAGS
2705 elif test $ac_cv_prog_cc_g = yes; then
2706 if test "$GCC" = yes; then
2712 if test "$GCC" = yes; then
2718 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2719 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2720 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2723 ac_cv_prog_cc_stdc=no
2725 cat >conftest.$ac_ext <<_ACEOF
2728 cat confdefs.h >>conftest.$ac_ext
2729 cat >>conftest.$ac_ext <<_ACEOF
2730 /* end confdefs.h. */
2733 #include <sys/types.h>
2734 #include <sys/stat.h>
2735 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2736 struct buf { int x; };
2737 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2738 static char *e (p, i)
2744 static char *f (char * (*g) (char **, int), char **p, ...)
2749 s = g (p, va_arg (v,int));
2754 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2755 function prototypes and stuff, but not '\xHH' hex character constants.
2756 These don't provoke an error unfortunately, instead are silently treated
2757 as 'x'. The following induces an error, until -std1 is added to get
2758 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2759 array size at least. It's necessary to write '\x00'==0 to get something
2760 that's true only with -std1. */
2761 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2763 int test (int i, double x);
2764 struct s1 {int (*f) (int a);};
2765 struct s2 {int (*f) (double a);};
2766 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2772 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2777 # Don't try gcc -ansi; that turns off useful extensions and
2778 # breaks some systems' header files.
2779 # AIX -qlanglvl=ansi
2780 # Ultrix and OSF/1 -std1
2781 # HP-UX 10.20 and later -Ae
2782 # HP-UX older versions -Aa -D_HPUX_SOURCE
2783 # SVR4 -Xc -D__EXTENSIONS__
2784 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2786 CC="$ac_save_CC $ac_arg"
2787 rm -f conftest.$ac_objext
2788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2789 (eval $ac_compile) 2>conftest.er1
2791 grep -v '^ *+' conftest.er1 >conftest.err
2793 cat conftest.err >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } &&
2796 { ac_try='test -z "$ac_c_werror_flag"
2797 || test ! -s conftest.err'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; } &&
2803 { ac_try='test -s conftest.$ac_objext'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; }; then
2809 ac_cv_prog_cc_stdc=$ac_arg
2812 echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2816 rm -f conftest.err conftest.$ac_objext
2818 rm -f conftest.$ac_ext conftest.$ac_objext
2823 case "x$ac_cv_prog_cc_stdc" in
2825 echo "$as_me:$LINENO: result: none needed" >&5
2826 echo "${ECHO_T}none needed" >&6 ;;
2828 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2829 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2830 CC="$CC $ac_cv_prog_cc_stdc" ;;
2833 # Some people use a C++ compiler to compile C. Since we use `exit',
2834 # in C++ we need to declare it. In case someone uses the same compiler
2835 # for both compiling C and C++ we need to have the C++ compiler decide
2836 # the declaration of exit, since it's the most demanding environment.
2837 cat >conftest.$ac_ext <<_ACEOF
2842 rm -f conftest.$ac_objext
2843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2844 (eval $ac_compile) 2>conftest.er1
2846 grep -v '^ *+' conftest.er1 >conftest.err
2848 cat conftest.err >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); } &&
2851 { ac_try='test -z "$ac_c_werror_flag"
2852 || test ! -s conftest.err'
2853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; } &&
2858 { ac_try='test -s conftest.$ac_objext'
2859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); }; }; then
2864 for ac_declaration in \
2866 'extern "C" void std::exit (int) throw (); using std::exit;' \
2867 'extern "C" void std::exit (int); using std::exit;' \
2868 'extern "C" void exit (int) throw ();' \
2869 'extern "C" void exit (int);' \
2872 cat >conftest.$ac_ext <<_ACEOF
2875 cat confdefs.h >>conftest.$ac_ext
2876 cat >>conftest.$ac_ext <<_ACEOF
2877 /* end confdefs.h. */
2888 rm -f conftest.$ac_objext
2889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2890 (eval $ac_compile) 2>conftest.er1
2892 grep -v '^ *+' conftest.er1 >conftest.err
2894 cat conftest.err >&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); } &&
2897 { ac_try='test -z "$ac_c_werror_flag"
2898 || test ! -s conftest.err'
2899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }; } &&
2904 { ac_try='test -s conftest.$ac_objext'
2905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }; }; then
2912 echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.$ac_ext >&5
2917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2918 cat >conftest.$ac_ext <<_ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h. */
2933 rm -f conftest.$ac_objext
2934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2935 (eval $ac_compile) 2>conftest.er1
2937 grep -v '^ *+' conftest.er1 >conftest.err
2939 cat conftest.err >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } &&
2942 { ac_try='test -z "$ac_c_werror_flag"
2943 || test ! -s conftest.err'
2944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; } &&
2949 { ac_try='test -s conftest.$ac_objext'
2950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }; }; then
2957 echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2964 if test -n "$ac_declaration"; then
2965 echo '#ifdef __cplusplus' >>confdefs.h
2966 echo $ac_declaration >>confdefs.h
2967 echo '#endif' >>confdefs.h
2971 echo "$as_me: failed program was:" >&5
2972 sed 's/^/| /' conftest.$ac_ext >&5
2975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2977 ac_cpp='$CPP $CPPFLAGS'
2978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2982 if test "$GCC" != "yes"
2984 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
2985 echo "$as_me: error: gcc required but not found" >&2;}
2986 { (exit 1); exit 1; }; }
2989 ac_cpp='$CPP $CPPFLAGS'
2990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2993 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2994 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2995 # On Suns, sometimes $CPP names a directory.
2996 if test -n "$CPP" && test -d "$CPP"; then
2999 if test -z "$CPP"; then
3000 if test "${ac_cv_prog_CPP+set}" = set; then
3001 echo $ECHO_N "(cached) $ECHO_C" >&6
3003 # Double quotes because CPP needs to be expanded
3004 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3007 for ac_c_preproc_warn_flag in '' yes
3009 # Use a header file that comes with gcc, so configuring glibc
3010 # with a fresh cross-compiler works.
3011 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3012 # <limits.h> exists even on freestanding compilers.
3013 # On the NeXT, cc -E runs the code through the compiler's parser,
3014 # not just through cpp. "Syntax error" is here to catch this case.
3015 cat >conftest.$ac_ext <<_ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h. */
3022 # include <limits.h>
3024 # include <assert.h>
3028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3031 grep -v '^ *+' conftest.er1 >conftest.err
3033 cat conftest.err >&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); } >/dev/null; then
3036 if test -s conftest.err; then
3037 ac_cpp_err=$ac_c_preproc_warn_flag
3038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3045 if test -z "$ac_cpp_err"; then
3048 echo "$as_me: failed program was:" >&5
3049 sed 's/^/| /' conftest.$ac_ext >&5
3051 # Broken: fails on valid input.
3054 rm -f conftest.err conftest.$ac_ext
3056 # OK, works on sane cases. Now check whether non-existent headers
3057 # can be detected and how.
3058 cat >conftest.$ac_ext <<_ACEOF
3061 cat confdefs.h >>conftest.$ac_ext
3062 cat >>conftest.$ac_ext <<_ACEOF
3063 /* end confdefs.h. */
3064 #include <ac_nonexistent.h>
3066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3069 grep -v '^ *+' conftest.er1 >conftest.err
3071 cat conftest.err >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); } >/dev/null; then
3074 if test -s conftest.err; then
3075 ac_cpp_err=$ac_c_preproc_warn_flag
3076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3083 if test -z "$ac_cpp_err"; then
3084 # Broken: success on invalid input.
3087 echo "$as_me: failed program was:" >&5
3088 sed 's/^/| /' conftest.$ac_ext >&5
3090 # Passes both tests.
3094 rm -f conftest.err conftest.$ac_ext
3097 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3098 rm -f conftest.err conftest.$ac_ext
3099 if $ac_preproc_ok; then
3111 echo "$as_me:$LINENO: result: $CPP" >&5
3112 echo "${ECHO_T}$CPP" >&6
3114 for ac_c_preproc_warn_flag in '' yes
3116 # Use a header file that comes with gcc, so configuring glibc
3117 # with a fresh cross-compiler works.
3118 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3119 # <limits.h> exists even on freestanding compilers.
3120 # On the NeXT, cc -E runs the code through the compiler's parser,
3121 # not just through cpp. "Syntax error" is here to catch this case.
3122 cat >conftest.$ac_ext <<_ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3129 # include <limits.h>
3131 # include <assert.h>
3135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3138 grep -v '^ *+' conftest.er1 >conftest.err
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } >/dev/null; then
3143 if test -s conftest.err; then
3144 ac_cpp_err=$ac_c_preproc_warn_flag
3145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3152 if test -z "$ac_cpp_err"; then
3155 echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3158 # Broken: fails on valid input.
3161 rm -f conftest.err conftest.$ac_ext
3163 # OK, works on sane cases. Now check whether non-existent headers
3164 # can be detected and how.
3165 cat >conftest.$ac_ext <<_ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h. */
3171 #include <ac_nonexistent.h>
3173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3176 grep -v '^ *+' conftest.er1 >conftest.err
3178 cat conftest.err >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } >/dev/null; then
3181 if test -s conftest.err; then
3182 ac_cpp_err=$ac_c_preproc_warn_flag
3183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3190 if test -z "$ac_cpp_err"; then
3191 # Broken: success on invalid input.
3194 echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3197 # Passes both tests.
3201 rm -f conftest.err conftest.$ac_ext
3204 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3205 rm -f conftest.err conftest.$ac_ext
3206 if $ac_preproc_ok; then
3209 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3210 See \`config.log' for more details." >&5
3211 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3212 See \`config.log' for more details." >&2;}
3213 { (exit 1); exit 1; }; }
3217 ac_cpp='$CPP $CPPFLAGS'
3218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3222 if test "$GXX" != "yes"
3224 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3225 echo "$as_me: error: g++ required but not found" >&2;}
3226 { (exit 1); exit 1; }; }
3229 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3230 if test "$gccmajor" -lt "3"
3232 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3233 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3234 { (exit 1); exit 1; }; }
3237 echo "$as_me:$LINENO: checking for GNU make" >&5
3238 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3239 if test "${_cv_gnu_make_command+set}" = set; then
3240 echo $ECHO_N "(cached) $ECHO_C" >&6
3242 _cv_gnu_make_command='' ;
3243 for a in "$MAKE" make gmake gnumake ; do
3244 if test -z "$a" ; then continue ; fi ;
3245 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3246 _cv_gnu_make_command=$a ;
3252 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3253 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3254 if test "x$_cv_gnu_make_command" != "x" ; then
3258 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3259 echo "${ECHO_T}\"Not found\"" >&6;
3263 if test -z "$_cv_gnu_make_command"
3265 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3266 echo "$as_me: error: GNU Make required but not found" >&2;}
3267 { (exit 1); exit 1; }; }
3271 echo "$as_me:$LINENO: checking " >&5
3272 echo $ECHO_N "checking ... $ECHO_C" >&6
3273 if test "${ac_cv_has_flex+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3276 for ac_prog in flex lex
3278 # Extract the first word of "$ac_prog", so it can be a program name with args.
3279 set dummy $ac_prog; ac_word=$2
3280 echo "$as_me:$LINENO: checking for $ac_word" >&5
3281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3282 if test "${ac_cv_prog_LEX+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3285 if test -n "$LEX"; then
3286 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 test -z "$as_dir" && as_dir=.
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3295 ac_cv_prog_LEX="$ac_prog"
3296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3305 if test -n "$LEX"; then
3306 echo "$as_me:$LINENO: result: $LEX" >&5
3307 echo "${ECHO_T}$LEX" >&6
3309 echo "$as_me:$LINENO: result: no" >&5
3310 echo "${ECHO_T}no" >&6
3313 test -n "$LEX" && break
3315 test -n "$LEX" || LEX=":"
3317 if test -z "$LEXLIB"
3319 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3320 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3321 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3324 ac_check_lib_save_LIBS=$LIBS
3326 cat >conftest.$ac_ext <<_ACEOF
3329 cat confdefs.h >>conftest.$ac_ext
3330 cat >>conftest.$ac_ext <<_ACEOF
3331 /* end confdefs.h. */
3333 /* Override any gcc2 internal prototype to avoid an error. */
3337 /* We use char because int might match the return type of a gcc2
3338 builtin and then its argument prototype would still apply. */
3348 rm -f conftest.$ac_objext conftest$ac_exeext
3349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3350 (eval $ac_link) 2>conftest.er1
3352 grep -v '^ *+' conftest.er1 >conftest.err
3354 cat conftest.err >&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); } &&
3357 { ac_try='test -z "$ac_c_werror_flag"
3358 || test ! -s conftest.err'
3359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }; } &&
3364 { ac_try='test -s conftest$ac_exeext'
3365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }; }; then
3370 ac_cv_lib_fl_yywrap=yes
3372 echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3375 ac_cv_lib_fl_yywrap=no
3377 rm -f conftest.err conftest.$ac_objext \
3378 conftest$ac_exeext conftest.$ac_ext
3379 LIBS=$ac_check_lib_save_LIBS
3381 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3382 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3383 if test $ac_cv_lib_fl_yywrap = yes; then
3386 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3387 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3388 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3389 echo $ECHO_N "(cached) $ECHO_C" >&6
3391 ac_check_lib_save_LIBS=$LIBS
3393 cat >conftest.$ac_ext <<_ACEOF
3396 cat confdefs.h >>conftest.$ac_ext
3397 cat >>conftest.$ac_ext <<_ACEOF
3398 /* end confdefs.h. */
3400 /* Override any gcc2 internal prototype to avoid an error. */
3404 /* We use char because int might match the return type of a gcc2
3405 builtin and then its argument prototype would still apply. */
3415 rm -f conftest.$ac_objext conftest$ac_exeext
3416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3417 (eval $ac_link) 2>conftest.er1
3419 grep -v '^ *+' conftest.er1 >conftest.err
3421 cat conftest.err >&5
3422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); } &&
3424 { ac_try='test -z "$ac_c_werror_flag"
3425 || test ! -s conftest.err'
3426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); }; } &&
3431 { ac_try='test -s conftest$ac_exeext'
3432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); }; }; then
3437 ac_cv_lib_l_yywrap=yes
3439 echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3442 ac_cv_lib_l_yywrap=no
3444 rm -f conftest.err conftest.$ac_objext \
3445 conftest$ac_exeext conftest.$ac_ext
3446 LIBS=$ac_check_lib_save_LIBS
3448 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3449 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3450 if test $ac_cv_lib_l_yywrap = yes; then
3458 if test "x$LEX" != "x:"; then
3459 echo "$as_me:$LINENO: checking lex output file root" >&5
3460 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3461 if test "${ac_cv_prog_lex_root+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3464 # The minimal lex program is just a single line: %%. But some broken lexes
3465 # (Solaris, I think it was) want two %% lines, so accommodate them.
3466 cat >conftest.l <<_ACEOF
3470 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3471 (eval $LEX conftest.l) 2>&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); }
3475 if test -f lex.yy.c; then
3476 ac_cv_prog_lex_root=lex.yy
3477 elif test -f lexyy.c; then
3478 ac_cv_prog_lex_root=lexyy
3480 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3481 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3482 { (exit 1); exit 1; }; }
3485 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3486 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3488 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3490 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3491 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3492 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3493 echo $ECHO_N "(cached) $ECHO_C" >&6
3495 # POSIX says lex can declare yytext either as a pointer or an array; the
3496 # default is implementation-dependent. Figure out which it is, since
3497 # not all implementations provide the %pointer and %array declarations.
3498 ac_cv_prog_lex_yytext_pointer=no
3499 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3501 LIBS="$LIBS $LEXLIB"
3502 cat >conftest.$ac_ext <<_ACEOF
3503 `cat $LEX_OUTPUT_ROOT.c`
3505 rm -f conftest.$ac_objext conftest$ac_exeext
3506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3507 (eval $ac_link) 2>conftest.er1
3509 grep -v '^ *+' conftest.er1 >conftest.err
3511 cat conftest.err >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } &&
3514 { ac_try='test -z "$ac_c_werror_flag"
3515 || test ! -s conftest.err'
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; } &&
3521 { ac_try='test -s conftest$ac_exeext'
3522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; }; then
3527 ac_cv_prog_lex_yytext_pointer=yes
3529 echo "$as_me: failed program was:" >&5
3530 sed 's/^/| /' conftest.$ac_ext >&5
3533 rm -f conftest.err conftest.$ac_objext \
3534 conftest$ac_exeext conftest.$ac_ext
3536 rm -f "${LEX_OUTPUT_ROOT}.c"
3539 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3540 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3541 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3543 cat >>confdefs.h <<\_ACEOF
3544 #define YYTEXT_POINTER 1
3552 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3553 echo "${ECHO_T}$ac_cv_has_flex" >&6
3554 if test "$LEX" != "flex"; then
3555 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3556 echo "$as_me: error: flex not found but required" >&2;}
3557 { (exit 1); exit 1; }; }
3563 echo "$as_me:$LINENO: checking " >&5
3564 echo $ECHO_N "checking ... $ECHO_C" >&6
3565 if test "${ac_cv_has_bison+set}" = set; then
3566 echo $ECHO_N "(cached) $ECHO_C" >&6
3568 for ac_prog in 'bison -y' byacc
3570 # Extract the first word of "$ac_prog", so it can be a program name with args.
3571 set dummy $ac_prog; ac_word=$2
3572 echo "$as_me:$LINENO: checking for $ac_word" >&5
3573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3574 if test "${ac_cv_prog_YACC+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
3577 if test -n "$YACC"; then
3578 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584 test -z "$as_dir" && as_dir=.
3585 for ac_exec_ext in '' $ac_executable_extensions; do
3586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3587 ac_cv_prog_YACC="$ac_prog"
3588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3596 YACC=$ac_cv_prog_YACC
3597 if test -n "$YACC"; then
3598 echo "$as_me:$LINENO: result: $YACC" >&5
3599 echo "${ECHO_T}$YACC" >&6
3601 echo "$as_me:$LINENO: result: no" >&5
3602 echo "${ECHO_T}no" >&6
3605 test -n "$YACC" && break
3607 test -n "$YACC" || YACC="yacc"
3611 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3612 echo "${ECHO_T}$ac_cv_has_bison" >&6
3613 if test "$YACC" != "bison -y"; then
3614 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3615 echo "$as_me: error: bison not found but required" >&2;}
3616 { (exit 1); exit 1; }; }
3622 # Check whether --enable-shared or --disable-shared was given.
3623 if test "${enable_shared+set}" = set; then
3624 enableval="$enable_shared"
3625 p=${PACKAGE-default}
3627 yes) enable_shared=yes ;;
3628 no) enable_shared=no ;;
3631 # Look at the argument we got. We use all the common list separators.
3632 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3633 for pkg in $enableval; do
3635 if test "X$pkg" = "X$p"; then
3646 # Check whether --enable-static or --disable-static was given.
3647 if test "${enable_static+set}" = set; then
3648 enableval="$enable_static"
3649 p=${PACKAGE-default}
3651 yes) enable_static=yes ;;
3652 no) enable_static=no ;;
3655 # Look at the argument we got. We use all the common list separators.
3656 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3657 for pkg in $enableval; do
3659 if test "X$pkg" = "X$p"; then
3670 # Check whether --enable-fast-install or --disable-fast-install was given.
3671 if test "${enable_fast_install+set}" = set; then
3672 enableval="$enable_fast_install"
3673 p=${PACKAGE-default}
3675 yes) enable_fast_install=yes ;;
3676 no) enable_fast_install=no ;;
3678 enable_fast_install=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
3684 enable_fast_install=yes
3691 enable_fast_install=yes
3694 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3695 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3696 if test "${lt_cv_path_SED+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3699 # Loop through the user's path and test for sed and gsed.
3700 # Then use that list of sed's as ones to test for truncation.
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 test -z "$as_dir" && as_dir=.
3706 for lt_ac_prog in sed gsed; do
3707 for ac_exec_ext in '' $ac_executable_extensions; do
3708 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3709 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3716 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3717 # along with /bin/sed that truncates output.
3718 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3719 test ! -f $lt_ac_sed && break
3720 cat /dev/null > conftest.in
3722 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3723 # Check for GNU sed and select it if it is found.
3724 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3725 lt_cv_path_SED=$lt_ac_sed
3729 cat conftest.in conftest.in >conftest.tmp
3730 mv conftest.tmp conftest.in
3731 cp conftest.in conftest.nl
3733 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3734 cmp -s conftest.out conftest.nl || break
3735 # 10000 chars as input seems more than enough
3736 test $lt_ac_count -gt 10 && break
3737 lt_ac_count=`expr $lt_ac_count + 1`
3738 if test $lt_ac_count -gt $lt_ac_max; then
3739 lt_ac_max=$lt_ac_count
3740 lt_cv_path_SED=$lt_ac_sed
3748 echo "$as_me:$LINENO: result: $SED" >&5
3749 echo "${ECHO_T}$SED" >&6
3751 echo "$as_me:$LINENO: checking for egrep" >&5
3752 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3753 if test "${ac_cv_prog_egrep+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3756 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3757 then ac_cv_prog_egrep='grep -E'
3758 else ac_cv_prog_egrep='egrep'
3761 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3762 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3763 EGREP=$ac_cv_prog_egrep
3767 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3768 if test "${with_gnu_ld+set}" = set; then
3769 withval="$with_gnu_ld"
3770 test "$withval" = no || with_gnu_ld=yes
3775 if test "$GCC" = yes; then
3776 # Check if gcc -print-prog-name=ld gives a path.
3777 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3778 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3781 # gcc leaves a trailing carriage return which upsets mingw
3782 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3784 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3787 # Accept absolute paths.
3789 re_direlt='/[^/][^/]*/\.\./'
3790 # Canonicalize the pathname of ld
3791 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3792 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3793 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3795 test -z "$LD" && LD="$ac_prog"
3798 # If it fails, then pretend we aren't using GCC.
3802 # If it is relative, then search for the first ld in PATH.
3806 elif test "$with_gnu_ld" = yes; then
3807 echo "$as_me:$LINENO: checking for GNU ld" >&5
3808 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3810 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3811 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3813 if test "${lt_cv_path_LD+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3816 if test -z "$LD"; then
3817 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3818 for ac_dir in $PATH; do
3820 test -z "$ac_dir" && ac_dir=.
3821 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3822 lt_cv_path_LD="$ac_dir/$ac_prog"
3823 # Check to see if the program is GNU ld. I'd rather use --version,
3824 # but apparently some GNU ld's only accept -v.
3825 # Break only if it was the GNU/non-GNU ld that we prefer.
3826 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3827 *GNU* | *'with BFD'*)
3828 test "$with_gnu_ld" != no && break
3831 test "$with_gnu_ld" != yes && break
3838 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3843 if test -n "$LD"; then
3844 echo "$as_me:$LINENO: result: $LD" >&5
3845 echo "${ECHO_T}$LD" >&6
3847 echo "$as_me:$LINENO: result: no" >&5
3848 echo "${ECHO_T}no" >&6
3850 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3851 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3852 { (exit 1); exit 1; }; }
3853 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3854 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3855 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3856 echo $ECHO_N "(cached) $ECHO_C" >&6
3858 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3859 case `$LD -v 2>&1 </dev/null` in
3860 *GNU* | *'with BFD'*)
3861 lt_cv_prog_gnu_ld=yes
3864 lt_cv_prog_gnu_ld=no
3868 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3869 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3870 with_gnu_ld=$lt_cv_prog_gnu_ld
3873 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3874 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3875 if test "${lt_cv_ld_reload_flag+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3878 lt_cv_ld_reload_flag='-r'
3880 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3881 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3882 reload_flag=$lt_cv_ld_reload_flag
3883 case $reload_flag in
3885 *) reload_flag=" $reload_flag" ;;
3887 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3890 if test "$GCC" = yes; then
3891 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3893 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3898 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3899 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3900 if test "${lt_cv_path_NM+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3903 if test -n "$NM"; then
3904 # Let the user override the test.
3907 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3908 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3910 test -z "$ac_dir" && ac_dir=.
3911 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3912 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3913 # Check to see if the nm accepts a BSD-compat flag.
3914 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3915 # nm: unknown option "B" ignored
3916 # Tru64's nm complains that /dev/null is an invalid object file
3917 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3918 */dev/null* | *'Invalid file or object type'*)
3919 lt_cv_path_NM="$tmp_nm -B"
3923 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3925 lt_cv_path_NM="$tmp_nm -p"
3929 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3930 continue # so that we can try to find one that supports BSD flags
3937 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3940 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3941 echo "${ECHO_T}$lt_cv_path_NM" >&6
3944 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3945 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3947 if test "$LN_S" = "ln -s"; then
3948 echo "$as_me:$LINENO: result: yes" >&5
3949 echo "${ECHO_T}yes" >&6
3951 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3952 echo "${ECHO_T}no, using $LN_S" >&6
3955 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3956 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3957 if test "${lt_cv_deplibs_check_method+set}" = set; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3960 lt_cv_file_magic_cmd='$MAGIC_CMD'
3961 lt_cv_file_magic_test_file=
3962 lt_cv_deplibs_check_method='unknown'
3963 # Need to set the preceding variable on all platforms that support
3964 # interlibrary dependencies.
3965 # 'none' -- dependencies not supported.
3966 # `unknown' -- same as none, but documents that we really don't know.
3967 # 'pass_all' -- all dependencies passed with no checks.
3968 # 'test_compile' -- check by making test program.
3969 # 'file_magic [[regex]]' -- check by looking for files in library path
3970 # which responds to the $file_magic_cmd with a given extended regex.
3971 # If you have `file' or equivalent on your system and you're not sure
3972 # whether `pass_all' will *always* work, you probably want this one.
3976 lt_cv_deplibs_check_method=pass_all
3980 lt_cv_deplibs_check_method=pass_all
3984 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3985 lt_cv_file_magic_cmd='/usr/bin/file -L'
3986 lt_cv_file_magic_test_file=/shlib/libc.so
3990 # func_win32_libid is a shell function defined in ltmain.sh
3991 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3992 lt_cv_file_magic_cmd='func_win32_libid'
3996 # Base MSYS/MinGW do not provide the 'file' command needed by
3997 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3998 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3999 lt_cv_file_magic_cmd='$OBJDUMP -f'
4002 darwin* | rhapsody*)
4003 lt_cv_deplibs_check_method=pass_all
4006 freebsd* | kfreebsd*-gnu)
4007 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4010 # Not sure whether the presence of OpenBSD here was a mistake.
4011 # Let's accept both of them until this is cleared up.
4012 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4013 lt_cv_file_magic_cmd=/usr/bin/file
4014 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4018 lt_cv_deplibs_check_method=pass_all
4023 lt_cv_deplibs_check_method=pass_all
4026 hpux10.20* | hpux11*)
4027 lt_cv_file_magic_cmd=/usr/bin/file
4030 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4031 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4034 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]'
4035 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4038 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4039 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4044 irix5* | irix6* | nonstopux*)
4046 *-32|*"-32 ") libmagic=32-bit;;
4047 *-n32|*"-n32 ") libmagic=N32;;
4048 *-64|*"-64 ") libmagic=64-bit;;
4049 *) libmagic=never-match;;
4051 lt_cv_deplibs_check_method=pass_all
4054 # This must be Linux ELF.
4056 lt_cv_deplibs_check_method=pass_all
4060 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4061 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4063 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4068 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4069 lt_cv_file_magic_cmd=/usr/bin/file
4070 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4074 lt_cv_deplibs_check_method=unknown
4078 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4079 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4085 osf3* | osf4* | osf5*)
4086 lt_cv_deplibs_check_method=pass_all
4090 lt_cv_deplibs_check_method=pass_all
4094 lt_cv_deplibs_check_method=pass_all
4097 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4098 case $host_vendor in
4100 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]'
4101 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4104 lt_cv_deplibs_check_method=pass_all
4107 lt_cv_file_magic_cmd='/bin/file'
4108 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4111 lt_cv_file_magic_cmd='/bin/file'
4112 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4113 lt_cv_file_magic_test_file=/lib/libc.so
4116 lt_cv_deplibs_check_method=pass_all
4121 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4122 lt_cv_deplibs_check_method=pass_all
4127 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4128 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4129 file_magic_cmd=$lt_cv_file_magic_cmd
4130 deplibs_check_method=$lt_cv_deplibs_check_method
4131 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4136 # If no C compiler was specified, use CC.
4139 # Allow CC to be a program name with arguments.
4142 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4143 if test "${enable_libtool_lock+set}" = set; then
4144 enableval="$enable_libtool_lock"
4147 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4149 # Some flags need to be propagated to the compiler or linker for good
4153 # Find out which ABI we are using.
4154 echo 'int i;' > conftest.$ac_ext
4155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4156 (eval $ac_compile) 2>&5
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }; then
4160 case `/usr/bin/file conftest.$ac_objext` in
4172 # Find out which ABI we are using.
4173 echo '#line 4173 "configure"' > conftest.$ac_ext
4174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4175 (eval $ac_compile) 2>&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; then
4179 if test "$lt_cv_prog_gnu_ld" = yes; then
4180 case `/usr/bin/file conftest.$ac_objext` in
4182 LD="${LD-ld} -melf32bsmip"
4185 LD="${LD-ld} -melf32bmipn32"
4188 LD="${LD-ld} -melf64bmip"
4192 case `/usr/bin/file conftest.$ac_objext` in
4208 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4209 # Find out which ABI we are using.
4210 echo 'int i;' > conftest.$ac_ext
4211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4212 (eval $ac_compile) 2>&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }; then
4216 case "`/usr/bin/file conftest.o`" in
4220 LD="${LD-ld} -m elf_i386"
4222 ppc64-*linux*|powerpc64-*linux*)
4223 LD="${LD-ld} -m elf32ppclinux"
4226 LD="${LD-ld} -m elf_s390"
4229 LD="${LD-ld} -m elf32_sparc"
4236 LD="${LD-ld} -m elf_x86_64"
4238 ppc*-*linux*|powerpc*-*linux*)
4239 LD="${LD-ld} -m elf64ppc"
4242 LD="${LD-ld} -m elf64_s390"
4245 LD="${LD-ld} -m elf64_sparc"
4255 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4256 SAVE_CFLAGS="$CFLAGS"
4257 CFLAGS="$CFLAGS -belf"
4258 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4259 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4260 if test "${lt_cv_cc_needs_belf+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4264 ac_cpp='$CPP $CPPFLAGS'
4265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4269 cat >conftest.$ac_ext <<_ACEOF
4272 cat confdefs.h >>conftest.$ac_ext
4273 cat >>conftest.$ac_ext <<_ACEOF
4274 /* end confdefs.h. */
4284 rm -f conftest.$ac_objext conftest$ac_exeext
4285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4286 (eval $ac_link) 2>conftest.er1
4288 grep -v '^ *+' conftest.er1 >conftest.err
4290 cat conftest.err >&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); } &&
4293 { ac_try='test -z "$ac_c_werror_flag"
4294 || test ! -s conftest.err'
4295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; } &&
4300 { ac_try='test -s conftest$ac_exeext'
4301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; }; then
4306 lt_cv_cc_needs_belf=yes
4308 echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4311 lt_cv_cc_needs_belf=no
4313 rm -f conftest.err conftest.$ac_objext \
4314 conftest$ac_exeext conftest.$ac_ext
4316 ac_cpp='$CPP $CPPFLAGS'
4317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4322 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4323 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4324 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4325 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4326 CFLAGS="$SAVE_CFLAGS"
4332 need_locks="$enable_libtool_lock"
4336 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4337 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4338 if test "${ac_cv_header_stdc+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4341 cat >conftest.$ac_ext <<_ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h. */
4360 rm -f conftest.$ac_objext
4361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4362 (eval $ac_compile) 2>conftest.er1
4364 grep -v '^ *+' conftest.er1 >conftest.err
4366 cat conftest.err >&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } &&
4369 { ac_try='test -z "$ac_c_werror_flag"
4370 || test ! -s conftest.err'
4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; } &&
4376 { ac_try='test -s conftest.$ac_objext'
4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; }; then
4382 ac_cv_header_stdc=yes
4384 echo "$as_me: failed program was:" >&5
4385 sed 's/^/| /' conftest.$ac_ext >&5
4387 ac_cv_header_stdc=no
4389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4391 if test $ac_cv_header_stdc = yes; then
4392 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4393 cat >conftest.$ac_ext <<_ACEOF
4396 cat confdefs.h >>conftest.$ac_ext
4397 cat >>conftest.$ac_ext <<_ACEOF
4398 /* end confdefs.h. */
4402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4403 $EGREP "memchr" >/dev/null 2>&1; then
4406 ac_cv_header_stdc=no
4412 if test $ac_cv_header_stdc = yes; then
4413 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4414 cat >conftest.$ac_ext <<_ACEOF
4417 cat confdefs.h >>conftest.$ac_ext
4418 cat >>conftest.$ac_ext <<_ACEOF
4419 /* end confdefs.h. */
4423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4424 $EGREP "free" >/dev/null 2>&1; then
4427 ac_cv_header_stdc=no
4433 if test $ac_cv_header_stdc = yes; then
4434 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4435 if test "$cross_compiling" = yes; then
4438 cat >conftest.$ac_ext <<_ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4445 #if ((' ' & 0x0FF) == 0x020)
4446 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4447 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4449 # define ISLOWER(c) \
4450 (('a' <= (c) && (c) <= 'i') \
4451 || ('j' <= (c) && (c) <= 'r') \
4452 || ('s' <= (c) && (c) <= 'z'))
4453 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4456 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4461 for (i = 0; i < 256; i++)
4462 if (XOR (islower (i), ISLOWER (i))
4463 || toupper (i) != TOUPPER (i))
4468 rm -f conftest$ac_exeext
4469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4470 (eval $ac_link) 2>&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; }; then
4481 echo "$as_me: program exited with status $ac_status" >&5
4482 echo "$as_me: failed program was:" >&5
4483 sed 's/^/| /' conftest.$ac_ext >&5
4486 ac_cv_header_stdc=no
4488 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4492 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4493 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4494 if test $ac_cv_header_stdc = yes; then
4496 cat >>confdefs.h <<\_ACEOF
4497 #define STDC_HEADERS 1
4502 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4512 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4513 inttypes.h stdint.h unistd.h
4515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4516 echo "$as_me:$LINENO: checking for $ac_header" >&5
4517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 cat >conftest.$ac_ext <<_ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4527 $ac_includes_default
4529 #include <$ac_header>
4531 rm -f conftest.$ac_objext
4532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4533 (eval $ac_compile) 2>conftest.er1
4535 grep -v '^ *+' conftest.er1 >conftest.err
4537 cat conftest.err >&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); } &&
4540 { ac_try='test -z "$ac_c_werror_flag"
4541 || test ! -s conftest.err'
4542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; } &&
4547 { ac_try='test -s conftest.$ac_objext'
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; }; then
4553 eval "$as_ac_Header=yes"
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4558 eval "$as_ac_Header=no"
4560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4565 cat >>confdefs.h <<_ACEOF
4566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4575 for ac_header in dlfcn.h
4577 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4579 echo "$as_me:$LINENO: checking for $ac_header" >&5
4580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4587 # Is the header compilable?
4588 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4589 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4590 cat >conftest.$ac_ext <<_ACEOF
4593 cat confdefs.h >>conftest.$ac_ext
4594 cat >>conftest.$ac_ext <<_ACEOF
4595 /* end confdefs.h. */
4596 $ac_includes_default
4597 #include <$ac_header>
4599 rm -f conftest.$ac_objext
4600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4601 (eval $ac_compile) 2>conftest.er1
4603 grep -v '^ *+' conftest.er1 >conftest.err
4605 cat conftest.err >&5
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); } &&
4608 { ac_try='test -z "$ac_c_werror_flag"
4609 || test ! -s conftest.err'
4610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }; } &&
4615 { ac_try='test -s conftest.$ac_objext'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; }; then
4621 ac_header_compiler=yes
4623 echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.$ac_ext >&5
4626 ac_header_compiler=no
4628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4629 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4630 echo "${ECHO_T}$ac_header_compiler" >&6
4632 # Is the header present?
4633 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4634 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4635 cat >conftest.$ac_ext <<_ACEOF
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h. */
4641 #include <$ac_header>
4643 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4644 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4646 grep -v '^ *+' conftest.er1 >conftest.err
4648 cat conftest.err >&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); } >/dev/null; then
4651 if test -s conftest.err; then
4652 ac_cpp_err=$ac_c_preproc_warn_flag
4653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4660 if test -z "$ac_cpp_err"; then
4661 ac_header_preproc=yes
4663 echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4666 ac_header_preproc=no
4668 rm -f conftest.err conftest.$ac_ext
4669 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4670 echo "${ECHO_T}$ac_header_preproc" >&6
4672 # So? What about this header?
4673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4675 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4676 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4678 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4679 ac_header_preproc=yes
4682 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4683 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4684 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4685 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4686 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4687 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4688 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4689 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4692 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4693 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4696 ## ----------------------------------- ##
4697 ## Report this to llvmbugs@cs.uiuc.edu ##
4698 ## ----------------------------------- ##
4701 sed "s/^/$as_me: WARNING: /" >&2
4704 echo "$as_me:$LINENO: checking for $ac_header" >&5
4705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4707 echo $ECHO_N "(cached) $ECHO_C" >&6
4709 eval "$as_ac_Header=\$ac_header_preproc"
4711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4712 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4715 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4716 cat >>confdefs.h <<_ACEOF
4717 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4726 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4727 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4728 (test "X$CXX" != "Xg++"))) ; then
4730 ac_cpp='$CXXCPP $CPPFLAGS'
4731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4734 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4735 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4736 if test -z "$CXXCPP"; then
4737 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4738 echo $ECHO_N "(cached) $ECHO_C" >&6
4740 # Double quotes because CXXCPP needs to be expanded
4741 for CXXCPP in "$CXX -E" "/lib/cpp"
4744 for ac_cxx_preproc_warn_flag in '' yes
4746 # Use a header file that comes with gcc, so configuring glibc
4747 # with a fresh cross-compiler works.
4748 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4749 # <limits.h> exists even on freestanding compilers.
4750 # On the NeXT, cc -E runs the code through the compiler's parser,
4751 # not just through cpp. "Syntax error" is here to catch this case.
4752 cat >conftest.$ac_ext <<_ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h. */
4759 # include <limits.h>
4761 # include <assert.h>
4765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4768 grep -v '^ *+' conftest.er1 >conftest.err
4770 cat conftest.err >&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); } >/dev/null; then
4773 if test -s conftest.err; then
4774 ac_cpp_err=$ac_cxx_preproc_warn_flag
4775 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4782 if test -z "$ac_cpp_err"; then
4785 echo "$as_me: failed program was:" >&5
4786 sed 's/^/| /' conftest.$ac_ext >&5
4788 # Broken: fails on valid input.
4791 rm -f conftest.err conftest.$ac_ext
4793 # OK, works on sane cases. Now check whether non-existent headers
4794 # can be detected and how.
4795 cat >conftest.$ac_ext <<_ACEOF
4798 cat confdefs.h >>conftest.$ac_ext
4799 cat >>conftest.$ac_ext <<_ACEOF
4800 /* end confdefs.h. */
4801 #include <ac_nonexistent.h>
4803 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4804 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4806 grep -v '^ *+' conftest.er1 >conftest.err
4808 cat conftest.err >&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } >/dev/null; then
4811 if test -s conftest.err; then
4812 ac_cpp_err=$ac_cxx_preproc_warn_flag
4813 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4820 if test -z "$ac_cpp_err"; then
4821 # Broken: success on invalid input.
4824 echo "$as_me: failed program was:" >&5
4825 sed 's/^/| /' conftest.$ac_ext >&5
4827 # Passes both tests.
4831 rm -f conftest.err conftest.$ac_ext
4834 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4835 rm -f conftest.err conftest.$ac_ext
4836 if $ac_preproc_ok; then
4841 ac_cv_prog_CXXCPP=$CXXCPP
4844 CXXCPP=$ac_cv_prog_CXXCPP
4846 ac_cv_prog_CXXCPP=$CXXCPP
4848 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4849 echo "${ECHO_T}$CXXCPP" >&6
4851 for ac_cxx_preproc_warn_flag in '' yes
4853 # Use a header file that comes with gcc, so configuring glibc
4854 # with a fresh cross-compiler works.
4855 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4856 # <limits.h> exists even on freestanding compilers.
4857 # On the NeXT, cc -E runs the code through the compiler's parser,
4858 # not just through cpp. "Syntax error" is here to catch this case.
4859 cat >conftest.$ac_ext <<_ACEOF
4862 cat confdefs.h >>conftest.$ac_ext
4863 cat >>conftest.$ac_ext <<_ACEOF
4864 /* end confdefs.h. */
4866 # include <limits.h>
4868 # include <assert.h>
4872 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4873 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4875 grep -v '^ *+' conftest.er1 >conftest.err
4877 cat conftest.err >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); } >/dev/null; then
4880 if test -s conftest.err; then
4881 ac_cpp_err=$ac_cxx_preproc_warn_flag
4882 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4889 if test -z "$ac_cpp_err"; then
4892 echo "$as_me: failed program was:" >&5
4893 sed 's/^/| /' conftest.$ac_ext >&5
4895 # Broken: fails on valid input.
4898 rm -f conftest.err conftest.$ac_ext
4900 # OK, works on sane cases. Now check whether non-existent headers
4901 # can be detected and how.
4902 cat >conftest.$ac_ext <<_ACEOF
4905 cat confdefs.h >>conftest.$ac_ext
4906 cat >>conftest.$ac_ext <<_ACEOF
4907 /* end confdefs.h. */
4908 #include <ac_nonexistent.h>
4910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4911 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4913 grep -v '^ *+' conftest.er1 >conftest.err
4915 cat conftest.err >&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); } >/dev/null; then
4918 if test -s conftest.err; then
4919 ac_cpp_err=$ac_cxx_preproc_warn_flag
4920 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4927 if test -z "$ac_cpp_err"; then
4928 # Broken: success on invalid input.
4931 echo "$as_me: failed program was:" >&5
4932 sed 's/^/| /' conftest.$ac_ext >&5
4934 # Passes both tests.
4938 rm -f conftest.err conftest.$ac_ext
4941 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4942 rm -f conftest.err conftest.$ac_ext
4943 if $ac_preproc_ok; then
4946 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4947 See \`config.log' for more details." >&5
4948 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4949 See \`config.log' for more details." >&2;}
4950 { (exit 1); exit 1; }; }
4954 ac_cpp='$CXXCPP $CPPFLAGS'
4955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4963 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4964 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4965 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4966 if test -n "$ac_tool_prefix"; then
4967 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4969 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4970 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4971 echo "$as_me:$LINENO: checking for $ac_word" >&5
4972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4973 if test "${ac_cv_prog_F77+set}" = set; then
4974 echo $ECHO_N "(cached) $ECHO_C" >&6
4976 if test -n "$F77"; then
4977 ac_cv_prog_F77="$F77" # Let the user override the test.
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983 test -z "$as_dir" && as_dir=.
4984 for ac_exec_ext in '' $ac_executable_extensions; do
4985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4986 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4996 if test -n "$F77"; then
4997 echo "$as_me:$LINENO: result: $F77" >&5
4998 echo "${ECHO_T}$F77" >&6
5000 echo "$as_me:$LINENO: result: no" >&5
5001 echo "${ECHO_T}no" >&6
5004 test -n "$F77" && break
5007 if test -z "$F77"; then
5009 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5011 # Extract the first word of "$ac_prog", so it can be a program name with args.
5012 set dummy $ac_prog; ac_word=$2
5013 echo "$as_me:$LINENO: checking for $ac_word" >&5
5014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5015 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 if test -n "$ac_ct_F77"; then
5019 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025 test -z "$as_dir" && as_dir=.
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5028 ac_cv_prog_ac_ct_F77="$ac_prog"
5029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5037 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5038 if test -n "$ac_ct_F77"; then
5039 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5040 echo "${ECHO_T}$ac_ct_F77" >&6
5042 echo "$as_me:$LINENO: result: no" >&5
5043 echo "${ECHO_T}no" >&6
5046 test -n "$ac_ct_F77" && break
5053 # Provide some information about the compiler.
5054 echo "$as_me:5054:" \
5055 "checking for Fortran 77 compiler version" >&5
5056 ac_compiler=`set X $ac_compile; echo $2`
5057 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5058 (eval $ac_compiler --version </dev/null >&5) 2>&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }
5062 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5063 (eval $ac_compiler -v </dev/null >&5) 2>&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); }
5067 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5068 (eval $ac_compiler -V </dev/null >&5) 2>&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); }
5074 # If we don't use `.F' as extension, the preprocessor is not run on the
5075 # input file. (Note that this only needs to work for GNU compilers.)
5078 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5079 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5080 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5083 cat >conftest.$ac_ext <<_ACEOF
5091 rm -f conftest.$ac_objext
5092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5093 (eval $ac_compile) 2>conftest.er1
5095 grep -v '^ *+' conftest.er1 >conftest.err
5097 cat conftest.err >&5
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); } &&
5100 { ac_try='test -z "$ac_f77_werror_flag"
5101 || test ! -s conftest.err'
5102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); }; } &&
5107 { ac_try='test -s conftest.$ac_objext'
5108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; }; then
5115 echo "$as_me: failed program was:" >&5
5116 sed 's/^/| /' conftest.$ac_ext >&5
5120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5121 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5124 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5125 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5127 ac_test_FFLAGS=${FFLAGS+set}
5128 ac_save_FFLAGS=$FFLAGS
5130 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5131 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5132 if test "${ac_cv_prog_f77_g+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5136 cat >conftest.$ac_ext <<_ACEOF
5141 rm -f conftest.$ac_objext
5142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5143 (eval $ac_compile) 2>conftest.er1
5145 grep -v '^ *+' conftest.er1 >conftest.err
5147 cat conftest.err >&5
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); } &&
5150 { ac_try='test -z "$ac_f77_werror_flag"
5151 || test ! -s conftest.err'
5152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); }; } &&
5157 { ac_try='test -s conftest.$ac_objext'
5158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); }; }; then
5163 ac_cv_prog_f77_g=yes
5165 echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5173 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5174 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5175 if test "$ac_test_FFLAGS" = set; then
5176 FFLAGS=$ac_save_FFLAGS
5177 elif test $ac_cv_prog_f77_g = yes; then
5178 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5184 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5191 G77=`test $ac_compiler_gnu = yes && echo yes`
5193 ac_cpp='$CPP $CPPFLAGS'
5194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5200 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5202 # find the maximum length of command line arguments
5203 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5204 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5205 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5213 # On DJGPP, this test can blow up pretty badly due to problems in libc
5214 # (any single argument exceeding 2000 bytes causes a buffer overrun
5215 # during glob expansion). Even if it were fixed, the result of this
5216 # check would be larger than it should be.
5217 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5221 # Under GNU Hurd, this test is not required because there is
5222 # no limit to the length of command line arguments.
5223 # Libtool will interpret -1 as no limit whatsoever
5224 lt_cv_sys_max_cmd_len=-1;
5228 # On Win9x/ME, this test blows up -- it succeeds, but takes
5229 # about 5 minutes as the teststring grows exponentially.
5230 # Worse, since 9x/ME are not pre-emptively multitasking,
5231 # you end up with a "frozen" computer, even though with patience
5232 # the test eventually succeeds (with a max line length of 256k).
5233 # Instead, let's just punt: use the minimum linelength reported by
5234 # all of the supported platforms: 8192 (on NT/2K/XP).
5235 lt_cv_sys_max_cmd_len=8192;
5239 # On AmigaOS with pdksh, this test takes hours, literally.
5240 # So we just punt and use a minimum line length of 8192.
5241 lt_cv_sys_max_cmd_len=8192;
5244 netbsd* | freebsd* | openbsd* | darwin* )
5245 # This has been around since 386BSD, at least. Likely further.
5246 if test -x /sbin/sysctl; then
5247 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5248 elif test -x /usr/sbin/sysctl; then
5249 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5251 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5253 # And add a safety zone
5254 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5258 # If test is not a shell built-in, we'll probably end up computing a
5259 # maximum length that is only half of the actual maximum length, but
5261 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5262 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5263 = "XX$teststring") >/dev/null 2>&1 &&
5264 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5265 lt_cv_sys_max_cmd_len=$new_result &&
5266 test $i != 17 # 1/2 MB should be enough
5269 teststring=$teststring$teststring
5272 # Add a significant safety factor because C++ compilers can tack on massive
5273 # amounts of additional arguments before passing them to the linker.
5274 # It appears as though 1/2 is a usable value.
5275 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5281 if test -n $lt_cv_sys_max_cmd_len ; then
5282 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5283 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5285 echo "$as_me:$LINENO: result: none" >&5
5286 echo "${ECHO_T}none" >&6
5292 # Check for command to grab the raw symbol name followed by C symbol from nm.
5293 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5294 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5295 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
5299 # These are sane defaults that work on at least a few old systems.
5300 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5302 # Character class describing NM global symbol codes.
5303 symcode='[BCDEGRST]'
5305 # Regexp to match symbols that can be accessed directly from C.
5306 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5308 # Transform the above into a raw symbol and a C symbol.
5309 symxfrm='\1 \2\3 \3'
5311 # Transform an extracted symbol line into a proper C declaration
5312 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5314 # Transform an extracted symbol line into symbol name and symbol address
5315 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'"
5317 # Define system-specific variables.
5322 cygwin* | mingw* | pw32*)
5323 symcode='[ABCDGISTW]'
5325 hpux*) # Its linker distinguishes data from code symbols
5326 if test "$host_cpu" = ia64; then
5327 symcode='[ABCDEGRST]'
5329 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5330 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'"
5333 if test "$host_cpu" = ia64; then
5334 symcode='[ABCDGIRSTW]'
5335 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5336 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'"
5340 symcode='[BCDEGRST]'
5343 symcode='[BCDEGQRST]'
5353 # Handle CRLF in mingw tool chain
5357 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5361 # If we're using GNU nm, then use its standard symbol codes.
5362 case `$NM -V 2>&1` in
5363 *GNU* | *'with BFD'*)
5364 symcode='[ABCDGIRSTW]' ;;
5367 # Try without a prefix undercore, then with it.
5368 for ac_symprfx in "" "_"; do
5370 # Write the raw and C identifiers.
5371 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5373 # Check to see that the pipe works correctly.
5377 cat > conftest.$ac_ext <<EOF
5382 void nm_test_func(){}
5386 int main(){nm_test_var='a';nm_test_func();return(0);}
5389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5390 (eval $ac_compile) 2>&5
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); }; then
5394 # Now try to grab the symbols.
5396 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5397 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); } && test -s "$nlist"; then
5401 # Try sorting and uniquifying the output.
5402 if sort "$nlist" | uniq > "$nlist"T; then
5403 mv -f "$nlist"T "$nlist"
5408 # Make sure that we snagged all the symbols we need.
5409 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5410 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5411 cat <<EOF > conftest.$ac_ext
5417 # Now generate the symbol file.
5418 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5420 cat <<EOF >> conftest.$ac_ext
5421 #if defined (__STDC__) && __STDC__
5422 # define lt_ptr_t void *
5424 # define lt_ptr_t char *
5428 /* The mapping between symbol names and symbols. */
5433 lt_preloaded_symbols[] =
5436 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5437 cat <<\EOF >> conftest.$ac_ext
5445 # Now try linking the two files.
5446 mv conftest.$ac_objext conftstm.$ac_objext
5447 lt_save_LIBS="$LIBS"
5448 lt_save_CFLAGS="$CFLAGS"
5449 LIBS="conftstm.$ac_objext"
5450 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5452 (eval $ac_link) 2>&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5458 LIBS="$lt_save_LIBS"
5459 CFLAGS="$lt_save_CFLAGS"
5461 echo "cannot find nm_test_func in $nlist" >&5
5464 echo "cannot find nm_test_var in $nlist" >&5
5467 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5470 echo "$progname: failed program was:" >&5
5471 cat conftest.$ac_ext >&5
5473 rm -f conftest* conftst*
5475 # Do not use the global_symbol_pipe unless it works.
5476 if test "$pipe_works" = yes; then
5479 lt_cv_sys_global_symbol_pipe=
5485 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5486 lt_cv_sys_global_symbol_to_cdecl=
5488 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5489 echo "$as_me:$LINENO: result: failed" >&5
5490 echo "${ECHO_T}failed" >&6
5492 echo "$as_me:$LINENO: result: ok" >&5
5493 echo "${ECHO_T}ok" >&6
5496 echo "$as_me:$LINENO: checking for objdir" >&5
5497 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5498 if test "${lt_cv_objdir+set}" = set; then
5499 echo $ECHO_N "(cached) $ECHO_C" >&6
5501 rm -f .libs 2>/dev/null
5502 mkdir .libs 2>/dev/null
5503 if test -d .libs; then
5506 # MS-DOS does not allow filenames that begin with a dot.
5509 rmdir .libs 2>/dev/null
5511 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5512 echo "${ECHO_T}$lt_cv_objdir" >&6
5513 objdir=$lt_cv_objdir
5521 # AIX sometimes has problems with the GCC collect2 program. For some
5522 # reason, if we set the COLLECT_NAMES environment variable, the problems
5523 # vanish in a puff of smoke.
5524 if test "X${COLLECT_NAMES+set}" != Xset; then
5526 export COLLECT_NAMES
5531 # Sed substitution that helps us do robust quoting. It backslashifies
5532 # metacharacters that are still active within double-quoted strings.
5533 Xsed='sed -e s/^X//'
5534 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5536 # Same as above, but do not quote variable references.
5537 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5539 # Sed substitution to delay expansion of an escaped shell variable in a
5540 # double_quote_subst'ed string.
5541 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5543 # Sed substitution to avoid accidental globbing in evaled expressions
5544 no_glob_subst='s/\*/\\\*/g'
5551 can_build_shared=yes
5553 # All known linkers require a `.a' archive for static linking (except M$VC,
5554 # which needs '.lib').
5556 ltmain="$ac_aux_dir/ltmain.sh"
5557 ofile="$default_ofile"
5558 with_gnu_ld="$lt_cv_prog_gnu_ld"
5560 if test -n "$ac_tool_prefix"; then
5561 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5562 set dummy ${ac_tool_prefix}ar; ac_word=$2
5563 echo "$as_me:$LINENO: checking for $ac_word" >&5
5564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5565 if test "${ac_cv_prog_AR+set}" = set; then
5566 echo $ECHO_N "(cached) $ECHO_C" >&6
5568 if test -n "$AR"; then
5569 ac_cv_prog_AR="$AR" # Let the user override the test.
5571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575 test -z "$as_dir" && as_dir=.
5576 for ac_exec_ext in '' $ac_executable_extensions; do
5577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5578 ac_cv_prog_AR="${ac_tool_prefix}ar"
5579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5588 if test -n "$AR"; then
5589 echo "$as_me:$LINENO: result: $AR" >&5
5590 echo "${ECHO_T}$AR" >&6
5592 echo "$as_me:$LINENO: result: no" >&5
5593 echo "${ECHO_T}no" >&6
5597 if test -z "$ac_cv_prog_AR"; then
5599 # Extract the first word of "ar", so it can be a program name with args.
5600 set dummy ar; ac_word=$2
5601 echo "$as_me:$LINENO: checking for $ac_word" >&5
5602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5603 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5604 echo $ECHO_N "(cached) $ECHO_C" >&6
5606 if test -n "$ac_ct_AR"; then
5607 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 test -z "$as_dir" && as_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5616 ac_cv_prog_ac_ct_AR="ar"
5617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5623 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5626 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5627 if test -n "$ac_ct_AR"; then
5628 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5629 echo "${ECHO_T}$ac_ct_AR" >&6
5631 echo "$as_me:$LINENO: result: no" >&5
5632 echo "${ECHO_T}no" >&6
5640 if test -n "$ac_tool_prefix"; then
5641 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5642 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5643 echo "$as_me:$LINENO: checking for $ac_word" >&5
5644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5645 if test "${ac_cv_prog_RANLIB+set}" = set; then
5646 echo $ECHO_N "(cached) $ECHO_C" >&6
5648 if test -n "$RANLIB"; then
5649 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655 test -z "$as_dir" && as_dir=.
5656 for ac_exec_ext in '' $ac_executable_extensions; do
5657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5658 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5667 RANLIB=$ac_cv_prog_RANLIB
5668 if test -n "$RANLIB"; then
5669 echo "$as_me:$LINENO: result: $RANLIB" >&5
5670 echo "${ECHO_T}$RANLIB" >&6
5672 echo "$as_me:$LINENO: result: no" >&5
5673 echo "${ECHO_T}no" >&6
5677 if test -z "$ac_cv_prog_RANLIB"; then
5678 ac_ct_RANLIB=$RANLIB
5679 # Extract the first word of "ranlib", so it can be a program name with args.
5680 set dummy ranlib; ac_word=$2
5681 echo "$as_me:$LINENO: checking for $ac_word" >&5
5682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5683 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5686 if test -n "$ac_ct_RANLIB"; then
5687 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693 test -z "$as_dir" && as_dir=.
5694 for ac_exec_ext in '' $ac_executable_extensions; do
5695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5696 ac_cv_prog_ac_ct_RANLIB="ranlib"
5697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5703 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5706 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5707 if test -n "$ac_ct_RANLIB"; then
5708 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5709 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5711 echo "$as_me:$LINENO: result: no" >&5
5712 echo "${ECHO_T}no" >&6
5715 RANLIB=$ac_ct_RANLIB
5717 RANLIB="$ac_cv_prog_RANLIB"
5720 if test -n "$ac_tool_prefix"; then
5721 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5722 set dummy ${ac_tool_prefix}strip; ac_word=$2
5723 echo "$as_me:$LINENO: checking for $ac_word" >&5
5724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5725 if test "${ac_cv_prog_STRIP+set}" = set; then
5726 echo $ECHO_N "(cached) $ECHO_C" >&6
5728 if test -n "$STRIP"; then
5729 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 test -z "$as_dir" && as_dir=.
5736 for ac_exec_ext in '' $ac_executable_extensions; do
5737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5738 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5747 STRIP=$ac_cv_prog_STRIP
5748 if test -n "$STRIP"; then
5749 echo "$as_me:$LINENO: result: $STRIP" >&5
5750 echo "${ECHO_T}$STRIP" >&6
5752 echo "$as_me:$LINENO: result: no" >&5
5753 echo "${ECHO_T}no" >&6
5757 if test -z "$ac_cv_prog_STRIP"; then
5759 # Extract the first word of "strip", so it can be a program name with args.
5760 set dummy strip; ac_word=$2
5761 echo "$as_me:$LINENO: checking for $ac_word" >&5
5762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5763 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5766 if test -n "$ac_ct_STRIP"; then
5767 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 test -z "$as_dir" && as_dir=.
5774 for ac_exec_ext in '' $ac_executable_extensions; do
5775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5776 ac_cv_prog_ac_ct_STRIP="strip"
5777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5783 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5786 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5787 if test -n "$ac_ct_STRIP"; then
5788 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5789 echo "${ECHO_T}$ac_ct_STRIP" >&6
5791 echo "$as_me:$LINENO: result: no" >&5
5792 echo "${ECHO_T}no" >&6
5797 STRIP="$ac_cv_prog_STRIP"
5802 old_CFLAGS="$CFLAGS"
5804 # Set sane defaults for various variables
5805 test -z "$AR" && AR=ar
5806 test -z "$AR_FLAGS" && AR_FLAGS=cru
5807 test -z "$AS" && AS=as
5808 test -z "$CC" && CC=cc
5809 test -z "$LTCC" && LTCC=$CC
5810 test -z "$DLLTOOL" && DLLTOOL=dlltool
5811 test -z "$LD" && LD=ld
5812 test -z "$LN_S" && LN_S="ln -s"
5813 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5814 test -z "$NM" && NM=nm
5815 test -z "$SED" && SED=sed
5816 test -z "$OBJDUMP" && OBJDUMP=objdump
5817 test -z "$RANLIB" && RANLIB=:
5818 test -z "$STRIP" && STRIP=:
5819 test -z "$ac_objext" && ac_objext=o
5821 # Determine commands to create old-style static archives.
5822 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5823 old_postinstall_cmds='chmod 644 $oldlib'
5824 old_postuninstall_cmds=
5826 if test -n "$RANLIB"; then
5829 old_postinstall_cmds="\$RANLIB -t \$oldlib;$old_postinstall_cmds"
5832 old_postinstall_cmds="\$RANLIB \$oldlib;$old_postinstall_cmds"
5835 old_archive_cmds="$old_archive_cmds;\$RANLIB \$oldlib"
5838 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
5840 # Only perform the check for file, if the check method requires it
5841 case $deplibs_check_method in
5843 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5844 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5845 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5846 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
5851 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5854 lt_save_MAGIC_CMD="$MAGIC_CMD"
5855 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5856 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5857 for ac_dir in $ac_dummy; do
5859 test -z "$ac_dir" && ac_dir=.
5860 if test -f $ac_dir/${ac_tool_prefix}file; then
5861 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5862 if test -n "$file_magic_test_file"; then
5863 case $deplibs_check_method in
5865 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5866 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5867 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5868 $EGREP "$file_magic_regex" > /dev/null; then
5873 *** Warning: the command libtool uses to detect shared libraries,
5874 *** $file_magic_cmd, produces output that libtool cannot recognize.
5875 *** The result is that libtool may fail to recognize shared libraries
5876 *** as such. This will affect the creation of libtool libraries that
5877 *** depend on shared libraries, but programs linked with such libtool
5878 *** libraries will work regardless of this problem. Nevertheless, you
5879 *** may want to report the problem to your system manager and/or to
5880 *** bug-libtool@gnu.org
5890 MAGIC_CMD="$lt_save_MAGIC_CMD"
5895 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5896 if test -n "$MAGIC_CMD"; then
5897 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5898 echo "${ECHO_T}$MAGIC_CMD" >&6
5900 echo "$as_me:$LINENO: result: no" >&5
5901 echo "${ECHO_T}no" >&6
5904 if test -z "$lt_cv_path_MAGIC_CMD"; then
5905 if test -n "$ac_tool_prefix"; then
5906 echo "$as_me:$LINENO: checking for file" >&5
5907 echo $ECHO_N "checking for file... $ECHO_C" >&6
5908 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5909 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5916 lt_save_MAGIC_CMD="$MAGIC_CMD"
5917 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5918 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5919 for ac_dir in $ac_dummy; do
5921 test -z "$ac_dir" && ac_dir=.
5922 if test -f $ac_dir/file; then
5923 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5924 if test -n "$file_magic_test_file"; then
5925 case $deplibs_check_method in
5927 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5928 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5929 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5930 $EGREP "$file_magic_regex" > /dev/null; then
5935 *** Warning: the command libtool uses to detect shared libraries,
5936 *** $file_magic_cmd, produces output that libtool cannot recognize.
5937 *** The result is that libtool may fail to recognize shared libraries
5938 *** as such. This will affect the creation of libtool libraries that
5939 *** depend on shared libraries, but programs linked with such libtool
5940 *** libraries will work regardless of this problem. Nevertheless, you
5941 *** may want to report the problem to your system manager and/or to
5942 *** bug-libtool@gnu.org
5952 MAGIC_CMD="$lt_save_MAGIC_CMD"
5957 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5958 if test -n "$MAGIC_CMD"; then
5959 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5960 echo "${ECHO_T}$MAGIC_CMD" >&6
5962 echo "$as_me:$LINENO: result: no" >&5
5963 echo "${ECHO_T}no" >&6
5978 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5979 if test "${enable_libtool_lock+set}" = set; then
5980 enableval="$enable_libtool_lock"
5983 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5986 # Check whether --with-pic or --without-pic was given.
5987 if test "${with_pic+set}" = set; then
5993 test -z "$pic_mode" && pic_mode=default
5995 # Use C for the default configuration in the libtool script
5999 ac_cpp='$CPP $CPPFLAGS'
6000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6005 # Source file extension for C test sources.
6008 # Object file extension for compiled C test sources.
6012 # Code to be used in simple compile tests
6013 lt_simple_compile_test_code="int some_variable = 0;\n"
6015 # Code to be used in simple link tests
6016 lt_simple_link_test_code='int main(){return(0);}\n'
6019 # If no C compiler was specified, use CC.
6022 # Allow CC to be a program name with arguments.
6027 # Check for any special shared library compilation flags.
6030 if test "$GCC" = no; then
6033 lt_prog_cc_shlib='-belf'
6037 if test -n "$lt_prog_cc_shlib"; then
6038 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6039 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6040 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6042 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6043 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6044 lt_cv_prog_cc_can_build_shared=no
6050 # Check to make sure the static flag actually works.
6052 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6053 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6054 if test "${lt_prog_compiler_static_works+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 lt_prog_compiler_static_works=no
6058 save_LDFLAGS="$LDFLAGS"
6059 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6060 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6061 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6062 # The compiler can only warn and ignore the option if not recognized
6063 # So say no if there are warnings
6064 if test -s conftest.err; then
6065 # Append any errors to the config.log.
6066 cat conftest.err 1>&5
6068 lt_prog_compiler_static_works=yes
6072 LDFLAGS="$save_LDFLAGS"
6075 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6076 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6078 if test x"$lt_prog_compiler_static_works" = xyes; then
6081 lt_prog_compiler_static=
6087 lt_prog_compiler_no_builtin_flag=
6089 if test "$GCC" = yes; then
6090 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6093 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6094 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6095 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
6098 lt_cv_prog_compiler_rtti_exceptions=no
6099 ac_outfile=conftest.$ac_objext
6100 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6101 lt_compiler_flag="-fno-rtti -fno-exceptions"
6102 # Insert the option either (1) after the last *FLAGS variable, or
6103 # (2) before a word containing "conftest.", or (3) at the end.
6104 # Note that $ac_compile itself does not contain backslashes and begins
6105 # with a dollar sign (not a hyphen), so the echo should work correctly.
6106 # The option is referenced via a variable to avoid confusing sed.
6107 lt_compile=`echo "$ac_compile" | $SED \
6108 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6109 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6110 -e 's:$: $lt_compiler_flag:'`
6111 (eval echo "\"\$as_me:6111: $lt_compile\"" >&5)
6112 (eval "$lt_compile" 2>conftest.err)
6114 cat conftest.err >&5
6115 echo "$as_me:6115: \$? = $ac_status" >&5
6116 if (exit $ac_status) && test -s "$ac_outfile"; then
6117 # The compiler can only warn and ignore the option if not recognized
6118 # So say no if there are warnings
6119 if test ! -s conftest.err; then
6120 lt_cv_prog_compiler_rtti_exceptions=yes
6126 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6127 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6129 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6130 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6137 lt_prog_compiler_wl=
6138 lt_prog_compiler_pic=
6139 lt_prog_compiler_static=
6141 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6142 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6144 if test "$GCC" = yes; then
6145 lt_prog_compiler_wl='-Wl,'
6146 lt_prog_compiler_static='-static'
6150 # All AIX code is PIC.
6151 if test "$host_cpu" = ia64; then
6152 # AIX 5 now supports IA64 processor
6153 lt_prog_compiler_static='-Bstatic'
6158 # FIXME: we need at least 68020 code to build shared libraries, but
6159 # adding the `-m68020' flag to GCC prevents building anything better,
6161 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6164 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6165 # PIC is the default for these OSes.
6168 mingw* | pw32* | os2*)
6169 # This hack is so that the source file can tell whether it is being
6170 # built for inclusion in a dll (and should export symbols for example).
6171 lt_prog_compiler_pic='-DDLL_EXPORT'
6174 darwin* | rhapsody*)
6175 # PIC is the default on this platform
6176 # Common symbols not allowed in MH_DYLIB files
6177 lt_prog_compiler_pic='-fno-common'
6181 # Just because we use GCC doesn't mean we suddenly get shared libraries
6182 # on systems that don't support them.
6183 lt_prog_compiler_can_build_shared=no
6188 if test -d /usr/nec; then
6189 lt_prog_compiler_pic=-Kconform_pic
6194 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6201 lt_prog_compiler_pic='-fPIC'
6207 lt_prog_compiler_pic='-fPIC'
6211 # PORTME Check for flag to pass linker flags through the system compiler.
6214 lt_prog_compiler_wl='-Wl,'
6215 if test "$host_cpu" = ia64; then
6216 # AIX 5 now supports IA64 processor
6217 lt_prog_compiler_static='-Bstatic'
6219 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6223 # PIC is the default on this platform
6224 # Common symbols not allowed in MH_DYLIB files
6225 case "$cc_basename" in
6227 lt_prog_compiler_pic='-qnocommon'
6228 lt_prog_compiler_wl='-Wl,'
6233 mingw* | pw32* | os2*)
6234 # This hack is so that the source file can tell whether it is being
6235 # built for inclusion in a dll (and should export symbols for example).
6236 lt_prog_compiler_pic='-DDLL_EXPORT'
6239 hpux9* | hpux10* | hpux11*)
6240 lt_prog_compiler_wl='-Wl,'
6241 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6248 lt_prog_compiler_pic='+Z'
6251 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6252 lt_prog_compiler_static='${wl}-a ${wl}archive'
6255 irix5* | irix6* | nonstopux*)
6256 lt_prog_compiler_wl='-Wl,'
6257 # PIC (with -KPIC) is the default.
6258 lt_prog_compiler_static='-non_shared'
6262 lt_prog_compiler_pic='-KPIC'
6263 lt_prog_compiler_static='-Bstatic'
6269 lt_prog_compiler_wl='-Wl,'
6270 lt_prog_compiler_pic='-KPIC'
6271 lt_prog_compiler_static='-static'
6274 lt_prog_compiler_wl='-Wl,'
6275 # All Alpha code is PIC.
6276 lt_prog_compiler_static='-non_shared'
6281 osf3* | osf4* | osf5*)
6282 lt_prog_compiler_wl='-Wl,'
6283 # All OSF/1 code is PIC.
6284 lt_prog_compiler_static='-non_shared'
6288 lt_prog_compiler_pic='-Kpic'
6289 lt_prog_compiler_static='-dn'
6293 lt_prog_compiler_wl='-Wl,'
6294 lt_prog_compiler_pic='-KPIC'
6295 lt_prog_compiler_static='-Bstatic'
6299 lt_prog_compiler_wl='-Qoption ld '
6300 lt_prog_compiler_pic='-PIC'
6301 lt_prog_compiler_static='-Bstatic'
6304 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6305 lt_prog_compiler_wl='-Wl,'
6306 lt_prog_compiler_pic='-KPIC'
6307 lt_prog_compiler_static='-Bstatic'
6311 if test -d /usr/nec ;then
6312 lt_prog_compiler_pic='-Kconform_pic'
6313 lt_prog_compiler_static='-Bstatic'
6318 lt_prog_compiler_pic='-pic'
6319 lt_prog_compiler_static='-Bstatic'
6323 lt_prog_compiler_can_build_shared=no
6328 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6329 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6332 # Check to make sure the PIC flag actually works.
6334 if test -n "$lt_prog_compiler_pic"; then
6336 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6337 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6338 if test "${lt_prog_compiler_pic_works+set}" = set; then
6339 echo $ECHO_N "(cached) $ECHO_C" >&6
6341 lt_prog_compiler_pic_works=no
6342 ac_outfile=conftest.$ac_objext
6343 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6344 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6345 # Insert the option either (1) after the last *FLAGS variable, or
6346 # (2) before a word containing "conftest.", or (3) at the end.
6347 # Note that $ac_compile itself does not contain backslashes and begins
6348 # with a dollar sign (not a hyphen), so the echo should work correctly.
6349 # The option is referenced via a variable to avoid confusing sed.
6350 lt_compile=`echo "$ac_compile" | $SED \
6351 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6352 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6353 -e 's:$: $lt_compiler_flag:'`
6354 (eval echo "\"\$as_me:6354: $lt_compile\"" >&5)
6355 (eval "$lt_compile" 2>conftest.err)
6357 cat conftest.err >&5
6358 echo "$as_me:6358: \$? = $ac_status" >&5
6359 if (exit $ac_status) && test -s "$ac_outfile"; then
6360 # The compiler can only warn and ignore the option if not recognized
6361 # So say no if there are warnings
6362 if test ! -s conftest.err; then
6363 lt_prog_compiler_pic_works=yes
6369 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6370 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6372 if test x"$lt_prog_compiler_pic_works" = xyes; then
6373 case $lt_prog_compiler_pic in
6375 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6378 lt_prog_compiler_pic=
6379 lt_prog_compiler_can_build_shared=no
6384 # For platforms which do not support PIC, -DPIC is meaningless:
6386 lt_prog_compiler_pic=
6389 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6393 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6394 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6395 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 lt_cv_prog_compiler_c_o=no
6399 $rm -r conftest 2>/dev/null
6403 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6405 lt_compiler_flag="-o out/conftest2.$ac_objext"
6406 # Insert the option either (1) after the last *FLAGS variable, or
6407 # (2) before a word containing "conftest.", or (3) at the end.
6408 # Note that $ac_compile itself does not contain backslashes and begins
6409 # with a dollar sign (not a hyphen), so the echo should work correctly.
6410 lt_compile=`echo "$ac_compile" | $SED \
6411 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6412 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6413 -e 's:$: $lt_compiler_flag:'`
6414 (eval echo "\"\$as_me:6414: $lt_compile\"" >&5)
6415 (eval "$lt_compile" 2>out/conftest.err)
6417 cat out/conftest.err >&5
6418 echo "$as_me:6418: \$? = $ac_status" >&5
6419 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6421 # The compiler can only warn and ignore the option if not recognized
6422 # So say no if there are warnings
6423 if test ! -s out/conftest.err; then
6424 lt_cv_prog_compiler_c_o=yes
6429 # SGI C++ compiler will create directory out/ii_files/ for
6430 # template instantiation
6431 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6432 $rm out/* && rmdir out
6438 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6439 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6442 hard_links="nottested"
6443 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6444 # do not overwrite the value of need_locks provided by the user
6445 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6446 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6449 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6451 ln conftest.a conftest.b 2>&5 || hard_links=no
6452 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6453 echo "$as_me:$LINENO: result: $hard_links" >&5
6454 echo "${ECHO_T}$hard_links" >&6
6455 if test "$hard_links" = no; then
6456 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6457 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6464 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6465 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6468 allow_undefined_flag=
6469 enable_shared_with_static_runtimes=no
6471 archive_expsym_cmds=
6472 old_archive_From_new_cmds=
6473 old_archive_from_expsyms_cmds=
6474 export_dynamic_flag_spec=
6475 whole_archive_flag_spec=
6476 thread_safe_flag_spec=
6477 hardcode_libdir_flag_spec=
6478 hardcode_libdir_flag_spec_ld=
6479 hardcode_libdir_separator=
6482 hardcode_shlibpath_var=unsupported
6483 link_all_deplibs=unknown
6484 hardcode_automatic=no
6487 always_export_symbols=no
6488 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6489 # include_expsyms should be a list of space-separated symbols to be *always*
6490 # included in the symbol list
6492 # exclude_expsyms can be an extended regexp of symbols to exclude
6493 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6494 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6495 # as well as any symbol that contains `d'.
6496 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6497 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6498 # platforms (ab)use it in PIC code, but their linkers get confused if
6499 # the symbol is explicitly referenced. Since portable code cannot
6500 # rely on this symbol name, it's probably fine to never include it in
6501 # preloaded symbol tables.
6502 extract_expsyms_cmds=
6505 cygwin* | mingw* | pw32*)
6506 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6507 # When not using gcc, we currently assume that we are using
6508 # Microsoft Visual C++.
6509 if test "$GCC" != yes; then
6519 if test "$with_gnu_ld" = yes; then
6520 # If archive_cmds runs LD, not CC, wlarc should be empty
6523 # See if GNU ld supports shared libraries.
6525 aix3* | aix4* | aix5*)
6526 # On AIX/PPC, the GNU linker is very broken
6527 if test "$host_cpu" != ia64; then
6531 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6532 *** to be unable to reliably create shared libraries on AIX.
6533 *** Therefore, libtool is disabling shared libraries support. If you
6534 *** really care for shared libraries, you may want to modify your PATH
6535 *** so that a non-GNU linker is found, and then restart.
6542 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)'
6543 hardcode_libdir_flag_spec='-L$libdir'
6544 hardcode_minus_L=yes
6546 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6547 # that the semantics of dynamic libraries on AmigaOS, at least up
6548 # to version 4, is to share data among multiple programs linked
6549 # with the same dynamic library. Since this doesn't match the
6550 # behavior of shared libraries on other platforms, we can't use
6556 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6557 allow_undefined_flag=unsupported
6558 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6559 # support --undefined. This deserves some investigation. FIXME
6560 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6566 cygwin* | mingw* | pw32*)
6567 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6568 # as there is no search path for DLLs.
6569 hardcode_libdir_flag_spec='-L$libdir'
6570 allow_undefined_flag=unsupported
6571 always_export_symbols=no
6572 enable_shared_with_static_runtimes=yes
6573 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6575 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6576 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6577 # If the export-symbols file already is a .def file (1st line
6578 # is EXPORTS), use it as is; otherwise, prepend...
6579 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6580 cp $export_symbols $output_objdir/$soname.def;
6582 echo EXPORTS > $output_objdir/$soname.def;
6583 cat $export_symbols >> $output_objdir/$soname.def;
6584 fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6591 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6592 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6595 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6596 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6601 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6605 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6606 *** create shared libraries on Solaris systems. Therefore, libtool
6607 *** is disabling shared libraries support. We urge you to upgrade GNU
6608 *** binutils to release 2.9.1 or newer. Another option is to modify
6609 *** your PATH or compiler configuration so that the native linker is
6610 *** used, and then restart.
6613 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6614 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6615 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6622 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6625 hardcode_shlibpath_var=no
6629 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6630 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6631 archive_cmds="$tmp_archive_cmds"
6632 supports_anon_versioning=no
6633 case `$LD -v 2>/dev/null` in
6634 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6635 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6636 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6637 *\ 2.11.*) ;; # other 2.11 versions
6638 *) supports_anon_versioning=yes ;;
6640 if test $supports_anon_versioning = yes; then
6641 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver;
6642 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6644 archive_expsym_cmds="$tmp_archive_cmds"
6652 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6653 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6654 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6661 if test "$ld_shlibs" = yes; then
6662 runpath_var=LD_RUN_PATH
6663 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6664 export_dynamic_flag_spec='${wl}--export-dynamic'
6665 # ancient GNU ld didn't support --whole-archive et. al.
6666 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6667 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6669 whole_archive_flag_spec=
6673 # PORTME fill in a description of your system's linker (not GNU ld)
6676 allow_undefined_flag=unsupported
6677 always_export_symbols=yes
6678 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'
6679 # Note: this linker hardcodes the directories in LIBPATH if there
6680 # are no directories specified by -L.
6681 hardcode_minus_L=yes
6682 if test "$GCC" = yes && test -z "$link_static_flag"; then
6683 # Neither direct hardcoding nor static linking is supported with a
6685 hardcode_direct=unsupported
6690 if test "$host_cpu" = ia64; then
6691 # On IA64, the linker does run time linking by default, so we don't
6692 # have to do anything special.
6693 aix_use_runtimelinking=no
6694 exp_sym_flag='-Bexport'
6697 # If we're using GNU nm, then we don't want the "-C" option.
6698 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6699 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6700 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'
6702 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'
6704 aix_use_runtimelinking=no
6706 # Test if we are trying to use run time linking or normal
6707 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6708 # need to do runtime linking.
6709 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6710 for ld_flag in $LDFLAGS; do
6711 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6712 aix_use_runtimelinking=yes
6718 exp_sym_flag='-bexport'
6719 no_entry_flag='-bnoentry'
6722 # When large executables or shared objects are built, AIX ld can
6723 # have problems creating the table of contents. If linking a library
6724 # or program results in "error TOC overflow" add -mminimal-toc to
6725 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6726 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6730 hardcode_libdir_separator=':'
6731 link_all_deplibs=yes
6733 if test "$GCC" = yes; then
6734 case $host_os in aix4.012|aix4.012.*)
6735 # We only want to do this on AIX 4.2 and lower, the check
6736 # below for broken collect2 doesn't work under 4.3+
6737 collect2name=`${CC} -print-prog-name=collect2`
6738 if test -f "$collect2name" && \
6739 strings "$collect2name" | grep resolve_lib_name >/dev/null
6741 # We have reworked collect2
6744 # We have old collect2
6745 hardcode_direct=unsupported
6746 # It fails to find uninstalled libraries when the uninstalled
6747 # path is not listed in the libpath. Setting hardcode_minus_L
6748 # to unsupported forces relinking
6749 hardcode_minus_L=yes
6750 hardcode_libdir_flag_spec='-L$libdir'
6751 hardcode_libdir_separator=
6754 shared_flag='-shared'
6757 if test "$host_cpu" = ia64; then
6758 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6759 # chokes on -Wl,-G. The following line is correct:
6762 if test "$aix_use_runtimelinking" = yes; then
6763 shared_flag='${wl}-G'
6765 shared_flag='${wl}-bM:SRE'
6770 # It seems that -bexpall does not export symbols beginning with
6771 # underscore (_), so it is better to generate a list of symbols to export.
6772 always_export_symbols=yes
6773 if test "$aix_use_runtimelinking" = yes; then
6774 # Warning - without using the other runtime loading flags (-brtl),
6775 # -berok will link without error, but may produce a broken library.
6776 allow_undefined_flag='-berok'
6777 # Determine the default libpath from the value encoded in an empty executable.
6778 cat >conftest.$ac_ext <<_ACEOF
6781 cat confdefs.h >>conftest.$ac_ext
6782 cat >>conftest.$ac_ext <<_ACEOF
6783 /* end confdefs.h. */
6793 rm -f conftest.$ac_objext conftest$ac_exeext
6794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6795 (eval $ac_link) 2>conftest.er1
6797 grep -v '^ *+' conftest.er1 >conftest.err
6799 cat conftest.err >&5
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); } &&
6802 { ac_try='test -z "$ac_c_werror_flag"
6803 || test ! -s conftest.err'
6804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); }; } &&
6809 { ac_try='test -s conftest$ac_exeext'
6810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); }; }; then
6816 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6818 # Check for a 64-bit object if we didn't find anything.
6819 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; }
6822 echo "$as_me: failed program was:" >&5
6823 sed 's/^/| /' conftest.$ac_ext >&5
6826 rm -f conftest.err conftest.$ac_objext \
6827 conftest$ac_exeext conftest.$ac_ext
6828 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6830 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6831 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"
6833 if test "$host_cpu" = ia64; then
6834 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6835 allow_undefined_flag="-z nodefs"
6836 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"
6838 # Determine the default libpath from the value encoded in an empty executable.
6839 cat >conftest.$ac_ext <<_ACEOF
6842 cat confdefs.h >>conftest.$ac_ext
6843 cat >>conftest.$ac_ext <<_ACEOF
6844 /* end confdefs.h. */
6854 rm -f conftest.$ac_objext conftest$ac_exeext
6855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6856 (eval $ac_link) 2>conftest.er1
6858 grep -v '^ *+' conftest.er1 >conftest.err
6860 cat conftest.err >&5
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); } &&
6863 { ac_try='test -z "$ac_c_werror_flag"
6864 || test ! -s conftest.err'
6865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); }; } &&
6870 { ac_try='test -s conftest$ac_exeext'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; }; then
6877 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6879 # Check for a 64-bit object if we didn't find anything.
6880 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; }
6883 echo "$as_me: failed program was:" >&5
6884 sed 's/^/| /' conftest.$ac_ext >&5
6887 rm -f conftest.err conftest.$ac_objext \
6888 conftest$ac_exeext conftest.$ac_ext
6889 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6891 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6892 # Warning - without using the other run time loading flags,
6893 # -berok will link without error, but may produce a broken library.
6894 no_undefined_flag=' ${wl}-bernotok'
6895 allow_undefined_flag=' ${wl}-berok'
6896 # -bexpall does not export symbols beginning with underscore (_)
6897 always_export_symbols=yes
6898 # Exported symbols can be pulled into shared objects from archives
6899 whole_archive_flag_spec=' '
6900 archive_cmds_need_lc=yes
6901 # This is similar to how AIX traditionally builds it's shared libraries.
6902 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'
6908 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)'
6909 hardcode_libdir_flag_spec='-L$libdir'
6910 hardcode_minus_L=yes
6911 # see comment about different semantics on the GNU ld section
6916 export_dynamic_flag_spec=-rdynamic
6919 cygwin* | mingw* | pw32*)
6920 # When not using gcc, we currently assume that we are using
6921 # Microsoft Visual C++.
6922 # hardcode_libdir_flag_spec is actually meaningless, as there is
6923 # no search path for DLLs.
6924 hardcode_libdir_flag_spec=' '
6925 allow_undefined_flag=unsupported
6926 # Tell ltmain to make .lib files, not .a files.
6928 # Tell ltmain to make .dll files, not .so files.
6930 # FIXME: Setting linknames here is a bad hack.
6931 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames='
6932 # The linker will automatically build a .lib file if we build a DLL.
6933 old_archive_From_new_cmds='true'
6934 # FIXME: Should let the user specify the lib program.
6935 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6936 fix_srcfile_path='`cygpath -w "$srcfile"`'
6937 enable_shared_with_static_runtimes=yes
6940 darwin* | rhapsody*)
6942 rhapsody* | darwin1.[012])
6943 allow_undefined_flag='${wl}-undefined ${wl}suppress'
6946 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6947 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6949 case ${MACOSX_DEPLOYMENT_TARGET} in
6951 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6954 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6960 archive_cmds_need_lc=no
6962 hardcode_automatic=yes
6963 hardcode_shlibpath_var=unsupported
6964 whole_archive_flag_spec=''
6965 link_all_deplibs=yes
6966 if test "$GCC" = yes ; then
6967 output_verbose_link_cmd='echo'
6968 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6969 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6970 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6971 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}'
6972 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6974 case "$cc_basename" in
6976 output_verbose_link_cmd='echo'
6977 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6978 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6979 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6980 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6981 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6991 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6992 hardcode_libdir_flag_spec='-L$libdir'
6993 hardcode_shlibpath_var=no
7000 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7001 # support. Future versions do this automatically, but an explicit c++rt0.o
7002 # does not break anything, and helps significantly (at the cost of a little
7005 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7006 hardcode_libdir_flag_spec='-R$libdir'
7008 hardcode_shlibpath_var=no
7011 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7013 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7015 hardcode_minus_L=yes
7016 hardcode_shlibpath_var=no
7019 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7020 freebsd* | kfreebsd*-gnu)
7021 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7022 hardcode_libdir_flag_spec='-R$libdir'
7024 hardcode_shlibpath_var=no
7028 if test "$GCC" = yes; then
7029 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'
7031 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'
7033 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7034 hardcode_libdir_separator=:
7037 # hardcode_minus_L: Not really in the search PATH,
7038 # but as the default location of the library.
7039 hardcode_minus_L=yes
7040 export_dynamic_flag_spec='${wl}-E'
7044 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7047 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7050 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7056 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7059 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7063 if test "$with_gnu_ld" = no; then
7066 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7067 hardcode_libdir_flag_spec_ld='+b $libdir'
7068 hardcode_libdir_separator=:
7070 hardcode_shlibpath_var=no
7073 hardcode_libdir_flag_spec='-L$libdir'
7075 hardcode_shlibpath_var=no
7077 # hardcode_minus_L: Not really in the search PATH,
7078 # but as the default location of the library.
7079 hardcode_minus_L=yes
7082 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7083 hardcode_libdir_separator=:
7085 export_dynamic_flag_spec='${wl}-E'
7087 # hardcode_minus_L: Not really in the search PATH,
7088 # but as the default location of the library.
7089 hardcode_minus_L=yes
7095 irix5* | irix6* | nonstopux*)
7096 if test "$GCC" = yes; then
7097 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'
7099 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'
7100 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7102 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7103 hardcode_libdir_separator=:
7104 link_all_deplibs=yes
7108 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7109 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7111 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7113 hardcode_libdir_flag_spec='-R$libdir'
7115 hardcode_shlibpath_var=no
7119 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7121 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7122 hardcode_libdir_separator=:
7123 hardcode_shlibpath_var=no
7128 hardcode_shlibpath_var=no
7129 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7130 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7131 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7132 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7133 export_dynamic_flag_spec='${wl}-E'
7136 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7137 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7138 hardcode_libdir_flag_spec='-R$libdir'
7141 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7142 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7149 hardcode_libdir_flag_spec='-L$libdir'
7150 hardcode_minus_L=yes
7151 allow_undefined_flag=unsupported
7152 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'
7153 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7157 if test "$GCC" = yes; then
7158 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7159 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'
7161 allow_undefined_flag=' -expect_unresolved \*'
7162 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'
7164 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7165 hardcode_libdir_separator=:
7168 osf4* | osf5*) # as osf3* with the addition of -msym flag
7169 if test "$GCC" = yes; then
7170 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7171 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'
7172 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7174 allow_undefined_flag=' -expect_unresolved \*'
7175 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'
7176 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp; $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'
7177 # Both c and cxx compiler support -rpath directly
7178 hardcode_libdir_flag_spec='-rpath $libdir'
7180 hardcode_libdir_separator=:
7184 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7185 hardcode_shlibpath_var=no
7186 export_dynamic_flag_spec='${wl}-Bexport'
7187 runpath_var=LD_RUN_PATH
7188 hardcode_runpath_var=yes
7192 no_undefined_flag=' -z text'
7193 if test "$GCC" = yes; then
7194 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7195 archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags;$rm $lib.exp'
7197 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7198 archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
7200 hardcode_libdir_flag_spec='-R$libdir'
7201 hardcode_shlibpath_var=no
7203 solaris2.[0-5] | solaris2.[0-5].*) ;;
7204 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7205 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7207 link_all_deplibs=yes
7211 if test "x$host_vendor" = xsequent; then
7212 # Use $CC to link under sequent, because it throws in some extra .o
7213 # files that make .init and .fini sections work.
7214 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7216 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7218 hardcode_libdir_flag_spec='-L$libdir'
7220 hardcode_minus_L=yes
7221 hardcode_shlibpath_var=no
7225 case $host_vendor in
7227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7228 hardcode_direct=yes # is this really true???
7231 ## LD is ld it makes a PLAMLIB
7232 ## CC just makes a GrossModule.
7233 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7234 reload_cmds='$CC -r -o $output$reload_objs'
7238 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7239 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7242 runpath_var='LD_RUN_PATH'
7243 hardcode_shlibpath_var=no
7247 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7248 hardcode_shlibpath_var=no
7249 export_dynamic_flag_spec='-Bexport'
7253 if test -d /usr/nec; then
7254 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7255 hardcode_shlibpath_var=no
7256 runpath_var=LD_RUN_PATH
7257 hardcode_runpath_var=yes
7263 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7266 hardcode_shlibpath_var=no
7267 hardcode_runpath_var=yes
7268 runpath_var=LD_RUN_PATH
7271 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7272 no_undefined_flag='${wl}-z ${wl}text'
7273 if test "$GCC" = yes; then
7274 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7276 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7278 runpath_var='LD_RUN_PATH'
7279 hardcode_shlibpath_var=no
7283 no_undefined_flag=' -z text'
7284 # $CC -shared without GNU ld will not create a library from C++
7285 # object files and a static libstdc++, better avoid it by now
7286 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7287 archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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 dynamic linker characteristics" >&5
7377 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7379 libname_spec='lib$name'
7387 shlibpath_overrides_runpath=unknown
7389 dynamic_linker="$host_os ld.so"
7390 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7391 if test "$GCC" = yes; then
7392 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7393 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7394 # if the path contains ";" then we assume it to be the separator
7395 # otherwise default to the standard path separator (i.e. ":") - it is
7396 # assumed that no part of a normal pathname contains ";" but that should
7397 # okay in the real world where ";" in dirpaths is itself problematic.
7398 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7400 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7403 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7405 need_lib_prefix=unknown
7406 hardcode_into_libs=no
7408 # when you set need_version to no, make sure it does not cause -set_version
7409 # flags to be left without arguments
7410 need_version=unknown
7415 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7416 shlibpath_var=LIBPATH
7418 # AIX 3 has no versioning support, so we append a major version to the name.
7419 soname_spec='${libname}${release}${shared_ext}$major'
7426 hardcode_into_libs=yes
7427 if test "$host_cpu" = ia64; then
7428 # AIX 5 supports IA64
7429 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7430 shlibpath_var=LD_LIBRARY_PATH
7432 # With GCC up to 2.95.x, collect2 would create an import file
7433 # for dependence libraries. The import file would start with
7434 # the line `#! .'. This would cause the generated library to
7435 # depend on `.', always an invalid library. This was fixed in
7436 # development snapshots of GCC prior to 3.0.
7438 aix4 | aix4.[01] | aix4.[01].*)
7439 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7441 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7448 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7449 # soname into executable. Probably we can add versioning support to
7450 # collect2, so additional links can be useful in future.
7451 if test "$aix_use_runtimelinking" = yes; then
7452 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7453 # instead of lib<name>.a to let people know that these are not
7454 # typical AIX shared libraries.
7455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7457 # We preserve .a as extension for shared libraries through AIX4.2
7458 # and later when we are not doing run time linking.
7459 library_names_spec='${libname}${release}.a $libname.a'
7460 soname_spec='${libname}${release}${shared_ext}$major'
7462 shlibpath_var=LIBPATH
7467 library_names_spec='$libname.ixlibrary $libname.a'
7468 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7469 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'
7473 library_names_spec='${libname}${shared_ext}'
7474 dynamic_linker="$host_os ld.so"
7475 shlibpath_var=LIBRARY_PATH
7481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7482 soname_spec='${libname}${release}${shared_ext}$major'
7483 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7484 shlibpath_var=LD_LIBRARY_PATH
7485 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7486 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7487 # the default ld.so.conf also contains /usr/contrib/lib and
7488 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7489 # libtool to hard-code these into programs
7492 cygwin* | mingw* | pw32*)
7493 version_type=windows
7498 case $GCC,$host_os in
7499 yes,cygwin* | yes,mingw* | yes,pw32*)
7500 library_names_spec='$libname.dll.a'
7501 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7502 postinstall_cmds='base_file=`basename \${file}`;
7503 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
7504 dldir=$destdir/`dirname \$dlpath`;
7505 test -d \$dldir || mkdir -p \$dldir;
7506 $install_prog $dir/$dlname \$dldir/$dlname'
7507 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
7508 dlpath=$dir/\$dldll;
7510 shlibpath_overrides_runpath=yes
7514 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7515 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7516 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7519 # MinGW DLLs use traditional 'lib' prefix
7520 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7521 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7522 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7523 # It is most probably a Windows format PATH printed by
7524 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7525 # path with ; separators, and with drive letters. We can handle the
7526 # drive letters (cygwin fileutils understands them), so leave them,
7527 # especially as we might pass files found there to a mingw objdump,
7528 # which wouldn't understand a cygwinified path. Ahh.
7529 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7531 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7535 # pw32 DLLs use 'pw' prefix rather than 'lib'
7536 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7542 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7545 dynamic_linker='Win32 ld.exe'
7546 # FIXME: first we should search . and the directory the executable is in
7550 darwin* | rhapsody*)
7551 dynamic_linker="$host_os dyld"
7555 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7556 soname_spec='${libname}${release}${major}$shared_ext'
7557 shlibpath_overrides_runpath=yes
7558 shlibpath_var=DYLD_LIBRARY_PATH
7559 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7560 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7561 if test "$GCC" = yes; then
7562 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"`
7564 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7566 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7574 soname_spec='${libname}${release}${shared_ext}$major'
7575 shlibpath_var=LD_LIBRARY_PATH
7586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7587 soname_spec='${libname}${release}${shared_ext}$major'
7588 shlibpath_var=LD_LIBRARY_PATH
7589 shlibpath_overrides_runpath=no
7590 hardcode_into_libs=yes
7591 dynamic_linker='GNU ld.so'
7595 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7596 version_type=freebsd-$objformat
7597 case $version_type in
7599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7604 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7608 shlibpath_var=LD_LIBRARY_PATH
7611 shlibpath_overrides_runpath=yes
7613 freebsd3.01* | freebsdelf3.01*)
7614 shlibpath_overrides_runpath=yes
7615 hardcode_into_libs=yes
7618 shlibpath_overrides_runpath=no
7619 hardcode_into_libs=yes
7628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7629 soname_spec='${libname}${release}${shared_ext}$major'
7630 shlibpath_var=LD_LIBRARY_PATH
7631 hardcode_into_libs=yes
7634 hpux9* | hpux10* | hpux11*)
7635 # Give a soname corresponding to the major version so that dld.sl refuses to
7636 # link against other versions.
7643 hardcode_into_libs=yes
7644 dynamic_linker="$host_os dld.so"
7645 shlibpath_var=LD_LIBRARY_PATH
7646 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7648 soname_spec='${libname}${release}${shared_ext}$major'
7649 if test "X$HPUX_IA64_MODE" = X32; then
7650 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7652 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7654 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7658 hardcode_into_libs=yes
7659 dynamic_linker="$host_os dld.sl"
7660 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7661 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7663 soname_spec='${libname}${release}${shared_ext}$major'
7664 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7665 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7669 dynamic_linker="$host_os dld.sl"
7670 shlibpath_var=SHLIB_PATH
7671 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7673 soname_spec='${libname}${release}${shared_ext}$major'
7676 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7677 postinstall_cmds='chmod 555 $lib'
7680 irix5* | irix6* | nonstopux*)
7682 nonstopux*) version_type=nonstopux ;;
7684 if test "$lt_cv_prog_gnu_ld" = yes; then
7692 soname_spec='${libname}${release}${shared_ext}$major'
7693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7695 irix5* | nonstopux*)
7699 case $LD in # libtool.m4 will add one of these switches to LD
7700 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7701 libsuff= shlibsuff= libmagic=32-bit;;
7702 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7703 libsuff=32 shlibsuff=N32 libmagic=N32;;
7704 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7705 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7706 *) libsuff= shlibsuff= libmagic=never-match;;
7710 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7711 shlibpath_overrides_runpath=no
7712 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7713 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7714 hardcode_into_libs=yes
7717 # No shared lib support for Linux oldld, aout, or coff.
7718 linux*oldld* | linux*aout* | linux*coff*)
7722 # This must be Linux ELF.
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'
7729 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7730 shlibpath_var=LD_LIBRARY_PATH
7731 shlibpath_overrides_runpath=no
7732 # This implies no fast_install, which is unacceptable.
7733 # Some rework will be needed to allow for fast_install
7734 # before this can be enabled.
7735 hardcode_into_libs=yes
7737 # Append ld.so.conf contents to the search path
7738 if test -f /etc/ld.so.conf; then
7739 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7740 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7743 # We used to test for /lib/ld.so.1 and disable shared libraries on
7744 # powerpc, because MkLinux only supported shared libraries with the
7745 # GNU dynamic linker. Since this was broken with cross compilers,
7746 # most powerpc-linux boxes support dynamic linking these days and
7747 # people can always --disable-shared, the test was removed, and we
7748 # assume the GNU/Linux dynamic linker is in use.
7749 dynamic_linker='GNU/Linux ld.so'
7756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7757 soname_spec='${libname}${release}${shared_ext}$major'
7758 shlibpath_var=LD_LIBRARY_PATH
7759 shlibpath_overrides_runpath=no
7760 hardcode_into_libs=yes
7761 dynamic_linker='GNU ld.so'
7768 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7770 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7771 dynamic_linker='NetBSD (a.out) ld.so'
7773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7774 soname_spec='${libname}${release}${shared_ext}$major'
7775 dynamic_linker='NetBSD ld.elf_so'
7777 shlibpath_var=LD_LIBRARY_PATH
7778 shlibpath_overrides_runpath=yes
7779 hardcode_into_libs=yes
7784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7785 shlibpath_var=LD_LIBRARY_PATH
7786 shlibpath_overrides_runpath=yes
7793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7794 soname_spec='${libname}${release}${shared_ext}$major'
7795 shlibpath_var=LD_LIBRARY_PATH
7796 shlibpath_overrides_runpath=yes
7803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7805 shlibpath_var=LD_LIBRARY_PATH
7806 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7808 openbsd2.[89] | openbsd2.[89].*)
7809 shlibpath_overrides_runpath=no
7812 shlibpath_overrides_runpath=yes
7816 shlibpath_overrides_runpath=yes
7821 libname_spec='$name'
7824 library_names_spec='$libname${shared_ext} $libname.a'
7825 dynamic_linker='OS/2 ld.exe'
7826 shlibpath_var=LIBPATH
7829 osf3* | osf4* | osf5*)
7833 soname_spec='${libname}${release}${shared_ext}$major'
7834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7835 shlibpath_var=LD_LIBRARY_PATH
7836 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7837 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7842 soname_spec='${libname}${release}${shared_ext}$major'
7843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7844 shlibpath_var=LD_LIBRARY_PATH
7851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7852 soname_spec='${libname}${release}${shared_ext}$major'
7853 shlibpath_var=LD_LIBRARY_PATH
7854 shlibpath_overrides_runpath=yes
7855 hardcode_into_libs=yes
7856 # ldd complains unless libraries are executable
7857 postinstall_cmds='chmod +x $lib'
7862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7863 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7864 shlibpath_var=LD_LIBRARY_PATH
7865 shlibpath_overrides_runpath=yes
7866 if test "$with_gnu_ld" = yes; then
7872 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7875 soname_spec='${libname}${release}${shared_ext}$major'
7876 shlibpath_var=LD_LIBRARY_PATH
7877 case $host_vendor in
7879 shlibpath_overrides_runpath=no
7881 export_dynamic_flag_spec='${wl}-Blargedynsym'
7882 runpath_var=LD_RUN_PATH
7890 shlibpath_overrides_runpath=no
7891 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7897 if test -d /usr/nec ;then
7899 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7900 soname_spec='$libname${shared_ext}.$major'
7901 shlibpath_var=LD_LIBRARY_PATH
7907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7908 soname_spec='${libname}${release}${shared_ext}$major'
7909 shlibpath_var=LD_LIBRARY_PATH
7916 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7917 echo "${ECHO_T}$dynamic_linker" >&6
7918 test "$dynamic_linker" = no && can_build_shared=no
7920 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7921 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7923 if test -n "$hardcode_libdir_flag_spec" || \
7924 test -n "$runpath_var" || \
7925 test "X$hardcode_automatic" = "Xyes" ; then
7927 # We can hardcode non-existant directories.
7928 if test "$hardcode_direct" != no &&
7929 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7930 # have to relink, otherwise we might link with an installed library
7931 # when we should be linking with a yet-to-be-installed one
7932 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7933 test "$hardcode_minus_L" != no; then
7934 # Linking always hardcodes the temporary library directory.
7935 hardcode_action=relink
7937 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7938 hardcode_action=immediate
7941 # We cannot hardcode anything, or else we can only hardcode existing
7943 hardcode_action=unsupported
7945 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7946 echo "${ECHO_T}$hardcode_action" >&6
7948 if test "$hardcode_action" = relink; then
7949 # Fast installation is not supported
7950 enable_fast_install=no
7951 elif test "$shlibpath_overrides_runpath" = yes ||
7952 test "$enable_shared" = no; then
7953 # Fast installation is not necessary
7954 enable_fast_install=needless
7959 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7960 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7961 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7962 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7963 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7964 echo "$as_me:$LINENO: result: yes" >&5
7965 echo "${ECHO_T}yes" >&6
7967 # FIXME - insert some real tests, host_os isn't really good enough
7970 if test -n "$STRIP" ; then
7971 striplib="$STRIP -x"
7972 echo "$as_me:$LINENO: result: yes" >&5
7973 echo "${ECHO_T}yes" >&6
7975 echo "$as_me:$LINENO: result: no" >&5
7976 echo "${ECHO_T}no" >&6
7980 echo "$as_me:$LINENO: result: no" >&5
7981 echo "${ECHO_T}no" >&6
7986 if test "x$enable_dlopen" != xyes; then
7987 enable_dlopen=unknown
7988 enable_dlopen_self=unknown
7989 enable_dlopen_self_static=unknown
7996 lt_cv_dlopen="load_add_on"
7998 lt_cv_dlopen_self=yes
8002 lt_cv_dlopen="LoadLibrary"
8007 lt_cv_dlopen="dlopen"
8012 # if libdl is installed we need to link against it
8013 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8014 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8015 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8016 echo $ECHO_N "(cached) $ECHO_C" >&6
8018 ac_check_lib_save_LIBS=$LIBS
8020 cat >conftest.$ac_ext <<_ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8027 /* Override any gcc2 internal prototype to avoid an error. */
8031 /* We use char because int might match the return type of a gcc2
8032 builtin and then its argument prototype would still apply. */
8042 rm -f conftest.$ac_objext conftest$ac_exeext
8043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8044 (eval $ac_link) 2>conftest.er1
8046 grep -v '^ *+' conftest.er1 >conftest.err
8048 cat conftest.err >&5
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); } &&
8051 { ac_try='test -z "$ac_c_werror_flag"
8052 || test ! -s conftest.err'
8053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); }; } &&
8058 { ac_try='test -s conftest$ac_exeext'
8059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); }; }; then
8064 ac_cv_lib_dl_dlopen=yes
8066 echo "$as_me: failed program was:" >&5
8067 sed 's/^/| /' conftest.$ac_ext >&5
8069 ac_cv_lib_dl_dlopen=no
8071 rm -f conftest.err conftest.$ac_objext \
8072 conftest$ac_exeext conftest.$ac_ext
8073 LIBS=$ac_check_lib_save_LIBS
8075 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8076 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8077 if test $ac_cv_lib_dl_dlopen = yes; then
8078 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8083 lt_cv_dlopen_self=yes
8090 echo "$as_me:$LINENO: checking for shl_load" >&5
8091 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8092 if test "${ac_cv_func_shl_load+set}" = set; then
8093 echo $ECHO_N "(cached) $ECHO_C" >&6
8095 cat >conftest.$ac_ext <<_ACEOF
8098 cat confdefs.h >>conftest.$ac_ext
8099 cat >>conftest.$ac_ext <<_ACEOF
8100 /* end confdefs.h. */
8101 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8103 #define shl_load innocuous_shl_load
8105 /* System header to define __stub macros and hopefully few prototypes,
8106 which can conflict with char shl_load (); below.
8107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8108 <limits.h> exists even on freestanding compilers. */
8111 # include <limits.h>
8113 # include <assert.h>
8118 /* Override any gcc2 internal prototype to avoid an error. */
8123 /* We use char because int might match the return type of a gcc2
8124 builtin and then its argument prototype would still apply. */
8126 /* The GNU C library defines this for functions which it implements
8127 to always fail with ENOSYS. Some functions are actually named
8128 something starting with __ and the normal name is an alias. */
8129 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8132 char (*f) () = shl_load;
8141 return f != shl_load;
8146 rm -f conftest.$ac_objext conftest$ac_exeext
8147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8148 (eval $ac_link) 2>conftest.er1
8150 grep -v '^ *+' conftest.er1 >conftest.err
8152 cat conftest.err >&5
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); } &&
8155 { ac_try='test -z "$ac_c_werror_flag"
8156 || test ! -s conftest.err'
8157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); }; } &&
8162 { ac_try='test -s conftest$ac_exeext'
8163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); }; }; then
8168 ac_cv_func_shl_load=yes
8170 echo "$as_me: failed program was:" >&5
8171 sed 's/^/| /' conftest.$ac_ext >&5
8173 ac_cv_func_shl_load=no
8175 rm -f conftest.err conftest.$ac_objext \
8176 conftest$ac_exeext conftest.$ac_ext
8178 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8179 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8180 if test $ac_cv_func_shl_load = yes; then
8181 lt_cv_dlopen="shl_load"
8183 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8184 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8185 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8186 echo $ECHO_N "(cached) $ECHO_C" >&6
8188 ac_check_lib_save_LIBS=$LIBS
8190 cat >conftest.$ac_ext <<_ACEOF
8193 cat confdefs.h >>conftest.$ac_ext
8194 cat >>conftest.$ac_ext <<_ACEOF
8195 /* end confdefs.h. */
8197 /* Override any gcc2 internal prototype to avoid an error. */
8201 /* We use char because int might match the return type of a gcc2
8202 builtin and then its argument prototype would still apply. */
8212 rm -f conftest.$ac_objext conftest$ac_exeext
8213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8214 (eval $ac_link) 2>conftest.er1
8216 grep -v '^ *+' conftest.er1 >conftest.err
8218 cat conftest.err >&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); } &&
8221 { ac_try='test -z "$ac_c_werror_flag"
8222 || test ! -s conftest.err'
8223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); }; } &&
8228 { ac_try='test -s conftest$ac_exeext'
8229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; }; then
8234 ac_cv_lib_dld_shl_load=yes
8236 echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.$ac_ext >&5
8239 ac_cv_lib_dld_shl_load=no
8241 rm -f conftest.err conftest.$ac_objext \
8242 conftest$ac_exeext conftest.$ac_ext
8243 LIBS=$ac_check_lib_save_LIBS
8245 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8246 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8247 if test $ac_cv_lib_dld_shl_load = yes; then
8248 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8250 echo "$as_me:$LINENO: checking for dlopen" >&5
8251 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8252 if test "${ac_cv_func_dlopen+set}" = set; then
8253 echo $ECHO_N "(cached) $ECHO_C" >&6
8255 cat >conftest.$ac_ext <<_ACEOF
8258 cat confdefs.h >>conftest.$ac_ext
8259 cat >>conftest.$ac_ext <<_ACEOF
8260 /* end confdefs.h. */
8261 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8263 #define dlopen innocuous_dlopen
8265 /* System header to define __stub macros and hopefully few prototypes,
8266 which can conflict with char dlopen (); below.
8267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8268 <limits.h> exists even on freestanding compilers. */
8271 # include <limits.h>
8273 # include <assert.h>
8278 /* Override any gcc2 internal prototype to avoid an error. */
8283 /* We use char because int might match the return type of a gcc2
8284 builtin and then its argument prototype would still apply. */
8286 /* The GNU C library defines this for functions which it implements
8287 to always fail with ENOSYS. Some functions are actually named
8288 something starting with __ and the normal name is an alias. */
8289 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8292 char (*f) () = dlopen;
8306 rm -f conftest.$ac_objext conftest$ac_exeext
8307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8308 (eval $ac_link) 2>conftest.er1
8310 grep -v '^ *+' conftest.er1 >conftest.err
8312 cat conftest.err >&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); } &&
8315 { ac_try='test -z "$ac_c_werror_flag"
8316 || test ! -s conftest.err'
8317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); }; } &&
8322 { ac_try='test -s conftest$ac_exeext'
8323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); }; }; then
8328 ac_cv_func_dlopen=yes
8330 echo "$as_me: failed program was:" >&5
8331 sed 's/^/| /' conftest.$ac_ext >&5
8333 ac_cv_func_dlopen=no
8335 rm -f conftest.err conftest.$ac_objext \
8336 conftest$ac_exeext conftest.$ac_ext
8338 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8339 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8340 if test $ac_cv_func_dlopen = yes; then
8341 lt_cv_dlopen="dlopen"
8343 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8344 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8345 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
8348 ac_check_lib_save_LIBS=$LIBS
8350 cat >conftest.$ac_ext <<_ACEOF
8353 cat confdefs.h >>conftest.$ac_ext
8354 cat >>conftest.$ac_ext <<_ACEOF
8355 /* end confdefs.h. */
8357 /* Override any gcc2 internal prototype to avoid an error. */
8361 /* We use char because int might match the return type of a gcc2
8362 builtin and then its argument prototype would still apply. */
8372 rm -f conftest.$ac_objext conftest$ac_exeext
8373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8374 (eval $ac_link) 2>conftest.er1
8376 grep -v '^ *+' conftest.er1 >conftest.err
8378 cat conftest.err >&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); } &&
8381 { ac_try='test -z "$ac_c_werror_flag"
8382 || test ! -s conftest.err'
8383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; } &&
8388 { ac_try='test -s conftest$ac_exeext'
8389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); }; }; then
8394 ac_cv_lib_dl_dlopen=yes
8396 echo "$as_me: failed program was:" >&5
8397 sed 's/^/| /' conftest.$ac_ext >&5
8399 ac_cv_lib_dl_dlopen=no
8401 rm -f conftest.err conftest.$ac_objext \
8402 conftest$ac_exeext conftest.$ac_ext
8403 LIBS=$ac_check_lib_save_LIBS
8405 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8406 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8407 if test $ac_cv_lib_dl_dlopen = yes; then
8408 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8410 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8411 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8412 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
8415 ac_check_lib_save_LIBS=$LIBS
8417 cat >conftest.$ac_ext <<_ACEOF
8420 cat confdefs.h >>conftest.$ac_ext
8421 cat >>conftest.$ac_ext <<_ACEOF
8422 /* end confdefs.h. */
8424 /* Override any gcc2 internal prototype to avoid an error. */
8428 /* We use char because int might match the return type of a gcc2
8429 builtin and then its argument prototype would still apply. */
8439 rm -f conftest.$ac_objext conftest$ac_exeext
8440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8441 (eval $ac_link) 2>conftest.er1
8443 grep -v '^ *+' conftest.er1 >conftest.err
8445 cat conftest.err >&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); } &&
8448 { ac_try='test -z "$ac_c_werror_flag"
8449 || test ! -s conftest.err'
8450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); }; } &&
8455 { ac_try='test -s conftest$ac_exeext'
8456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; }; then
8461 ac_cv_lib_svld_dlopen=yes
8463 echo "$as_me: failed program was:" >&5
8464 sed 's/^/| /' conftest.$ac_ext >&5
8466 ac_cv_lib_svld_dlopen=no
8468 rm -f conftest.err conftest.$ac_objext \
8469 conftest$ac_exeext conftest.$ac_ext
8470 LIBS=$ac_check_lib_save_LIBS
8472 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8473 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8474 if test $ac_cv_lib_svld_dlopen = yes; then
8475 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8477 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8478 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8479 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8480 echo $ECHO_N "(cached) $ECHO_C" >&6
8482 ac_check_lib_save_LIBS=$LIBS
8484 cat >conftest.$ac_ext <<_ACEOF
8487 cat confdefs.h >>conftest.$ac_ext
8488 cat >>conftest.$ac_ext <<_ACEOF
8489 /* end confdefs.h. */
8491 /* Override any gcc2 internal prototype to avoid an error. */
8495 /* We use char because int might match the return type of a gcc2
8496 builtin and then its argument prototype would still apply. */
8506 rm -f conftest.$ac_objext conftest$ac_exeext
8507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8508 (eval $ac_link) 2>conftest.er1
8510 grep -v '^ *+' conftest.er1 >conftest.err
8512 cat conftest.err >&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); } &&
8515 { ac_try='test -z "$ac_c_werror_flag"
8516 || test ! -s conftest.err'
8517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); }; } &&
8522 { ac_try='test -s conftest$ac_exeext'
8523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); }; }; then
8528 ac_cv_lib_dld_dld_link=yes
8530 echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.$ac_ext >&5
8533 ac_cv_lib_dld_dld_link=no
8535 rm -f conftest.err conftest.$ac_objext \
8536 conftest$ac_exeext conftest.$ac_ext
8537 LIBS=$ac_check_lib_save_LIBS
8539 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8540 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8541 if test $ac_cv_lib_dld_dld_link = yes; then
8542 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8563 if test "x$lt_cv_dlopen" != xno; then
8569 case $lt_cv_dlopen in
8571 save_CPPFLAGS="$CPPFLAGS"
8572 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8574 save_LDFLAGS="$LDFLAGS"
8575 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8578 LIBS="$lt_cv_dlopen_libs $LIBS"
8580 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8581 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8582 if test "${lt_cv_dlopen_self+set}" = set; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8585 if test "$cross_compiling" = yes; then :
8586 lt_cv_dlopen_self=cross
8588 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8589 lt_status=$lt_dlunknown
8590 cat > conftest.$ac_ext <<EOF
8591 #line 8591 "configure"
8592 #include "confdefs.h"
8601 # define LT_DLGLOBAL RTLD_GLOBAL
8604 # define LT_DLGLOBAL DL_GLOBAL
8606 # define LT_DLGLOBAL 0
8610 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8611 find out it does not work in some platform. */
8612 #ifndef LT_DLLAZY_OR_NOW
8614 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8617 # define LT_DLLAZY_OR_NOW DL_LAZY
8620 # define LT_DLLAZY_OR_NOW RTLD_NOW
8623 # define LT_DLLAZY_OR_NOW DL_NOW
8625 # define LT_DLLAZY_OR_NOW 0
8633 extern "C" void exit (int);
8636 void fnord() { int i=42;}
8639 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8640 int status = $lt_dlunknown;
8644 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8645 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8646 /* dlclose (self); */
8652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8653 (eval $ac_link) 2>&5
8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8657 (./conftest; exit; ) 2>/dev/null
8660 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8661 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8662 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8665 # compilation failed
8666 lt_cv_dlopen_self=no
8673 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8674 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8676 if test "x$lt_cv_dlopen_self" = xyes; then
8677 LDFLAGS="$LDFLAGS $link_static_flag"
8678 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8679 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8680 if test "${lt_cv_dlopen_self_static+set}" = set; then
8681 echo $ECHO_N "(cached) $ECHO_C" >&6
8683 if test "$cross_compiling" = yes; then :
8684 lt_cv_dlopen_self_static=cross
8686 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8687 lt_status=$lt_dlunknown
8688 cat > conftest.$ac_ext <<EOF
8689 #line 8689 "configure"
8690 #include "confdefs.h"
8699 # define LT_DLGLOBAL RTLD_GLOBAL
8702 # define LT_DLGLOBAL DL_GLOBAL
8704 # define LT_DLGLOBAL 0
8708 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8709 find out it does not work in some platform. */
8710 #ifndef LT_DLLAZY_OR_NOW
8712 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8715 # define LT_DLLAZY_OR_NOW DL_LAZY
8718 # define LT_DLLAZY_OR_NOW RTLD_NOW
8721 # define LT_DLLAZY_OR_NOW DL_NOW
8723 # define LT_DLLAZY_OR_NOW 0
8731 extern "C" void exit (int);
8734 void fnord() { int i=42;}
8737 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8738 int status = $lt_dlunknown;
8742 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8743 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8744 /* dlclose (self); */
8750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8751 (eval $ac_link) 2>&5
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8755 (./conftest; exit; ) 2>/dev/null
8758 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8759 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8760 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8763 # compilation failed
8764 lt_cv_dlopen_self_static=no
8771 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8772 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8775 CPPFLAGS="$save_CPPFLAGS"
8776 LDFLAGS="$save_LDFLAGS"
8781 case $lt_cv_dlopen_self in
8782 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8783 *) enable_dlopen_self=unknown ;;
8786 case $lt_cv_dlopen_self_static in
8787 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8788 *) enable_dlopen_self_static=unknown ;;
8793 # Report which librarie types wil actually be built
8794 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8795 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8796 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8797 echo "${ECHO_T}$can_build_shared" >&6
8799 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8800 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8801 test "$can_build_shared" = "no" && enable_shared=no
8803 # On AIX, shared libraries and static libraries use the same namespace, and
8804 # are all built from PIC.
8807 test "$enable_shared" = yes && enable_static=no
8808 if test -n "$RANLIB"; then
8809 archive_cmds="$archive_cmds;\$RANLIB \$lib"
8810 postinstall_cmds='$RANLIB $lib'
8815 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8816 test "$enable_shared" = yes && enable_static=no
8820 echo "$as_me:$LINENO: result: $enable_shared" >&5
8821 echo "${ECHO_T}$enable_shared" >&6
8823 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8824 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8825 # Make sure either enable_shared or enable_static is yes.
8826 test "$enable_shared" = yes || enable_static=yes
8827 echo "$as_me:$LINENO: result: $enable_static" >&5
8828 echo "${ECHO_T}$enable_static" >&6
8830 # The else clause should only fire when bootstrapping the
8831 # libtool distribution, otherwise you forgot to ship ltmain.sh
8832 # with your package, and you will get complaints that there are
8833 # no rules to generate ltmain.sh.
8834 if test -f "$ltmain"; then
8835 # See if we are running on zsh, and set the options which allow our commands through
8836 # without removal of \ escapes.
8837 if test -n "${ZSH_VERSION+set}" ; then
8838 setopt NO_GLOB_SUBST
8840 # Now quote all the things that may contain metacharacters while being
8841 # careful not to overquote the AC_SUBSTed values. We take copies of the
8842 # variables and quote the copies for generation of the libtool script.
8843 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8845 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8846 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8847 deplibs_check_method reload_flag reload_cmds need_locks \
8848 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8849 lt_cv_sys_global_symbol_to_c_name_address \
8850 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8851 old_postinstall_cmds old_postuninstall_cmds \
8855 lt_prog_compiler_wl \
8856 lt_prog_compiler_pic \
8857 lt_prog_compiler_static \
8858 lt_prog_compiler_no_builtin_flag \
8859 export_dynamic_flag_spec \
8860 thread_safe_flag_spec \
8861 whole_archive_flag_spec \
8862 enable_shared_with_static_runtimes \
8864 old_archive_from_new_cmds \
8869 compiler_lib_search_path \
8871 archive_expsym_cmds \
8873 postuninstall_cmds \
8874 old_archive_from_expsyms_cmds \
8875 allow_undefined_flag \
8877 export_symbols_cmds \
8878 hardcode_libdir_flag_spec \
8879 hardcode_libdir_flag_spec_ld \
8880 hardcode_libdir_separator \
8881 hardcode_automatic \
8883 module_expsym_cmds \
8884 lt_cv_prog_compiler_c_o \
8889 old_archive_cmds | \
8890 old_archive_from_new_cmds | \
8892 archive_expsym_cmds | \
8894 module_expsym_cmds | \
8895 old_archive_from_expsyms_cmds | \
8896 export_symbols_cmds | \
8897 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8898 postinstall_cmds | postuninstall_cmds | \
8899 old_postinstall_cmds | old_postuninstall_cmds | \
8900 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8901 # Double-quote double-evaled strings.
8902 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8905 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8911 *'\$0 --fallback-echo"')
8912 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8917 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8919 { echo "$as_me:$LINENO: creating $ofile" >&5
8920 echo "$as_me: creating $ofile" >&6;}
8922 cat <<__EOF__ >> "$cfgfile"
8925 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8926 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8927 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8929 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8930 # Free Software Foundation, Inc.
8932 # This file is part of GNU Libtool:
8933 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8935 # This program is free software; you can redistribute it and/or modify
8936 # it under the terms of the GNU General Public License as published by
8937 # the Free Software Foundation; either version 2 of the License, or
8938 # (at your option) any later version.
8940 # This program is distributed in the hope that it will be useful, but
8941 # WITHOUT ANY WARRANTY; without even the implied warranty of
8942 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8943 # General Public License for more details.
8945 # You should have received a copy of the GNU General Public License
8946 # along with this program; if not, write to the Free Software
8947 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8949 # As a special exception to the GNU General Public License, if you
8950 # distribute this file as part of a program that contains a
8951 # configuration script generated by Autoconf, you may include it under
8952 # the same distribution terms that you use for the rest of that program.
8954 # A sed program that does not truncate output.
8957 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8958 Xsed="$SED -e s/^X//"
8960 # The HP-UX ksh and POSIX shell print the target directory to stdout
8962 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8964 # The names of the tagged configurations supported by this script.
8967 # ### BEGIN LIBTOOL CONFIG
8969 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8971 # Shell to use when invoking shell scripts.
8974 # Whether or not to build shared libraries.
8975 build_libtool_libs=$enable_shared
8977 # Whether or not to build static libraries.
8978 build_old_libs=$enable_static
8980 # Whether or not to add -lc for building shared libraries.
8981 build_libtool_need_lc=$archive_cmds_need_lc
8983 # Whether or not to disallow shared libs when runtime libs are static
8984 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8986 # Whether or not to optimize for fast installation.
8987 fast_install=$enable_fast_install
8990 host_alias=$host_alias
8993 # An echo program that does not interpret backslashes.
8998 AR_FLAGS=$lt_AR_FLAGS
9003 # A language-specific compiler.
9006 # Is the compiler the GNU C compiler?
9012 # The linker used to build libraries.
9015 # Whether we need hard or soft links.
9018 # A BSD-compatible nm program.
9021 # A symbol stripping program
9024 # Used to examine libraries when file_magic_cmd begins "file"
9025 MAGIC_CMD=$MAGIC_CMD
9027 # Used on cygwin: DLL creation program.
9030 # Used on cygwin: object dumper.
9033 # Used on cygwin: assembler.
9036 # The name of the directory that contains temporary libtool files.
9039 # How to create reloadable object files.
9040 reload_flag=$lt_reload_flag
9041 reload_cmds=$lt_reload_cmds
9043 # How to pass a linker flag through the compiler.
9044 wl=$lt_lt_prog_compiler_wl
9046 # Object file suffix (normally "o").
9049 # Old archive suffix (normally "a").
9052 # Shared library suffix (normally ".so").
9053 shrext_cmds='$shrext_cmds'
9055 # Executable file suffix (normally "").
9058 # Additional compiler flags for building library objects.
9059 pic_flag=$lt_lt_prog_compiler_pic
9062 # What is the maximum length of a command?
9063 max_cmd_len=$lt_cv_sys_max_cmd_len
9065 # Does compiler simultaneously support -c and -o options?
9066 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9068 # Must we lock files when doing compilation ?
9069 need_locks=$lt_need_locks
9071 # Do we need the lib prefix for modules?
9072 need_lib_prefix=$need_lib_prefix
9074 # Do we need a version for libraries?
9075 need_version=$need_version
9077 # Whether dlopen is supported.
9078 dlopen_support=$enable_dlopen
9080 # Whether dlopen of programs is supported.
9081 dlopen_self=$enable_dlopen_self
9083 # Whether dlopen of statically linked programs is supported.
9084 dlopen_self_static=$enable_dlopen_self_static
9086 # Compiler flag to prevent dynamic linking.
9087 link_static_flag=$lt_lt_prog_compiler_static
9089 # Compiler flag to turn off builtin functions.
9090 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9092 # Compiler flag to allow reflexive dlopens.
9093 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9095 # Compiler flag to generate shared objects directly from archives.
9096 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9098 # Compiler flag to generate thread-safe objects.
9099 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9101 # Library versioning type.
9102 version_type=$version_type
9104 # Format of library name prefix.
9105 libname_spec=$lt_libname_spec
9107 # List of archive names. First name is the real one, the rest are links.
9108 # The last name is the one that the linker finds with -lNAME.
9109 library_names_spec=$lt_library_names_spec
9111 # The coded name of the library, if different from the real name.
9112 soname_spec=$lt_soname_spec
9114 # Commands used to build and install an old-style archive.
9116 old_archive_cmds=$lt_old_archive_cmds
9117 old_postinstall_cmds=$lt_old_postinstall_cmds
9118 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9120 # Create an old-style archive from a shared archive.
9121 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9123 # Create a temporary old-style archive to link instead of a shared archive.
9124 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9126 # Commands used to build and install a shared archive.
9127 archive_cmds=$lt_archive_cmds
9128 archive_expsym_cmds=$lt_archive_expsym_cmds
9129 postinstall_cmds=$lt_postinstall_cmds
9130 postuninstall_cmds=$lt_postuninstall_cmds
9132 # Commands used to build a loadable module (assumed same as above if empty)
9133 module_cmds=$lt_module_cmds
9134 module_expsym_cmds=$lt_module_expsym_cmds
9136 # Commands to strip libraries.
9137 old_striplib=$lt_old_striplib
9138 striplib=$lt_striplib
9140 # Dependencies to place before the objects being linked to create a
9142 predep_objects=$lt_predep_objects
9144 # Dependencies to place after the objects being linked to create a
9146 postdep_objects=$lt_postdep_objects
9148 # Dependencies to place before the objects being linked to create a
9152 # Dependencies to place after the objects being linked to create a
9154 postdeps=$lt_postdeps
9156 # The library search path used internally by the compiler when linking
9158 compiler_lib_search_path=$lt_compiler_lib_search_path
9160 # Method to check whether dependent libraries are shared objects.
9161 deplibs_check_method=$lt_deplibs_check_method
9163 # Command to use when deplibs_check_method == file_magic.
9164 file_magic_cmd=$lt_file_magic_cmd
9166 # Flag that allows shared libraries with undefined symbols to be built.
9167 allow_undefined_flag=$lt_allow_undefined_flag
9169 # Flag that forces no undefined symbols.
9170 no_undefined_flag=$lt_no_undefined_flag
9172 # Commands used to finish a libtool library installation in a directory.
9173 finish_cmds=$lt_finish_cmds
9175 # Same as above, but a single script fragment to be evaled but not shown.
9176 finish_eval=$lt_finish_eval
9178 # Take the output of nm and produce a listing of raw symbols and C names.
9179 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9181 # Transform the output of nm in a proper C declaration
9182 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9184 # Transform the output of nm in a C name address pair
9185 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9187 # This is the shared library runtime path variable.
9188 runpath_var=$runpath_var
9190 # This is the shared library path variable.
9191 shlibpath_var=$shlibpath_var
9193 # Is shlibpath searched before the hard-coded library search path?
9194 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9196 # How to hardcode a shared library path into an executable.
9197 hardcode_action=$hardcode_action
9199 # Whether we should hardcode library paths into libraries.
9200 hardcode_into_libs=$hardcode_into_libs
9202 # Flag to hardcode \$libdir into a binary during linking.
9203 # This must work even if \$libdir does not exist.
9204 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9206 # If ld is used when linking, flag to hardcode \$libdir into
9207 # a binary during linking. This must work even if \$libdir does
9209 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9211 # Whether we need a single -rpath flag with a separated argument.
9212 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9214 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9216 hardcode_direct=$hardcode_direct
9218 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9220 hardcode_minus_L=$hardcode_minus_L
9222 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9223 # the resulting binary.
9224 hardcode_shlibpath_var=$hardcode_shlibpath_var
9226 # Set to yes if building a shared library automatically hardcodes DIR into the library
9227 # and all subsequent libraries and executables linked against it.
9228 hardcode_automatic=$hardcode_automatic
9230 # Variables whose values should be saved in libtool wrapper scripts and
9231 # restored at relink time.
9232 variables_saved_for_relink="$variables_saved_for_relink"
9234 # Whether libtool must link a program against all its dependency libraries.
9235 link_all_deplibs=$link_all_deplibs
9237 # Compile-time system search path for libraries
9238 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9240 # Run-time system search path for libraries
9241 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9243 # Fix the shell variable \$srcfile for the compiler.
9244 fix_srcfile_path="$fix_srcfile_path"
9246 # Set to yes if exported symbols are required.
9247 always_export_symbols=$always_export_symbols
9249 # The commands to list exported symbols.
9250 export_symbols_cmds=$lt_export_symbols_cmds
9252 # The commands to extract the exported symbol list from a shared archive.
9253 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9255 # Symbols that should not be listed in the preloaded symbols.
9256 exclude_expsyms=$lt_exclude_expsyms
9258 # Symbols that must always be exported.
9259 include_expsyms=$lt_include_expsyms
9261 # ### END LIBTOOL CONFIG
9268 cat <<\EOF >> "$cfgfile"
9270 # AIX sometimes has problems with the GCC collect2 program. For some
9271 # reason, if we set the COLLECT_NAMES environment variable, the problems
9272 # vanish in a puff of smoke.
9273 if test "X${COLLECT_NAMES+set}" != Xset; then
9275 export COLLECT_NAMES
9281 # We use sed instead of cat because bash on DJGPP gets confused if
9282 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9283 # text mode, it properly converts lines to CR/LF. This bash problem
9284 # is reportedly fixed, but why not run on old versions too?
9285 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9287 mv -f "$cfgfile" "$ofile" || \
9288 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9292 # If there is no Makefile yet, we rely on a make rule to execute
9293 # `config.status --recheck' to rerun these tests and create the
9294 # libtool script then.
9295 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9296 if test -f "$ltmain_in"; then
9297 test -f Makefile && make "$ltmain"
9303 ac_cpp='$CPP $CPPFLAGS'
9304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9311 # Check whether --with-tags or --without-tags was given.
9312 if test "${with_tags+set}" = set; then
9313 withval="$with_tags"
9317 if test -f "$ltmain" && test -n "$tagnames"; then
9318 if test ! -f "${ofile}"; then
9319 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9320 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9323 if test -z "$LTCC"; then
9324 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9325 if test -z "$LTCC"; then
9326 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9327 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9329 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9330 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9334 # Extract list of available tagged configurations in $ofile.
9335 # Note that this assumes the entire list is on one line.
9336 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9338 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9339 for tagname in $tagnames; do
9341 # Check whether tagname contains only valid characters
9342 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9344 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9345 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9346 { (exit 1); exit 1; }; }
9350 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9352 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9353 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9354 { (exit 1); exit 1; }; }
9357 # Update the list of available tags.
9358 if test -n "$tagname"; then
9359 echo appending configuration tag \"$tagname\" to $ofile
9363 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9364 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9365 (test "X$CXX" != "Xg++"))) ; then
9367 ac_cpp='$CXXCPP $CPPFLAGS'
9368 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9369 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9370 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9375 archive_cmds_need_lc_CXX=no
9376 allow_undefined_flag_CXX=
9377 always_export_symbols_CXX=no
9378 archive_expsym_cmds_CXX=
9379 export_dynamic_flag_spec_CXX=
9380 hardcode_direct_CXX=no
9381 hardcode_libdir_flag_spec_CXX=
9382 hardcode_libdir_flag_spec_ld_CXX=
9383 hardcode_libdir_separator_CXX=
9384 hardcode_minus_L_CXX=no
9385 hardcode_automatic_CXX=no
9387 module_expsym_cmds_CXX=
9388 link_all_deplibs_CXX=unknown
9389 old_archive_cmds_CXX=$old_archive_cmds
9390 no_undefined_flag_CXX=
9391 whole_archive_flag_spec_CXX=
9392 enable_shared_with_static_runtimes_CXX=no
9394 # Dependencies to place before and after the object being linked:
9396 postdep_objects_CXX=
9399 compiler_lib_search_path_CXX=
9401 # Source file extension for C++ test sources.
9404 # Object file extension for compiled C++ test sources.
9408 # Code to be used in simple compile tests
9409 lt_simple_compile_test_code="int some_variable = 0;\n"
9411 # Code to be used in simple link tests
9412 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9414 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9416 # If no C compiler was specified, use CC.
9419 # Allow CC to be a program name with arguments.
9423 # Allow CC to be a program name with arguments.
9428 lt_save_with_gnu_ld=$with_gnu_ld
9429 lt_save_path_LD=$lt_cv_path_LD
9430 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9431 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9433 unset lt_cv_prog_gnu_ld
9435 if test -n "${lt_cv_path_LDCXX+set}"; then
9436 lt_cv_path_LD=$lt_cv_path_LDCXX
9440 test -z "${LDCXX+set}" || LD=$LDCXX
9444 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9446 # We don't want -fno-exception wen compiling C++ code, so set the
9447 # no_builtin_flag separately
9448 if test "$GXX" = yes; then
9449 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9451 lt_prog_compiler_no_builtin_flag_CXX=
9454 if test "$GXX" = yes; then
9455 # Set up default GNU C++ configuration
9458 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9459 if test "${with_gnu_ld+set}" = set; then
9460 withval="$with_gnu_ld"
9461 test "$withval" = no || with_gnu_ld=yes
9466 if test "$GCC" = yes; then
9467 # Check if gcc -print-prog-name=ld gives a path.
9468 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9469 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9472 # gcc leaves a trailing carriage return which upsets mingw
9473 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9475 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9478 # Accept absolute paths.
9480 re_direlt='/[^/][^/]*/\.\./'
9481 # Canonicalize the pathname of ld
9482 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9483 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9484 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9486 test -z "$LD" && LD="$ac_prog"
9489 # If it fails, then pretend we aren't using GCC.
9493 # If it is relative, then search for the first ld in PATH.
9497 elif test "$with_gnu_ld" = yes; then
9498 echo "$as_me:$LINENO: checking for GNU ld" >&5
9499 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9501 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9502 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9504 if test "${lt_cv_path_LD+set}" = set; then
9505 echo $ECHO_N "(cached) $ECHO_C" >&6
9507 if test -z "$LD"; then
9508 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9509 for ac_dir in $PATH; do
9511 test -z "$ac_dir" && ac_dir=.
9512 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9513 lt_cv_path_LD="$ac_dir/$ac_prog"
9514 # Check to see if the program is GNU ld. I'd rather use --version,
9515 # but apparently some GNU ld's only accept -v.
9516 # Break only if it was the GNU/non-GNU ld that we prefer.
9517 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9518 *GNU* | *'with BFD'*)
9519 test "$with_gnu_ld" != no && break
9522 test "$with_gnu_ld" != yes && break
9529 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9534 if test -n "$LD"; then
9535 echo "$as_me:$LINENO: result: $LD" >&5
9536 echo "${ECHO_T}$LD" >&6
9538 echo "$as_me:$LINENO: result: no" >&5
9539 echo "${ECHO_T}no" >&6
9541 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9542 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9543 { (exit 1); exit 1; }; }
9544 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9545 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9546 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9547 echo $ECHO_N "(cached) $ECHO_C" >&6
9549 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9550 case `$LD -v 2>&1 </dev/null` in
9551 *GNU* | *'with BFD'*)
9552 lt_cv_prog_gnu_ld=yes
9555 lt_cv_prog_gnu_ld=no
9559 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9560 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9561 with_gnu_ld=$lt_cv_prog_gnu_ld
9565 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9566 # archiving commands below assume that GNU ld is being used.
9567 if test "$with_gnu_ld" = yes; then
9568 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9569 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'
9571 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9572 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9574 # If archive_cmds runs LD, not CC, wlarc should be empty
9575 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9576 # investigate it a little bit more. (MM)
9579 # ancient GNU ld didn't support --whole-archive et. al.
9580 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9581 grep 'no-whole-archive' > /dev/null; then
9582 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9584 whole_archive_flag_spec_CXX=
9590 # A generic and very simple default shared library creation
9591 # command for GNU C++ for the case where it uses the native
9592 # linker, instead of GNU ld. If possible, this setting should
9593 # overridden to take advantage of the native linker features on
9594 # the platform it is being used on.
9595 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9598 # Commands to make compiler produce verbose output that lists
9599 # what "hidden" libraries, object files and flags are used when
9600 # linking a shared library.
9601 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9609 # PORTME: fill in a description of your system's C++ link characteristics
9610 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9611 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9615 # FIXME: insert proper C++ library support
9619 if test "$host_cpu" = ia64; then
9620 # On IA64, the linker does run time linking by default, so we don't
9621 # have to do anything special.
9622 aix_use_runtimelinking=no
9623 exp_sym_flag='-Bexport'
9626 aix_use_runtimelinking=no
9628 # Test if we are trying to use run time linking or normal
9629 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9630 # need to do runtime linking.
9631 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9632 for ld_flag in $LDFLAGS; do
9635 aix_use_runtimelinking=yes
9642 exp_sym_flag='-bexport'
9643 no_entry_flag='-bnoentry'
9646 # When large executables or shared objects are built, AIX ld can
9647 # have problems creating the table of contents. If linking a library
9648 # or program results in "error TOC overflow" add -mminimal-toc to
9649 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9650 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9653 hardcode_direct_CXX=yes
9654 hardcode_libdir_separator_CXX=':'
9655 link_all_deplibs_CXX=yes
9657 if test "$GXX" = yes; then
9658 case $host_os in aix4.012|aix4.012.*)
9659 # We only want to do this on AIX 4.2 and lower, the check
9660 # below for broken collect2 doesn't work under 4.3+
9661 collect2name=`${CC} -print-prog-name=collect2`
9662 if test -f "$collect2name" && \
9663 strings "$collect2name" | grep resolve_lib_name >/dev/null
9665 # We have reworked collect2
9666 hardcode_direct_CXX=yes
9668 # We have old collect2
9669 hardcode_direct_CXX=unsupported
9670 # It fails to find uninstalled libraries when the uninstalled
9671 # path is not listed in the libpath. Setting hardcode_minus_L
9672 # to unsupported forces relinking
9673 hardcode_minus_L_CXX=yes
9674 hardcode_libdir_flag_spec_CXX='-L$libdir'
9675 hardcode_libdir_separator_CXX=
9678 shared_flag='-shared'
9681 if test "$host_cpu" = ia64; then
9682 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9683 # chokes on -Wl,-G. The following line is correct:
9686 if test "$aix_use_runtimelinking" = yes; then
9687 shared_flag='${wl}-G'
9689 shared_flag='${wl}-bM:SRE'
9694 # It seems that -bexpall does not export symbols beginning with
9695 # underscore (_), so it is better to generate a list of symbols to export.
9696 always_export_symbols_CXX=yes
9697 if test "$aix_use_runtimelinking" = yes; then
9698 # Warning - without using the other runtime loading flags (-brtl),
9699 # -berok will link without error, but may produce a broken library.
9700 allow_undefined_flag_CXX='-berok'
9701 # Determine the default libpath from the value encoded in an empty executable.
9702 cat >conftest.$ac_ext <<_ACEOF
9705 cat confdefs.h >>conftest.$ac_ext
9706 cat >>conftest.$ac_ext <<_ACEOF
9707 /* end confdefs.h. */
9717 rm -f conftest.$ac_objext conftest$ac_exeext
9718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9719 (eval $ac_link) 2>conftest.er1
9721 grep -v '^ *+' conftest.er1 >conftest.err
9723 cat conftest.err >&5
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); } &&
9726 { ac_try='test -z "$ac_cxx_werror_flag"
9727 || test ! -s conftest.err'
9728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); }; } &&
9733 { ac_try='test -s conftest$ac_exeext'
9734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); }; }; then
9740 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9742 # Check for a 64-bit object if we didn't find anything.
9743 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; }
9746 echo "$as_me: failed program was:" >&5
9747 sed 's/^/| /' conftest.$ac_ext >&5
9750 rm -f conftest.err conftest.$ac_objext \
9751 conftest$ac_exeext conftest.$ac_ext
9752 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9754 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9756 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"
9758 if test "$host_cpu" = ia64; then
9759 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9760 allow_undefined_flag_CXX="-z nodefs"
9761 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"
9763 # Determine the default libpath from the value encoded in an empty executable.
9764 cat >conftest.$ac_ext <<_ACEOF
9767 cat confdefs.h >>conftest.$ac_ext
9768 cat >>conftest.$ac_ext <<_ACEOF
9769 /* end confdefs.h. */
9779 rm -f conftest.$ac_objext conftest$ac_exeext
9780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9781 (eval $ac_link) 2>conftest.er1
9783 grep -v '^ *+' conftest.er1 >conftest.err
9785 cat conftest.err >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } &&
9788 { ac_try='test -z "$ac_cxx_werror_flag"
9789 || test ! -s conftest.err'
9790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); }; } &&
9795 { ac_try='test -s conftest$ac_exeext'
9796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); }; }; then
9802 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9804 # Check for a 64-bit object if we didn't find anything.
9805 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; }
9808 echo "$as_me: failed program was:" >&5
9809 sed 's/^/| /' conftest.$ac_ext >&5
9812 rm -f conftest.err conftest.$ac_objext \
9813 conftest$ac_exeext conftest.$ac_ext
9814 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9816 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9817 # Warning - without using the other run time loading flags,
9818 # -berok will link without error, but may produce a broken library.
9819 no_undefined_flag_CXX=' ${wl}-bernotok'
9820 allow_undefined_flag_CXX=' ${wl}-berok'
9821 # -bexpall does not export symbols beginning with underscore (_)
9822 always_export_symbols_CXX=yes
9823 # Exported symbols can be pulled into shared objects from archives
9824 whole_archive_flag_spec_CXX=' '
9825 archive_cmds_need_lc_CXX=yes
9826 # This is similar to how AIX traditionally builds it's shared libraries.
9827 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'
9832 case $cc_basename in
9834 # FIXME: insert proper C++ library support
9841 cygwin* | mingw* | pw32*)
9842 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9843 # as there is no search path for DLLs.
9844 hardcode_libdir_flag_spec_CXX='-L$libdir'
9845 allow_undefined_flag_CXX=unsupported
9846 always_export_symbols_CXX=no
9847 enable_shared_with_static_runtimes_CXX=yes
9849 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9850 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'
9851 # If the export-symbols file already is a .def file (1st line
9852 # is EXPORTS), use it as is; otherwise, prepend...
9853 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9854 cp $export_symbols $output_objdir/$soname.def;
9856 echo EXPORTS > $output_objdir/$soname.def;
9857 cat $export_symbols >> $output_objdir/$soname.def;
9858 fi;$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'
9863 darwin* | rhapsody*)
9865 rhapsody* | darwin1.[012])
9866 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
9869 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9870 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9872 case ${MACOSX_DEPLOYMENT_TARGET} in
9874 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9877 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
9883 archive_cmds_need_lc_CXX=no
9884 hardcode_direct_CXX=no
9885 hardcode_automatic_CXX=yes
9886 hardcode_shlibpath_var_CXX=unsupported
9887 whole_archive_flag_spec_CXX=''
9888 link_all_deplibs_CXX=yes
9890 if test "$GXX" = yes ; then
9891 lt_int_apple_cc_single_mod=no
9892 output_verbose_link_cmd='echo'
9893 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9894 lt_int_apple_cc_single_mod=yes
9896 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9897 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9899 archive_cmds_CXX='$CC -r -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'
9901 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9902 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9903 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9904 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}'
9906 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC -r -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}'
9908 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9910 case "$cc_basename" in
9912 output_verbose_link_cmd='echo'
9913 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9914 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9915 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9916 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9917 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9927 case $cc_basename in
9929 # FIXME: insert proper C++ library support
9933 # Green Hills C++ Compiler
9934 # FIXME: insert proper C++ library support
9938 # FIXME: insert proper C++ library support
9944 # C++ shared libraries reported to be fairly broken before switch to ELF
9948 archive_cmds_need_lc_CXX=no
9950 freebsd* | kfreebsd*-gnu)
9951 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9958 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9959 hardcode_libdir_separator_CXX=:
9960 export_dynamic_flag_spec_CXX='${wl}-E'
9961 hardcode_direct_CXX=yes
9962 hardcode_minus_L_CXX=yes # Not in the search PATH,
9963 # but as the default
9964 # location of the library.
9966 case $cc_basename in
9968 # FIXME: insert proper C++ library support
9972 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'
9973 # Commands to make compiler produce verbose output that lists
9974 # what "hidden" libraries, object files and flags are used when
9975 # linking a shared library.
9977 # There doesn't appear to be a way to prevent this compiler from
9978 # explicitly linking system object files so we need to strip them
9979 # from the output so that they don't get included in the library
9981 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'
9984 if test "$GXX" = yes; then
9985 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'
9987 # FIXME: insert proper C++ library support
9994 if test $with_gnu_ld = no; then
9997 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9998 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9999 hardcode_libdir_separator_CXX=:
10002 hardcode_libdir_flag_spec_CXX='-L$libdir'
10005 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10006 hardcode_libdir_separator_CXX=:
10007 export_dynamic_flag_spec_CXX='${wl}-E'
10011 case "$host_cpu" in
10013 hardcode_direct_CXX=no
10014 hardcode_shlibpath_var_CXX=no
10017 hardcode_direct_CXX=no
10018 hardcode_shlibpath_var_CXX=no
10019 hardcode_minus_L_CXX=yes # Not in the search PATH,
10020 # but as the default
10021 # location of the library.
10024 hardcode_direct_CXX=yes
10025 hardcode_minus_L_CXX=yes # Not in the search PATH,
10026 # but as the default
10027 # location of the library.
10031 case $cc_basename in
10033 # FIXME: insert proper C++ library support
10037 case "$host_cpu" in
10039 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10042 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10045 # Commands to make compiler produce verbose output that lists
10046 # what "hidden" libraries, object files and flags are used when
10047 # linking a shared library.
10049 # There doesn't appear to be a way to prevent this compiler from
10050 # explicitly linking system object files so we need to strip them
10051 # from the output so that they don't get included in the library
10053 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'
10056 if test "$GXX" = yes; then
10057 if test $with_gnu_ld = no; then
10058 case "$host_cpu" in
10060 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10063 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'
10068 # FIXME: insert proper C++ library support
10075 case $cc_basename in
10078 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'
10080 # Archives containing C++ object files must be created using
10081 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10082 # necessary to make sure instantiated templates are included
10084 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10087 if test "$GXX" = yes; then
10088 if test "$with_gnu_ld" = no; then
10089 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'
10091 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'
10094 link_all_deplibs_CXX=yes
10097 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10098 hardcode_libdir_separator_CXX=:
10101 case $cc_basename in
10103 # Kuck and Associates, Inc. (KAI) C++ Compiler
10105 # KCC will only create a shared library if the output file
10106 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10107 # to its proper name (with version) after linking.
10108 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'
10109 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'
10110 # Commands to make compiler produce verbose output that lists
10111 # what "hidden" libraries, object files and flags are used when
10112 # linking a shared library.
10114 # There doesn't appear to be a way to prevent this compiler from
10115 # explicitly linking system object files so we need to strip them
10116 # from the output so that they don't get included in the library
10118 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'
10120 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10121 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10123 # Archives containing C++ object files must be created using
10124 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10125 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10130 # version 8.0 and above of icpc choke on multiply defined symbols
10131 # if we add $predep_objects and $postdep_objects, however 7.1 and
10132 # earlier do not add the objects themselves.
10133 case `$CC -V 2>&1` in
10135 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10136 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'
10138 *) # Version 8.0 or newer
10139 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10140 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10143 archive_cmds_need_lc_CXX=no
10144 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10145 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10146 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10150 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10151 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'
10153 runpath_var=LD_RUN_PATH
10154 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10155 hardcode_libdir_separator_CXX=:
10157 # Commands to make compiler produce verbose output that lists
10158 # what "hidden" libraries, object files and flags are used when
10159 # linking a shared library.
10161 # There doesn't appear to be a way to prevent this compiler from
10162 # explicitly linking system object files so we need to strip them
10163 # from the output so that they don't get included in the library
10165 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'
10170 # FIXME: insert proper C++ library support
10174 # FIXME: insert proper C++ library support
10178 case $cc_basename in
10180 # FIXME: insert proper C++ library support
10184 # FIXME: insert proper C++ library support
10190 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10191 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10193 hardcode_libdir_flag_spec_CXX='-R$libdir'
10194 hardcode_direct_CXX=yes
10195 hardcode_shlibpath_var_CXX=no
10197 # Workaround some broken pre-1.5 toolchains
10198 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10201 # C++ shared libraries are fairly broken
10205 hardcode_direct_CXX=yes
10206 hardcode_shlibpath_var_CXX=no
10207 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10208 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10209 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10210 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10211 export_dynamic_flag_spec_CXX='${wl}-E'
10212 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10214 output_verbose_link_cmd='echo'
10217 case $cc_basename in
10219 # Kuck and Associates, Inc. (KAI) C++ Compiler
10221 # KCC will only create a shared library if the output file
10222 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10223 # to its proper name (with version) after linking.
10224 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'
10226 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10227 hardcode_libdir_separator_CXX=:
10229 # Archives containing C++ object files must be created using
10230 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10231 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10235 # Rational C++ 2.4.1
10236 # FIXME: insert proper C++ library support
10240 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10241 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'
10243 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10244 hardcode_libdir_separator_CXX=:
10246 # Commands to make compiler produce verbose output that lists
10247 # what "hidden" libraries, object files and flags are used when
10248 # linking a shared library.
10250 # There doesn't appear to be a way to prevent this compiler from
10251 # explicitly linking system object files so we need to strip them
10252 # from the output so that they don't get included in the library
10254 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'
10257 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10258 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10259 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'
10261 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10262 hardcode_libdir_separator_CXX=:
10264 # Commands to make compiler produce verbose output that lists
10265 # what "hidden" libraries, object files and flags are used when
10266 # linking a shared library.
10267 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10270 # FIXME: insert proper C++ library support
10277 case $cc_basename in
10279 # Kuck and Associates, Inc. (KAI) C++ Compiler
10281 # KCC will only create a shared library if the output file
10282 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10283 # to its proper name (with version) after linking.
10284 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'
10286 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10287 hardcode_libdir_separator_CXX=:
10289 # Archives containing C++ object files must be created using
10290 # the KAI C++ compiler.
10291 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10294 # Rational C++ 2.4.1
10295 # FIXME: insert proper C++ library support
10299 allow_undefined_flag_CXX=' -expect_unresolved \*'
10300 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'
10301 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp;$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;$rm $lib.exp'
10303 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10304 hardcode_libdir_separator_CXX=:
10306 # Commands to make compiler produce verbose output that lists
10307 # what "hidden" libraries, object files and flags are used when
10308 # linking a shared library.
10310 # There doesn't appear to be a way to prevent this compiler from
10311 # explicitly linking system object files so we need to strip them
10312 # from the output so that they don't get included in the library
10314 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'
10317 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10318 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10319 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'
10321 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10322 hardcode_libdir_separator_CXX=:
10324 # Commands to make compiler produce verbose output that lists
10325 # what "hidden" libraries, object files and flags are used when
10326 # linking a shared library.
10327 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10330 # FIXME: insert proper C++ library support
10337 # FIXME: insert proper C++ library support
10341 archive_cmds_need_lc_CXX=no
10342 case $cc_basename in
10344 # FIXME: insert proper C++ library support
10348 # FIXME: insert proper C++ library support
10354 case $cc_basename in
10357 # FIXME: insert proper C++ library support
10362 # FIXME: insert proper C++ library support
10366 # FIXME: insert proper C++ library support
10372 case $cc_basename in
10374 # Sun C++ 4.2, 5.x and Centerline C++
10375 no_undefined_flag_CXX=' -zdefs'
10376 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10377 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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'
10379 hardcode_libdir_flag_spec_CXX='-R$libdir'
10380 hardcode_shlibpath_var_CXX=no
10382 solaris2.0-5 | solaris2.0-5.*) ;;
10384 # The C++ compiler is used as linker so we must use $wl
10385 # flag to pass the commands to the underlying system
10387 # Supported since Solaris 2.6 (maybe 2.5.1?)
10388 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10391 link_all_deplibs_CXX=yes
10393 # Commands to make compiler produce verbose output that lists
10394 # what "hidden" libraries, object files and flags are used when
10395 # linking a shared library.
10397 # There doesn't appear to be a way to prevent this compiler from
10398 # explicitly linking system object files so we need to strip them
10399 # from the output so that they don't get included in the library
10401 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'
10403 # Archives containing C++ object files must be created using
10404 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10405 # necessary to make sure instantiated templates are included
10407 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10410 # Green Hills C++ Compiler
10411 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10413 # The C++ compiler must be used to create the archive.
10414 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10417 # GNU C++ compiler with Solaris linker
10418 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10419 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10420 if $CC --version | grep -v '^2\.7' > /dev/null; then
10421 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10422 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags;$rm $lib.exp'
10423 # Commands to make compiler produce verbose output that lists
10424 # what "hidden" libraries, object files and flags are used when
10425 # linking a shared library.
10426 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10428 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10430 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10431 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp;
10432 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags;$rm $lib.exp'
10434 # Commands to make compiler produce verbose output that lists
10435 # what "hidden" libraries, object files and flags are used when
10436 # linking a shared library.
10437 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10440 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10445 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10446 archive_cmds_need_lc_CXX=no
10449 case $cc_basename in
10451 # NonStop-UX NCC 3.20
10452 # FIXME: insert proper C++ library support
10456 # FIXME: insert proper C++ library support
10462 # FIXME: insert proper C++ library support
10466 # FIXME: insert proper C++ library support
10470 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10471 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10472 test "$ld_shlibs_CXX" = no && can_build_shared=no
10478 cat > conftest.$ac_ext <<EOF
10482 Foo (void) { a = 0; }
10488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10489 (eval $ac_compile) 2>&5
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); }; then
10493 # Parse the compiler output and extract the necessary
10494 # objects, libraries and library flags.
10496 # Sentinel used to keep track of whether or not we are before
10497 # the conftest object file.
10498 pre_test_object_deps_done=no
10500 # The `*' in the case matches for architectures that use `case' in
10501 # $output_verbose_cmd can trigger glob expansion during the loop
10502 # eval without this substitution.
10503 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10505 for p in `eval $output_verbose_link_cmd`; do
10509 # Some compilers place space between "-{L,R}" and the path.
10510 # Remove the space.
10511 if test $p = "-L" \
10512 || test $p = "-R"; then
10519 if test "$pre_test_object_deps_done" = no; then
10522 # Internal compiler library paths should come after those
10523 # provided the user. The postdeps already come after the
10524 # user supplied libs so there is no need to process them.
10525 if test -z "$compiler_lib_search_path_CXX"; then
10526 compiler_lib_search_path_CXX="${prev}${p}"
10528 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10531 # The "-l" case would never come before the object being
10532 # linked, so don't bother handling this case.
10535 if test -z "$postdeps_CXX"; then
10536 postdeps_CXX="${prev}${p}"
10538 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10544 # This assumes that the test object file only shows up
10545 # once in the compiler output.
10546 if test "$p" = "conftest.$objext"; then
10547 pre_test_object_deps_done=yes
10551 if test "$pre_test_object_deps_done" = no; then
10552 if test -z "$predep_objects_CXX"; then
10553 predep_objects_CXX="$p"
10555 predep_objects_CXX="$predep_objects_CXX $p"
10558 if test -z "$postdep_objects_CXX"; then
10559 postdep_objects_CXX="$p"
10561 postdep_objects_CXX="$postdep_objects_CXX $p"
10566 *) ;; # Ignore the rest.
10574 echo "libtool.m4: error: problem compiling CXX test program"
10577 $rm -f confest.$objext
10579 case " $postdeps_CXX " in
10580 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10583 lt_prog_compiler_wl_CXX=
10584 lt_prog_compiler_pic_CXX=
10585 lt_prog_compiler_static_CXX=
10587 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10588 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10590 # C++ specific cases for pic, static, wl, etc.
10591 if test "$GXX" = yes; then
10592 lt_prog_compiler_wl_CXX='-Wl,'
10593 lt_prog_compiler_static_CXX='-static'
10597 # All AIX code is PIC.
10598 if test "$host_cpu" = ia64; then
10599 # AIX 5 now supports IA64 processor
10600 lt_prog_compiler_static_CXX='-Bstatic'
10604 # FIXME: we need at least 68020 code to build shared libraries, but
10605 # adding the `-m68020' flag to GCC prevents building anything better,
10607 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10609 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10610 # PIC is the default for these OSes.
10612 mingw* | os2* | pw32*)
10613 # This hack is so that the source file can tell whether it is being
10614 # built for inclusion in a dll (and should export symbols for example).
10615 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10617 darwin* | rhapsody*)
10618 # PIC is the default on this platform
10619 # Common symbols not allowed in MH_DYLIB files
10620 lt_prog_compiler_pic_CXX='-fno-common'
10623 # DJGPP does not support shared libraries at all
10624 lt_prog_compiler_pic_CXX=
10627 if test -d /usr/nec; then
10628 lt_prog_compiler_pic_CXX=-Kconform_pic
10632 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10633 # not for PA HP-UX.
10634 case "$host_cpu" in
10638 lt_prog_compiler_pic_CXX='-fPIC'
10643 lt_prog_compiler_pic_CXX='-fPIC'
10649 # All AIX code is PIC.
10650 if test "$host_cpu" = ia64; then
10651 # AIX 5 now supports IA64 processor
10652 lt_prog_compiler_static_CXX='-Bstatic'
10654 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10658 case $cc_basename in
10660 # Green Hills C++ Compiler
10661 # _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"
10666 # PIC is the default on this platform
10667 # Common symbols not allowed in MH_DYLIB files
10668 case "$cc_basename" in
10670 lt_prog_compiler_pic_CXX='-qnocommon'
10671 lt_prog_compiler_wl_CXX='-Wl,'
10676 case $cc_basename in
10678 lt_prog_compiler_pic_CXX='-KPIC'
10681 # Green Hills C++ Compiler
10682 lt_prog_compiler_pic_CXX='-pic'
10688 freebsd* | kfreebsd*-gnu)
10689 # FreeBSD uses GNU C++
10691 hpux9* | hpux10* | hpux11*)
10692 case $cc_basename in
10694 lt_prog_compiler_wl_CXX='-Wl,'
10695 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10696 if test "$host_cpu" != ia64; then
10697 lt_prog_compiler_pic_CXX='+Z'
10701 lt_prog_compiler_wl_CXX='-Wl,'
10702 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10703 case "$host_cpu" in
10708 lt_prog_compiler_pic_CXX='+Z'
10716 irix5* | irix6* | nonstopux*)
10717 case $cc_basename in
10719 lt_prog_compiler_wl_CXX='-Wl,'
10720 lt_prog_compiler_static_CXX='-non_shared'
10721 # CC pic flag -KPIC is the default.
10728 case $cc_basename in
10731 lt_prog_compiler_wl_CXX='--backend -Wl,'
10732 lt_prog_compiler_pic_CXX='-fPIC'
10736 lt_prog_compiler_wl_CXX='-Wl,'
10737 lt_prog_compiler_pic_CXX='-KPIC'
10738 lt_prog_compiler_static_CXX='-static'
10742 # Make sure the PIC flag is empty. It appears that all Alpha
10743 # Linux and Compaq Tru64 Unix objects are PIC.
10744 lt_prog_compiler_pic_CXX=
10745 lt_prog_compiler_static_CXX='-non_shared'
10756 case $cc_basename in
10758 lt_prog_compiler_pic_CXX='-W c,exportall'
10766 osf3* | osf4* | osf5*)
10767 case $cc_basename in
10769 lt_prog_compiler_wl_CXX='--backend -Wl,'
10772 # Rational C++ 2.4.1
10773 lt_prog_compiler_pic_CXX='-pic'
10776 # Digital/Compaq C++
10777 lt_prog_compiler_wl_CXX='-Wl,'
10778 # Make sure the PIC flag is empty. It appears that all Alpha
10779 # Linux and Compaq Tru64 Unix objects are PIC.
10780 lt_prog_compiler_pic_CXX=
10781 lt_prog_compiler_static_CXX='-non_shared'
10790 case $cc_basename in
10792 lt_prog_compiler_pic_CXX='-fPIC'
10799 case $cc_basename in
10801 # Sun C++ 4.2, 5.x and Centerline C++
10802 lt_prog_compiler_pic_CXX='-KPIC'
10803 lt_prog_compiler_static_CXX='-Bstatic'
10804 lt_prog_compiler_wl_CXX='-Qoption ld '
10807 # Green Hills C++ Compiler
10808 lt_prog_compiler_pic_CXX='-PIC'
10815 case $cc_basename in
10818 lt_prog_compiler_pic_CXX='-pic'
10819 lt_prog_compiler_static_CXX='-Bstatic'
10823 lt_prog_compiler_pic_CXX='-pic'
10830 case $cc_basename in
10832 # NonStop-UX NCC 3.20
10833 lt_prog_compiler_pic_CXX='-KPIC'
10844 lt_prog_compiler_can_build_shared_CXX=no
10849 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10850 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10853 # Check to make sure the PIC flag actually works.
10855 if test -n "$lt_prog_compiler_pic_CXX"; then
10857 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10858 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10859 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10860 echo $ECHO_N "(cached) $ECHO_C" >&6
10862 lt_prog_compiler_pic_works_CXX=no
10863 ac_outfile=conftest.$ac_objext
10864 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10865 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10866 # Insert the option either (1) after the last *FLAGS variable, or
10867 # (2) before a word containing "conftest.", or (3) at the end.
10868 # Note that $ac_compile itself does not contain backslashes and begins
10869 # with a dollar sign (not a hyphen), so the echo should work correctly.
10870 # The option is referenced via a variable to avoid confusing sed.
10871 lt_compile=`echo "$ac_compile" | $SED \
10872 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10873 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10874 -e 's:$: $lt_compiler_flag:'`
10875 (eval echo "\"\$as_me:10875: $lt_compile\"" >&5)
10876 (eval "$lt_compile" 2>conftest.err)
10878 cat conftest.err >&5
10879 echo "$as_me:10879: \$? = $ac_status" >&5
10880 if (exit $ac_status) && test -s "$ac_outfile"; then
10881 # The compiler can only warn and ignore the option if not recognized
10882 # So say no if there are warnings
10883 if test ! -s conftest.err; then
10884 lt_prog_compiler_pic_works_CXX=yes
10890 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10891 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10893 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10894 case $lt_prog_compiler_pic_CXX in
10896 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10899 lt_prog_compiler_pic_CXX=
10900 lt_prog_compiler_can_build_shared_CXX=no
10905 # For platforms which do not support PIC, -DPIC is meaningless:
10907 lt_prog_compiler_pic_CXX=
10910 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10914 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10915 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10916 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10917 echo $ECHO_N "(cached) $ECHO_C" >&6
10919 lt_cv_prog_compiler_c_o_CXX=no
10920 $rm -r conftest 2>/dev/null
10924 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10926 lt_compiler_flag="-o out/conftest2.$ac_objext"
10927 # Insert the option either (1) after the last *FLAGS variable, or
10928 # (2) before a word containing "conftest.", or (3) at the end.
10929 # Note that $ac_compile itself does not contain backslashes and begins
10930 # with a dollar sign (not a hyphen), so the echo should work correctly.
10931 lt_compile=`echo "$ac_compile" | $SED \
10932 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10933 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10934 -e 's:$: $lt_compiler_flag:'`
10935 (eval echo "\"\$as_me:10935: $lt_compile\"" >&5)
10936 (eval "$lt_compile" 2>out/conftest.err)
10938 cat out/conftest.err >&5
10939 echo "$as_me:10939: \$? = $ac_status" >&5
10940 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10942 # The compiler can only warn and ignore the option if not recognized
10943 # So say no if there are warnings
10944 if test ! -s out/conftest.err; then
10945 lt_cv_prog_compiler_c_o_CXX=yes
10950 # SGI C++ compiler will create directory out/ii_files/ for
10951 # template instantiation
10952 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10953 $rm out/* && rmdir out
10959 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10960 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10963 hard_links="nottested"
10964 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10965 # do not overwrite the value of need_locks provided by the user
10966 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10967 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10970 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10972 ln conftest.a conftest.b 2>&5 || hard_links=no
10973 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10974 echo "$as_me:$LINENO: result: $hard_links" >&5
10975 echo "${ECHO_T}$hard_links" >&6
10976 if test "$hard_links" = no; then
10977 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10978 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10985 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10986 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10988 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10991 # If we're using GNU nm, then we don't want the "-C" option.
10992 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10993 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10994 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'
10996 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'
11000 export_symbols_cmds_CXX="$ltdll_cmds"
11003 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11006 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11010 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11011 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11012 test "$ld_shlibs_CXX" = no && can_build_shared=no
11014 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11015 if test "$GCC" = yes; then
11016 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11020 # Do we need to explicitly link libc?
11022 case "x$archive_cmds_need_lc_CXX" in
11024 # Assume -lc should be added
11025 archive_cmds_need_lc_CXX=yes
11027 if test "$enable_shared" = yes && test "$GCC" = yes; then
11028 case $archive_cmds_CXX in
11030 # FIXME: we may have to deal with multi-command sequences.
11033 # Test whether the compiler implicitly links with -lc since on some
11034 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11035 # to ld, don't add -lc before -lgcc.
11036 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11037 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11039 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11042 (eval $ac_compile) 2>&5
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); } 2>conftest.err; then
11048 libobjs=conftest.$ac_objext
11050 wl=$lt_prog_compiler_wl_CXX
11056 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11057 allow_undefined_flag_CXX=
11058 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11059 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }
11064 archive_cmds_need_lc_CXX=no
11066 archive_cmds_need_lc_CXX=yes
11068 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11070 cat conftest.err 1>&5
11073 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11074 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11081 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11082 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11083 library_names_spec=
11084 libname_spec='lib$name'
11088 postuninstall_cmds=
11092 shlibpath_overrides_runpath=unknown
11094 dynamic_linker="$host_os ld.so"
11095 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11096 if test "$GCC" = yes; then
11097 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11098 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11099 # if the path contains ";" then we assume it to be the separator
11100 # otherwise default to the standard path separator (i.e. ":") - it is
11101 # assumed that no part of a normal pathname contains ";" but that should
11102 # okay in the real world where ";" in dirpaths is itself problematic.
11103 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11105 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11108 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11110 need_lib_prefix=unknown
11111 hardcode_into_libs=no
11113 # when you set need_version to no, make sure it does not cause -set_version
11114 # flags to be left without arguments
11115 need_version=unknown
11120 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11121 shlibpath_var=LIBPATH
11123 # AIX 3 has no versioning support, so we append a major version to the name.
11124 soname_spec='${libname}${release}${shared_ext}$major'
11131 hardcode_into_libs=yes
11132 if test "$host_cpu" = ia64; then
11133 # AIX 5 supports IA64
11134 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11135 shlibpath_var=LD_LIBRARY_PATH
11137 # With GCC up to 2.95.x, collect2 would create an import file
11138 # for dependence libraries. The import file would start with
11139 # the line `#! .'. This would cause the generated library to
11140 # depend on `.', always an invalid library. This was fixed in
11141 # development snapshots of GCC prior to 3.0.
11143 aix4 | aix4.[01] | aix4.[01].*)
11144 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11146 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11149 can_build_shared=no
11153 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11154 # soname into executable. Probably we can add versioning support to
11155 # collect2, so additional links can be useful in future.
11156 if test "$aix_use_runtimelinking" = yes; then
11157 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11158 # instead of lib<name>.a to let people know that these are not
11159 # typical AIX shared libraries.
11160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11162 # We preserve .a as extension for shared libraries through AIX4.2
11163 # and later when we are not doing run time linking.
11164 library_names_spec='${libname}${release}.a $libname.a'
11165 soname_spec='${libname}${release}${shared_ext}$major'
11167 shlibpath_var=LIBPATH
11172 library_names_spec='$libname.ixlibrary $libname.a'
11173 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11174 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'
11178 library_names_spec='${libname}${shared_ext}'
11179 dynamic_linker="$host_os ld.so"
11180 shlibpath_var=LIBRARY_PATH
11186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11187 soname_spec='${libname}${release}${shared_ext}$major'
11188 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11189 shlibpath_var=LD_LIBRARY_PATH
11190 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11191 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11192 # the default ld.so.conf also contains /usr/contrib/lib and
11193 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11194 # libtool to hard-code these into programs
11197 cygwin* | mingw* | pw32*)
11198 version_type=windows
11203 case $GCC,$host_os in
11204 yes,cygwin* | yes,mingw* | yes,pw32*)
11205 library_names_spec='$libname.dll.a'
11206 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11207 postinstall_cmds='base_file=`basename \${file}`;
11208 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
11209 dldir=$destdir/`dirname \$dlpath`;
11210 test -d \$dldir || mkdir -p \$dldir;
11211 $install_prog $dir/$dlname \$dldir/$dlname'
11212 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
11213 dlpath=$dir/\$dldll;
11215 shlibpath_overrides_runpath=yes
11219 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11220 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11221 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11224 # MinGW DLLs use traditional 'lib' prefix
11225 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11226 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11227 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11228 # It is most probably a Windows format PATH printed by
11229 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11230 # path with ; separators, and with drive letters. We can handle the
11231 # drive letters (cygwin fileutils understands them), so leave them,
11232 # especially as we might pass files found there to a mingw objdump,
11233 # which wouldn't understand a cygwinified path. Ahh.
11234 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11236 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11240 # pw32 DLLs use 'pw' prefix rather than 'lib'
11241 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11247 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11250 dynamic_linker='Win32 ld.exe'
11251 # FIXME: first we should search . and the directory the executable is in
11255 darwin* | rhapsody*)
11256 dynamic_linker="$host_os dyld"
11257 version_type=darwin
11260 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11261 soname_spec='${libname}${release}${major}$shared_ext'
11262 shlibpath_overrides_runpath=yes
11263 shlibpath_var=DYLD_LIBRARY_PATH
11264 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11265 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11266 if test "$GCC" = yes; then
11267 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"`
11269 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11271 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11279 soname_spec='${libname}${release}${shared_ext}$major'
11280 shlibpath_var=LD_LIBRARY_PATH
11291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11292 soname_spec='${libname}${release}${shared_ext}$major'
11293 shlibpath_var=LD_LIBRARY_PATH
11294 shlibpath_overrides_runpath=no
11295 hardcode_into_libs=yes
11296 dynamic_linker='GNU ld.so'
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 # Append ld.so.conf contents to the search path
11443 if test -f /etc/ld.so.conf; then
11444 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11445 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11448 # We used to test for /lib/ld.so.1 and disable shared libraries on
11449 # powerpc, because MkLinux only supported shared libraries with the
11450 # GNU dynamic linker. Since this was broken with cross compilers,
11451 # most powerpc-linux boxes support dynamic linking these days and
11452 # people can always --disable-shared, the test was removed, and we
11453 # assume the GNU/Linux dynamic linker is in use.
11454 dynamic_linker='GNU/Linux ld.so'
11461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11462 soname_spec='${libname}${release}${shared_ext}$major'
11463 shlibpath_var=LD_LIBRARY_PATH
11464 shlibpath_overrides_runpath=no
11465 hardcode_into_libs=yes
11466 dynamic_linker='GNU ld.so'
11473 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11475 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11476 dynamic_linker='NetBSD (a.out) ld.so'
11478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11479 soname_spec='${libname}${release}${shared_ext}$major'
11480 dynamic_linker='NetBSD ld.elf_so'
11482 shlibpath_var=LD_LIBRARY_PATH
11483 shlibpath_overrides_runpath=yes
11484 hardcode_into_libs=yes
11489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11490 shlibpath_var=LD_LIBRARY_PATH
11491 shlibpath_overrides_runpath=yes
11498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11499 soname_spec='${libname}${release}${shared_ext}$major'
11500 shlibpath_var=LD_LIBRARY_PATH
11501 shlibpath_overrides_runpath=yes
11508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11509 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11510 shlibpath_var=LD_LIBRARY_PATH
11511 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11513 openbsd2.[89] | openbsd2.[89].*)
11514 shlibpath_overrides_runpath=no
11517 shlibpath_overrides_runpath=yes
11521 shlibpath_overrides_runpath=yes
11526 libname_spec='$name'
11529 library_names_spec='$libname${shared_ext} $libname.a'
11530 dynamic_linker='OS/2 ld.exe'
11531 shlibpath_var=LIBPATH
11534 osf3* | osf4* | osf5*)
11538 soname_spec='${libname}${release}${shared_ext}$major'
11539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11540 shlibpath_var=LD_LIBRARY_PATH
11541 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11542 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11547 soname_spec='${libname}${release}${shared_ext}$major'
11548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11549 shlibpath_var=LD_LIBRARY_PATH
11556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11557 soname_spec='${libname}${release}${shared_ext}$major'
11558 shlibpath_var=LD_LIBRARY_PATH
11559 shlibpath_overrides_runpath=yes
11560 hardcode_into_libs=yes
11561 # ldd complains unless libraries are executable
11562 postinstall_cmds='chmod +x $lib'
11567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11568 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11569 shlibpath_var=LD_LIBRARY_PATH
11570 shlibpath_overrides_runpath=yes
11571 if test "$with_gnu_ld" = yes; then
11577 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11580 soname_spec='${libname}${release}${shared_ext}$major'
11581 shlibpath_var=LD_LIBRARY_PATH
11582 case $host_vendor in
11584 shlibpath_overrides_runpath=no
11586 export_dynamic_flag_spec='${wl}-Blargedynsym'
11587 runpath_var=LD_RUN_PATH
11595 shlibpath_overrides_runpath=no
11596 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11602 if test -d /usr/nec ;then
11604 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11605 soname_spec='$libname${shared_ext}.$major'
11606 shlibpath_var=LD_LIBRARY_PATH
11612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11613 soname_spec='${libname}${release}${shared_ext}$major'
11614 shlibpath_var=LD_LIBRARY_PATH
11621 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11622 echo "${ECHO_T}$dynamic_linker" >&6
11623 test "$dynamic_linker" = no && can_build_shared=no
11625 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11626 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11627 hardcode_action_CXX=
11628 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11629 test -n "$runpath_var_CXX" || \
11630 test "X$hardcode_automatic_CXX" = "Xyes" ; then
11632 # We can hardcode non-existant directories.
11633 if test "$hardcode_direct_CXX" != no &&
11634 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11635 # have to relink, otherwise we might link with an installed library
11636 # when we should be linking with a yet-to-be-installed one
11637 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11638 test "$hardcode_minus_L_CXX" != no; then
11639 # Linking always hardcodes the temporary library directory.
11640 hardcode_action_CXX=relink
11642 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11643 hardcode_action_CXX=immediate
11646 # We cannot hardcode anything, or else we can only hardcode existing
11648 hardcode_action_CXX=unsupported
11650 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11651 echo "${ECHO_T}$hardcode_action_CXX" >&6
11653 if test "$hardcode_action_CXX" = relink; then
11654 # Fast installation is not supported
11655 enable_fast_install=no
11656 elif test "$shlibpath_overrides_runpath" = yes ||
11657 test "$enable_shared" = no; then
11658 # Fast installation is not necessary
11659 enable_fast_install=needless
11664 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11665 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11666 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11667 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11668 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11669 echo "$as_me:$LINENO: result: yes" >&5
11670 echo "${ECHO_T}yes" >&6
11672 # FIXME - insert some real tests, host_os isn't really good enough
11675 if test -n "$STRIP" ; then
11676 striplib="$STRIP -x"
11677 echo "$as_me:$LINENO: result: yes" >&5
11678 echo "${ECHO_T}yes" >&6
11680 echo "$as_me:$LINENO: result: no" >&5
11681 echo "${ECHO_T}no" >&6
11685 echo "$as_me:$LINENO: result: no" >&5
11686 echo "${ECHO_T}no" >&6
11691 if test "x$enable_dlopen" != xyes; then
11692 enable_dlopen=unknown
11693 enable_dlopen_self=unknown
11694 enable_dlopen_self_static=unknown
11701 lt_cv_dlopen="load_add_on"
11703 lt_cv_dlopen_self=yes
11707 lt_cv_dlopen="LoadLibrary"
11712 lt_cv_dlopen="dlopen"
11717 # if libdl is installed we need to link against it
11718 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11719 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11720 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11721 echo $ECHO_N "(cached) $ECHO_C" >&6
11723 ac_check_lib_save_LIBS=$LIBS
11725 cat >conftest.$ac_ext <<_ACEOF
11728 cat confdefs.h >>conftest.$ac_ext
11729 cat >>conftest.$ac_ext <<_ACEOF
11730 /* end confdefs.h. */
11732 /* Override any gcc2 internal prototype to avoid an error. */
11736 /* We use char because int might match the return type of a gcc2
11737 builtin and then its argument prototype would still apply. */
11747 rm -f conftest.$ac_objext conftest$ac_exeext
11748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11749 (eval $ac_link) 2>conftest.er1
11751 grep -v '^ *+' conftest.er1 >conftest.err
11753 cat conftest.err >&5
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); } &&
11756 { ac_try='test -z "$ac_cxx_werror_flag"
11757 || test ! -s conftest.err'
11758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11759 (eval $ac_try) 2>&5
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); }; } &&
11763 { ac_try='test -s conftest$ac_exeext'
11764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11765 (eval $ac_try) 2>&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); }; }; then
11769 ac_cv_lib_dl_dlopen=yes
11771 echo "$as_me: failed program was:" >&5
11772 sed 's/^/| /' conftest.$ac_ext >&5
11774 ac_cv_lib_dl_dlopen=no
11776 rm -f conftest.err conftest.$ac_objext \
11777 conftest$ac_exeext conftest.$ac_ext
11778 LIBS=$ac_check_lib_save_LIBS
11780 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11781 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11782 if test $ac_cv_lib_dl_dlopen = yes; then
11783 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11786 lt_cv_dlopen="dyld"
11788 lt_cv_dlopen_self=yes
11795 echo "$as_me:$LINENO: checking for shl_load" >&5
11796 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11797 if test "${ac_cv_func_shl_load+set}" = set; then
11798 echo $ECHO_N "(cached) $ECHO_C" >&6
11800 cat >conftest.$ac_ext <<_ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h. */
11806 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11808 #define shl_load innocuous_shl_load
11810 /* System header to define __stub macros and hopefully few prototypes,
11811 which can conflict with char shl_load (); below.
11812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11813 <limits.h> exists even on freestanding compilers. */
11816 # include <limits.h>
11818 # include <assert.h>
11823 /* Override any gcc2 internal prototype to avoid an error. */
11828 /* We use char because int might match the return type of a gcc2
11829 builtin and then its argument prototype would still apply. */
11831 /* The GNU C library defines this for functions which it implements
11832 to always fail with ENOSYS. Some functions are actually named
11833 something starting with __ and the normal name is an alias. */
11834 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11837 char (*f) () = shl_load;
11846 return f != shl_load;
11851 rm -f conftest.$ac_objext conftest$ac_exeext
11852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11853 (eval $ac_link) 2>conftest.er1
11855 grep -v '^ *+' conftest.er1 >conftest.err
11857 cat conftest.err >&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } &&
11860 { ac_try='test -z "$ac_cxx_werror_flag"
11861 || test ! -s conftest.err'
11862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11863 (eval $ac_try) 2>&5
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); }; } &&
11867 { ac_try='test -s conftest$ac_exeext'
11868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11869 (eval $ac_try) 2>&5
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); }; }; then
11873 ac_cv_func_shl_load=yes
11875 echo "$as_me: failed program was:" >&5
11876 sed 's/^/| /' conftest.$ac_ext >&5
11878 ac_cv_func_shl_load=no
11880 rm -f conftest.err conftest.$ac_objext \
11881 conftest$ac_exeext conftest.$ac_ext
11883 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11884 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11885 if test $ac_cv_func_shl_load = yes; then
11886 lt_cv_dlopen="shl_load"
11888 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11889 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11890 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11891 echo $ECHO_N "(cached) $ECHO_C" >&6
11893 ac_check_lib_save_LIBS=$LIBS
11895 cat >conftest.$ac_ext <<_ACEOF
11898 cat confdefs.h >>conftest.$ac_ext
11899 cat >>conftest.$ac_ext <<_ACEOF
11900 /* end confdefs.h. */
11902 /* Override any gcc2 internal prototype to avoid an error. */
11906 /* We use char because int might match the return type of a gcc2
11907 builtin and then its argument prototype would still apply. */
11917 rm -f conftest.$ac_objext conftest$ac_exeext
11918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11919 (eval $ac_link) 2>conftest.er1
11921 grep -v '^ *+' conftest.er1 >conftest.err
11923 cat conftest.err >&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); } &&
11926 { ac_try='test -z "$ac_cxx_werror_flag"
11927 || test ! -s conftest.err'
11928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11929 (eval $ac_try) 2>&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }; } &&
11933 { ac_try='test -s conftest$ac_exeext'
11934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935 (eval $ac_try) 2>&5
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }; }; then
11939 ac_cv_lib_dld_shl_load=yes
11941 echo "$as_me: failed program was:" >&5
11942 sed 's/^/| /' conftest.$ac_ext >&5
11944 ac_cv_lib_dld_shl_load=no
11946 rm -f conftest.err conftest.$ac_objext \
11947 conftest$ac_exeext conftest.$ac_ext
11948 LIBS=$ac_check_lib_save_LIBS
11950 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11951 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11952 if test $ac_cv_lib_dld_shl_load = yes; then
11953 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11955 echo "$as_me:$LINENO: checking for dlopen" >&5
11956 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11957 if test "${ac_cv_func_dlopen+set}" = set; then
11958 echo $ECHO_N "(cached) $ECHO_C" >&6
11960 cat >conftest.$ac_ext <<_ACEOF
11963 cat confdefs.h >>conftest.$ac_ext
11964 cat >>conftest.$ac_ext <<_ACEOF
11965 /* end confdefs.h. */
11966 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11968 #define dlopen innocuous_dlopen
11970 /* System header to define __stub macros and hopefully few prototypes,
11971 which can conflict with char dlopen (); below.
11972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11973 <limits.h> exists even on freestanding compilers. */
11976 # include <limits.h>
11978 # include <assert.h>
11983 /* Override any gcc2 internal prototype to avoid an error. */
11988 /* We use char because int might match the return type of a gcc2
11989 builtin and then its argument prototype would still apply. */
11991 /* The GNU C library defines this for functions which it implements
11992 to always fail with ENOSYS. Some functions are actually named
11993 something starting with __ and the normal name is an alias. */
11994 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11997 char (*f) () = dlopen;
12006 return f != dlopen;
12011 rm -f conftest.$ac_objext conftest$ac_exeext
12012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12013 (eval $ac_link) 2>conftest.er1
12015 grep -v '^ *+' conftest.er1 >conftest.err
12017 cat conftest.err >&5
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); } &&
12020 { ac_try='test -z "$ac_cxx_werror_flag"
12021 || test ! -s conftest.err'
12022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12023 (eval $ac_try) 2>&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); }; } &&
12027 { ac_try='test -s conftest$ac_exeext'
12028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12029 (eval $ac_try) 2>&5
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); }; }; then
12033 ac_cv_func_dlopen=yes
12035 echo "$as_me: failed program was:" >&5
12036 sed 's/^/| /' conftest.$ac_ext >&5
12038 ac_cv_func_dlopen=no
12040 rm -f conftest.err conftest.$ac_objext \
12041 conftest$ac_exeext conftest.$ac_ext
12043 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12044 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12045 if test $ac_cv_func_dlopen = yes; then
12046 lt_cv_dlopen="dlopen"
12048 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12049 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12050 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12051 echo $ECHO_N "(cached) $ECHO_C" >&6
12053 ac_check_lib_save_LIBS=$LIBS
12055 cat >conftest.$ac_ext <<_ACEOF
12058 cat confdefs.h >>conftest.$ac_ext
12059 cat >>conftest.$ac_ext <<_ACEOF
12060 /* end confdefs.h. */
12062 /* Override any gcc2 internal prototype to avoid an error. */
12066 /* We use char because int might match the return type of a gcc2
12067 builtin and then its argument prototype would still apply. */
12077 rm -f conftest.$ac_objext conftest$ac_exeext
12078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12079 (eval $ac_link) 2>conftest.er1
12081 grep -v '^ *+' conftest.er1 >conftest.err
12083 cat conftest.err >&5
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); } &&
12086 { ac_try='test -z "$ac_cxx_werror_flag"
12087 || test ! -s conftest.err'
12088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12089 (eval $ac_try) 2>&5
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); }; } &&
12093 { ac_try='test -s conftest$ac_exeext'
12094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12095 (eval $ac_try) 2>&5
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); }; }; then
12099 ac_cv_lib_dl_dlopen=yes
12101 echo "$as_me: failed program was:" >&5
12102 sed 's/^/| /' conftest.$ac_ext >&5
12104 ac_cv_lib_dl_dlopen=no
12106 rm -f conftest.err conftest.$ac_objext \
12107 conftest$ac_exeext conftest.$ac_ext
12108 LIBS=$ac_check_lib_save_LIBS
12110 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12111 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12112 if test $ac_cv_lib_dl_dlopen = yes; then
12113 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12115 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12116 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12117 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12118 echo $ECHO_N "(cached) $ECHO_C" >&6
12120 ac_check_lib_save_LIBS=$LIBS
12121 LIBS="-lsvld $LIBS"
12122 cat >conftest.$ac_ext <<_ACEOF
12125 cat confdefs.h >>conftest.$ac_ext
12126 cat >>conftest.$ac_ext <<_ACEOF
12127 /* end confdefs.h. */
12129 /* Override any gcc2 internal prototype to avoid an error. */
12133 /* We use char because int might match the return type of a gcc2
12134 builtin and then its argument prototype would still apply. */
12144 rm -f conftest.$ac_objext conftest$ac_exeext
12145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12146 (eval $ac_link) 2>conftest.er1
12148 grep -v '^ *+' conftest.er1 >conftest.err
12150 cat conftest.err >&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); } &&
12153 { ac_try='test -z "$ac_cxx_werror_flag"
12154 || test ! -s conftest.err'
12155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156 (eval $ac_try) 2>&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }; } &&
12160 { ac_try='test -s conftest$ac_exeext'
12161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162 (eval $ac_try) 2>&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; }; then
12166 ac_cv_lib_svld_dlopen=yes
12168 echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12171 ac_cv_lib_svld_dlopen=no
12173 rm -f conftest.err conftest.$ac_objext \
12174 conftest$ac_exeext conftest.$ac_ext
12175 LIBS=$ac_check_lib_save_LIBS
12177 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12178 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12179 if test $ac_cv_lib_svld_dlopen = yes; then
12180 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12182 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12183 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12184 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12185 echo $ECHO_N "(cached) $ECHO_C" >&6
12187 ac_check_lib_save_LIBS=$LIBS
12189 cat >conftest.$ac_ext <<_ACEOF
12192 cat confdefs.h >>conftest.$ac_ext
12193 cat >>conftest.$ac_ext <<_ACEOF
12194 /* end confdefs.h. */
12196 /* Override any gcc2 internal prototype to avoid an error. */
12200 /* We use char because int might match the return type of a gcc2
12201 builtin and then its argument prototype would still apply. */
12211 rm -f conftest.$ac_objext conftest$ac_exeext
12212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12213 (eval $ac_link) 2>conftest.er1
12215 grep -v '^ *+' conftest.er1 >conftest.err
12217 cat conftest.err >&5
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); } &&
12220 { ac_try='test -z "$ac_cxx_werror_flag"
12221 || test ! -s conftest.err'
12222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12223 (eval $ac_try) 2>&5
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); }; } &&
12227 { ac_try='test -s conftest$ac_exeext'
12228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12229 (eval $ac_try) 2>&5
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); }; }; then
12233 ac_cv_lib_dld_dld_link=yes
12235 echo "$as_me: failed program was:" >&5
12236 sed 's/^/| /' conftest.$ac_ext >&5
12238 ac_cv_lib_dld_dld_link=no
12240 rm -f conftest.err conftest.$ac_objext \
12241 conftest$ac_exeext conftest.$ac_ext
12242 LIBS=$ac_check_lib_save_LIBS
12244 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12245 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12246 if test $ac_cv_lib_dld_dld_link = yes; then
12247 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12268 if test "x$lt_cv_dlopen" != xno; then
12274 case $lt_cv_dlopen in
12276 save_CPPFLAGS="$CPPFLAGS"
12277 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12279 save_LDFLAGS="$LDFLAGS"
12280 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12283 LIBS="$lt_cv_dlopen_libs $LIBS"
12285 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12286 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12287 if test "${lt_cv_dlopen_self+set}" = set; then
12288 echo $ECHO_N "(cached) $ECHO_C" >&6
12290 if test "$cross_compiling" = yes; then :
12291 lt_cv_dlopen_self=cross
12293 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12294 lt_status=$lt_dlunknown
12295 cat > conftest.$ac_ext <<EOF
12296 #line 12296 "configure"
12297 #include "confdefs.h"
12306 # define LT_DLGLOBAL RTLD_GLOBAL
12309 # define LT_DLGLOBAL DL_GLOBAL
12311 # define LT_DLGLOBAL 0
12315 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12316 find out it does not work in some platform. */
12317 #ifndef LT_DLLAZY_OR_NOW
12319 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12322 # define LT_DLLAZY_OR_NOW DL_LAZY
12325 # define LT_DLLAZY_OR_NOW RTLD_NOW
12328 # define LT_DLLAZY_OR_NOW DL_NOW
12330 # define LT_DLLAZY_OR_NOW 0
12338 extern "C" void exit (int);
12341 void fnord() { int i=42;}
12344 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12345 int status = $lt_dlunknown;
12349 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12350 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12351 /* dlclose (self); */
12357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12358 (eval $ac_link) 2>&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12362 (./conftest; exit; ) 2>/dev/null
12364 case x$lt_status in
12365 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12366 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12367 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12370 # compilation failed
12371 lt_cv_dlopen_self=no
12378 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12379 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12381 if test "x$lt_cv_dlopen_self" = xyes; then
12382 LDFLAGS="$LDFLAGS $link_static_flag"
12383 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12384 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12385 if test "${lt_cv_dlopen_self_static+set}" = set; then
12386 echo $ECHO_N "(cached) $ECHO_C" >&6
12388 if test "$cross_compiling" = yes; then :
12389 lt_cv_dlopen_self_static=cross
12391 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12392 lt_status=$lt_dlunknown
12393 cat > conftest.$ac_ext <<EOF
12394 #line 12394 "configure"
12395 #include "confdefs.h"
12404 # define LT_DLGLOBAL RTLD_GLOBAL
12407 # define LT_DLGLOBAL DL_GLOBAL
12409 # define LT_DLGLOBAL 0
12413 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12414 find out it does not work in some platform. */
12415 #ifndef LT_DLLAZY_OR_NOW
12417 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12420 # define LT_DLLAZY_OR_NOW DL_LAZY
12423 # define LT_DLLAZY_OR_NOW RTLD_NOW
12426 # define LT_DLLAZY_OR_NOW DL_NOW
12428 # define LT_DLLAZY_OR_NOW 0
12436 extern "C" void exit (int);
12439 void fnord() { int i=42;}
12442 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12443 int status = $lt_dlunknown;
12447 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12448 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12449 /* dlclose (self); */
12455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12456 (eval $ac_link) 2>&5
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12460 (./conftest; exit; ) 2>/dev/null
12462 case x$lt_status in
12463 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12464 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12465 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12468 # compilation failed
12469 lt_cv_dlopen_self_static=no
12476 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12477 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12480 CPPFLAGS="$save_CPPFLAGS"
12481 LDFLAGS="$save_LDFLAGS"
12486 case $lt_cv_dlopen_self in
12487 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12488 *) enable_dlopen_self=unknown ;;
12491 case $lt_cv_dlopen_self_static in
12492 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12493 *) enable_dlopen_self_static=unknown ;;
12498 # The else clause should only fire when bootstrapping the
12499 # libtool distribution, otherwise you forgot to ship ltmain.sh
12500 # with your package, and you will get complaints that there are
12501 # no rules to generate ltmain.sh.
12502 if test -f "$ltmain"; then
12503 # See if we are running on zsh, and set the options which allow our commands through
12504 # without removal of \ escapes.
12505 if test -n "${ZSH_VERSION+set}" ; then
12506 setopt NO_GLOB_SUBST
12508 # Now quote all the things that may contain metacharacters while being
12509 # careful not to overquote the AC_SUBSTed values. We take copies of the
12510 # variables and quote the copies for generation of the libtool script.
12511 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12513 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12514 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12515 deplibs_check_method reload_flag reload_cmds need_locks \
12516 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12517 lt_cv_sys_global_symbol_to_c_name_address \
12518 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12519 old_postinstall_cmds old_postuninstall_cmds \
12523 lt_prog_compiler_wl_CXX \
12524 lt_prog_compiler_pic_CXX \
12525 lt_prog_compiler_static_CXX \
12526 lt_prog_compiler_no_builtin_flag_CXX \
12527 export_dynamic_flag_spec_CXX \
12528 thread_safe_flag_spec_CXX \
12529 whole_archive_flag_spec_CXX \
12530 enable_shared_with_static_runtimes_CXX \
12531 old_archive_cmds_CXX \
12532 old_archive_from_new_cmds_CXX \
12533 predep_objects_CXX \
12534 postdep_objects_CXX \
12537 compiler_lib_search_path_CXX \
12539 archive_expsym_cmds_CXX \
12540 postinstall_cmds_CXX \
12541 postuninstall_cmds_CXX \
12542 old_archive_from_expsyms_cmds_CXX \
12543 allow_undefined_flag_CXX \
12544 no_undefined_flag_CXX \
12545 export_symbols_cmds_CXX \
12546 hardcode_libdir_flag_spec_CXX \
12547 hardcode_libdir_flag_spec_ld_CXX \
12548 hardcode_libdir_separator_CXX \
12549 hardcode_automatic_CXX \
12551 module_expsym_cmds_CXX \
12552 lt_cv_prog_compiler_c_o_CXX \
12553 exclude_expsyms_CXX \
12554 include_expsyms_CXX; do
12557 old_archive_cmds_CXX | \
12558 old_archive_from_new_cmds_CXX | \
12559 archive_cmds_CXX | \
12560 archive_expsym_cmds_CXX | \
12561 module_cmds_CXX | \
12562 module_expsym_cmds_CXX | \
12563 old_archive_from_expsyms_cmds_CXX | \
12564 export_symbols_cmds_CXX | \
12565 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12566 postinstall_cmds | postuninstall_cmds | \
12567 old_postinstall_cmds | old_postuninstall_cmds | \
12568 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12569 # Double-quote double-evaled strings.
12570 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12573 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12579 *'\$0 --fallback-echo"')
12580 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12586 cat <<__EOF__ >> "$cfgfile"
12587 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12589 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12591 # Shell to use when invoking shell scripts.
12594 # Whether or not to build shared libraries.
12595 build_libtool_libs=$enable_shared
12597 # Whether or not to build static libraries.
12598 build_old_libs=$enable_static
12600 # Whether or not to add -lc for building shared libraries.
12601 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12603 # Whether or not to disallow shared libs when runtime libs are static
12604 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12606 # Whether or not to optimize for fast installation.
12607 fast_install=$enable_fast_install
12610 host_alias=$host_alias
12613 # An echo program that does not interpret backslashes.
12618 AR_FLAGS=$lt_AR_FLAGS
12623 # A language-specific compiler.
12624 CC=$lt_compiler_CXX
12626 # Is the compiler the GNU C compiler?
12632 # The linker used to build libraries.
12635 # Whether we need hard or soft links.
12638 # A BSD-compatible nm program.
12641 # A symbol stripping program
12644 # Used to examine libraries when file_magic_cmd begins "file"
12645 MAGIC_CMD=$MAGIC_CMD
12647 # Used on cygwin: DLL creation program.
12650 # Used on cygwin: object dumper.
12653 # Used on cygwin: assembler.
12656 # The name of the directory that contains temporary libtool files.
12659 # How to create reloadable object files.
12660 reload_flag=$lt_reload_flag
12661 reload_cmds=$lt_reload_cmds
12663 # How to pass a linker flag through the compiler.
12664 wl=$lt_lt_prog_compiler_wl_CXX
12666 # Object file suffix (normally "o").
12667 objext="$ac_objext"
12669 # Old archive suffix (normally "a").
12672 # Shared library suffix (normally ".so").
12673 shrext_cmds='$shrext_cmds'
12675 # Executable file suffix (normally "").
12678 # Additional compiler flags for building library objects.
12679 pic_flag=$lt_lt_prog_compiler_pic_CXX
12682 # What is the maximum length of a command?
12683 max_cmd_len=$lt_cv_sys_max_cmd_len
12685 # Does compiler simultaneously support -c and -o options?
12686 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12688 # Must we lock files when doing compilation ?
12689 need_locks=$lt_need_locks
12691 # Do we need the lib prefix for modules?
12692 need_lib_prefix=$need_lib_prefix
12694 # Do we need a version for libraries?
12695 need_version=$need_version
12697 # Whether dlopen is supported.
12698 dlopen_support=$enable_dlopen
12700 # Whether dlopen of programs is supported.
12701 dlopen_self=$enable_dlopen_self
12703 # Whether dlopen of statically linked programs is supported.
12704 dlopen_self_static=$enable_dlopen_self_static
12706 # Compiler flag to prevent dynamic linking.
12707 link_static_flag=$lt_lt_prog_compiler_static_CXX
12709 # Compiler flag to turn off builtin functions.
12710 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12712 # Compiler flag to allow reflexive dlopens.
12713 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12715 # Compiler flag to generate shared objects directly from archives.
12716 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12718 # Compiler flag to generate thread-safe objects.
12719 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12721 # Library versioning type.
12722 version_type=$version_type
12724 # Format of library name prefix.
12725 libname_spec=$lt_libname_spec
12727 # List of archive names. First name is the real one, the rest are links.
12728 # The last name is the one that the linker finds with -lNAME.
12729 library_names_spec=$lt_library_names_spec
12731 # The coded name of the library, if different from the real name.
12732 soname_spec=$lt_soname_spec
12734 # Commands used to build and install an old-style archive.
12736 old_archive_cmds=$lt_old_archive_cmds_CXX
12737 old_postinstall_cmds=$lt_old_postinstall_cmds
12738 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12740 # Create an old-style archive from a shared archive.
12741 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12743 # Create a temporary old-style archive to link instead of a shared archive.
12744 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12746 # Commands used to build and install a shared archive.
12747 archive_cmds=$lt_archive_cmds_CXX
12748 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12749 postinstall_cmds=$lt_postinstall_cmds
12750 postuninstall_cmds=$lt_postuninstall_cmds
12752 # Commands used to build a loadable module (assumed same as above if empty)
12753 module_cmds=$lt_module_cmds_CXX
12754 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12756 # Commands to strip libraries.
12757 old_striplib=$lt_old_striplib
12758 striplib=$lt_striplib
12760 # Dependencies to place before the objects being linked to create a
12762 predep_objects=$lt_predep_objects_CXX
12764 # Dependencies to place after the objects being linked to create a
12766 postdep_objects=$lt_postdep_objects_CXX
12768 # Dependencies to place before the objects being linked to create a
12770 predeps=$lt_predeps_CXX
12772 # Dependencies to place after the objects being linked to create a
12774 postdeps=$lt_postdeps_CXX
12776 # The library search path used internally by the compiler when linking
12777 # a shared library.
12778 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12780 # Method to check whether dependent libraries are shared objects.
12781 deplibs_check_method=$lt_deplibs_check_method
12783 # Command to use when deplibs_check_method == file_magic.
12784 file_magic_cmd=$lt_file_magic_cmd
12786 # Flag that allows shared libraries with undefined symbols to be built.
12787 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12789 # Flag that forces no undefined symbols.
12790 no_undefined_flag=$lt_no_undefined_flag_CXX
12792 # Commands used to finish a libtool library installation in a directory.
12793 finish_cmds=$lt_finish_cmds
12795 # Same as above, but a single script fragment to be evaled but not shown.
12796 finish_eval=$lt_finish_eval
12798 # Take the output of nm and produce a listing of raw symbols and C names.
12799 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12801 # Transform the output of nm in a proper C declaration
12802 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12804 # Transform the output of nm in a C name address pair
12805 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12807 # This is the shared library runtime path variable.
12808 runpath_var=$runpath_var
12810 # This is the shared library path variable.
12811 shlibpath_var=$shlibpath_var
12813 # Is shlibpath searched before the hard-coded library search path?
12814 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12816 # How to hardcode a shared library path into an executable.
12817 hardcode_action=$hardcode_action_CXX
12819 # Whether we should hardcode library paths into libraries.
12820 hardcode_into_libs=$hardcode_into_libs
12822 # Flag to hardcode \$libdir into a binary during linking.
12823 # This must work even if \$libdir does not exist.
12824 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12826 # If ld is used when linking, flag to hardcode \$libdir into
12827 # a binary during linking. This must work even if \$libdir does
12829 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12831 # Whether we need a single -rpath flag with a separated argument.
12832 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12834 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12835 # resulting binary.
12836 hardcode_direct=$hardcode_direct_CXX
12838 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12839 # resulting binary.
12840 hardcode_minus_L=$hardcode_minus_L_CXX
12842 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12843 # the resulting binary.
12844 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12846 # Set to yes if building a shared library automatically hardcodes DIR into the library
12847 # and all subsequent libraries and executables linked against it.
12848 hardcode_automatic=$hardcode_automatic_CXX
12850 # Variables whose values should be saved in libtool wrapper scripts and
12851 # restored at relink time.
12852 variables_saved_for_relink="$variables_saved_for_relink"
12854 # Whether libtool must link a program against all its dependency libraries.
12855 link_all_deplibs=$link_all_deplibs_CXX
12857 # Compile-time system search path for libraries
12858 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12860 # Run-time system search path for libraries
12861 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12863 # Fix the shell variable \$srcfile for the compiler.
12864 fix_srcfile_path="$fix_srcfile_path_CXX"
12866 # Set to yes if exported symbols are required.
12867 always_export_symbols=$always_export_symbols_CXX
12869 # The commands to list exported symbols.
12870 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12872 # The commands to extract the exported symbol list from a shared archive.
12873 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12875 # Symbols that should not be listed in the preloaded symbols.
12876 exclude_expsyms=$lt_exclude_expsyms_CXX
12878 # Symbols that must always be exported.
12879 include_expsyms=$lt_include_expsyms_CXX
12881 # ### END LIBTOOL TAG CONFIG: $tagname
12887 # If there is no Makefile yet, we rely on a make rule to execute
12888 # `config.status --recheck' to rerun these tests and create the
12889 # libtool script then.
12890 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12891 if test -f "$ltmain_in"; then
12892 test -f Makefile && make "$ltmain"
12898 ac_cpp='$CPP $CPPFLAGS'
12899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12907 with_gnu_ldcxx=$with_gnu_ld
12908 with_gnu_ld=$lt_save_with_gnu_ld
12909 lt_cv_path_LDCXX=$lt_cv_path_LD
12910 lt_cv_path_LD=$lt_save_path_LD
12911 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12912 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12920 if test -n "$F77" && test "X$F77" != "Xno"; then
12923 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12924 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12925 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12928 archive_cmds_need_lc_F77=no
12929 allow_undefined_flag_F77=
12930 always_export_symbols_F77=no
12931 archive_expsym_cmds_F77=
12932 export_dynamic_flag_spec_F77=
12933 hardcode_direct_F77=no
12934 hardcode_libdir_flag_spec_F77=
12935 hardcode_libdir_flag_spec_ld_F77=
12936 hardcode_libdir_separator_F77=
12937 hardcode_minus_L_F77=no
12938 hardcode_automatic_F77=no
12940 module_expsym_cmds_F77=
12941 link_all_deplibs_F77=unknown
12942 old_archive_cmds_F77=$old_archive_cmds
12943 no_undefined_flag_F77=
12944 whole_archive_flag_spec_F77=
12945 enable_shared_with_static_runtimes_F77=no
12947 # Source file extension for f77 test sources.
12950 # Object file extension for compiled f77 test sources.
12954 # Code to be used in simple compile tests
12955 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12957 # Code to be used in simple link tests
12958 lt_simple_link_test_code=" program t\n end\n"
12960 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12962 # If no C compiler was specified, use CC.
12965 # Allow CC to be a program name with arguments.
12969 # Allow CC to be a program name with arguments.
12974 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12976 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12977 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12978 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12979 echo "${ECHO_T}$can_build_shared" >&6
12981 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12982 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12983 test "$can_build_shared" = "no" && enable_shared=no
12985 # On AIX, shared libraries and static libraries use the same namespace, and
12986 # are all built from PIC.
12989 test "$enable_shared" = yes && enable_static=no
12990 if test -n "$RANLIB"; then
12991 archive_cmds="$archive_cmds;\$RANLIB \$lib"
12992 postinstall_cmds='$RANLIB $lib'
12996 test "$enable_shared" = yes && enable_static=no
12999 echo "$as_me:$LINENO: result: $enable_shared" >&5
13000 echo "${ECHO_T}$enable_shared" >&6
13002 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13003 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13004 # Make sure either enable_shared or enable_static is yes.
13005 test "$enable_shared" = yes || enable_static=yes
13006 echo "$as_me:$LINENO: result: $enable_static" >&5
13007 echo "${ECHO_T}$enable_static" >&6
13009 test "$ld_shlibs_F77" = no && can_build_shared=no
13014 lt_prog_compiler_wl_F77=
13015 lt_prog_compiler_pic_F77=
13016 lt_prog_compiler_static_F77=
13018 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13019 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13021 if test "$GCC" = yes; then
13022 lt_prog_compiler_wl_F77='-Wl,'
13023 lt_prog_compiler_static_F77='-static'
13027 # All AIX code is PIC.
13028 if test "$host_cpu" = ia64; then
13029 # AIX 5 now supports IA64 processor
13030 lt_prog_compiler_static_F77='-Bstatic'
13035 # FIXME: we need at least 68020 code to build shared libraries, but
13036 # adding the `-m68020' flag to GCC prevents building anything better,
13038 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13041 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13042 # PIC is the default for these OSes.
13045 mingw* | pw32* | os2*)
13046 # This hack is so that the source file can tell whether it is being
13047 # built for inclusion in a dll (and should export symbols for example).
13048 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13051 darwin* | rhapsody*)
13052 # PIC is the default on this platform
13053 # Common symbols not allowed in MH_DYLIB files
13054 lt_prog_compiler_pic_F77='-fno-common'
13058 # Just because we use GCC doesn't mean we suddenly get shared libraries
13059 # on systems that don't support them.
13060 lt_prog_compiler_can_build_shared_F77=no
13065 if test -d /usr/nec; then
13066 lt_prog_compiler_pic_F77=-Kconform_pic
13071 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13072 # not for PA HP-UX.
13073 case "$host_cpu" in
13078 lt_prog_compiler_pic_F77='-fPIC'
13084 lt_prog_compiler_pic_F77='-fPIC'
13088 # PORTME Check for flag to pass linker flags through the system compiler.
13091 lt_prog_compiler_wl_F77='-Wl,'
13092 if test "$host_cpu" = ia64; then
13093 # AIX 5 now supports IA64 processor
13094 lt_prog_compiler_static_F77='-Bstatic'
13096 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13100 # PIC is the default on this platform
13101 # Common symbols not allowed in MH_DYLIB files
13102 case "$cc_basename" in
13104 lt_prog_compiler_pic_F77='-qnocommon'
13105 lt_prog_compiler_wl_F77='-Wl,'
13110 mingw* | pw32* | os2*)
13111 # This hack is so that the source file can tell whether it is being
13112 # built for inclusion in a dll (and should export symbols for example).
13113 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13116 hpux9* | hpux10* | hpux11*)
13117 lt_prog_compiler_wl_F77='-Wl,'
13118 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13119 # not for PA HP-UX.
13120 case "$host_cpu" in
13125 lt_prog_compiler_pic_F77='+Z'
13128 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13129 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13132 irix5* | irix6* | nonstopux*)
13133 lt_prog_compiler_wl_F77='-Wl,'
13134 # PIC (with -KPIC) is the default.
13135 lt_prog_compiler_static_F77='-non_shared'
13139 lt_prog_compiler_pic_F77='-KPIC'
13140 lt_prog_compiler_static_F77='-Bstatic'
13146 lt_prog_compiler_wl_F77='-Wl,'
13147 lt_prog_compiler_pic_F77='-KPIC'
13148 lt_prog_compiler_static_F77='-static'
13151 lt_prog_compiler_wl_F77='-Wl,'
13152 # All Alpha code is PIC.
13153 lt_prog_compiler_static_F77='-non_shared'
13158 osf3* | osf4* | osf5*)
13159 lt_prog_compiler_wl_F77='-Wl,'
13160 # All OSF/1 code is PIC.
13161 lt_prog_compiler_static_F77='-non_shared'
13165 lt_prog_compiler_pic_F77='-Kpic'
13166 lt_prog_compiler_static_F77='-dn'
13170 lt_prog_compiler_wl_F77='-Wl,'
13171 lt_prog_compiler_pic_F77='-KPIC'
13172 lt_prog_compiler_static_F77='-Bstatic'
13176 lt_prog_compiler_wl_F77='-Qoption ld '
13177 lt_prog_compiler_pic_F77='-PIC'
13178 lt_prog_compiler_static_F77='-Bstatic'
13181 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13182 lt_prog_compiler_wl_F77='-Wl,'
13183 lt_prog_compiler_pic_F77='-KPIC'
13184 lt_prog_compiler_static_F77='-Bstatic'
13188 if test -d /usr/nec ;then
13189 lt_prog_compiler_pic_F77='-Kconform_pic'
13190 lt_prog_compiler_static_F77='-Bstatic'
13195 lt_prog_compiler_pic_F77='-pic'
13196 lt_prog_compiler_static_F77='-Bstatic'
13200 lt_prog_compiler_can_build_shared_F77=no
13205 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13206 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13209 # Check to make sure the PIC flag actually works.
13211 if test -n "$lt_prog_compiler_pic_F77"; then
13213 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13214 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13215 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13216 echo $ECHO_N "(cached) $ECHO_C" >&6
13218 lt_prog_compiler_pic_works_F77=no
13219 ac_outfile=conftest.$ac_objext
13220 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13221 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13222 # Insert the option either (1) after the last *FLAGS variable, or
13223 # (2) before a word containing "conftest.", or (3) at the end.
13224 # Note that $ac_compile itself does not contain backslashes and begins
13225 # with a dollar sign (not a hyphen), so the echo should work correctly.
13226 # The option is referenced via a variable to avoid confusing sed.
13227 lt_compile=`echo "$ac_compile" | $SED \
13228 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13229 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13230 -e 's:$: $lt_compiler_flag:'`
13231 (eval echo "\"\$as_me:13231: $lt_compile\"" >&5)
13232 (eval "$lt_compile" 2>conftest.err)
13234 cat conftest.err >&5
13235 echo "$as_me:13235: \$? = $ac_status" >&5
13236 if (exit $ac_status) && test -s "$ac_outfile"; then
13237 # The compiler can only warn and ignore the option if not recognized
13238 # So say no if there are warnings
13239 if test ! -s conftest.err; then
13240 lt_prog_compiler_pic_works_F77=yes
13246 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13247 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13249 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13250 case $lt_prog_compiler_pic_F77 in
13252 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13255 lt_prog_compiler_pic_F77=
13256 lt_prog_compiler_can_build_shared_F77=no
13261 # For platforms which do not support PIC, -DPIC is meaningless:
13263 lt_prog_compiler_pic_F77=
13266 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13270 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13271 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13272 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13273 echo $ECHO_N "(cached) $ECHO_C" >&6
13275 lt_cv_prog_compiler_c_o_F77=no
13276 $rm -r conftest 2>/dev/null
13280 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13282 lt_compiler_flag="-o out/conftest2.$ac_objext"
13283 # Insert the option either (1) after the last *FLAGS variable, or
13284 # (2) before a word containing "conftest.", or (3) at the end.
13285 # Note that $ac_compile itself does not contain backslashes and begins
13286 # with a dollar sign (not a hyphen), so the echo should work correctly.
13287 lt_compile=`echo "$ac_compile" | $SED \
13288 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13289 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13290 -e 's:$: $lt_compiler_flag:'`
13291 (eval echo "\"\$as_me:13291: $lt_compile\"" >&5)
13292 (eval "$lt_compile" 2>out/conftest.err)
13294 cat out/conftest.err >&5
13295 echo "$as_me:13295: \$? = $ac_status" >&5
13296 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13298 # The compiler can only warn and ignore the option if not recognized
13299 # So say no if there are warnings
13300 if test ! -s out/conftest.err; then
13301 lt_cv_prog_compiler_c_o_F77=yes
13306 # SGI C++ compiler will create directory out/ii_files/ for
13307 # template instantiation
13308 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13309 $rm out/* && rmdir out
13315 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13316 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13319 hard_links="nottested"
13320 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13321 # do not overwrite the value of need_locks provided by the user
13322 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13323 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13326 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13328 ln conftest.a conftest.b 2>&5 || hard_links=no
13329 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13330 echo "$as_me:$LINENO: result: $hard_links" >&5
13331 echo "${ECHO_T}$hard_links" >&6
13332 if test "$hard_links" = no; then
13333 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13334 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13341 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13342 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13345 allow_undefined_flag_F77=
13346 enable_shared_with_static_runtimes_F77=no
13348 archive_expsym_cmds_F77=
13349 old_archive_From_new_cmds_F77=
13350 old_archive_from_expsyms_cmds_F77=
13351 export_dynamic_flag_spec_F77=
13352 whole_archive_flag_spec_F77=
13353 thread_safe_flag_spec_F77=
13354 hardcode_libdir_flag_spec_F77=
13355 hardcode_libdir_flag_spec_ld_F77=
13356 hardcode_libdir_separator_F77=
13357 hardcode_direct_F77=no
13358 hardcode_minus_L_F77=no
13359 hardcode_shlibpath_var_F77=unsupported
13360 link_all_deplibs_F77=unknown
13361 hardcode_automatic_F77=no
13363 module_expsym_cmds_F77=
13364 always_export_symbols_F77=no
13365 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13366 # include_expsyms should be a list of space-separated symbols to be *always*
13367 # included in the symbol list
13368 include_expsyms_F77=
13369 # exclude_expsyms can be an extended regexp of symbols to exclude
13370 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13371 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13372 # as well as any symbol that contains `d'.
13373 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13374 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13375 # platforms (ab)use it in PIC code, but their linkers get confused if
13376 # the symbol is explicitly referenced. Since portable code cannot
13377 # rely on this symbol name, it's probably fine to never include it in
13378 # preloaded symbol tables.
13379 extract_expsyms_cmds=
13382 cygwin* | mingw* | pw32*)
13383 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13384 # When not using gcc, we currently assume that we are using
13385 # Microsoft Visual C++.
13386 if test "$GCC" != yes; then
13396 if test "$with_gnu_ld" = yes; then
13397 # If archive_cmds runs LD, not CC, wlarc should be empty
13400 # See if GNU ld supports shared libraries.
13402 aix3* | aix4* | aix5*)
13403 # On AIX/PPC, the GNU linker is very broken
13404 if test "$host_cpu" != ia64; then
13408 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13409 *** to be unable to reliably create shared libraries on AIX.
13410 *** Therefore, libtool is disabling shared libraries support. If you
13411 *** really care for shared libraries, you may want to modify your PATH
13412 *** so that a non-GNU linker is found, and then restart.
13419 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)'
13420 hardcode_libdir_flag_spec_F77='-L$libdir'
13421 hardcode_minus_L_F77=yes
13423 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13424 # that the semantics of dynamic libraries on AmigaOS, at least up
13425 # to version 4, is to share data among multiple programs linked
13426 # with the same dynamic library. Since this doesn't match the
13427 # behavior of shared libraries on other platforms, we can't use
13433 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13434 allow_undefined_flag_F77=unsupported
13435 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13436 # support --undefined. This deserves some investigation. FIXME
13437 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13443 cygwin* | mingw* | pw32*)
13444 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13445 # as there is no search path for DLLs.
13446 hardcode_libdir_flag_spec_F77='-L$libdir'
13447 allow_undefined_flag_F77=unsupported
13448 always_export_symbols_F77=no
13449 enable_shared_with_static_runtimes_F77=yes
13450 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13452 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13453 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13454 # If the export-symbols file already is a .def file (1st line
13455 # is EXPORTS), use it as is; otherwise, prepend...
13456 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13457 cp $export_symbols $output_objdir/$soname.def;
13459 echo EXPORTS > $output_objdir/$soname.def;
13460 cat $export_symbols >> $output_objdir/$soname.def;
13461 fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13468 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13469 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13472 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13473 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13478 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13482 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13483 *** create shared libraries on Solaris systems. Therefore, libtool
13484 *** is disabling shared libraries support. We urge you to upgrade GNU
13485 *** binutils to release 2.9.1 or newer. Another option is to modify
13486 *** your PATH or compiler configuration so that the native linker is
13487 *** used, and then restart.
13490 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13491 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13492 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13499 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13501 hardcode_direct_F77=yes
13502 hardcode_shlibpath_var_F77=no
13506 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13507 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13508 archive_cmds_F77="$tmp_archive_cmds"
13509 supports_anon_versioning=no
13510 case `$LD -v 2>/dev/null` in
13511 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13512 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13513 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13514 *\ 2.11.*) ;; # other 2.11 versions
13515 *) supports_anon_versioning=yes ;;
13517 if test $supports_anon_versioning = yes; then
13518 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver;
13519 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13521 archive_expsym_cmds_F77="$tmp_archive_cmds"
13529 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13530 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13531 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13538 if test "$ld_shlibs_F77" = yes; then
13539 runpath_var=LD_RUN_PATH
13540 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13541 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13542 # ancient GNU ld didn't support --whole-archive et. al.
13543 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13544 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13546 whole_archive_flag_spec_F77=
13550 # PORTME fill in a description of your system's linker (not GNU ld)
13553 allow_undefined_flag_F77=unsupported
13554 always_export_symbols_F77=yes
13555 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'
13556 # Note: this linker hardcodes the directories in LIBPATH if there
13557 # are no directories specified by -L.
13558 hardcode_minus_L_F77=yes
13559 if test "$GCC" = yes && test -z "$link_static_flag"; then
13560 # Neither direct hardcoding nor static linking is supported with a
13562 hardcode_direct_F77=unsupported
13567 if test "$host_cpu" = ia64; then
13568 # On IA64, the linker does run time linking by default, so we don't
13569 # have to do anything special.
13570 aix_use_runtimelinking=no
13571 exp_sym_flag='-Bexport'
13574 # If we're using GNU nm, then we don't want the "-C" option.
13575 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13576 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13577 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'
13579 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'
13581 aix_use_runtimelinking=no
13583 # Test if we are trying to use run time linking or normal
13584 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13585 # need to do runtime linking.
13586 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13587 for ld_flag in $LDFLAGS; do
13588 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13589 aix_use_runtimelinking=yes
13595 exp_sym_flag='-bexport'
13596 no_entry_flag='-bnoentry'
13599 # When large executables or shared objects are built, AIX ld can
13600 # have problems creating the table of contents. If linking a library
13601 # or program results in "error TOC overflow" add -mminimal-toc to
13602 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13603 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13605 archive_cmds_F77=''
13606 hardcode_direct_F77=yes
13607 hardcode_libdir_separator_F77=':'
13608 link_all_deplibs_F77=yes
13610 if test "$GCC" = yes; then
13611 case $host_os in aix4.012|aix4.012.*)
13612 # We only want to do this on AIX 4.2 and lower, the check
13613 # below for broken collect2 doesn't work under 4.3+
13614 collect2name=`${CC} -print-prog-name=collect2`
13615 if test -f "$collect2name" && \
13616 strings "$collect2name" | grep resolve_lib_name >/dev/null
13618 # We have reworked collect2
13619 hardcode_direct_F77=yes
13621 # We have old collect2
13622 hardcode_direct_F77=unsupported
13623 # It fails to find uninstalled libraries when the uninstalled
13624 # path is not listed in the libpath. Setting hardcode_minus_L
13625 # to unsupported forces relinking
13626 hardcode_minus_L_F77=yes
13627 hardcode_libdir_flag_spec_F77='-L$libdir'
13628 hardcode_libdir_separator_F77=
13631 shared_flag='-shared'
13634 if test "$host_cpu" = ia64; then
13635 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13636 # chokes on -Wl,-G. The following line is correct:
13639 if test "$aix_use_runtimelinking" = yes; then
13640 shared_flag='${wl}-G'
13642 shared_flag='${wl}-bM:SRE'
13647 # It seems that -bexpall does not export symbols beginning with
13648 # underscore (_), so it is better to generate a list of symbols to export.
13649 always_export_symbols_F77=yes
13650 if test "$aix_use_runtimelinking" = yes; then
13651 # Warning - without using the other runtime loading flags (-brtl),
13652 # -berok will link without error, but may produce a broken library.
13653 allow_undefined_flag_F77='-berok'
13654 # Determine the default libpath from the value encoded in an empty executable.
13655 cat >conftest.$ac_ext <<_ACEOF
13660 rm -f conftest.$ac_objext conftest$ac_exeext
13661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13662 (eval $ac_link) 2>conftest.er1
13664 grep -v '^ *+' conftest.er1 >conftest.err
13666 cat conftest.err >&5
13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668 (exit $ac_status); } &&
13669 { ac_try='test -z "$ac_f77_werror_flag"
13670 || test ! -s conftest.err'
13671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672 (eval $ac_try) 2>&5
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); }; } &&
13676 { ac_try='test -s conftest$ac_exeext'
13677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13678 (eval $ac_try) 2>&5
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); }; }; then
13683 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13685 # Check for a 64-bit object if we didn't find anything.
13686 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; }
13689 echo "$as_me: failed program was:" >&5
13690 sed 's/^/| /' conftest.$ac_ext >&5
13693 rm -f conftest.err conftest.$ac_objext \
13694 conftest$ac_exeext conftest.$ac_ext
13695 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13697 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13698 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"
13700 if test "$host_cpu" = ia64; then
13701 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13702 allow_undefined_flag_F77="-z nodefs"
13703 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"
13705 # Determine the default libpath from the value encoded in an empty executable.
13706 cat >conftest.$ac_ext <<_ACEOF
13711 rm -f conftest.$ac_objext conftest$ac_exeext
13712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13713 (eval $ac_link) 2>conftest.er1
13715 grep -v '^ *+' conftest.er1 >conftest.err
13717 cat conftest.err >&5
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); } &&
13720 { ac_try='test -z "$ac_f77_werror_flag"
13721 || test ! -s conftest.err'
13722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723 (eval $ac_try) 2>&5
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); }; } &&
13727 { ac_try='test -s conftest$ac_exeext'
13728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729 (eval $ac_try) 2>&5
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); }; }; then
13734 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13736 # Check for a 64-bit object if we didn't find anything.
13737 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; }
13740 echo "$as_me: failed program was:" >&5
13741 sed 's/^/| /' conftest.$ac_ext >&5
13744 rm -f conftest.err conftest.$ac_objext \
13745 conftest$ac_exeext conftest.$ac_ext
13746 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13748 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13749 # Warning - without using the other run time loading flags,
13750 # -berok will link without error, but may produce a broken library.
13751 no_undefined_flag_F77=' ${wl}-bernotok'
13752 allow_undefined_flag_F77=' ${wl}-berok'
13753 # -bexpall does not export symbols beginning with underscore (_)
13754 always_export_symbols_F77=yes
13755 # Exported symbols can be pulled into shared objects from archives
13756 whole_archive_flag_spec_F77=' '
13757 archive_cmds_need_lc_F77=yes
13758 # This is similar to how AIX traditionally builds it's shared libraries.
13759 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'
13765 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)'
13766 hardcode_libdir_flag_spec_F77='-L$libdir'
13767 hardcode_minus_L_F77=yes
13768 # see comment about different semantics on the GNU ld section
13773 export_dynamic_flag_spec_F77=-rdynamic
13776 cygwin* | mingw* | pw32*)
13777 # When not using gcc, we currently assume that we are using
13778 # Microsoft Visual C++.
13779 # hardcode_libdir_flag_spec is actually meaningless, as there is
13780 # no search path for DLLs.
13781 hardcode_libdir_flag_spec_F77=' '
13782 allow_undefined_flag_F77=unsupported
13783 # Tell ltmain to make .lib files, not .a files.
13785 # Tell ltmain to make .dll files, not .so files.
13787 # FIXME: Setting linknames here is a bad hack.
13788 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames='
13789 # The linker will automatically build a .lib file if we build a DLL.
13790 old_archive_From_new_cmds_F77='true'
13791 # FIXME: Should let the user specify the lib program.
13792 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13793 fix_srcfile_path='`cygpath -w "$srcfile"`'
13794 enable_shared_with_static_runtimes_F77=yes
13797 darwin* | rhapsody*)
13799 rhapsody* | darwin1.[012])
13800 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13803 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13804 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13806 case ${MACOSX_DEPLOYMENT_TARGET} in
13808 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13811 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13817 archive_cmds_need_lc_F77=no
13818 hardcode_direct_F77=no
13819 hardcode_automatic_F77=yes
13820 hardcode_shlibpath_var_F77=unsupported
13821 whole_archive_flag_spec_F77=''
13822 link_all_deplibs_F77=yes
13823 if test "$GCC" = yes ; then
13824 output_verbose_link_cmd='echo'
13825 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13826 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13827 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13828 archive_expsym_cmds_F77='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}'
13829 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13831 case "$cc_basename" in
13833 output_verbose_link_cmd='echo'
13834 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13835 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13836 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13837 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13838 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13848 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13849 hardcode_libdir_flag_spec_F77='-L$libdir'
13850 hardcode_shlibpath_var_F77=no
13857 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13858 # support. Future versions do this automatically, but an explicit c++rt0.o
13859 # does not break anything, and helps significantly (at the cost of a little
13862 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13863 hardcode_libdir_flag_spec_F77='-R$libdir'
13864 hardcode_direct_F77=yes
13865 hardcode_shlibpath_var_F77=no
13868 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13870 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13871 hardcode_direct_F77=yes
13872 hardcode_minus_L_F77=yes
13873 hardcode_shlibpath_var_F77=no
13876 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13877 freebsd* | kfreebsd*-gnu)
13878 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13879 hardcode_libdir_flag_spec_F77='-R$libdir'
13880 hardcode_direct_F77=yes
13881 hardcode_shlibpath_var_F77=no
13885 if test "$GCC" = yes; then
13886 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'
13888 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'
13890 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13891 hardcode_libdir_separator_F77=:
13892 hardcode_direct_F77=yes
13894 # hardcode_minus_L: Not really in the search PATH,
13895 # but as the default location of the library.
13896 hardcode_minus_L_F77=yes
13897 export_dynamic_flag_spec_F77='${wl}-E'
13901 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13902 case "$host_cpu" in
13904 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13907 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13911 case "$host_cpu" in
13913 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13916 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13920 if test "$with_gnu_ld" = no; then
13921 case "$host_cpu" in
13923 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13924 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13925 hardcode_libdir_separator_F77=:
13926 hardcode_direct_F77=no
13927 hardcode_shlibpath_var_F77=no
13930 hardcode_libdir_flag_spec_F77='-L$libdir'
13931 hardcode_direct_F77=no
13932 hardcode_shlibpath_var_F77=no
13934 # hardcode_minus_L: Not really in the search PATH,
13935 # but as the default location of the library.
13936 hardcode_minus_L_F77=yes
13939 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13940 hardcode_libdir_separator_F77=:
13941 hardcode_direct_F77=yes
13942 export_dynamic_flag_spec_F77='${wl}-E'
13944 # hardcode_minus_L: Not really in the search PATH,
13945 # but as the default location of the library.
13946 hardcode_minus_L_F77=yes
13952 irix5* | irix6* | nonstopux*)
13953 if test "$GCC" = yes; then
13954 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'
13956 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'
13957 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13959 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13960 hardcode_libdir_separator_F77=:
13961 link_all_deplibs_F77=yes
13965 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13966 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13968 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13970 hardcode_libdir_flag_spec_F77='-R$libdir'
13971 hardcode_direct_F77=yes
13972 hardcode_shlibpath_var_F77=no
13976 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13977 hardcode_direct_F77=yes
13978 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13979 hardcode_libdir_separator_F77=:
13980 hardcode_shlibpath_var_F77=no
13984 hardcode_direct_F77=yes
13985 hardcode_shlibpath_var_F77=no
13986 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13987 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13988 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13989 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13990 export_dynamic_flag_spec_F77='${wl}-E'
13993 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13994 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13995 hardcode_libdir_flag_spec_F77='-R$libdir'
13998 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13999 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14006 hardcode_libdir_flag_spec_F77='-L$libdir'
14007 hardcode_minus_L_F77=yes
14008 allow_undefined_flag_F77=unsupported
14009 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'
14010 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14014 if test "$GCC" = yes; then
14015 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14016 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'
14018 allow_undefined_flag_F77=' -expect_unresolved \*'
14019 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'
14021 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14022 hardcode_libdir_separator_F77=:
14025 osf4* | osf5*) # as osf3* with the addition of -msym flag
14026 if test "$GCC" = yes; then
14027 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14028 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'
14029 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14031 allow_undefined_flag_F77=' -expect_unresolved \*'
14032 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'
14033 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; $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'
14034 # Both c and cxx compiler support -rpath directly
14035 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14037 hardcode_libdir_separator_F77=:
14041 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14042 hardcode_shlibpath_var_F77=no
14043 export_dynamic_flag_spec_F77='${wl}-Bexport'
14044 runpath_var=LD_RUN_PATH
14045 hardcode_runpath_var=yes
14049 no_undefined_flag_F77=' -z text'
14050 if test "$GCC" = yes; then
14051 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14052 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags;$rm $lib.exp'
14054 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14055 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
14057 hardcode_libdir_flag_spec_F77='-R$libdir'
14058 hardcode_shlibpath_var_F77=no
14060 solaris2.[0-5] | solaris2.[0-5].*) ;;
14061 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14062 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14064 link_all_deplibs_F77=yes
14068 if test "x$host_vendor" = xsequent; then
14069 # Use $CC to link under sequent, because it throws in some extra .o
14070 # files that make .init and .fini sections work.
14071 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14073 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14075 hardcode_libdir_flag_spec_F77='-L$libdir'
14076 hardcode_direct_F77=yes
14077 hardcode_minus_L_F77=yes
14078 hardcode_shlibpath_var_F77=no
14082 case $host_vendor in
14084 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14085 hardcode_direct_F77=yes # is this really true???
14088 ## LD is ld it makes a PLAMLIB
14089 ## CC just makes a GrossModule.
14090 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14091 reload_cmds_F77='$CC -r -o $output$reload_objs'
14092 hardcode_direct_F77=no
14095 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14096 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14099 runpath_var='LD_RUN_PATH'
14100 hardcode_shlibpath_var_F77=no
14104 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14105 hardcode_shlibpath_var_F77=no
14106 export_dynamic_flag_spec_F77='-Bexport'
14110 if test -d /usr/nec; then
14111 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14112 hardcode_shlibpath_var_F77=no
14113 runpath_var=LD_RUN_PATH
14114 hardcode_runpath_var=yes
14120 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14121 hardcode_direct_F77=yes
14122 hardcode_minus_L_F77=no
14123 hardcode_shlibpath_var_F77=no
14124 hardcode_runpath_var=yes
14125 runpath_var=LD_RUN_PATH
14128 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14129 no_undefined_flag_F77='${wl}-z ${wl}text'
14130 if test "$GCC" = yes; then
14131 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14133 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14135 runpath_var='LD_RUN_PATH'
14136 hardcode_shlibpath_var_F77=no
14140 no_undefined_flag_F77=' -z text'
14141 # $CC -shared without GNU ld will not create a library from C++
14142 # object files and a static libstdc++, better avoid it by now
14143 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14144 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
14145 hardcode_libdir_flag_spec_F77=
14146 hardcode_shlibpath_var_F77=no
14147 runpath_var='LD_RUN_PATH'
14151 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14152 hardcode_libdir_flag_spec_F77='-L$libdir'
14153 hardcode_shlibpath_var_F77=no
14162 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14163 echo "${ECHO_T}$ld_shlibs_F77" >&6
14164 test "$ld_shlibs_F77" = no && can_build_shared=no
14166 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14167 if test "$GCC" = yes; then
14168 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14172 # Do we need to explicitly link libc?
14174 case "x$archive_cmds_need_lc_F77" in
14176 # Assume -lc should be added
14177 archive_cmds_need_lc_F77=yes
14179 if test "$enable_shared" = yes && test "$GCC" = yes; then
14180 case $archive_cmds_F77 in
14182 # FIXME: we may have to deal with multi-command sequences.
14185 # Test whether the compiler implicitly links with -lc since on some
14186 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14187 # to ld, don't add -lc before -lgcc.
14188 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14189 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14191 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14194 (eval $ac_compile) 2>&5
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); } 2>conftest.err; then
14200 libobjs=conftest.$ac_objext
14202 wl=$lt_prog_compiler_wl_F77
14208 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14209 allow_undefined_flag_F77=
14210 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14211 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); }
14216 archive_cmds_need_lc_F77=no
14218 archive_cmds_need_lc_F77=yes
14220 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14222 cat conftest.err 1>&5
14225 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14226 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14233 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14234 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14235 library_names_spec=
14236 libname_spec='lib$name'
14240 postuninstall_cmds=
14244 shlibpath_overrides_runpath=unknown
14246 dynamic_linker="$host_os ld.so"
14247 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14248 if test "$GCC" = yes; then
14249 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14250 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14251 # if the path contains ";" then we assume it to be the separator
14252 # otherwise default to the standard path separator (i.e. ":") - it is
14253 # assumed that no part of a normal pathname contains ";" but that should
14254 # okay in the real world where ";" in dirpaths is itself problematic.
14255 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14257 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14260 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14262 need_lib_prefix=unknown
14263 hardcode_into_libs=no
14265 # when you set need_version to no, make sure it does not cause -set_version
14266 # flags to be left without arguments
14267 need_version=unknown
14272 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14273 shlibpath_var=LIBPATH
14275 # AIX 3 has no versioning support, so we append a major version to the name.
14276 soname_spec='${libname}${release}${shared_ext}$major'
14283 hardcode_into_libs=yes
14284 if test "$host_cpu" = ia64; then
14285 # AIX 5 supports IA64
14286 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14287 shlibpath_var=LD_LIBRARY_PATH
14289 # With GCC up to 2.95.x, collect2 would create an import file
14290 # for dependence libraries. The import file would start with
14291 # the line `#! .'. This would cause the generated library to
14292 # depend on `.', always an invalid library. This was fixed in
14293 # development snapshots of GCC prior to 3.0.
14295 aix4 | aix4.[01] | aix4.[01].*)
14296 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14298 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14301 can_build_shared=no
14305 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14306 # soname into executable. Probably we can add versioning support to
14307 # collect2, so additional links can be useful in future.
14308 if test "$aix_use_runtimelinking" = yes; then
14309 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14310 # instead of lib<name>.a to let people know that these are not
14311 # typical AIX shared libraries.
14312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14314 # We preserve .a as extension for shared libraries through AIX4.2
14315 # and later when we are not doing run time linking.
14316 library_names_spec='${libname}${release}.a $libname.a'
14317 soname_spec='${libname}${release}${shared_ext}$major'
14319 shlibpath_var=LIBPATH
14324 library_names_spec='$libname.ixlibrary $libname.a'
14325 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14326 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'
14330 library_names_spec='${libname}${shared_ext}'
14331 dynamic_linker="$host_os ld.so"
14332 shlibpath_var=LIBRARY_PATH
14338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14339 soname_spec='${libname}${release}${shared_ext}$major'
14340 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14341 shlibpath_var=LD_LIBRARY_PATH
14342 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14343 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14344 # the default ld.so.conf also contains /usr/contrib/lib and
14345 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14346 # libtool to hard-code these into programs
14349 cygwin* | mingw* | pw32*)
14350 version_type=windows
14355 case $GCC,$host_os in
14356 yes,cygwin* | yes,mingw* | yes,pw32*)
14357 library_names_spec='$libname.dll.a'
14358 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14359 postinstall_cmds='base_file=`basename \${file}`;
14360 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
14361 dldir=$destdir/`dirname \$dlpath`;
14362 test -d \$dldir || mkdir -p \$dldir;
14363 $install_prog $dir/$dlname \$dldir/$dlname'
14364 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
14365 dlpath=$dir/\$dldll;
14367 shlibpath_overrides_runpath=yes
14371 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14372 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14373 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14376 # MinGW DLLs use traditional 'lib' prefix
14377 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14378 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14379 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14380 # It is most probably a Windows format PATH printed by
14381 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14382 # path with ; separators, and with drive letters. We can handle the
14383 # drive letters (cygwin fileutils understands them), so leave them,
14384 # especially as we might pass files found there to a mingw objdump,
14385 # which wouldn't understand a cygwinified path. Ahh.
14386 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14388 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14392 # pw32 DLLs use 'pw' prefix rather than 'lib'
14393 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14399 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14402 dynamic_linker='Win32 ld.exe'
14403 # FIXME: first we should search . and the directory the executable is in
14407 darwin* | rhapsody*)
14408 dynamic_linker="$host_os dyld"
14409 version_type=darwin
14412 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14413 soname_spec='${libname}${release}${major}$shared_ext'
14414 shlibpath_overrides_runpath=yes
14415 shlibpath_var=DYLD_LIBRARY_PATH
14416 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14417 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14418 if test "$GCC" = yes; then
14419 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"`
14421 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14423 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14431 soname_spec='${libname}${release}${shared_ext}$major'
14432 shlibpath_var=LD_LIBRARY_PATH
14443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14444 soname_spec='${libname}${release}${shared_ext}$major'
14445 shlibpath_var=LD_LIBRARY_PATH
14446 shlibpath_overrides_runpath=no
14447 hardcode_into_libs=yes
14448 dynamic_linker='GNU ld.so'
14452 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14453 version_type=freebsd-$objformat
14454 case $version_type in
14456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14461 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14465 shlibpath_var=LD_LIBRARY_PATH
14468 shlibpath_overrides_runpath=yes
14470 freebsd3.01* | freebsdelf3.01*)
14471 shlibpath_overrides_runpath=yes
14472 hardcode_into_libs=yes
14475 shlibpath_overrides_runpath=no
14476 hardcode_into_libs=yes
14485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14486 soname_spec='${libname}${release}${shared_ext}$major'
14487 shlibpath_var=LD_LIBRARY_PATH
14488 hardcode_into_libs=yes
14491 hpux9* | hpux10* | hpux11*)
14492 # Give a soname corresponding to the major version so that dld.sl refuses to
14493 # link against other versions.
14497 case "$host_cpu" in
14500 hardcode_into_libs=yes
14501 dynamic_linker="$host_os dld.so"
14502 shlibpath_var=LD_LIBRARY_PATH
14503 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14505 soname_spec='${libname}${release}${shared_ext}$major'
14506 if test "X$HPUX_IA64_MODE" = X32; then
14507 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14509 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14511 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14515 hardcode_into_libs=yes
14516 dynamic_linker="$host_os dld.sl"
14517 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14518 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14520 soname_spec='${libname}${release}${shared_ext}$major'
14521 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14522 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14526 dynamic_linker="$host_os dld.sl"
14527 shlibpath_var=SHLIB_PATH
14528 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14530 soname_spec='${libname}${release}${shared_ext}$major'
14533 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14534 postinstall_cmds='chmod 555 $lib'
14537 irix5* | irix6* | nonstopux*)
14539 nonstopux*) version_type=nonstopux ;;
14541 if test "$lt_cv_prog_gnu_ld" = yes; then
14549 soname_spec='${libname}${release}${shared_ext}$major'
14550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14552 irix5* | nonstopux*)
14553 libsuff= shlibsuff=
14556 case $LD in # libtool.m4 will add one of these switches to LD
14557 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14558 libsuff= shlibsuff= libmagic=32-bit;;
14559 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14560 libsuff=32 shlibsuff=N32 libmagic=N32;;
14561 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14562 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14563 *) libsuff= shlibsuff= libmagic=never-match;;
14567 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14568 shlibpath_overrides_runpath=no
14569 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14570 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14571 hardcode_into_libs=yes
14574 # No shared lib support for Linux oldld, aout, or coff.
14575 linux*oldld* | linux*aout* | linux*coff*)
14579 # This must be Linux ELF.
14584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14585 soname_spec='${libname}${release}${shared_ext}$major'
14586 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14587 shlibpath_var=LD_LIBRARY_PATH
14588 shlibpath_overrides_runpath=no
14589 # This implies no fast_install, which is unacceptable.
14590 # Some rework will be needed to allow for fast_install
14591 # before this can be enabled.
14592 hardcode_into_libs=yes
14594 # Append ld.so.conf contents to the search path
14595 if test -f /etc/ld.so.conf; then
14596 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14597 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14600 # We used to test for /lib/ld.so.1 and disable shared libraries on
14601 # powerpc, because MkLinux only supported shared libraries with the
14602 # GNU dynamic linker. Since this was broken with cross compilers,
14603 # most powerpc-linux boxes support dynamic linking these days and
14604 # people can always --disable-shared, the test was removed, and we
14605 # assume the GNU/Linux dynamic linker is in use.
14606 dynamic_linker='GNU/Linux ld.so'
14613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14614 soname_spec='${libname}${release}${shared_ext}$major'
14615 shlibpath_var=LD_LIBRARY_PATH
14616 shlibpath_overrides_runpath=no
14617 hardcode_into_libs=yes
14618 dynamic_linker='GNU ld.so'
14625 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14627 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14628 dynamic_linker='NetBSD (a.out) ld.so'
14630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14631 soname_spec='${libname}${release}${shared_ext}$major'
14632 dynamic_linker='NetBSD ld.elf_so'
14634 shlibpath_var=LD_LIBRARY_PATH
14635 shlibpath_overrides_runpath=yes
14636 hardcode_into_libs=yes
14641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14642 shlibpath_var=LD_LIBRARY_PATH
14643 shlibpath_overrides_runpath=yes
14650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14651 soname_spec='${libname}${release}${shared_ext}$major'
14652 shlibpath_var=LD_LIBRARY_PATH
14653 shlibpath_overrides_runpath=yes
14660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14661 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14662 shlibpath_var=LD_LIBRARY_PATH
14663 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14665 openbsd2.[89] | openbsd2.[89].*)
14666 shlibpath_overrides_runpath=no
14669 shlibpath_overrides_runpath=yes
14673 shlibpath_overrides_runpath=yes
14678 libname_spec='$name'
14681 library_names_spec='$libname${shared_ext} $libname.a'
14682 dynamic_linker='OS/2 ld.exe'
14683 shlibpath_var=LIBPATH
14686 osf3* | osf4* | osf5*)
14690 soname_spec='${libname}${release}${shared_ext}$major'
14691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14692 shlibpath_var=LD_LIBRARY_PATH
14693 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14694 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14699 soname_spec='${libname}${release}${shared_ext}$major'
14700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14701 shlibpath_var=LD_LIBRARY_PATH
14708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14709 soname_spec='${libname}${release}${shared_ext}$major'
14710 shlibpath_var=LD_LIBRARY_PATH
14711 shlibpath_overrides_runpath=yes
14712 hardcode_into_libs=yes
14713 # ldd complains unless libraries are executable
14714 postinstall_cmds='chmod +x $lib'
14719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14720 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14721 shlibpath_var=LD_LIBRARY_PATH
14722 shlibpath_overrides_runpath=yes
14723 if test "$with_gnu_ld" = yes; then
14729 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14732 soname_spec='${libname}${release}${shared_ext}$major'
14733 shlibpath_var=LD_LIBRARY_PATH
14734 case $host_vendor in
14736 shlibpath_overrides_runpath=no
14738 export_dynamic_flag_spec='${wl}-Blargedynsym'
14739 runpath_var=LD_RUN_PATH
14747 shlibpath_overrides_runpath=no
14748 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14754 if test -d /usr/nec ;then
14756 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14757 soname_spec='$libname${shared_ext}.$major'
14758 shlibpath_var=LD_LIBRARY_PATH
14764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14765 soname_spec='${libname}${release}${shared_ext}$major'
14766 shlibpath_var=LD_LIBRARY_PATH
14773 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14774 echo "${ECHO_T}$dynamic_linker" >&6
14775 test "$dynamic_linker" = no && can_build_shared=no
14777 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14778 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14779 hardcode_action_F77=
14780 if test -n "$hardcode_libdir_flag_spec_F77" || \
14781 test -n "$runpath_var_F77" || \
14782 test "X$hardcode_automatic_F77" = "Xyes" ; then
14784 # We can hardcode non-existant directories.
14785 if test "$hardcode_direct_F77" != no &&
14786 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14787 # have to relink, otherwise we might link with an installed library
14788 # when we should be linking with a yet-to-be-installed one
14789 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14790 test "$hardcode_minus_L_F77" != no; then
14791 # Linking always hardcodes the temporary library directory.
14792 hardcode_action_F77=relink
14794 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14795 hardcode_action_F77=immediate
14798 # We cannot hardcode anything, or else we can only hardcode existing
14800 hardcode_action_F77=unsupported
14802 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14803 echo "${ECHO_T}$hardcode_action_F77" >&6
14805 if test "$hardcode_action_F77" = relink; then
14806 # Fast installation is not supported
14807 enable_fast_install=no
14808 elif test "$shlibpath_overrides_runpath" = yes ||
14809 test "$enable_shared" = no; then
14810 # Fast installation is not necessary
14811 enable_fast_install=needless
14816 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14817 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14818 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14819 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14820 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14821 echo "$as_me:$LINENO: result: yes" >&5
14822 echo "${ECHO_T}yes" >&6
14824 # FIXME - insert some real tests, host_os isn't really good enough
14827 if test -n "$STRIP" ; then
14828 striplib="$STRIP -x"
14829 echo "$as_me:$LINENO: result: yes" >&5
14830 echo "${ECHO_T}yes" >&6
14832 echo "$as_me:$LINENO: result: no" >&5
14833 echo "${ECHO_T}no" >&6
14837 echo "$as_me:$LINENO: result: no" >&5
14838 echo "${ECHO_T}no" >&6
14845 # The else clause should only fire when bootstrapping the
14846 # libtool distribution, otherwise you forgot to ship ltmain.sh
14847 # with your package, and you will get complaints that there are
14848 # no rules to generate ltmain.sh.
14849 if test -f "$ltmain"; then
14850 # See if we are running on zsh, and set the options which allow our commands through
14851 # without removal of \ escapes.
14852 if test -n "${ZSH_VERSION+set}" ; then
14853 setopt NO_GLOB_SUBST
14855 # Now quote all the things that may contain metacharacters while being
14856 # careful not to overquote the AC_SUBSTed values. We take copies of the
14857 # variables and quote the copies for generation of the libtool script.
14858 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14860 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14861 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14862 deplibs_check_method reload_flag reload_cmds need_locks \
14863 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14864 lt_cv_sys_global_symbol_to_c_name_address \
14865 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14866 old_postinstall_cmds old_postuninstall_cmds \
14870 lt_prog_compiler_wl_F77 \
14871 lt_prog_compiler_pic_F77 \
14872 lt_prog_compiler_static_F77 \
14873 lt_prog_compiler_no_builtin_flag_F77 \
14874 export_dynamic_flag_spec_F77 \
14875 thread_safe_flag_spec_F77 \
14876 whole_archive_flag_spec_F77 \
14877 enable_shared_with_static_runtimes_F77 \
14878 old_archive_cmds_F77 \
14879 old_archive_from_new_cmds_F77 \
14880 predep_objects_F77 \
14881 postdep_objects_F77 \
14884 compiler_lib_search_path_F77 \
14886 archive_expsym_cmds_F77 \
14887 postinstall_cmds_F77 \
14888 postuninstall_cmds_F77 \
14889 old_archive_from_expsyms_cmds_F77 \
14890 allow_undefined_flag_F77 \
14891 no_undefined_flag_F77 \
14892 export_symbols_cmds_F77 \
14893 hardcode_libdir_flag_spec_F77 \
14894 hardcode_libdir_flag_spec_ld_F77 \
14895 hardcode_libdir_separator_F77 \
14896 hardcode_automatic_F77 \
14898 module_expsym_cmds_F77 \
14899 lt_cv_prog_compiler_c_o_F77 \
14900 exclude_expsyms_F77 \
14901 include_expsyms_F77; do
14904 old_archive_cmds_F77 | \
14905 old_archive_from_new_cmds_F77 | \
14906 archive_cmds_F77 | \
14907 archive_expsym_cmds_F77 | \
14908 module_cmds_F77 | \
14909 module_expsym_cmds_F77 | \
14910 old_archive_from_expsyms_cmds_F77 | \
14911 export_symbols_cmds_F77 | \
14912 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14913 postinstall_cmds | postuninstall_cmds | \
14914 old_postinstall_cmds | old_postuninstall_cmds | \
14915 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14916 # Double-quote double-evaled strings.
14917 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14920 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14926 *'\$0 --fallback-echo"')
14927 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14933 cat <<__EOF__ >> "$cfgfile"
14934 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14936 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14938 # Shell to use when invoking shell scripts.
14941 # Whether or not to build shared libraries.
14942 build_libtool_libs=$enable_shared
14944 # Whether or not to build static libraries.
14945 build_old_libs=$enable_static
14947 # Whether or not to add -lc for building shared libraries.
14948 build_libtool_need_lc=$archive_cmds_need_lc_F77
14950 # Whether or not to disallow shared libs when runtime libs are static
14951 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14953 # Whether or not to optimize for fast installation.
14954 fast_install=$enable_fast_install
14957 host_alias=$host_alias
14960 # An echo program that does not interpret backslashes.
14965 AR_FLAGS=$lt_AR_FLAGS
14970 # A language-specific compiler.
14971 CC=$lt_compiler_F77
14973 # Is the compiler the GNU C compiler?
14979 # The linker used to build libraries.
14982 # Whether we need hard or soft links.
14985 # A BSD-compatible nm program.
14988 # A symbol stripping program
14991 # Used to examine libraries when file_magic_cmd begins "file"
14992 MAGIC_CMD=$MAGIC_CMD
14994 # Used on cygwin: DLL creation program.
14997 # Used on cygwin: object dumper.
15000 # Used on cygwin: assembler.
15003 # The name of the directory that contains temporary libtool files.
15006 # How to create reloadable object files.
15007 reload_flag=$lt_reload_flag
15008 reload_cmds=$lt_reload_cmds
15010 # How to pass a linker flag through the compiler.
15011 wl=$lt_lt_prog_compiler_wl_F77
15013 # Object file suffix (normally "o").
15014 objext="$ac_objext"
15016 # Old archive suffix (normally "a").
15019 # Shared library suffix (normally ".so").
15020 shrext_cmds='$shrext_cmds'
15022 # Executable file suffix (normally "").
15025 # Additional compiler flags for building library objects.
15026 pic_flag=$lt_lt_prog_compiler_pic_F77
15029 # What is the maximum length of a command?
15030 max_cmd_len=$lt_cv_sys_max_cmd_len
15032 # Does compiler simultaneously support -c and -o options?
15033 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15035 # Must we lock files when doing compilation ?
15036 need_locks=$lt_need_locks
15038 # Do we need the lib prefix for modules?
15039 need_lib_prefix=$need_lib_prefix
15041 # Do we need a version for libraries?
15042 need_version=$need_version
15044 # Whether dlopen is supported.
15045 dlopen_support=$enable_dlopen
15047 # Whether dlopen of programs is supported.
15048 dlopen_self=$enable_dlopen_self
15050 # Whether dlopen of statically linked programs is supported.
15051 dlopen_self_static=$enable_dlopen_self_static
15053 # Compiler flag to prevent dynamic linking.
15054 link_static_flag=$lt_lt_prog_compiler_static_F77
15056 # Compiler flag to turn off builtin functions.
15057 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15059 # Compiler flag to allow reflexive dlopens.
15060 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15062 # Compiler flag to generate shared objects directly from archives.
15063 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15065 # Compiler flag to generate thread-safe objects.
15066 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15068 # Library versioning type.
15069 version_type=$version_type
15071 # Format of library name prefix.
15072 libname_spec=$lt_libname_spec
15074 # List of archive names. First name is the real one, the rest are links.
15075 # The last name is the one that the linker finds with -lNAME.
15076 library_names_spec=$lt_library_names_spec
15078 # The coded name of the library, if different from the real name.
15079 soname_spec=$lt_soname_spec
15081 # Commands used to build and install an old-style archive.
15083 old_archive_cmds=$lt_old_archive_cmds_F77
15084 old_postinstall_cmds=$lt_old_postinstall_cmds
15085 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15087 # Create an old-style archive from a shared archive.
15088 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15090 # Create a temporary old-style archive to link instead of a shared archive.
15091 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15093 # Commands used to build and install a shared archive.
15094 archive_cmds=$lt_archive_cmds_F77
15095 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15096 postinstall_cmds=$lt_postinstall_cmds
15097 postuninstall_cmds=$lt_postuninstall_cmds
15099 # Commands used to build a loadable module (assumed same as above if empty)
15100 module_cmds=$lt_module_cmds_F77
15101 module_expsym_cmds=$lt_module_expsym_cmds_F77
15103 # Commands to strip libraries.
15104 old_striplib=$lt_old_striplib
15105 striplib=$lt_striplib
15107 # Dependencies to place before the objects being linked to create a
15109 predep_objects=$lt_predep_objects_F77
15111 # Dependencies to place after the objects being linked to create a
15113 postdep_objects=$lt_postdep_objects_F77
15115 # Dependencies to place before the objects being linked to create a
15117 predeps=$lt_predeps_F77
15119 # Dependencies to place after the objects being linked to create a
15121 postdeps=$lt_postdeps_F77
15123 # The library search path used internally by the compiler when linking
15124 # a shared library.
15125 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15127 # Method to check whether dependent libraries are shared objects.
15128 deplibs_check_method=$lt_deplibs_check_method
15130 # Command to use when deplibs_check_method == file_magic.
15131 file_magic_cmd=$lt_file_magic_cmd
15133 # Flag that allows shared libraries with undefined symbols to be built.
15134 allow_undefined_flag=$lt_allow_undefined_flag_F77
15136 # Flag that forces no undefined symbols.
15137 no_undefined_flag=$lt_no_undefined_flag_F77
15139 # Commands used to finish a libtool library installation in a directory.
15140 finish_cmds=$lt_finish_cmds
15142 # Same as above, but a single script fragment to be evaled but not shown.
15143 finish_eval=$lt_finish_eval
15145 # Take the output of nm and produce a listing of raw symbols and C names.
15146 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15148 # Transform the output of nm in a proper C declaration
15149 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15151 # Transform the output of nm in a C name address pair
15152 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15154 # This is the shared library runtime path variable.
15155 runpath_var=$runpath_var
15157 # This is the shared library path variable.
15158 shlibpath_var=$shlibpath_var
15160 # Is shlibpath searched before the hard-coded library search path?
15161 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15163 # How to hardcode a shared library path into an executable.
15164 hardcode_action=$hardcode_action_F77
15166 # Whether we should hardcode library paths into libraries.
15167 hardcode_into_libs=$hardcode_into_libs
15169 # Flag to hardcode \$libdir into a binary during linking.
15170 # This must work even if \$libdir does not exist.
15171 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15173 # If ld is used when linking, flag to hardcode \$libdir into
15174 # a binary during linking. This must work even if \$libdir does
15176 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15178 # Whether we need a single -rpath flag with a separated argument.
15179 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15181 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15182 # resulting binary.
15183 hardcode_direct=$hardcode_direct_F77
15185 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15186 # resulting binary.
15187 hardcode_minus_L=$hardcode_minus_L_F77
15189 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15190 # the resulting binary.
15191 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15193 # Set to yes if building a shared library automatically hardcodes DIR into the library
15194 # and all subsequent libraries and executables linked against it.
15195 hardcode_automatic=$hardcode_automatic_F77
15197 # Variables whose values should be saved in libtool wrapper scripts and
15198 # restored at relink time.
15199 variables_saved_for_relink="$variables_saved_for_relink"
15201 # Whether libtool must link a program against all its dependency libraries.
15202 link_all_deplibs=$link_all_deplibs_F77
15204 # Compile-time system search path for libraries
15205 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15207 # Run-time system search path for libraries
15208 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15210 # Fix the shell variable \$srcfile for the compiler.
15211 fix_srcfile_path="$fix_srcfile_path_F77"
15213 # Set to yes if exported symbols are required.
15214 always_export_symbols=$always_export_symbols_F77
15216 # The commands to list exported symbols.
15217 export_symbols_cmds=$lt_export_symbols_cmds_F77
15219 # The commands to extract the exported symbol list from a shared archive.
15220 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15222 # Symbols that should not be listed in the preloaded symbols.
15223 exclude_expsyms=$lt_exclude_expsyms_F77
15225 # Symbols that must always be exported.
15226 include_expsyms=$lt_include_expsyms_F77
15228 # ### END LIBTOOL TAG CONFIG: $tagname
15234 # If there is no Makefile yet, we rely on a make rule to execute
15235 # `config.status --recheck' to rerun these tests and create the
15236 # libtool script then.
15237 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15238 if test -f "$ltmain_in"; then
15239 test -f Makefile && make "$ltmain"
15245 ac_cpp='$CPP $CPPFLAGS'
15246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15258 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15260 ac_cpp='$CPP $CPPFLAGS'
15261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15266 # Source file extension for Java test sources.
15269 # Object file extension for compiled Java test sources.
15273 # Code to be used in simple compile tests
15274 lt_simple_compile_test_code="class foo {}\n"
15276 # Code to be used in simple link tests
15277 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15279 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15281 # If no C compiler was specified, use CC.
15284 # Allow CC to be a program name with arguments.
15288 # Allow CC to be a program name with arguments.
15294 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15295 archive_cmds_need_lc_GCJ=no
15298 lt_prog_compiler_no_builtin_flag_GCJ=
15300 if test "$GCC" = yes; then
15301 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15304 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15305 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15306 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15307 echo $ECHO_N "(cached) $ECHO_C" >&6
15309 lt_cv_prog_compiler_rtti_exceptions=no
15310 ac_outfile=conftest.$ac_objext
15311 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15312 lt_compiler_flag="-fno-rtti -fno-exceptions"
15313 # Insert the option either (1) after the last *FLAGS variable, or
15314 # (2) before a word containing "conftest.", or (3) at the end.
15315 # Note that $ac_compile itself does not contain backslashes and begins
15316 # with a dollar sign (not a hyphen), so the echo should work correctly.
15317 # The option is referenced via a variable to avoid confusing sed.
15318 lt_compile=`echo "$ac_compile" | $SED \
15319 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15320 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15321 -e 's:$: $lt_compiler_flag:'`
15322 (eval echo "\"\$as_me:15322: $lt_compile\"" >&5)
15323 (eval "$lt_compile" 2>conftest.err)
15325 cat conftest.err >&5
15326 echo "$as_me:15326: \$? = $ac_status" >&5
15327 if (exit $ac_status) && test -s "$ac_outfile"; then
15328 # The compiler can only warn and ignore the option if not recognized
15329 # So say no if there are warnings
15330 if test ! -s conftest.err; then
15331 lt_cv_prog_compiler_rtti_exceptions=yes
15337 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15338 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15340 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15341 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15348 lt_prog_compiler_wl_GCJ=
15349 lt_prog_compiler_pic_GCJ=
15350 lt_prog_compiler_static_GCJ=
15352 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15353 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15355 if test "$GCC" = yes; then
15356 lt_prog_compiler_wl_GCJ='-Wl,'
15357 lt_prog_compiler_static_GCJ='-static'
15361 # All AIX code is PIC.
15362 if test "$host_cpu" = ia64; then
15363 # AIX 5 now supports IA64 processor
15364 lt_prog_compiler_static_GCJ='-Bstatic'
15369 # FIXME: we need at least 68020 code to build shared libraries, but
15370 # adding the `-m68020' flag to GCC prevents building anything better,
15372 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15375 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15376 # PIC is the default for these OSes.
15379 mingw* | pw32* | os2*)
15380 # This hack is so that the source file can tell whether it is being
15381 # built for inclusion in a dll (and should export symbols for example).
15382 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15385 darwin* | rhapsody*)
15386 # PIC is the default on this platform
15387 # Common symbols not allowed in MH_DYLIB files
15388 lt_prog_compiler_pic_GCJ='-fno-common'
15392 # Just because we use GCC doesn't mean we suddenly get shared libraries
15393 # on systems that don't support them.
15394 lt_prog_compiler_can_build_shared_GCJ=no
15399 if test -d /usr/nec; then
15400 lt_prog_compiler_pic_GCJ=-Kconform_pic
15405 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15406 # not for PA HP-UX.
15407 case "$host_cpu" in
15412 lt_prog_compiler_pic_GCJ='-fPIC'
15418 lt_prog_compiler_pic_GCJ='-fPIC'
15422 # PORTME Check for flag to pass linker flags through the system compiler.
15425 lt_prog_compiler_wl_GCJ='-Wl,'
15426 if test "$host_cpu" = ia64; then
15427 # AIX 5 now supports IA64 processor
15428 lt_prog_compiler_static_GCJ='-Bstatic'
15430 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15434 # PIC is the default on this platform
15435 # Common symbols not allowed in MH_DYLIB files
15436 case "$cc_basename" in
15438 lt_prog_compiler_pic_GCJ='-qnocommon'
15439 lt_prog_compiler_wl_GCJ='-Wl,'
15444 mingw* | pw32* | os2*)
15445 # This hack is so that the source file can tell whether it is being
15446 # built for inclusion in a dll (and should export symbols for example).
15447 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15450 hpux9* | hpux10* | hpux11*)
15451 lt_prog_compiler_wl_GCJ='-Wl,'
15452 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15453 # not for PA HP-UX.
15454 case "$host_cpu" in
15459 lt_prog_compiler_pic_GCJ='+Z'
15462 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15463 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15466 irix5* | irix6* | nonstopux*)
15467 lt_prog_compiler_wl_GCJ='-Wl,'
15468 # PIC (with -KPIC) is the default.
15469 lt_prog_compiler_static_GCJ='-non_shared'
15473 lt_prog_compiler_pic_GCJ='-KPIC'
15474 lt_prog_compiler_static_GCJ='-Bstatic'
15480 lt_prog_compiler_wl_GCJ='-Wl,'
15481 lt_prog_compiler_pic_GCJ='-KPIC'
15482 lt_prog_compiler_static_GCJ='-static'
15485 lt_prog_compiler_wl_GCJ='-Wl,'
15486 # All Alpha code is PIC.
15487 lt_prog_compiler_static_GCJ='-non_shared'
15492 osf3* | osf4* | osf5*)
15493 lt_prog_compiler_wl_GCJ='-Wl,'
15494 # All OSF/1 code is PIC.
15495 lt_prog_compiler_static_GCJ='-non_shared'
15499 lt_prog_compiler_pic_GCJ='-Kpic'
15500 lt_prog_compiler_static_GCJ='-dn'
15504 lt_prog_compiler_wl_GCJ='-Wl,'
15505 lt_prog_compiler_pic_GCJ='-KPIC'
15506 lt_prog_compiler_static_GCJ='-Bstatic'
15510 lt_prog_compiler_wl_GCJ='-Qoption ld '
15511 lt_prog_compiler_pic_GCJ='-PIC'
15512 lt_prog_compiler_static_GCJ='-Bstatic'
15515 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15516 lt_prog_compiler_wl_GCJ='-Wl,'
15517 lt_prog_compiler_pic_GCJ='-KPIC'
15518 lt_prog_compiler_static_GCJ='-Bstatic'
15522 if test -d /usr/nec ;then
15523 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15524 lt_prog_compiler_static_GCJ='-Bstatic'
15529 lt_prog_compiler_pic_GCJ='-pic'
15530 lt_prog_compiler_static_GCJ='-Bstatic'
15534 lt_prog_compiler_can_build_shared_GCJ=no
15539 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15540 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15543 # Check to make sure the PIC flag actually works.
15545 if test -n "$lt_prog_compiler_pic_GCJ"; then
15547 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15548 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15549 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15550 echo $ECHO_N "(cached) $ECHO_C" >&6
15552 lt_prog_compiler_pic_works_GCJ=no
15553 ac_outfile=conftest.$ac_objext
15554 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15555 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15556 # Insert the option either (1) after the last *FLAGS variable, or
15557 # (2) before a word containing "conftest.", or (3) at the end.
15558 # Note that $ac_compile itself does not contain backslashes and begins
15559 # with a dollar sign (not a hyphen), so the echo should work correctly.
15560 # The option is referenced via a variable to avoid confusing sed.
15561 lt_compile=`echo "$ac_compile" | $SED \
15562 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15563 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15564 -e 's:$: $lt_compiler_flag:'`
15565 (eval echo "\"\$as_me:15565: $lt_compile\"" >&5)
15566 (eval "$lt_compile" 2>conftest.err)
15568 cat conftest.err >&5
15569 echo "$as_me:15569: \$? = $ac_status" >&5
15570 if (exit $ac_status) && test -s "$ac_outfile"; then
15571 # The compiler can only warn and ignore the option if not recognized
15572 # So say no if there are warnings
15573 if test ! -s conftest.err; then
15574 lt_prog_compiler_pic_works_GCJ=yes
15580 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15581 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15583 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15584 case $lt_prog_compiler_pic_GCJ in
15586 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15589 lt_prog_compiler_pic_GCJ=
15590 lt_prog_compiler_can_build_shared_GCJ=no
15595 # For platforms which do not support PIC, -DPIC is meaningless:
15597 lt_prog_compiler_pic_GCJ=
15600 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15604 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15605 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15606 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15607 echo $ECHO_N "(cached) $ECHO_C" >&6
15609 lt_cv_prog_compiler_c_o_GCJ=no
15610 $rm -r conftest 2>/dev/null
15614 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15616 lt_compiler_flag="-o out/conftest2.$ac_objext"
15617 # Insert the option either (1) after the last *FLAGS variable, or
15618 # (2) before a word containing "conftest.", or (3) at the end.
15619 # Note that $ac_compile itself does not contain backslashes and begins
15620 # with a dollar sign (not a hyphen), so the echo should work correctly.
15621 lt_compile=`echo "$ac_compile" | $SED \
15622 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15623 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15624 -e 's:$: $lt_compiler_flag:'`
15625 (eval echo "\"\$as_me:15625: $lt_compile\"" >&5)
15626 (eval "$lt_compile" 2>out/conftest.err)
15628 cat out/conftest.err >&5
15629 echo "$as_me:15629: \$? = $ac_status" >&5
15630 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15632 # The compiler can only warn and ignore the option if not recognized
15633 # So say no if there are warnings
15634 if test ! -s out/conftest.err; then
15635 lt_cv_prog_compiler_c_o_GCJ=yes
15640 # SGI C++ compiler will create directory out/ii_files/ for
15641 # template instantiation
15642 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15643 $rm out/* && rmdir out
15649 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15650 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15653 hard_links="nottested"
15654 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15655 # do not overwrite the value of need_locks provided by the user
15656 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15657 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15660 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15662 ln conftest.a conftest.b 2>&5 || hard_links=no
15663 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15664 echo "$as_me:$LINENO: result: $hard_links" >&5
15665 echo "${ECHO_T}$hard_links" >&6
15666 if test "$hard_links" = no; then
15667 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15668 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15675 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15676 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15679 allow_undefined_flag_GCJ=
15680 enable_shared_with_static_runtimes_GCJ=no
15682 archive_expsym_cmds_GCJ=
15683 old_archive_From_new_cmds_GCJ=
15684 old_archive_from_expsyms_cmds_GCJ=
15685 export_dynamic_flag_spec_GCJ=
15686 whole_archive_flag_spec_GCJ=
15687 thread_safe_flag_spec_GCJ=
15688 hardcode_libdir_flag_spec_GCJ=
15689 hardcode_libdir_flag_spec_ld_GCJ=
15690 hardcode_libdir_separator_GCJ=
15691 hardcode_direct_GCJ=no
15692 hardcode_minus_L_GCJ=no
15693 hardcode_shlibpath_var_GCJ=unsupported
15694 link_all_deplibs_GCJ=unknown
15695 hardcode_automatic_GCJ=no
15697 module_expsym_cmds_GCJ=
15698 always_export_symbols_GCJ=no
15699 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15700 # include_expsyms should be a list of space-separated symbols to be *always*
15701 # included in the symbol list
15702 include_expsyms_GCJ=
15703 # exclude_expsyms can be an extended regexp of symbols to exclude
15704 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15705 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15706 # as well as any symbol that contains `d'.
15707 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15708 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15709 # platforms (ab)use it in PIC code, but their linkers get confused if
15710 # the symbol is explicitly referenced. Since portable code cannot
15711 # rely on this symbol name, it's probably fine to never include it in
15712 # preloaded symbol tables.
15713 extract_expsyms_cmds=
15716 cygwin* | mingw* | pw32*)
15717 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15718 # When not using gcc, we currently assume that we are using
15719 # Microsoft Visual C++.
15720 if test "$GCC" != yes; then
15730 if test "$with_gnu_ld" = yes; then
15731 # If archive_cmds runs LD, not CC, wlarc should be empty
15734 # See if GNU ld supports shared libraries.
15736 aix3* | aix4* | aix5*)
15737 # On AIX/PPC, the GNU linker is very broken
15738 if test "$host_cpu" != ia64; then
15742 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15743 *** to be unable to reliably create shared libraries on AIX.
15744 *** Therefore, libtool is disabling shared libraries support. If you
15745 *** really care for shared libraries, you may want to modify your PATH
15746 *** so that a non-GNU linker is found, and then restart.
15753 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)'
15754 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15755 hardcode_minus_L_GCJ=yes
15757 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15758 # that the semantics of dynamic libraries on AmigaOS, at least up
15759 # to version 4, is to share data among multiple programs linked
15760 # with the same dynamic library. Since this doesn't match the
15761 # behavior of shared libraries on other platforms, we can't use
15767 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15768 allow_undefined_flag_GCJ=unsupported
15769 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15770 # support --undefined. This deserves some investigation. FIXME
15771 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15777 cygwin* | mingw* | pw32*)
15778 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15779 # as there is no search path for DLLs.
15780 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15781 allow_undefined_flag_GCJ=unsupported
15782 always_export_symbols_GCJ=no
15783 enable_shared_with_static_runtimes_GCJ=yes
15784 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15786 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15787 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15788 # If the export-symbols file already is a .def file (1st line
15789 # is EXPORTS), use it as is; otherwise, prepend...
15790 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15791 cp $export_symbols $output_objdir/$soname.def;
15793 echo EXPORTS > $output_objdir/$soname.def;
15794 cat $export_symbols >> $output_objdir/$soname.def;
15795 fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15802 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15803 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15806 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15807 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15812 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15816 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15817 *** create shared libraries on Solaris systems. Therefore, libtool
15818 *** is disabling shared libraries support. We urge you to upgrade GNU
15819 *** binutils to release 2.9.1 or newer. Another option is to modify
15820 *** your PATH or compiler configuration so that the native linker is
15821 *** used, and then restart.
15824 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15825 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15826 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15833 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15835 hardcode_direct_GCJ=yes
15836 hardcode_shlibpath_var_GCJ=no
15840 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15841 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15842 archive_cmds_GCJ="$tmp_archive_cmds"
15843 supports_anon_versioning=no
15844 case `$LD -v 2>/dev/null` in
15845 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15846 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15847 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15848 *\ 2.11.*) ;; # other 2.11 versions
15849 *) supports_anon_versioning=yes ;;
15851 if test $supports_anon_versioning = yes; then
15852 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver;
15853 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15855 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15863 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15864 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15865 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15872 if test "$ld_shlibs_GCJ" = yes; then
15873 runpath_var=LD_RUN_PATH
15874 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15875 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15876 # ancient GNU ld didn't support --whole-archive et. al.
15877 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15878 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15880 whole_archive_flag_spec_GCJ=
15884 # PORTME fill in a description of your system's linker (not GNU ld)
15887 allow_undefined_flag_GCJ=unsupported
15888 always_export_symbols_GCJ=yes
15889 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'
15890 # Note: this linker hardcodes the directories in LIBPATH if there
15891 # are no directories specified by -L.
15892 hardcode_minus_L_GCJ=yes
15893 if test "$GCC" = yes && test -z "$link_static_flag"; then
15894 # Neither direct hardcoding nor static linking is supported with a
15896 hardcode_direct_GCJ=unsupported
15901 if test "$host_cpu" = ia64; then
15902 # On IA64, the linker does run time linking by default, so we don't
15903 # have to do anything special.
15904 aix_use_runtimelinking=no
15905 exp_sym_flag='-Bexport'
15908 # If we're using GNU nm, then we don't want the "-C" option.
15909 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15910 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15911 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'
15913 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'
15915 aix_use_runtimelinking=no
15917 # Test if we are trying to use run time linking or normal
15918 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15919 # need to do runtime linking.
15920 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15921 for ld_flag in $LDFLAGS; do
15922 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15923 aix_use_runtimelinking=yes
15929 exp_sym_flag='-bexport'
15930 no_entry_flag='-bnoentry'
15933 # When large executables or shared objects are built, AIX ld can
15934 # have problems creating the table of contents. If linking a library
15935 # or program results in "error TOC overflow" add -mminimal-toc to
15936 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15937 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15939 archive_cmds_GCJ=''
15940 hardcode_direct_GCJ=yes
15941 hardcode_libdir_separator_GCJ=':'
15942 link_all_deplibs_GCJ=yes
15944 if test "$GCC" = yes; then
15945 case $host_os in aix4.012|aix4.012.*)
15946 # We only want to do this on AIX 4.2 and lower, the check
15947 # below for broken collect2 doesn't work under 4.3+
15948 collect2name=`${CC} -print-prog-name=collect2`
15949 if test -f "$collect2name" && \
15950 strings "$collect2name" | grep resolve_lib_name >/dev/null
15952 # We have reworked collect2
15953 hardcode_direct_GCJ=yes
15955 # We have old collect2
15956 hardcode_direct_GCJ=unsupported
15957 # It fails to find uninstalled libraries when the uninstalled
15958 # path is not listed in the libpath. Setting hardcode_minus_L
15959 # to unsupported forces relinking
15960 hardcode_minus_L_GCJ=yes
15961 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15962 hardcode_libdir_separator_GCJ=
15965 shared_flag='-shared'
15968 if test "$host_cpu" = ia64; then
15969 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15970 # chokes on -Wl,-G. The following line is correct:
15973 if test "$aix_use_runtimelinking" = yes; then
15974 shared_flag='${wl}-G'
15976 shared_flag='${wl}-bM:SRE'
15981 # It seems that -bexpall does not export symbols beginning with
15982 # underscore (_), so it is better to generate a list of symbols to export.
15983 always_export_symbols_GCJ=yes
15984 if test "$aix_use_runtimelinking" = yes; then
15985 # Warning - without using the other runtime loading flags (-brtl),
15986 # -berok will link without error, but may produce a broken library.
15987 allow_undefined_flag_GCJ='-berok'
15988 # Determine the default libpath from the value encoded in an empty executable.
15989 cat >conftest.$ac_ext <<_ACEOF
15992 cat confdefs.h >>conftest.$ac_ext
15993 cat >>conftest.$ac_ext <<_ACEOF
15994 /* end confdefs.h. */
16004 rm -f conftest.$ac_objext conftest$ac_exeext
16005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16006 (eval $ac_link) 2>conftest.er1
16008 grep -v '^ *+' conftest.er1 >conftest.err
16010 cat conftest.err >&5
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); } &&
16013 { ac_try='test -z "$ac_c_werror_flag"
16014 || test ! -s conftest.err'
16015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16016 (eval $ac_try) 2>&5
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); }; } &&
16020 { ac_try='test -s conftest$ac_exeext'
16021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16022 (eval $ac_try) 2>&5
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); }; }; then
16027 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16029 # Check for a 64-bit object if we didn't find anything.
16030 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; }
16033 echo "$as_me: failed program was:" >&5
16034 sed 's/^/| /' conftest.$ac_ext >&5
16037 rm -f conftest.err conftest.$ac_objext \
16038 conftest$ac_exeext conftest.$ac_ext
16039 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16041 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16042 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"
16044 if test "$host_cpu" = ia64; then
16045 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16046 allow_undefined_flag_GCJ="-z nodefs"
16047 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"
16049 # Determine the default libpath from the value encoded in an empty executable.
16050 cat >conftest.$ac_ext <<_ACEOF
16053 cat confdefs.h >>conftest.$ac_ext
16054 cat >>conftest.$ac_ext <<_ACEOF
16055 /* end confdefs.h. */
16065 rm -f conftest.$ac_objext conftest$ac_exeext
16066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16067 (eval $ac_link) 2>conftest.er1
16069 grep -v '^ *+' conftest.er1 >conftest.err
16071 cat conftest.err >&5
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); } &&
16074 { ac_try='test -z "$ac_c_werror_flag"
16075 || test ! -s conftest.err'
16076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16077 (eval $ac_try) 2>&5
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); }; } &&
16081 { ac_try='test -s conftest$ac_exeext'
16082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16083 (eval $ac_try) 2>&5
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); }; }; then
16088 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16090 # Check for a 64-bit object if we didn't find anything.
16091 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; }
16094 echo "$as_me: failed program was:" >&5
16095 sed 's/^/| /' conftest.$ac_ext >&5
16098 rm -f conftest.err conftest.$ac_objext \
16099 conftest$ac_exeext conftest.$ac_ext
16100 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16102 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16103 # Warning - without using the other run time loading flags,
16104 # -berok will link without error, but may produce a broken library.
16105 no_undefined_flag_GCJ=' ${wl}-bernotok'
16106 allow_undefined_flag_GCJ=' ${wl}-berok'
16107 # -bexpall does not export symbols beginning with underscore (_)
16108 always_export_symbols_GCJ=yes
16109 # Exported symbols can be pulled into shared objects from archives
16110 whole_archive_flag_spec_GCJ=' '
16111 archive_cmds_need_lc_GCJ=yes
16112 # This is similar to how AIX traditionally builds it's shared libraries.
16113 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'
16119 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)'
16120 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16121 hardcode_minus_L_GCJ=yes
16122 # see comment about different semantics on the GNU ld section
16127 export_dynamic_flag_spec_GCJ=-rdynamic
16130 cygwin* | mingw* | pw32*)
16131 # When not using gcc, we currently assume that we are using
16132 # Microsoft Visual C++.
16133 # hardcode_libdir_flag_spec is actually meaningless, as there is
16134 # no search path for DLLs.
16135 hardcode_libdir_flag_spec_GCJ=' '
16136 allow_undefined_flag_GCJ=unsupported
16137 # Tell ltmain to make .lib files, not .a files.
16139 # Tell ltmain to make .dll files, not .so files.
16141 # FIXME: Setting linknames here is a bad hack.
16142 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames='
16143 # The linker will automatically build a .lib file if we build a DLL.
16144 old_archive_From_new_cmds_GCJ='true'
16145 # FIXME: Should let the user specify the lib program.
16146 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16147 fix_srcfile_path='`cygpath -w "$srcfile"`'
16148 enable_shared_with_static_runtimes_GCJ=yes
16151 darwin* | rhapsody*)
16153 rhapsody* | darwin1.[012])
16154 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16157 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16158 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16160 case ${MACOSX_DEPLOYMENT_TARGET} in
16162 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16165 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16171 archive_cmds_need_lc_GCJ=no
16172 hardcode_direct_GCJ=no
16173 hardcode_automatic_GCJ=yes
16174 hardcode_shlibpath_var_GCJ=unsupported
16175 whole_archive_flag_spec_GCJ=''
16176 link_all_deplibs_GCJ=yes
16177 if test "$GCC" = yes ; then
16178 output_verbose_link_cmd='echo'
16179 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16180 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16181 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16182 archive_expsym_cmds_GCJ='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}'
16183 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16185 case "$cc_basename" in
16187 output_verbose_link_cmd='echo'
16188 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16189 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16190 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16191 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16192 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16202 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16203 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16204 hardcode_shlibpath_var_GCJ=no
16211 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16212 # support. Future versions do this automatically, but an explicit c++rt0.o
16213 # does not break anything, and helps significantly (at the cost of a little
16216 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16217 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16218 hardcode_direct_GCJ=yes
16219 hardcode_shlibpath_var_GCJ=no
16222 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16224 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16225 hardcode_direct_GCJ=yes
16226 hardcode_minus_L_GCJ=yes
16227 hardcode_shlibpath_var_GCJ=no
16230 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16231 freebsd* | kfreebsd*-gnu)
16232 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16233 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16234 hardcode_direct_GCJ=yes
16235 hardcode_shlibpath_var_GCJ=no
16239 if test "$GCC" = yes; then
16240 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'
16242 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'
16244 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16245 hardcode_libdir_separator_GCJ=:
16246 hardcode_direct_GCJ=yes
16248 # hardcode_minus_L: Not really in the search PATH,
16249 # but as the default location of the library.
16250 hardcode_minus_L_GCJ=yes
16251 export_dynamic_flag_spec_GCJ='${wl}-E'
16255 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16256 case "$host_cpu" in
16258 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16261 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16265 case "$host_cpu" in
16267 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16270 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16274 if test "$with_gnu_ld" = no; then
16275 case "$host_cpu" in
16277 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16278 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16279 hardcode_libdir_separator_GCJ=:
16280 hardcode_direct_GCJ=no
16281 hardcode_shlibpath_var_GCJ=no
16284 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16285 hardcode_direct_GCJ=no
16286 hardcode_shlibpath_var_GCJ=no
16288 # hardcode_minus_L: Not really in the search PATH,
16289 # but as the default location of the library.
16290 hardcode_minus_L_GCJ=yes
16293 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16294 hardcode_libdir_separator_GCJ=:
16295 hardcode_direct_GCJ=yes
16296 export_dynamic_flag_spec_GCJ='${wl}-E'
16298 # hardcode_minus_L: Not really in the search PATH,
16299 # but as the default location of the library.
16300 hardcode_minus_L_GCJ=yes
16306 irix5* | irix6* | nonstopux*)
16307 if test "$GCC" = yes; then
16308 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'
16310 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'
16311 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16313 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16314 hardcode_libdir_separator_GCJ=:
16315 link_all_deplibs_GCJ=yes
16319 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16320 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16322 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16324 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16325 hardcode_direct_GCJ=yes
16326 hardcode_shlibpath_var_GCJ=no
16330 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16331 hardcode_direct_GCJ=yes
16332 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16333 hardcode_libdir_separator_GCJ=:
16334 hardcode_shlibpath_var_GCJ=no
16338 hardcode_direct_GCJ=yes
16339 hardcode_shlibpath_var_GCJ=no
16340 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16341 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16342 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16343 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16344 export_dynamic_flag_spec_GCJ='${wl}-E'
16347 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16348 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16349 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16352 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16353 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16360 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16361 hardcode_minus_L_GCJ=yes
16362 allow_undefined_flag_GCJ=unsupported
16363 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'
16364 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16368 if test "$GCC" = yes; then
16369 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16370 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'
16372 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16373 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'
16375 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16376 hardcode_libdir_separator_GCJ=:
16379 osf4* | osf5*) # as osf3* with the addition of -msym flag
16380 if test "$GCC" = yes; then
16381 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16382 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'
16383 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16385 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16386 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'
16387 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; $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'
16388 # Both c and cxx compiler support -rpath directly
16389 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16391 hardcode_libdir_separator_GCJ=:
16395 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16396 hardcode_shlibpath_var_GCJ=no
16397 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16398 runpath_var=LD_RUN_PATH
16399 hardcode_runpath_var=yes
16403 no_undefined_flag_GCJ=' -z text'
16404 if test "$GCC" = yes; then
16405 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16406 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags;$rm $lib.exp'
16408 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16409 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
16411 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16412 hardcode_shlibpath_var_GCJ=no
16414 solaris2.[0-5] | solaris2.[0-5].*) ;;
16415 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16416 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16418 link_all_deplibs_GCJ=yes
16422 if test "x$host_vendor" = xsequent; then
16423 # Use $CC to link under sequent, because it throws in some extra .o
16424 # files that make .init and .fini sections work.
16425 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16427 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16429 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16430 hardcode_direct_GCJ=yes
16431 hardcode_minus_L_GCJ=yes
16432 hardcode_shlibpath_var_GCJ=no
16436 case $host_vendor in
16438 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16439 hardcode_direct_GCJ=yes # is this really true???
16442 ## LD is ld it makes a PLAMLIB
16443 ## CC just makes a GrossModule.
16444 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16445 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16446 hardcode_direct_GCJ=no
16449 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16450 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16453 runpath_var='LD_RUN_PATH'
16454 hardcode_shlibpath_var_GCJ=no
16458 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16459 hardcode_shlibpath_var_GCJ=no
16460 export_dynamic_flag_spec_GCJ='-Bexport'
16464 if test -d /usr/nec; then
16465 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16466 hardcode_shlibpath_var_GCJ=no
16467 runpath_var=LD_RUN_PATH
16468 hardcode_runpath_var=yes
16474 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16475 hardcode_direct_GCJ=yes
16476 hardcode_minus_L_GCJ=no
16477 hardcode_shlibpath_var_GCJ=no
16478 hardcode_runpath_var=yes
16479 runpath_var=LD_RUN_PATH
16482 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16483 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16484 if test "$GCC" = yes; then
16485 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16487 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16489 runpath_var='LD_RUN_PATH'
16490 hardcode_shlibpath_var_GCJ=no
16494 no_undefined_flag_GCJ=' -z text'
16495 # $CC -shared without GNU ld will not create a library from C++
16496 # object files and a static libstdc++, better avoid it by now
16497 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16498 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
16499 hardcode_libdir_flag_spec_GCJ=
16500 hardcode_shlibpath_var_GCJ=no
16501 runpath_var='LD_RUN_PATH'
16505 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16506 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16507 hardcode_shlibpath_var_GCJ=no
16516 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16517 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16518 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16520 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16521 if test "$GCC" = yes; then
16522 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16526 # Do we need to explicitly link libc?
16528 case "x$archive_cmds_need_lc_GCJ" in
16530 # Assume -lc should be added
16531 archive_cmds_need_lc_GCJ=yes
16533 if test "$enable_shared" = yes && test "$GCC" = yes; then
16534 case $archive_cmds_GCJ in
16536 # FIXME: we may have to deal with multi-command sequences.
16539 # Test whether the compiler implicitly links with -lc since on some
16540 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16541 # to ld, don't add -lc before -lgcc.
16542 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16543 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16545 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16548 (eval $ac_compile) 2>&5
16550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); } 2>conftest.err; then
16554 libobjs=conftest.$ac_objext
16556 wl=$lt_prog_compiler_wl_GCJ
16562 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16563 allow_undefined_flag_GCJ=
16564 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16565 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); }
16570 archive_cmds_need_lc_GCJ=no
16572 archive_cmds_need_lc_GCJ=yes
16574 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16576 cat conftest.err 1>&5
16579 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16580 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16587 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16588 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16589 library_names_spec=
16590 libname_spec='lib$name'
16594 postuninstall_cmds=
16598 shlibpath_overrides_runpath=unknown
16600 dynamic_linker="$host_os ld.so"
16601 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16602 if test "$GCC" = yes; then
16603 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16604 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16605 # if the path contains ";" then we assume it to be the separator
16606 # otherwise default to the standard path separator (i.e. ":") - it is
16607 # assumed that no part of a normal pathname contains ";" but that should
16608 # okay in the real world where ";" in dirpaths is itself problematic.
16609 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16611 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16614 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16616 need_lib_prefix=unknown
16617 hardcode_into_libs=no
16619 # when you set need_version to no, make sure it does not cause -set_version
16620 # flags to be left without arguments
16621 need_version=unknown
16626 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16627 shlibpath_var=LIBPATH
16629 # AIX 3 has no versioning support, so we append a major version to the name.
16630 soname_spec='${libname}${release}${shared_ext}$major'
16637 hardcode_into_libs=yes
16638 if test "$host_cpu" = ia64; then
16639 # AIX 5 supports IA64
16640 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16641 shlibpath_var=LD_LIBRARY_PATH
16643 # With GCC up to 2.95.x, collect2 would create an import file
16644 # for dependence libraries. The import file would start with
16645 # the line `#! .'. This would cause the generated library to
16646 # depend on `.', always an invalid library. This was fixed in
16647 # development snapshots of GCC prior to 3.0.
16649 aix4 | aix4.[01] | aix4.[01].*)
16650 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16652 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16655 can_build_shared=no
16659 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16660 # soname into executable. Probably we can add versioning support to
16661 # collect2, so additional links can be useful in future.
16662 if test "$aix_use_runtimelinking" = yes; then
16663 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16664 # instead of lib<name>.a to let people know that these are not
16665 # typical AIX shared libraries.
16666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16668 # We preserve .a as extension for shared libraries through AIX4.2
16669 # and later when we are not doing run time linking.
16670 library_names_spec='${libname}${release}.a $libname.a'
16671 soname_spec='${libname}${release}${shared_ext}$major'
16673 shlibpath_var=LIBPATH
16678 library_names_spec='$libname.ixlibrary $libname.a'
16679 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16680 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'
16684 library_names_spec='${libname}${shared_ext}'
16685 dynamic_linker="$host_os ld.so"
16686 shlibpath_var=LIBRARY_PATH
16692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16693 soname_spec='${libname}${release}${shared_ext}$major'
16694 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16695 shlibpath_var=LD_LIBRARY_PATH
16696 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16697 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16698 # the default ld.so.conf also contains /usr/contrib/lib and
16699 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16700 # libtool to hard-code these into programs
16703 cygwin* | mingw* | pw32*)
16704 version_type=windows
16709 case $GCC,$host_os in
16710 yes,cygwin* | yes,mingw* | yes,pw32*)
16711 library_names_spec='$libname.dll.a'
16712 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16713 postinstall_cmds='base_file=`basename \${file}`;
16714 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
16715 dldir=$destdir/`dirname \$dlpath`;
16716 test -d \$dldir || mkdir -p \$dldir;
16717 $install_prog $dir/$dlname \$dldir/$dlname'
16718 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
16719 dlpath=$dir/\$dldll;
16721 shlibpath_overrides_runpath=yes
16725 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16726 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16727 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16730 # MinGW DLLs use traditional 'lib' prefix
16731 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16732 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16733 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16734 # It is most probably a Windows format PATH printed by
16735 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16736 # path with ; separators, and with drive letters. We can handle the
16737 # drive letters (cygwin fileutils understands them), so leave them,
16738 # especially as we might pass files found there to a mingw objdump,
16739 # which wouldn't understand a cygwinified path. Ahh.
16740 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16742 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16746 # pw32 DLLs use 'pw' prefix rather than 'lib'
16747 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16753 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16756 dynamic_linker='Win32 ld.exe'
16757 # FIXME: first we should search . and the directory the executable is in
16761 darwin* | rhapsody*)
16762 dynamic_linker="$host_os dyld"
16763 version_type=darwin
16766 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16767 soname_spec='${libname}${release}${major}$shared_ext'
16768 shlibpath_overrides_runpath=yes
16769 shlibpath_var=DYLD_LIBRARY_PATH
16770 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16771 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16772 if test "$GCC" = yes; then
16773 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"`
16775 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16777 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16785 soname_spec='${libname}${release}${shared_ext}$major'
16786 shlibpath_var=LD_LIBRARY_PATH
16797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16798 soname_spec='${libname}${release}${shared_ext}$major'
16799 shlibpath_var=LD_LIBRARY_PATH
16800 shlibpath_overrides_runpath=no
16801 hardcode_into_libs=yes
16802 dynamic_linker='GNU ld.so'
16806 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16807 version_type=freebsd-$objformat
16808 case $version_type in
16810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16815 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16819 shlibpath_var=LD_LIBRARY_PATH
16822 shlibpath_overrides_runpath=yes
16824 freebsd3.01* | freebsdelf3.01*)
16825 shlibpath_overrides_runpath=yes
16826 hardcode_into_libs=yes
16829 shlibpath_overrides_runpath=no
16830 hardcode_into_libs=yes
16839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16840 soname_spec='${libname}${release}${shared_ext}$major'
16841 shlibpath_var=LD_LIBRARY_PATH
16842 hardcode_into_libs=yes
16845 hpux9* | hpux10* | hpux11*)
16846 # Give a soname corresponding to the major version so that dld.sl refuses to
16847 # link against other versions.
16851 case "$host_cpu" in
16854 hardcode_into_libs=yes
16855 dynamic_linker="$host_os dld.so"
16856 shlibpath_var=LD_LIBRARY_PATH
16857 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16859 soname_spec='${libname}${release}${shared_ext}$major'
16860 if test "X$HPUX_IA64_MODE" = X32; then
16861 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16863 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16865 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16869 hardcode_into_libs=yes
16870 dynamic_linker="$host_os dld.sl"
16871 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16872 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16874 soname_spec='${libname}${release}${shared_ext}$major'
16875 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16876 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16880 dynamic_linker="$host_os dld.sl"
16881 shlibpath_var=SHLIB_PATH
16882 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16884 soname_spec='${libname}${release}${shared_ext}$major'
16887 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16888 postinstall_cmds='chmod 555 $lib'
16891 irix5* | irix6* | nonstopux*)
16893 nonstopux*) version_type=nonstopux ;;
16895 if test "$lt_cv_prog_gnu_ld" = yes; then
16903 soname_spec='${libname}${release}${shared_ext}$major'
16904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16906 irix5* | nonstopux*)
16907 libsuff= shlibsuff=
16910 case $LD in # libtool.m4 will add one of these switches to LD
16911 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16912 libsuff= shlibsuff= libmagic=32-bit;;
16913 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16914 libsuff=32 shlibsuff=N32 libmagic=N32;;
16915 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16916 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16917 *) libsuff= shlibsuff= libmagic=never-match;;
16921 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16922 shlibpath_overrides_runpath=no
16923 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16924 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16925 hardcode_into_libs=yes
16928 # No shared lib support for Linux oldld, aout, or coff.
16929 linux*oldld* | linux*aout* | linux*coff*)
16933 # This must be Linux ELF.
16938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16939 soname_spec='${libname}${release}${shared_ext}$major'
16940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16941 shlibpath_var=LD_LIBRARY_PATH
16942 shlibpath_overrides_runpath=no
16943 # This implies no fast_install, which is unacceptable.
16944 # Some rework will be needed to allow for fast_install
16945 # before this can be enabled.
16946 hardcode_into_libs=yes
16948 # Append ld.so.conf contents to the search path
16949 if test -f /etc/ld.so.conf; then
16950 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16951 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16954 # We used to test for /lib/ld.so.1 and disable shared libraries on
16955 # powerpc, because MkLinux only supported shared libraries with the
16956 # GNU dynamic linker. Since this was broken with cross compilers,
16957 # most powerpc-linux boxes support dynamic linking these days and
16958 # people can always --disable-shared, the test was removed, and we
16959 # assume the GNU/Linux dynamic linker is in use.
16960 dynamic_linker='GNU/Linux ld.so'
16967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16968 soname_spec='${libname}${release}${shared_ext}$major'
16969 shlibpath_var=LD_LIBRARY_PATH
16970 shlibpath_overrides_runpath=no
16971 hardcode_into_libs=yes
16972 dynamic_linker='GNU ld.so'
16979 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16981 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16982 dynamic_linker='NetBSD (a.out) ld.so'
16984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16985 soname_spec='${libname}${release}${shared_ext}$major'
16986 dynamic_linker='NetBSD ld.elf_so'
16988 shlibpath_var=LD_LIBRARY_PATH
16989 shlibpath_overrides_runpath=yes
16990 hardcode_into_libs=yes
16995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16996 shlibpath_var=LD_LIBRARY_PATH
16997 shlibpath_overrides_runpath=yes
17004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17005 soname_spec='${libname}${release}${shared_ext}$major'
17006 shlibpath_var=LD_LIBRARY_PATH
17007 shlibpath_overrides_runpath=yes
17014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17015 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17016 shlibpath_var=LD_LIBRARY_PATH
17017 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17019 openbsd2.[89] | openbsd2.[89].*)
17020 shlibpath_overrides_runpath=no
17023 shlibpath_overrides_runpath=yes
17027 shlibpath_overrides_runpath=yes
17032 libname_spec='$name'
17035 library_names_spec='$libname${shared_ext} $libname.a'
17036 dynamic_linker='OS/2 ld.exe'
17037 shlibpath_var=LIBPATH
17040 osf3* | osf4* | osf5*)
17044 soname_spec='${libname}${release}${shared_ext}$major'
17045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17046 shlibpath_var=LD_LIBRARY_PATH
17047 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17048 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17053 soname_spec='${libname}${release}${shared_ext}$major'
17054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17055 shlibpath_var=LD_LIBRARY_PATH
17062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17063 soname_spec='${libname}${release}${shared_ext}$major'
17064 shlibpath_var=LD_LIBRARY_PATH
17065 shlibpath_overrides_runpath=yes
17066 hardcode_into_libs=yes
17067 # ldd complains unless libraries are executable
17068 postinstall_cmds='chmod +x $lib'
17073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17074 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17075 shlibpath_var=LD_LIBRARY_PATH
17076 shlibpath_overrides_runpath=yes
17077 if test "$with_gnu_ld" = yes; then
17083 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17086 soname_spec='${libname}${release}${shared_ext}$major'
17087 shlibpath_var=LD_LIBRARY_PATH
17088 case $host_vendor in
17090 shlibpath_overrides_runpath=no
17092 export_dynamic_flag_spec='${wl}-Blargedynsym'
17093 runpath_var=LD_RUN_PATH
17101 shlibpath_overrides_runpath=no
17102 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17108 if test -d /usr/nec ;then
17110 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17111 soname_spec='$libname${shared_ext}.$major'
17112 shlibpath_var=LD_LIBRARY_PATH
17118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17119 soname_spec='${libname}${release}${shared_ext}$major'
17120 shlibpath_var=LD_LIBRARY_PATH
17127 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17128 echo "${ECHO_T}$dynamic_linker" >&6
17129 test "$dynamic_linker" = no && can_build_shared=no
17131 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17132 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17133 hardcode_action_GCJ=
17134 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17135 test -n "$runpath_var_GCJ" || \
17136 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17138 # We can hardcode non-existant directories.
17139 if test "$hardcode_direct_GCJ" != no &&
17140 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17141 # have to relink, otherwise we might link with an installed library
17142 # when we should be linking with a yet-to-be-installed one
17143 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17144 test "$hardcode_minus_L_GCJ" != no; then
17145 # Linking always hardcodes the temporary library directory.
17146 hardcode_action_GCJ=relink
17148 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17149 hardcode_action_GCJ=immediate
17152 # We cannot hardcode anything, or else we can only hardcode existing
17154 hardcode_action_GCJ=unsupported
17156 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17157 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17159 if test "$hardcode_action_GCJ" = relink; then
17160 # Fast installation is not supported
17161 enable_fast_install=no
17162 elif test "$shlibpath_overrides_runpath" = yes ||
17163 test "$enable_shared" = no; then
17164 # Fast installation is not necessary
17165 enable_fast_install=needless
17170 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17171 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17172 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17173 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17174 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17175 echo "$as_me:$LINENO: result: yes" >&5
17176 echo "${ECHO_T}yes" >&6
17178 # FIXME - insert some real tests, host_os isn't really good enough
17181 if test -n "$STRIP" ; then
17182 striplib="$STRIP -x"
17183 echo "$as_me:$LINENO: result: yes" >&5
17184 echo "${ECHO_T}yes" >&6
17186 echo "$as_me:$LINENO: result: no" >&5
17187 echo "${ECHO_T}no" >&6
17191 echo "$as_me:$LINENO: result: no" >&5
17192 echo "${ECHO_T}no" >&6
17197 if test "x$enable_dlopen" != xyes; then
17198 enable_dlopen=unknown
17199 enable_dlopen_self=unknown
17200 enable_dlopen_self_static=unknown
17207 lt_cv_dlopen="load_add_on"
17209 lt_cv_dlopen_self=yes
17213 lt_cv_dlopen="LoadLibrary"
17218 lt_cv_dlopen="dlopen"
17223 # if libdl is installed we need to link against it
17224 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17225 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17226 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17227 echo $ECHO_N "(cached) $ECHO_C" >&6
17229 ac_check_lib_save_LIBS=$LIBS
17231 cat >conftest.$ac_ext <<_ACEOF
17234 cat confdefs.h >>conftest.$ac_ext
17235 cat >>conftest.$ac_ext <<_ACEOF
17236 /* end confdefs.h. */
17238 /* Override any gcc2 internal prototype to avoid an error. */
17242 /* We use char because int might match the return type of a gcc2
17243 builtin and then its argument prototype would still apply. */
17253 rm -f conftest.$ac_objext conftest$ac_exeext
17254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17255 (eval $ac_link) 2>conftest.er1
17257 grep -v '^ *+' conftest.er1 >conftest.err
17259 cat conftest.err >&5
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); } &&
17262 { ac_try='test -z "$ac_c_werror_flag"
17263 || test ! -s conftest.err'
17264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17265 (eval $ac_try) 2>&5
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); }; } &&
17269 { ac_try='test -s conftest$ac_exeext'
17270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17271 (eval $ac_try) 2>&5
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); }; }; then
17275 ac_cv_lib_dl_dlopen=yes
17277 echo "$as_me: failed program was:" >&5
17278 sed 's/^/| /' conftest.$ac_ext >&5
17280 ac_cv_lib_dl_dlopen=no
17282 rm -f conftest.err conftest.$ac_objext \
17283 conftest$ac_exeext conftest.$ac_ext
17284 LIBS=$ac_check_lib_save_LIBS
17286 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17287 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17288 if test $ac_cv_lib_dl_dlopen = yes; then
17289 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17292 lt_cv_dlopen="dyld"
17294 lt_cv_dlopen_self=yes
17301 echo "$as_me:$LINENO: checking for shl_load" >&5
17302 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17303 if test "${ac_cv_func_shl_load+set}" = set; then
17304 echo $ECHO_N "(cached) $ECHO_C" >&6
17306 cat >conftest.$ac_ext <<_ACEOF
17309 cat confdefs.h >>conftest.$ac_ext
17310 cat >>conftest.$ac_ext <<_ACEOF
17311 /* end confdefs.h. */
17312 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17314 #define shl_load innocuous_shl_load
17316 /* System header to define __stub macros and hopefully few prototypes,
17317 which can conflict with char shl_load (); below.
17318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17319 <limits.h> exists even on freestanding compilers. */
17322 # include <limits.h>
17324 # include <assert.h>
17329 /* Override any gcc2 internal prototype to avoid an error. */
17334 /* We use char because int might match the return type of a gcc2
17335 builtin and then its argument prototype would still apply. */
17337 /* The GNU C library defines this for functions which it implements
17338 to always fail with ENOSYS. Some functions are actually named
17339 something starting with __ and the normal name is an alias. */
17340 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17343 char (*f) () = shl_load;
17352 return f != shl_load;
17357 rm -f conftest.$ac_objext conftest$ac_exeext
17358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17359 (eval $ac_link) 2>conftest.er1
17361 grep -v '^ *+' conftest.er1 >conftest.err
17363 cat conftest.err >&5
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); } &&
17366 { ac_try='test -z "$ac_c_werror_flag"
17367 || test ! -s conftest.err'
17368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17369 (eval $ac_try) 2>&5
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); }; } &&
17373 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17379 ac_cv_func_shl_load=yes
17381 echo "$as_me: failed program was:" >&5
17382 sed 's/^/| /' conftest.$ac_ext >&5
17384 ac_cv_func_shl_load=no
17386 rm -f conftest.err conftest.$ac_objext \
17387 conftest$ac_exeext conftest.$ac_ext
17389 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17390 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17391 if test $ac_cv_func_shl_load = yes; then
17392 lt_cv_dlopen="shl_load"
17394 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17395 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17396 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17397 echo $ECHO_N "(cached) $ECHO_C" >&6
17399 ac_check_lib_save_LIBS=$LIBS
17401 cat >conftest.$ac_ext <<_ACEOF
17404 cat confdefs.h >>conftest.$ac_ext
17405 cat >>conftest.$ac_ext <<_ACEOF
17406 /* end confdefs.h. */
17408 /* Override any gcc2 internal prototype to avoid an error. */
17412 /* We use char because int might match the return type of a gcc2
17413 builtin and then its argument prototype would still apply. */
17423 rm -f conftest.$ac_objext conftest$ac_exeext
17424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17425 (eval $ac_link) 2>conftest.er1
17427 grep -v '^ *+' conftest.er1 >conftest.err
17429 cat conftest.err >&5
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); } &&
17432 { ac_try='test -z "$ac_c_werror_flag"
17433 || test ! -s conftest.err'
17434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17435 (eval $ac_try) 2>&5
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); }; } &&
17439 { ac_try='test -s conftest$ac_exeext'
17440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17441 (eval $ac_try) 2>&5
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); }; }; then
17445 ac_cv_lib_dld_shl_load=yes
17447 echo "$as_me: failed program was:" >&5
17448 sed 's/^/| /' conftest.$ac_ext >&5
17450 ac_cv_lib_dld_shl_load=no
17452 rm -f conftest.err conftest.$ac_objext \
17453 conftest$ac_exeext conftest.$ac_ext
17454 LIBS=$ac_check_lib_save_LIBS
17456 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17457 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17458 if test $ac_cv_lib_dld_shl_load = yes; then
17459 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17461 echo "$as_me:$LINENO: checking for dlopen" >&5
17462 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17463 if test "${ac_cv_func_dlopen+set}" = set; then
17464 echo $ECHO_N "(cached) $ECHO_C" >&6
17466 cat >conftest.$ac_ext <<_ACEOF
17469 cat confdefs.h >>conftest.$ac_ext
17470 cat >>conftest.$ac_ext <<_ACEOF
17471 /* end confdefs.h. */
17472 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17474 #define dlopen innocuous_dlopen
17476 /* System header to define __stub macros and hopefully few prototypes,
17477 which can conflict with char dlopen (); below.
17478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17479 <limits.h> exists even on freestanding compilers. */
17482 # include <limits.h>
17484 # include <assert.h>
17489 /* Override any gcc2 internal prototype to avoid an error. */
17494 /* We use char because int might match the return type of a gcc2
17495 builtin and then its argument prototype would still apply. */
17497 /* The GNU C library defines this for functions which it implements
17498 to always fail with ENOSYS. Some functions are actually named
17499 something starting with __ and the normal name is an alias. */
17500 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17503 char (*f) () = dlopen;
17512 return f != dlopen;
17517 rm -f conftest.$ac_objext conftest$ac_exeext
17518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17519 (eval $ac_link) 2>conftest.er1
17521 grep -v '^ *+' conftest.er1 >conftest.err
17523 cat conftest.err >&5
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); } &&
17526 { ac_try='test -z "$ac_c_werror_flag"
17527 || test ! -s conftest.err'
17528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17529 (eval $ac_try) 2>&5
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); }; } &&
17533 { ac_try='test -s conftest$ac_exeext'
17534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535 (eval $ac_try) 2>&5
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }; }; then
17539 ac_cv_func_dlopen=yes
17541 echo "$as_me: failed program was:" >&5
17542 sed 's/^/| /' conftest.$ac_ext >&5
17544 ac_cv_func_dlopen=no
17546 rm -f conftest.err conftest.$ac_objext \
17547 conftest$ac_exeext conftest.$ac_ext
17549 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17550 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17551 if test $ac_cv_func_dlopen = yes; then
17552 lt_cv_dlopen="dlopen"
17554 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17555 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17556 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17557 echo $ECHO_N "(cached) $ECHO_C" >&6
17559 ac_check_lib_save_LIBS=$LIBS
17561 cat >conftest.$ac_ext <<_ACEOF
17564 cat confdefs.h >>conftest.$ac_ext
17565 cat >>conftest.$ac_ext <<_ACEOF
17566 /* end confdefs.h. */
17568 /* Override any gcc2 internal prototype to avoid an error. */
17572 /* We use char because int might match the return type of a gcc2
17573 builtin and then its argument prototype would still apply. */
17583 rm -f conftest.$ac_objext conftest$ac_exeext
17584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17585 (eval $ac_link) 2>conftest.er1
17587 grep -v '^ *+' conftest.er1 >conftest.err
17589 cat conftest.err >&5
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); } &&
17592 { ac_try='test -z "$ac_c_werror_flag"
17593 || test ! -s conftest.err'
17594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17595 (eval $ac_try) 2>&5
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); }; } &&
17599 { ac_try='test -s conftest$ac_exeext'
17600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17601 (eval $ac_try) 2>&5
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); }; }; then
17605 ac_cv_lib_dl_dlopen=yes
17607 echo "$as_me: failed program was:" >&5
17608 sed 's/^/| /' conftest.$ac_ext >&5
17610 ac_cv_lib_dl_dlopen=no
17612 rm -f conftest.err conftest.$ac_objext \
17613 conftest$ac_exeext conftest.$ac_ext
17614 LIBS=$ac_check_lib_save_LIBS
17616 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17617 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17618 if test $ac_cv_lib_dl_dlopen = yes; then
17619 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17621 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17622 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17623 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17624 echo $ECHO_N "(cached) $ECHO_C" >&6
17626 ac_check_lib_save_LIBS=$LIBS
17627 LIBS="-lsvld $LIBS"
17628 cat >conftest.$ac_ext <<_ACEOF
17631 cat confdefs.h >>conftest.$ac_ext
17632 cat >>conftest.$ac_ext <<_ACEOF
17633 /* end confdefs.h. */
17635 /* Override any gcc2 internal prototype to avoid an error. */
17639 /* We use char because int might match the return type of a gcc2
17640 builtin and then its argument prototype would still apply. */
17650 rm -f conftest.$ac_objext conftest$ac_exeext
17651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17652 (eval $ac_link) 2>conftest.er1
17654 grep -v '^ *+' conftest.er1 >conftest.err
17656 cat conftest.err >&5
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); } &&
17659 { ac_try='test -z "$ac_c_werror_flag"
17660 || test ! -s conftest.err'
17661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17662 (eval $ac_try) 2>&5
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); }; } &&
17666 { ac_try='test -s conftest$ac_exeext'
17667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17668 (eval $ac_try) 2>&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); }; }; then
17672 ac_cv_lib_svld_dlopen=yes
17674 echo "$as_me: failed program was:" >&5
17675 sed 's/^/| /' conftest.$ac_ext >&5
17677 ac_cv_lib_svld_dlopen=no
17679 rm -f conftest.err conftest.$ac_objext \
17680 conftest$ac_exeext conftest.$ac_ext
17681 LIBS=$ac_check_lib_save_LIBS
17683 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17684 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17685 if test $ac_cv_lib_svld_dlopen = yes; then
17686 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17688 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17689 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17690 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17691 echo $ECHO_N "(cached) $ECHO_C" >&6
17693 ac_check_lib_save_LIBS=$LIBS
17695 cat >conftest.$ac_ext <<_ACEOF
17698 cat confdefs.h >>conftest.$ac_ext
17699 cat >>conftest.$ac_ext <<_ACEOF
17700 /* end confdefs.h. */
17702 /* Override any gcc2 internal prototype to avoid an error. */
17706 /* We use char because int might match the return type of a gcc2
17707 builtin and then its argument prototype would still apply. */
17717 rm -f conftest.$ac_objext conftest$ac_exeext
17718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17719 (eval $ac_link) 2>conftest.er1
17721 grep -v '^ *+' conftest.er1 >conftest.err
17723 cat conftest.err >&5
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); } &&
17726 { ac_try='test -z "$ac_c_werror_flag"
17727 || test ! -s conftest.err'
17728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17729 (eval $ac_try) 2>&5
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); }; } &&
17733 { ac_try='test -s conftest$ac_exeext'
17734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17735 (eval $ac_try) 2>&5
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); }; }; then
17739 ac_cv_lib_dld_dld_link=yes
17741 echo "$as_me: failed program was:" >&5
17742 sed 's/^/| /' conftest.$ac_ext >&5
17744 ac_cv_lib_dld_dld_link=no
17746 rm -f conftest.err conftest.$ac_objext \
17747 conftest$ac_exeext conftest.$ac_ext
17748 LIBS=$ac_check_lib_save_LIBS
17750 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17751 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17752 if test $ac_cv_lib_dld_dld_link = yes; then
17753 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17774 if test "x$lt_cv_dlopen" != xno; then
17780 case $lt_cv_dlopen in
17782 save_CPPFLAGS="$CPPFLAGS"
17783 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17785 save_LDFLAGS="$LDFLAGS"
17786 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17789 LIBS="$lt_cv_dlopen_libs $LIBS"
17791 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17792 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17793 if test "${lt_cv_dlopen_self+set}" = set; then
17794 echo $ECHO_N "(cached) $ECHO_C" >&6
17796 if test "$cross_compiling" = yes; then :
17797 lt_cv_dlopen_self=cross
17799 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17800 lt_status=$lt_dlunknown
17801 cat > conftest.$ac_ext <<EOF
17802 #line 17802 "configure"
17803 #include "confdefs.h"
17812 # define LT_DLGLOBAL RTLD_GLOBAL
17815 # define LT_DLGLOBAL DL_GLOBAL
17817 # define LT_DLGLOBAL 0
17821 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17822 find out it does not work in some platform. */
17823 #ifndef LT_DLLAZY_OR_NOW
17825 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17828 # define LT_DLLAZY_OR_NOW DL_LAZY
17831 # define LT_DLLAZY_OR_NOW RTLD_NOW
17834 # define LT_DLLAZY_OR_NOW DL_NOW
17836 # define LT_DLLAZY_OR_NOW 0
17844 extern "C" void exit (int);
17847 void fnord() { int i=42;}
17850 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17851 int status = $lt_dlunknown;
17855 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17856 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17857 /* dlclose (self); */
17863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17864 (eval $ac_link) 2>&5
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17868 (./conftest; exit; ) 2>/dev/null
17870 case x$lt_status in
17871 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17872 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17873 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17876 # compilation failed
17877 lt_cv_dlopen_self=no
17884 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17885 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17887 if test "x$lt_cv_dlopen_self" = xyes; then
17888 LDFLAGS="$LDFLAGS $link_static_flag"
17889 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17890 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17891 if test "${lt_cv_dlopen_self_static+set}" = set; then
17892 echo $ECHO_N "(cached) $ECHO_C" >&6
17894 if test "$cross_compiling" = yes; then :
17895 lt_cv_dlopen_self_static=cross
17897 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17898 lt_status=$lt_dlunknown
17899 cat > conftest.$ac_ext <<EOF
17900 #line 17900 "configure"
17901 #include "confdefs.h"
17910 # define LT_DLGLOBAL RTLD_GLOBAL
17913 # define LT_DLGLOBAL DL_GLOBAL
17915 # define LT_DLGLOBAL 0
17919 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17920 find out it does not work in some platform. */
17921 #ifndef LT_DLLAZY_OR_NOW
17923 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17926 # define LT_DLLAZY_OR_NOW DL_LAZY
17929 # define LT_DLLAZY_OR_NOW RTLD_NOW
17932 # define LT_DLLAZY_OR_NOW DL_NOW
17934 # define LT_DLLAZY_OR_NOW 0
17942 extern "C" void exit (int);
17945 void fnord() { int i=42;}
17948 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17949 int status = $lt_dlunknown;
17953 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17954 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17955 /* dlclose (self); */
17961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17962 (eval $ac_link) 2>&5
17964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17966 (./conftest; exit; ) 2>/dev/null
17968 case x$lt_status in
17969 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17970 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17971 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17974 # compilation failed
17975 lt_cv_dlopen_self_static=no
17982 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17983 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17986 CPPFLAGS="$save_CPPFLAGS"
17987 LDFLAGS="$save_LDFLAGS"
17992 case $lt_cv_dlopen_self in
17993 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17994 *) enable_dlopen_self=unknown ;;
17997 case $lt_cv_dlopen_self_static in
17998 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17999 *) enable_dlopen_self_static=unknown ;;
18004 # The else clause should only fire when bootstrapping the
18005 # libtool distribution, otherwise you forgot to ship ltmain.sh
18006 # with your package, and you will get complaints that there are
18007 # no rules to generate ltmain.sh.
18008 if test -f "$ltmain"; then
18009 # See if we are running on zsh, and set the options which allow our commands through
18010 # without removal of \ escapes.
18011 if test -n "${ZSH_VERSION+set}" ; then
18012 setopt NO_GLOB_SUBST
18014 # Now quote all the things that may contain metacharacters while being
18015 # careful not to overquote the AC_SUBSTed values. We take copies of the
18016 # variables and quote the copies for generation of the libtool script.
18017 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18019 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18020 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18021 deplibs_check_method reload_flag reload_cmds need_locks \
18022 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18023 lt_cv_sys_global_symbol_to_c_name_address \
18024 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18025 old_postinstall_cmds old_postuninstall_cmds \
18029 lt_prog_compiler_wl_GCJ \
18030 lt_prog_compiler_pic_GCJ \
18031 lt_prog_compiler_static_GCJ \
18032 lt_prog_compiler_no_builtin_flag_GCJ \
18033 export_dynamic_flag_spec_GCJ \
18034 thread_safe_flag_spec_GCJ \
18035 whole_archive_flag_spec_GCJ \
18036 enable_shared_with_static_runtimes_GCJ \
18037 old_archive_cmds_GCJ \
18038 old_archive_from_new_cmds_GCJ \
18039 predep_objects_GCJ \
18040 postdep_objects_GCJ \
18043 compiler_lib_search_path_GCJ \
18045 archive_expsym_cmds_GCJ \
18046 postinstall_cmds_GCJ \
18047 postuninstall_cmds_GCJ \
18048 old_archive_from_expsyms_cmds_GCJ \
18049 allow_undefined_flag_GCJ \
18050 no_undefined_flag_GCJ \
18051 export_symbols_cmds_GCJ \
18052 hardcode_libdir_flag_spec_GCJ \
18053 hardcode_libdir_flag_spec_ld_GCJ \
18054 hardcode_libdir_separator_GCJ \
18055 hardcode_automatic_GCJ \
18057 module_expsym_cmds_GCJ \
18058 lt_cv_prog_compiler_c_o_GCJ \
18059 exclude_expsyms_GCJ \
18060 include_expsyms_GCJ; do
18063 old_archive_cmds_GCJ | \
18064 old_archive_from_new_cmds_GCJ | \
18065 archive_cmds_GCJ | \
18066 archive_expsym_cmds_GCJ | \
18067 module_cmds_GCJ | \
18068 module_expsym_cmds_GCJ | \
18069 old_archive_from_expsyms_cmds_GCJ | \
18070 export_symbols_cmds_GCJ | \
18071 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18072 postinstall_cmds | postuninstall_cmds | \
18073 old_postinstall_cmds | old_postuninstall_cmds | \
18074 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18075 # Double-quote double-evaled strings.
18076 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18079 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18085 *'\$0 --fallback-echo"')
18086 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18092 cat <<__EOF__ >> "$cfgfile"
18093 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18095 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18097 # Shell to use when invoking shell scripts.
18100 # Whether or not to build shared libraries.
18101 build_libtool_libs=$enable_shared
18103 # Whether or not to build static libraries.
18104 build_old_libs=$enable_static
18106 # Whether or not to add -lc for building shared libraries.
18107 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18109 # Whether or not to disallow shared libs when runtime libs are static
18110 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18112 # Whether or not to optimize for fast installation.
18113 fast_install=$enable_fast_install
18116 host_alias=$host_alias
18119 # An echo program that does not interpret backslashes.
18124 AR_FLAGS=$lt_AR_FLAGS
18129 # A language-specific compiler.
18130 CC=$lt_compiler_GCJ
18132 # Is the compiler the GNU C compiler?
18138 # The linker used to build libraries.
18141 # Whether we need hard or soft links.
18144 # A BSD-compatible nm program.
18147 # A symbol stripping program
18150 # Used to examine libraries when file_magic_cmd begins "file"
18151 MAGIC_CMD=$MAGIC_CMD
18153 # Used on cygwin: DLL creation program.
18156 # Used on cygwin: object dumper.
18159 # Used on cygwin: assembler.
18162 # The name of the directory that contains temporary libtool files.
18165 # How to create reloadable object files.
18166 reload_flag=$lt_reload_flag
18167 reload_cmds=$lt_reload_cmds
18169 # How to pass a linker flag through the compiler.
18170 wl=$lt_lt_prog_compiler_wl_GCJ
18172 # Object file suffix (normally "o").
18173 objext="$ac_objext"
18175 # Old archive suffix (normally "a").
18178 # Shared library suffix (normally ".so").
18179 shrext_cmds='$shrext_cmds'
18181 # Executable file suffix (normally "").
18184 # Additional compiler flags for building library objects.
18185 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18188 # What is the maximum length of a command?
18189 max_cmd_len=$lt_cv_sys_max_cmd_len
18191 # Does compiler simultaneously support -c and -o options?
18192 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18194 # Must we lock files when doing compilation ?
18195 need_locks=$lt_need_locks
18197 # Do we need the lib prefix for modules?
18198 need_lib_prefix=$need_lib_prefix
18200 # Do we need a version for libraries?
18201 need_version=$need_version
18203 # Whether dlopen is supported.
18204 dlopen_support=$enable_dlopen
18206 # Whether dlopen of programs is supported.
18207 dlopen_self=$enable_dlopen_self
18209 # Whether dlopen of statically linked programs is supported.
18210 dlopen_self_static=$enable_dlopen_self_static
18212 # Compiler flag to prevent dynamic linking.
18213 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18215 # Compiler flag to turn off builtin functions.
18216 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18218 # Compiler flag to allow reflexive dlopens.
18219 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18221 # Compiler flag to generate shared objects directly from archives.
18222 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18224 # Compiler flag to generate thread-safe objects.
18225 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18227 # Library versioning type.
18228 version_type=$version_type
18230 # Format of library name prefix.
18231 libname_spec=$lt_libname_spec
18233 # List of archive names. First name is the real one, the rest are links.
18234 # The last name is the one that the linker finds with -lNAME.
18235 library_names_spec=$lt_library_names_spec
18237 # The coded name of the library, if different from the real name.
18238 soname_spec=$lt_soname_spec
18240 # Commands used to build and install an old-style archive.
18242 old_archive_cmds=$lt_old_archive_cmds_GCJ
18243 old_postinstall_cmds=$lt_old_postinstall_cmds
18244 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18246 # Create an old-style archive from a shared archive.
18247 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18249 # Create a temporary old-style archive to link instead of a shared archive.
18250 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18252 # Commands used to build and install a shared archive.
18253 archive_cmds=$lt_archive_cmds_GCJ
18254 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18255 postinstall_cmds=$lt_postinstall_cmds
18256 postuninstall_cmds=$lt_postuninstall_cmds
18258 # Commands used to build a loadable module (assumed same as above if empty)
18259 module_cmds=$lt_module_cmds_GCJ
18260 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18262 # Commands to strip libraries.
18263 old_striplib=$lt_old_striplib
18264 striplib=$lt_striplib
18266 # Dependencies to place before the objects being linked to create a
18268 predep_objects=$lt_predep_objects_GCJ
18270 # Dependencies to place after the objects being linked to create a
18272 postdep_objects=$lt_postdep_objects_GCJ
18274 # Dependencies to place before the objects being linked to create a
18276 predeps=$lt_predeps_GCJ
18278 # Dependencies to place after the objects being linked to create a
18280 postdeps=$lt_postdeps_GCJ
18282 # The library search path used internally by the compiler when linking
18283 # a shared library.
18284 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18286 # Method to check whether dependent libraries are shared objects.
18287 deplibs_check_method=$lt_deplibs_check_method
18289 # Command to use when deplibs_check_method == file_magic.
18290 file_magic_cmd=$lt_file_magic_cmd
18292 # Flag that allows shared libraries with undefined symbols to be built.
18293 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18295 # Flag that forces no undefined symbols.
18296 no_undefined_flag=$lt_no_undefined_flag_GCJ
18298 # Commands used to finish a libtool library installation in a directory.
18299 finish_cmds=$lt_finish_cmds
18301 # Same as above, but a single script fragment to be evaled but not shown.
18302 finish_eval=$lt_finish_eval
18304 # Take the output of nm and produce a listing of raw symbols and C names.
18305 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18307 # Transform the output of nm in a proper C declaration
18308 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18310 # Transform the output of nm in a C name address pair
18311 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18313 # This is the shared library runtime path variable.
18314 runpath_var=$runpath_var
18316 # This is the shared library path variable.
18317 shlibpath_var=$shlibpath_var
18319 # Is shlibpath searched before the hard-coded library search path?
18320 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18322 # How to hardcode a shared library path into an executable.
18323 hardcode_action=$hardcode_action_GCJ
18325 # Whether we should hardcode library paths into libraries.
18326 hardcode_into_libs=$hardcode_into_libs
18328 # Flag to hardcode \$libdir into a binary during linking.
18329 # This must work even if \$libdir does not exist.
18330 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18332 # If ld is used when linking, flag to hardcode \$libdir into
18333 # a binary during linking. This must work even if \$libdir does
18335 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18337 # Whether we need a single -rpath flag with a separated argument.
18338 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18340 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18341 # resulting binary.
18342 hardcode_direct=$hardcode_direct_GCJ
18344 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18345 # resulting binary.
18346 hardcode_minus_L=$hardcode_minus_L_GCJ
18348 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18349 # the resulting binary.
18350 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18352 # Set to yes if building a shared library automatically hardcodes DIR into the library
18353 # and all subsequent libraries and executables linked against it.
18354 hardcode_automatic=$hardcode_automatic_GCJ
18356 # Variables whose values should be saved in libtool wrapper scripts and
18357 # restored at relink time.
18358 variables_saved_for_relink="$variables_saved_for_relink"
18360 # Whether libtool must link a program against all its dependency libraries.
18361 link_all_deplibs=$link_all_deplibs_GCJ
18363 # Compile-time system search path for libraries
18364 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18366 # Run-time system search path for libraries
18367 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18369 # Fix the shell variable \$srcfile for the compiler.
18370 fix_srcfile_path="$fix_srcfile_path_GCJ"
18372 # Set to yes if exported symbols are required.
18373 always_export_symbols=$always_export_symbols_GCJ
18375 # The commands to list exported symbols.
18376 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18378 # The commands to extract the exported symbol list from a shared archive.
18379 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18381 # Symbols that should not be listed in the preloaded symbols.
18382 exclude_expsyms=$lt_exclude_expsyms_GCJ
18384 # Symbols that must always be exported.
18385 include_expsyms=$lt_include_expsyms_GCJ
18387 # ### END LIBTOOL TAG CONFIG: $tagname
18393 # If there is no Makefile yet, we rely on a make rule to execute
18394 # `config.status --recheck' to rerun these tests and create the
18395 # libtool script then.
18396 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18397 if test -f "$ltmain_in"; then
18398 test -f Makefile && make "$ltmain"
18404 ac_cpp='$CPP $CPPFLAGS'
18405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18418 ac_cpp='$CPP $CPPFLAGS'
18419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18424 # Source file extension for RC test sources.
18427 # Object file extension for compiled RC test sources.
18431 # Code to be used in simple compile tests
18432 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18434 # Code to be used in simple link tests
18435 lt_simple_link_test_code="$lt_simple_compile_test_code"
18437 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18439 # If no C compiler was specified, use CC.
18442 # Allow CC to be a program name with arguments.
18446 # Allow CC to be a program name with arguments.
18451 lt_cv_prog_compiler_c_o_RC=yes
18453 # The else clause should only fire when bootstrapping the
18454 # libtool distribution, otherwise you forgot to ship ltmain.sh
18455 # with your package, and you will get complaints that there are
18456 # no rules to generate ltmain.sh.
18457 if test -f "$ltmain"; then
18458 # See if we are running on zsh, and set the options which allow our commands through
18459 # without removal of \ escapes.
18460 if test -n "${ZSH_VERSION+set}" ; then
18461 setopt NO_GLOB_SUBST
18463 # Now quote all the things that may contain metacharacters while being
18464 # careful not to overquote the AC_SUBSTed values. We take copies of the
18465 # variables and quote the copies for generation of the libtool script.
18466 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18468 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18469 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18470 deplibs_check_method reload_flag reload_cmds need_locks \
18471 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18472 lt_cv_sys_global_symbol_to_c_name_address \
18473 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18474 old_postinstall_cmds old_postuninstall_cmds \
18478 lt_prog_compiler_wl_RC \
18479 lt_prog_compiler_pic_RC \
18480 lt_prog_compiler_static_RC \
18481 lt_prog_compiler_no_builtin_flag_RC \
18482 export_dynamic_flag_spec_RC \
18483 thread_safe_flag_spec_RC \
18484 whole_archive_flag_spec_RC \
18485 enable_shared_with_static_runtimes_RC \
18486 old_archive_cmds_RC \
18487 old_archive_from_new_cmds_RC \
18488 predep_objects_RC \
18489 postdep_objects_RC \
18492 compiler_lib_search_path_RC \
18494 archive_expsym_cmds_RC \
18495 postinstall_cmds_RC \
18496 postuninstall_cmds_RC \
18497 old_archive_from_expsyms_cmds_RC \
18498 allow_undefined_flag_RC \
18499 no_undefined_flag_RC \
18500 export_symbols_cmds_RC \
18501 hardcode_libdir_flag_spec_RC \
18502 hardcode_libdir_flag_spec_ld_RC \
18503 hardcode_libdir_separator_RC \
18504 hardcode_automatic_RC \
18506 module_expsym_cmds_RC \
18507 lt_cv_prog_compiler_c_o_RC \
18508 exclude_expsyms_RC \
18509 include_expsyms_RC; do
18512 old_archive_cmds_RC | \
18513 old_archive_from_new_cmds_RC | \
18514 archive_cmds_RC | \
18515 archive_expsym_cmds_RC | \
18517 module_expsym_cmds_RC | \
18518 old_archive_from_expsyms_cmds_RC | \
18519 export_symbols_cmds_RC | \
18520 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18521 postinstall_cmds | postuninstall_cmds | \
18522 old_postinstall_cmds | old_postuninstall_cmds | \
18523 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18524 # Double-quote double-evaled strings.
18525 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18528 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18534 *'\$0 --fallback-echo"')
18535 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18541 cat <<__EOF__ >> "$cfgfile"
18542 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18544 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18546 # Shell to use when invoking shell scripts.
18549 # Whether or not to build shared libraries.
18550 build_libtool_libs=$enable_shared
18552 # Whether or not to build static libraries.
18553 build_old_libs=$enable_static
18555 # Whether or not to add -lc for building shared libraries.
18556 build_libtool_need_lc=$archive_cmds_need_lc_RC
18558 # Whether or not to disallow shared libs when runtime libs are static
18559 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18561 # Whether or not to optimize for fast installation.
18562 fast_install=$enable_fast_install
18565 host_alias=$host_alias
18568 # An echo program that does not interpret backslashes.
18573 AR_FLAGS=$lt_AR_FLAGS
18578 # A language-specific compiler.
18581 # Is the compiler the GNU C compiler?
18587 # The linker used to build libraries.
18590 # Whether we need hard or soft links.
18593 # A BSD-compatible nm program.
18596 # A symbol stripping program
18599 # Used to examine libraries when file_magic_cmd begins "file"
18600 MAGIC_CMD=$MAGIC_CMD
18602 # Used on cygwin: DLL creation program.
18605 # Used on cygwin: object dumper.
18608 # Used on cygwin: assembler.
18611 # The name of the directory that contains temporary libtool files.
18614 # How to create reloadable object files.
18615 reload_flag=$lt_reload_flag
18616 reload_cmds=$lt_reload_cmds
18618 # How to pass a linker flag through the compiler.
18619 wl=$lt_lt_prog_compiler_wl_RC
18621 # Object file suffix (normally "o").
18622 objext="$ac_objext"
18624 # Old archive suffix (normally "a").
18627 # Shared library suffix (normally ".so").
18628 shrext_cmds='$shrext_cmds'
18630 # Executable file suffix (normally "").
18633 # Additional compiler flags for building library objects.
18634 pic_flag=$lt_lt_prog_compiler_pic_RC
18637 # What is the maximum length of a command?
18638 max_cmd_len=$lt_cv_sys_max_cmd_len
18640 # Does compiler simultaneously support -c and -o options?
18641 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18643 # Must we lock files when doing compilation ?
18644 need_locks=$lt_need_locks
18646 # Do we need the lib prefix for modules?
18647 need_lib_prefix=$need_lib_prefix
18649 # Do we need a version for libraries?
18650 need_version=$need_version
18652 # Whether dlopen is supported.
18653 dlopen_support=$enable_dlopen
18655 # Whether dlopen of programs is supported.
18656 dlopen_self=$enable_dlopen_self
18658 # Whether dlopen of statically linked programs is supported.
18659 dlopen_self_static=$enable_dlopen_self_static
18661 # Compiler flag to prevent dynamic linking.
18662 link_static_flag=$lt_lt_prog_compiler_static_RC
18664 # Compiler flag to turn off builtin functions.
18665 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18667 # Compiler flag to allow reflexive dlopens.
18668 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18670 # Compiler flag to generate shared objects directly from archives.
18671 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18673 # Compiler flag to generate thread-safe objects.
18674 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18676 # Library versioning type.
18677 version_type=$version_type
18679 # Format of library name prefix.
18680 libname_spec=$lt_libname_spec
18682 # List of archive names. First name is the real one, the rest are links.
18683 # The last name is the one that the linker finds with -lNAME.
18684 library_names_spec=$lt_library_names_spec
18686 # The coded name of the library, if different from the real name.
18687 soname_spec=$lt_soname_spec
18689 # Commands used to build and install an old-style archive.
18691 old_archive_cmds=$lt_old_archive_cmds_RC
18692 old_postinstall_cmds=$lt_old_postinstall_cmds
18693 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18695 # Create an old-style archive from a shared archive.
18696 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18698 # Create a temporary old-style archive to link instead of a shared archive.
18699 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18701 # Commands used to build and install a shared archive.
18702 archive_cmds=$lt_archive_cmds_RC
18703 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18704 postinstall_cmds=$lt_postinstall_cmds
18705 postuninstall_cmds=$lt_postuninstall_cmds
18707 # Commands used to build a loadable module (assumed same as above if empty)
18708 module_cmds=$lt_module_cmds_RC
18709 module_expsym_cmds=$lt_module_expsym_cmds_RC
18711 # Commands to strip libraries.
18712 old_striplib=$lt_old_striplib
18713 striplib=$lt_striplib
18715 # Dependencies to place before the objects being linked to create a
18717 predep_objects=$lt_predep_objects_RC
18719 # Dependencies to place after the objects being linked to create a
18721 postdep_objects=$lt_postdep_objects_RC
18723 # Dependencies to place before the objects being linked to create a
18725 predeps=$lt_predeps_RC
18727 # Dependencies to place after the objects being linked to create a
18729 postdeps=$lt_postdeps_RC
18731 # The library search path used internally by the compiler when linking
18732 # a shared library.
18733 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18735 # Method to check whether dependent libraries are shared objects.
18736 deplibs_check_method=$lt_deplibs_check_method
18738 # Command to use when deplibs_check_method == file_magic.
18739 file_magic_cmd=$lt_file_magic_cmd
18741 # Flag that allows shared libraries with undefined symbols to be built.
18742 allow_undefined_flag=$lt_allow_undefined_flag_RC
18744 # Flag that forces no undefined symbols.
18745 no_undefined_flag=$lt_no_undefined_flag_RC
18747 # Commands used to finish a libtool library installation in a directory.
18748 finish_cmds=$lt_finish_cmds
18750 # Same as above, but a single script fragment to be evaled but not shown.
18751 finish_eval=$lt_finish_eval
18753 # Take the output of nm and produce a listing of raw symbols and C names.
18754 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18756 # Transform the output of nm in a proper C declaration
18757 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18759 # Transform the output of nm in a C name address pair
18760 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18762 # This is the shared library runtime path variable.
18763 runpath_var=$runpath_var
18765 # This is the shared library path variable.
18766 shlibpath_var=$shlibpath_var
18768 # Is shlibpath searched before the hard-coded library search path?
18769 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18771 # How to hardcode a shared library path into an executable.
18772 hardcode_action=$hardcode_action_RC
18774 # Whether we should hardcode library paths into libraries.
18775 hardcode_into_libs=$hardcode_into_libs
18777 # Flag to hardcode \$libdir into a binary during linking.
18778 # This must work even if \$libdir does not exist.
18779 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18781 # If ld is used when linking, flag to hardcode \$libdir into
18782 # a binary during linking. This must work even if \$libdir does
18784 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18786 # Whether we need a single -rpath flag with a separated argument.
18787 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18789 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18790 # resulting binary.
18791 hardcode_direct=$hardcode_direct_RC
18793 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18794 # resulting binary.
18795 hardcode_minus_L=$hardcode_minus_L_RC
18797 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18798 # the resulting binary.
18799 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18801 # Set to yes if building a shared library automatically hardcodes DIR into the library
18802 # and all subsequent libraries and executables linked against it.
18803 hardcode_automatic=$hardcode_automatic_RC
18805 # Variables whose values should be saved in libtool wrapper scripts and
18806 # restored at relink time.
18807 variables_saved_for_relink="$variables_saved_for_relink"
18809 # Whether libtool must link a program against all its dependency libraries.
18810 link_all_deplibs=$link_all_deplibs_RC
18812 # Compile-time system search path for libraries
18813 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18815 # Run-time system search path for libraries
18816 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18818 # Fix the shell variable \$srcfile for the compiler.
18819 fix_srcfile_path="$fix_srcfile_path_RC"
18821 # Set to yes if exported symbols are required.
18822 always_export_symbols=$always_export_symbols_RC
18824 # The commands to list exported symbols.
18825 export_symbols_cmds=$lt_export_symbols_cmds_RC
18827 # The commands to extract the exported symbol list from a shared archive.
18828 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18830 # Symbols that should not be listed in the preloaded symbols.
18831 exclude_expsyms=$lt_exclude_expsyms_RC
18833 # Symbols that must always be exported.
18834 include_expsyms=$lt_include_expsyms_RC
18836 # ### END LIBTOOL TAG CONFIG: $tagname
18842 # If there is no Makefile yet, we rely on a make rule to execute
18843 # `config.status --recheck' to rerun these tests and create the
18844 # libtool script then.
18845 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18846 if test -f "$ltmain_in"; then
18847 test -f Makefile && make "$ltmain"
18853 ac_cpp='$CPP $CPPFLAGS'
18854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18863 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18864 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18865 { (exit 1); exit 1; }; }
18869 # Append the new tag name to the list of available tags.
18870 if test -n "$tagname" ; then
18871 available_tags="$available_tags $tagname"
18877 # Now substitute the updated list of available tags.
18878 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18879 mv "${ofile}T" "$ofile"
18883 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18884 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18885 { (exit 1); exit 1; }; }
18891 # This can be used to rebuild libtool when needed
18892 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18894 # Always use our own libtool.
18895 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18897 # Prevent multiple expansion
18919 # Extract the first word of "dot", so it can be a program name with args.
18920 set dummy dot; ac_word=$2
18921 echo "$as_me:$LINENO: checking for $ac_word" >&5
18922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18923 if test "${ac_cv_path_DOT+set}" = set; then
18924 echo $ECHO_N "(cached) $ECHO_C" >&6
18928 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18932 for as_dir in $PATH
18935 test -z "$as_dir" && as_dir=.
18936 for ac_exec_ext in '' $ac_executable_extensions; do
18937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18938 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18945 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18949 DOT=$ac_cv_path_DOT
18951 if test -n "$DOT"; then
18952 echo "$as_me:$LINENO: result: $DOT" >&5
18953 echo "${ECHO_T}$DOT" >&6
18955 echo "$as_me:$LINENO: result: no" >&5
18956 echo "${ECHO_T}no" >&6
18959 # Extract the first word of "etags", so it can be a program name with args.
18960 set dummy etags; ac_word=$2
18961 echo "$as_me:$LINENO: checking for $ac_word" >&5
18962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18963 if test "${ac_cv_path_ETAGS+set}" = set; then
18964 echo $ECHO_N "(cached) $ECHO_C" >&6
18968 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18972 for as_dir in $PATH
18975 test -z "$as_dir" && as_dir=.
18976 for ac_exec_ext in '' $ac_executable_extensions; do
18977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18978 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18985 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18989 ETAGS=$ac_cv_path_ETAGS
18991 if test -n "$ETAGS"; then
18992 echo "$as_me:$LINENO: result: $ETAGS" >&5
18993 echo "${ECHO_T}$ETAGS" >&6
18995 echo "$as_me:$LINENO: result: no" >&5
18996 echo "${ECHO_T}no" >&6
18999 etags_version=`$ETAGS --version 2>&1`
19000 case "$etags_version" in
19001 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
19002 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
19003 *) ETAGSFLAGS="" ;;
19005 ETAGSFLAGS=$ETAGSFLAGS
19007 # Extract the first word of "python", so it can be a program name with args.
19008 set dummy python; ac_word=$2
19009 echo "$as_me:$LINENO: checking for $ac_word" >&5
19010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19011 if test "${ac_cv_path_PYTHON+set}" = set; then
19012 echo $ECHO_N "(cached) $ECHO_C" >&6
19016 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19020 for as_dir in $PATH
19023 test -z "$as_dir" && as_dir=.
19024 for ac_exec_ext in '' $ac_executable_extensions; do
19025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19026 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19033 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
19037 PYTHON=$ac_cv_path_PYTHON
19039 if test -n "$PYTHON"; then
19040 echo "$as_me:$LINENO: result: $PYTHON" >&5
19041 echo "${ECHO_T}$PYTHON" >&6
19043 echo "$as_me:$LINENO: result: no" >&5
19044 echo "${ECHO_T}no" >&6
19047 if test "$PYTHON" = "false"
19049 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
19050 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
19052 # Extract the first word of "qmtest", so it can be a program name with args.
19053 set dummy qmtest; ac_word=$2
19054 echo "$as_me:$LINENO: checking for $ac_word" >&5
19055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19056 if test "${ac_cv_path_QMTEST+set}" = set; then
19057 echo $ECHO_N "(cached) $ECHO_C" >&6
19061 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19065 for as_dir in $PATH
19068 test -z "$as_dir" && as_dir=.
19069 for ac_exec_ext in '' $ac_executable_extensions; do
19070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19071 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19078 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
19082 QMTEST=$ac_cv_path_QMTEST
19084 if test -n "$QMTEST"; then
19085 echo "$as_me:$LINENO: result: $QMTEST" >&5
19086 echo "${ECHO_T}$QMTEST" >&6
19088 echo "$as_me:$LINENO: result: no" >&5
19089 echo "${ECHO_T}no" >&6
19092 if test "$QMTEST" = "false"
19094 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
19095 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
19098 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
19099 pymajor=`echo $pyversion | cut -d. -f1`
19100 pyminor=`echo $pyversion | cut -d. -f2`
19102 if test "$pymajor" -ge "2"
19104 if test "$pymajor" -eq "2"
19106 if test "$pyminor" -lt "2"
19108 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19109 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
19113 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19114 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
19118 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19119 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19120 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19121 echo $ECHO_N "(cached) $ECHO_C" >&6
19123 ac_check_lib_save_LIBS=$LIBS
19125 cat >conftest.$ac_ext <<_ACEOF
19128 cat confdefs.h >>conftest.$ac_ext
19129 cat >>conftest.$ac_ext <<_ACEOF
19130 /* end confdefs.h. */
19132 /* Override any gcc2 internal prototype to avoid an error. */
19136 /* We use char because int might match the return type of a gcc2
19137 builtin and then its argument prototype would still apply. */
19147 rm -f conftest.$ac_objext conftest$ac_exeext
19148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19149 (eval $ac_link) 2>conftest.er1
19151 grep -v '^ *+' conftest.er1 >conftest.err
19153 cat conftest.err >&5
19154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155 (exit $ac_status); } &&
19156 { ac_try='test -z "$ac_c_werror_flag"
19157 || test ! -s conftest.err'
19158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19159 (eval $ac_try) 2>&5
19161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162 (exit $ac_status); }; } &&
19163 { ac_try='test -s conftest$ac_exeext'
19164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19165 (eval $ac_try) 2>&5
19167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); }; }; then
19169 ac_cv_lib_elf_elf_begin=yes
19171 echo "$as_me: failed program was:" >&5
19172 sed 's/^/| /' conftest.$ac_ext >&5
19174 ac_cv_lib_elf_elf_begin=no
19176 rm -f conftest.err conftest.$ac_objext \
19177 conftest$ac_exeext conftest.$ac_ext
19178 LIBS=$ac_check_lib_save_LIBS
19180 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19181 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19182 if test $ac_cv_lib_elf_elf_begin = yes; then
19183 cat >>confdefs.h <<_ACEOF
19184 #define HAVE_LIBELF 1
19192 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19193 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19194 if test "${ac_cv_search_dlopen+set}" = set; then
19195 echo $ECHO_N "(cached) $ECHO_C" >&6
19197 ac_func_search_save_LIBS=$LIBS
19198 ac_cv_search_dlopen=no
19199 cat >conftest.$ac_ext <<_ACEOF
19202 cat confdefs.h >>conftest.$ac_ext
19203 cat >>conftest.$ac_ext <<_ACEOF
19204 /* end confdefs.h. */
19206 /* Override any gcc2 internal prototype to avoid an error. */
19210 /* We use char because int might match the return type of a gcc2
19211 builtin and then its argument prototype would still apply. */
19221 rm -f conftest.$ac_objext conftest$ac_exeext
19222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19223 (eval $ac_link) 2>conftest.er1
19225 grep -v '^ *+' conftest.er1 >conftest.err
19227 cat conftest.err >&5
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); } &&
19230 { ac_try='test -z "$ac_c_werror_flag"
19231 || test ! -s conftest.err'
19232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19233 (eval $ac_try) 2>&5
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); }; } &&
19237 { ac_try='test -s conftest$ac_exeext'
19238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19239 (eval $ac_try) 2>&5
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); }; }; then
19243 ac_cv_search_dlopen="none required"
19245 echo "$as_me: failed program was:" >&5
19246 sed 's/^/| /' conftest.$ac_ext >&5
19249 rm -f conftest.err conftest.$ac_objext \
19250 conftest$ac_exeext conftest.$ac_ext
19251 if test "$ac_cv_search_dlopen" = no; then
19252 for ac_lib in dl; do
19253 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19254 cat >conftest.$ac_ext <<_ACEOF
19257 cat confdefs.h >>conftest.$ac_ext
19258 cat >>conftest.$ac_ext <<_ACEOF
19259 /* end confdefs.h. */
19261 /* Override any gcc2 internal prototype to avoid an error. */
19265 /* We use char because int might match the return type of a gcc2
19266 builtin and then its argument prototype would still apply. */
19276 rm -f conftest.$ac_objext conftest$ac_exeext
19277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19278 (eval $ac_link) 2>conftest.er1
19280 grep -v '^ *+' conftest.er1 >conftest.err
19282 cat conftest.err >&5
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); } &&
19285 { ac_try='test -z "$ac_c_werror_flag"
19286 || test ! -s conftest.err'
19287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19288 (eval $ac_try) 2>&5
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); }; } &&
19292 { ac_try='test -s conftest$ac_exeext'
19293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19294 (eval $ac_try) 2>&5
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); }; }; then
19298 ac_cv_search_dlopen="-l$ac_lib"
19301 echo "$as_me: failed program was:" >&5
19302 sed 's/^/| /' conftest.$ac_ext >&5
19305 rm -f conftest.err conftest.$ac_objext \
19306 conftest$ac_exeext conftest.$ac_ext
19309 LIBS=$ac_func_search_save_LIBS
19311 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19312 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19313 if test "$ac_cv_search_dlopen" != no; then
19314 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19316 cat >>confdefs.h <<\_ACEOF
19317 #define HAVE_DLOPEN 1
19321 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19322 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19326 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19327 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19328 if test "${ac_cv_search_mallinfo+set}" = set; then
19329 echo $ECHO_N "(cached) $ECHO_C" >&6
19331 ac_func_search_save_LIBS=$LIBS
19332 ac_cv_search_mallinfo=no
19333 cat >conftest.$ac_ext <<_ACEOF
19336 cat confdefs.h >>conftest.$ac_ext
19337 cat >>conftest.$ac_ext <<_ACEOF
19338 /* end confdefs.h. */
19340 /* Override any gcc2 internal prototype to avoid an error. */
19344 /* We use char because int might match the return type of a gcc2
19345 builtin and then its argument prototype would still apply. */
19355 rm -f conftest.$ac_objext conftest$ac_exeext
19356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19357 (eval $ac_link) 2>conftest.er1
19359 grep -v '^ *+' conftest.er1 >conftest.err
19361 cat conftest.err >&5
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); } &&
19364 { ac_try='test -z "$ac_c_werror_flag"
19365 || test ! -s conftest.err'
19366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19367 (eval $ac_try) 2>&5
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); }; } &&
19371 { ac_try='test -s conftest$ac_exeext'
19372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19373 (eval $ac_try) 2>&5
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); }; }; then
19377 ac_cv_search_mallinfo="none required"
19379 echo "$as_me: failed program was:" >&5
19380 sed 's/^/| /' conftest.$ac_ext >&5
19383 rm -f conftest.err conftest.$ac_objext \
19384 conftest$ac_exeext conftest.$ac_ext
19385 if test "$ac_cv_search_mallinfo" = no; then
19386 for ac_lib in malloc; do
19387 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19388 cat >conftest.$ac_ext <<_ACEOF
19391 cat confdefs.h >>conftest.$ac_ext
19392 cat >>conftest.$ac_ext <<_ACEOF
19393 /* end confdefs.h. */
19395 /* Override any gcc2 internal prototype to avoid an error. */
19399 /* We use char because int might match the return type of a gcc2
19400 builtin and then its argument prototype would still apply. */
19410 rm -f conftest.$ac_objext conftest$ac_exeext
19411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19412 (eval $ac_link) 2>conftest.er1
19414 grep -v '^ *+' conftest.er1 >conftest.err
19416 cat conftest.err >&5
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); } &&
19419 { ac_try='test -z "$ac_c_werror_flag"
19420 || test ! -s conftest.err'
19421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19422 (eval $ac_try) 2>&5
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); }; } &&
19426 { ac_try='test -s conftest$ac_exeext'
19427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428 (eval $ac_try) 2>&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); }; }; then
19432 ac_cv_search_mallinfo="-l$ac_lib"
19435 echo "$as_me: failed program was:" >&5
19436 sed 's/^/| /' conftest.$ac_ext >&5
19439 rm -f conftest.err conftest.$ac_objext \
19440 conftest$ac_exeext conftest.$ac_ext
19443 LIBS=$ac_func_search_save_LIBS
19445 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19446 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19447 if test "$ac_cv_search_mallinfo" != no; then
19448 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19450 cat >>confdefs.h <<\_ACEOF
19451 #define HAVE_MALLINFO 1
19457 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19458 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19459 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19460 echo $ECHO_N "(cached) $ECHO_C" >&6
19462 ac_func_search_save_LIBS=$LIBS
19463 ac_cv_search_pthread_mutex_lock=no
19464 cat >conftest.$ac_ext <<_ACEOF
19467 cat confdefs.h >>conftest.$ac_ext
19468 cat >>conftest.$ac_ext <<_ACEOF
19469 /* end confdefs.h. */
19471 /* Override any gcc2 internal prototype to avoid an error. */
19475 /* We use char because int might match the return type of a gcc2
19476 builtin and then its argument prototype would still apply. */
19477 char pthread_mutex_lock ();
19481 pthread_mutex_lock ();
19486 rm -f conftest.$ac_objext conftest$ac_exeext
19487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19488 (eval $ac_link) 2>conftest.er1
19490 grep -v '^ *+' conftest.er1 >conftest.err
19492 cat conftest.err >&5
19493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494 (exit $ac_status); } &&
19495 { ac_try='test -z "$ac_c_werror_flag"
19496 || test ! -s conftest.err'
19497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19498 (eval $ac_try) 2>&5
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); }; } &&
19502 { ac_try='test -s conftest$ac_exeext'
19503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19504 (eval $ac_try) 2>&5
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); }; }; then
19508 ac_cv_search_pthread_mutex_lock="none required"
19510 echo "$as_me: failed program was:" >&5
19511 sed 's/^/| /' conftest.$ac_ext >&5
19514 rm -f conftest.err conftest.$ac_objext \
19515 conftest$ac_exeext conftest.$ac_ext
19516 if test "$ac_cv_search_pthread_mutex_lock" = no; then
19517 for ac_lib in pthread; do
19518 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19519 cat >conftest.$ac_ext <<_ACEOF
19522 cat confdefs.h >>conftest.$ac_ext
19523 cat >>conftest.$ac_ext <<_ACEOF
19524 /* end confdefs.h. */
19526 /* Override any gcc2 internal prototype to avoid an error. */
19530 /* We use char because int might match the return type of a gcc2
19531 builtin and then its argument prototype would still apply. */
19532 char pthread_mutex_lock ();
19536 pthread_mutex_lock ();
19541 rm -f conftest.$ac_objext conftest$ac_exeext
19542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19543 (eval $ac_link) 2>conftest.er1
19545 grep -v '^ *+' conftest.er1 >conftest.err
19547 cat conftest.err >&5
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); } &&
19550 { ac_try='test -z "$ac_c_werror_flag"
19551 || test ! -s conftest.err'
19552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19553 (eval $ac_try) 2>&5
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); }; } &&
19557 { ac_try='test -s conftest$ac_exeext'
19558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19559 (eval $ac_try) 2>&5
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); }; }; then
19563 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
19566 echo "$as_me: failed program was:" >&5
19567 sed 's/^/| /' conftest.$ac_ext >&5
19570 rm -f conftest.err conftest.$ac_objext \
19571 conftest$ac_exeext conftest.$ac_ext
19574 LIBS=$ac_func_search_save_LIBS
19576 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
19577 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
19578 if test "$ac_cv_search_pthread_mutex_lock" != no; then
19579 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
19580 HAVE_PTHREAD_MUTEX_LOCK=1
19582 HAVE_PTHREAD_MUTEX_LOCK=0
19587 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19588 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19589 if test "${ac_cv_header_stdc+set}" = set; then
19590 echo $ECHO_N "(cached) $ECHO_C" >&6
19592 cat >conftest.$ac_ext <<_ACEOF
19595 cat confdefs.h >>conftest.$ac_ext
19596 cat >>conftest.$ac_ext <<_ACEOF
19597 /* end confdefs.h. */
19598 #include <stdlib.h>
19599 #include <stdarg.h>
19600 #include <string.h>
19611 rm -f conftest.$ac_objext
19612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19613 (eval $ac_compile) 2>conftest.er1
19615 grep -v '^ *+' conftest.er1 >conftest.err
19617 cat conftest.err >&5
19618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619 (exit $ac_status); } &&
19620 { ac_try='test -z "$ac_c_werror_flag"
19621 || test ! -s conftest.err'
19622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19623 (eval $ac_try) 2>&5
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); }; } &&
19627 { ac_try='test -s conftest.$ac_objext'
19628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19629 (eval $ac_try) 2>&5
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); }; }; then
19633 ac_cv_header_stdc=yes
19635 echo "$as_me: failed program was:" >&5
19636 sed 's/^/| /' conftest.$ac_ext >&5
19638 ac_cv_header_stdc=no
19640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19642 if test $ac_cv_header_stdc = yes; then
19643 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19644 cat >conftest.$ac_ext <<_ACEOF
19647 cat confdefs.h >>conftest.$ac_ext
19648 cat >>conftest.$ac_ext <<_ACEOF
19649 /* end confdefs.h. */
19650 #include <string.h>
19653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19654 $EGREP "memchr" >/dev/null 2>&1; then
19657 ac_cv_header_stdc=no
19663 if test $ac_cv_header_stdc = yes; then
19664 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19665 cat >conftest.$ac_ext <<_ACEOF
19668 cat confdefs.h >>conftest.$ac_ext
19669 cat >>conftest.$ac_ext <<_ACEOF
19670 /* end confdefs.h. */
19671 #include <stdlib.h>
19674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19675 $EGREP "free" >/dev/null 2>&1; then
19678 ac_cv_header_stdc=no
19684 if test $ac_cv_header_stdc = yes; then
19685 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19686 if test "$cross_compiling" = yes; then
19689 cat >conftest.$ac_ext <<_ACEOF
19692 cat confdefs.h >>conftest.$ac_ext
19693 cat >>conftest.$ac_ext <<_ACEOF
19694 /* end confdefs.h. */
19696 #if ((' ' & 0x0FF) == 0x020)
19697 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19698 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19700 # define ISLOWER(c) \
19701 (('a' <= (c) && (c) <= 'i') \
19702 || ('j' <= (c) && (c) <= 'r') \
19703 || ('s' <= (c) && (c) <= 'z'))
19704 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19707 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19712 for (i = 0; i < 256; i++)
19713 if (XOR (islower (i), ISLOWER (i))
19714 || toupper (i) != TOUPPER (i))
19719 rm -f conftest$ac_exeext
19720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19721 (eval $ac_link) 2>&5
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19726 (eval $ac_try) 2>&5
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); }; }; then
19732 echo "$as_me: program exited with status $ac_status" >&5
19733 echo "$as_me: failed program was:" >&5
19734 sed 's/^/| /' conftest.$ac_ext >&5
19736 ( exit $ac_status )
19737 ac_cv_header_stdc=no
19739 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19743 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19744 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19745 if test $ac_cv_header_stdc = yes; then
19747 cat >>confdefs.h <<\_ACEOF
19748 #define STDC_HEADERS 1
19753 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19754 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19755 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19756 echo $ECHO_N "(cached) $ECHO_C" >&6
19758 cat >conftest.$ac_ext <<_ACEOF
19761 cat confdefs.h >>conftest.$ac_ext
19762 cat >>conftest.$ac_ext <<_ACEOF
19763 /* end confdefs.h. */
19764 #include <sys/types.h>
19765 #include <sys/wait.h>
19766 #ifndef WEXITSTATUS
19767 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19770 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19778 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19783 rm -f conftest.$ac_objext
19784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19785 (eval $ac_compile) 2>conftest.er1
19787 grep -v '^ *+' conftest.er1 >conftest.err
19789 cat conftest.err >&5
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); } &&
19792 { ac_try='test -z "$ac_c_werror_flag"
19793 || test ! -s conftest.err'
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); }; } &&
19799 { ac_try='test -s conftest.$ac_objext'
19800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19801 (eval $ac_try) 2>&5
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); }; }; then
19805 ac_cv_header_sys_wait_h=yes
19807 echo "$as_me: failed program was:" >&5
19808 sed 's/^/| /' conftest.$ac_ext >&5
19810 ac_cv_header_sys_wait_h=no
19812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19814 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19815 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19816 if test $ac_cv_header_sys_wait_h = yes; then
19818 cat >>confdefs.h <<\_ACEOF
19819 #define HAVE_SYS_WAIT_H 1
19836 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
19838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19840 echo "$as_me:$LINENO: checking for $ac_header" >&5
19841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19843 echo $ECHO_N "(cached) $ECHO_C" >&6
19845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19848 # Is the header compilable?
19849 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19851 cat >conftest.$ac_ext <<_ACEOF
19854 cat confdefs.h >>conftest.$ac_ext
19855 cat >>conftest.$ac_ext <<_ACEOF
19856 /* end confdefs.h. */
19857 $ac_includes_default
19858 #include <$ac_header>
19860 rm -f conftest.$ac_objext
19861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19862 (eval $ac_compile) 2>conftest.er1
19864 grep -v '^ *+' conftest.er1 >conftest.err
19866 cat conftest.err >&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); } &&
19869 { ac_try='test -z "$ac_c_werror_flag"
19870 || test ! -s conftest.err'
19871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19872 (eval $ac_try) 2>&5
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); }; } &&
19876 { ac_try='test -s conftest.$ac_objext'
19877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19878 (eval $ac_try) 2>&5
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); }; }; then
19882 ac_header_compiler=yes
19884 echo "$as_me: failed program was:" >&5
19885 sed 's/^/| /' conftest.$ac_ext >&5
19887 ac_header_compiler=no
19889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19890 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19891 echo "${ECHO_T}$ac_header_compiler" >&6
19893 # Is the header present?
19894 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19895 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19896 cat >conftest.$ac_ext <<_ACEOF
19899 cat confdefs.h >>conftest.$ac_ext
19900 cat >>conftest.$ac_ext <<_ACEOF
19901 /* end confdefs.h. */
19902 #include <$ac_header>
19904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19907 grep -v '^ *+' conftest.er1 >conftest.err
19909 cat conftest.err >&5
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); } >/dev/null; then
19912 if test -s conftest.err; then
19913 ac_cpp_err=$ac_c_preproc_warn_flag
19914 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19921 if test -z "$ac_cpp_err"; then
19922 ac_header_preproc=yes
19924 echo "$as_me: failed program was:" >&5
19925 sed 's/^/| /' conftest.$ac_ext >&5
19927 ac_header_preproc=no
19929 rm -f conftest.err conftest.$ac_ext
19930 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19931 echo "${ECHO_T}$ac_header_preproc" >&6
19933 # So? What about this header?
19934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19936 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19937 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19939 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19940 ac_header_preproc=yes
19943 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19944 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19945 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19946 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19947 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19948 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19949 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19950 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19953 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19954 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19957 ## ----------------------------------- ##
19958 ## Report this to llvmbugs@cs.uiuc.edu ##
19959 ## ----------------------------------- ##
19962 sed "s/^/$as_me: WARNING: /" >&2
19965 echo "$as_me:$LINENO: checking for $ac_header" >&5
19966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19968 echo $ECHO_N "(cached) $ECHO_C" >&6
19970 eval "$as_ac_Header=\$ac_header_preproc"
19972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19977 cat >>confdefs.h <<_ACEOF
19978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19986 if test "${ac_cv_header_sys_types_h+set}" = set; then
19987 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19988 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19989 if test "${ac_cv_header_sys_types_h+set}" = set; then
19990 echo $ECHO_N "(cached) $ECHO_C" >&6
19992 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19993 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19995 # Is the header compilable?
19996 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19997 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19998 cat >conftest.$ac_ext <<_ACEOF
20001 cat confdefs.h >>conftest.$ac_ext
20002 cat >>conftest.$ac_ext <<_ACEOF
20003 /* end confdefs.h. */
20004 $ac_includes_default
20005 #include <sys/types.h>
20007 rm -f conftest.$ac_objext
20008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20009 (eval $ac_compile) 2>conftest.er1
20011 grep -v '^ *+' conftest.er1 >conftest.err
20013 cat conftest.err >&5
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); } &&
20016 { ac_try='test -z "$ac_c_werror_flag"
20017 || test ! -s conftest.err'
20018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20019 (eval $ac_try) 2>&5
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); }; } &&
20023 { ac_try='test -s conftest.$ac_objext'
20024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20025 (eval $ac_try) 2>&5
20027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028 (exit $ac_status); }; }; then
20029 ac_header_compiler=yes
20031 echo "$as_me: failed program was:" >&5
20032 sed 's/^/| /' conftest.$ac_ext >&5
20034 ac_header_compiler=no
20036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20037 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20038 echo "${ECHO_T}$ac_header_compiler" >&6
20040 # Is the header present?
20041 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
20042 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
20043 cat >conftest.$ac_ext <<_ACEOF
20046 cat confdefs.h >>conftest.$ac_ext
20047 cat >>conftest.$ac_ext <<_ACEOF
20048 /* end confdefs.h. */
20049 #include <sys/types.h>
20051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20054 grep -v '^ *+' conftest.er1 >conftest.err
20056 cat conftest.err >&5
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); } >/dev/null; then
20059 if test -s conftest.err; then
20060 ac_cpp_err=$ac_c_preproc_warn_flag
20061 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20068 if test -z "$ac_cpp_err"; then
20069 ac_header_preproc=yes
20071 echo "$as_me: failed program was:" >&5
20072 sed 's/^/| /' conftest.$ac_ext >&5
20074 ac_header_preproc=no
20076 rm -f conftest.err conftest.$ac_ext
20077 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20078 echo "${ECHO_T}$ac_header_preproc" >&6
20080 # So? What about this header?
20081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20083 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
20084 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20085 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
20086 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
20087 ac_header_preproc=yes
20090 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
20091 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
20092 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
20093 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
20094 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
20095 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
20096 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
20097 echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
20098 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
20099 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
20100 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
20101 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
20104 ## ----------------------------------- ##
20105 ## Report this to llvmbugs@cs.uiuc.edu ##
20106 ## ----------------------------------- ##
20109 sed "s/^/$as_me: WARNING: /" >&2
20112 echo "$as_me:$LINENO: checking for sys/types.h" >&5
20113 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
20114 if test "${ac_cv_header_sys_types_h+set}" = set; then
20115 echo $ECHO_N "(cached) $ECHO_C" >&6
20117 ac_cv_header_sys_types_h=$ac_header_preproc
20119 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20120 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20123 if test $ac_cv_header_sys_types_h = yes; then
20124 INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
20126 INCLUDE_SYS_TYPES_H=''
20131 if test "${ac_cv_header_inttypes_h+set}" = set; then
20132 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20133 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20134 if test "${ac_cv_header_inttypes_h+set}" = set; then
20135 echo $ECHO_N "(cached) $ECHO_C" >&6
20137 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20138 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20140 # Is the header compilable?
20141 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
20142 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
20143 cat >conftest.$ac_ext <<_ACEOF
20146 cat confdefs.h >>conftest.$ac_ext
20147 cat >>conftest.$ac_ext <<_ACEOF
20148 /* end confdefs.h. */
20149 $ac_includes_default
20150 #include <inttypes.h>
20152 rm -f conftest.$ac_objext
20153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20154 (eval $ac_compile) 2>conftest.er1
20156 grep -v '^ *+' conftest.er1 >conftest.err
20158 cat conftest.err >&5
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); } &&
20161 { ac_try='test -z "$ac_c_werror_flag"
20162 || test ! -s conftest.err'
20163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20164 (eval $ac_try) 2>&5
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); }; } &&
20168 { ac_try='test -s conftest.$ac_objext'
20169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20170 (eval $ac_try) 2>&5
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); }; }; then
20174 ac_header_compiler=yes
20176 echo "$as_me: failed program was:" >&5
20177 sed 's/^/| /' conftest.$ac_ext >&5
20179 ac_header_compiler=no
20181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20182 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20183 echo "${ECHO_T}$ac_header_compiler" >&6
20185 # Is the header present?
20186 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
20187 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
20188 cat >conftest.$ac_ext <<_ACEOF
20191 cat confdefs.h >>conftest.$ac_ext
20192 cat >>conftest.$ac_ext <<_ACEOF
20193 /* end confdefs.h. */
20194 #include <inttypes.h>
20196 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20199 grep -v '^ *+' conftest.er1 >conftest.err
20201 cat conftest.err >&5
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); } >/dev/null; then
20204 if test -s conftest.err; then
20205 ac_cpp_err=$ac_c_preproc_warn_flag
20206 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20213 if test -z "$ac_cpp_err"; then
20214 ac_header_preproc=yes
20216 echo "$as_me: failed program was:" >&5
20217 sed 's/^/| /' conftest.$ac_ext >&5
20219 ac_header_preproc=no
20221 rm -f conftest.err conftest.$ac_ext
20222 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20223 echo "${ECHO_T}$ac_header_preproc" >&6
20225 # So? What about this header?
20226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20228 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20229 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20230 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20231 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20232 ac_header_preproc=yes
20235 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20236 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
20237 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
20238 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
20239 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20240 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20241 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
20242 echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
20243 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20244 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20245 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20246 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20249 ## ----------------------------------- ##
20250 ## Report this to llvmbugs@cs.uiuc.edu ##
20251 ## ----------------------------------- ##
20254 sed "s/^/$as_me: WARNING: /" >&2
20257 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20258 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20259 if test "${ac_cv_header_inttypes_h+set}" = set; then
20260 echo $ECHO_N "(cached) $ECHO_C" >&6
20262 ac_cv_header_inttypes_h=$ac_header_preproc
20264 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20265 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20268 if test $ac_cv_header_inttypes_h = yes; then
20269 INCLUDE_INTTYPES_H='#include <inttypes.h>'
20271 INCLUDE_INTTYPES_H=''
20276 if test "${ac_cv_header_stdint_h+set}" = set; then
20277 echo "$as_me:$LINENO: checking for stdint.h" >&5
20278 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20279 if test "${ac_cv_header_stdint_h+set}" = set; then
20280 echo $ECHO_N "(cached) $ECHO_C" >&6
20282 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20283 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20285 # Is the header compilable?
20286 echo "$as_me:$LINENO: checking stdint.h usability" >&5
20287 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20288 cat >conftest.$ac_ext <<_ACEOF
20291 cat confdefs.h >>conftest.$ac_ext
20292 cat >>conftest.$ac_ext <<_ACEOF
20293 /* end confdefs.h. */
20294 $ac_includes_default
20295 #include <stdint.h>
20297 rm -f conftest.$ac_objext
20298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20299 (eval $ac_compile) 2>conftest.er1
20301 grep -v '^ *+' conftest.er1 >conftest.err
20303 cat conftest.err >&5
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); } &&
20306 { ac_try='test -z "$ac_c_werror_flag"
20307 || test ! -s conftest.err'
20308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20309 (eval $ac_try) 2>&5
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); }; } &&
20313 { ac_try='test -s conftest.$ac_objext'
20314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20315 (eval $ac_try) 2>&5
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); }; }; then
20319 ac_header_compiler=yes
20321 echo "$as_me: failed program was:" >&5
20322 sed 's/^/| /' conftest.$ac_ext >&5
20324 ac_header_compiler=no
20326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20327 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20328 echo "${ECHO_T}$ac_header_compiler" >&6
20330 # Is the header present?
20331 echo "$as_me:$LINENO: checking stdint.h presence" >&5
20332 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20333 cat >conftest.$ac_ext <<_ACEOF
20336 cat confdefs.h >>conftest.$ac_ext
20337 cat >>conftest.$ac_ext <<_ACEOF
20338 /* end confdefs.h. */
20339 #include <stdint.h>
20341 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20342 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20344 grep -v '^ *+' conftest.er1 >conftest.err
20346 cat conftest.err >&5
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); } >/dev/null; then
20349 if test -s conftest.err; then
20350 ac_cpp_err=$ac_c_preproc_warn_flag
20351 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20358 if test -z "$ac_cpp_err"; then
20359 ac_header_preproc=yes
20361 echo "$as_me: failed program was:" >&5
20362 sed 's/^/| /' conftest.$ac_ext >&5
20364 ac_header_preproc=no
20366 rm -f conftest.err conftest.$ac_ext
20367 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20368 echo "${ECHO_T}$ac_header_preproc" >&6
20370 # So? What about this header?
20371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20373 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20374 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20375 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20376 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20377 ac_header_preproc=yes
20380 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20381 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20382 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
20383 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
20384 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20385 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20386 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
20387 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
20388 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20389 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20390 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20391 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20394 ## ----------------------------------- ##
20395 ## Report this to llvmbugs@cs.uiuc.edu ##
20396 ## ----------------------------------- ##
20399 sed "s/^/$as_me: WARNING: /" >&2
20402 echo "$as_me:$LINENO: checking for stdint.h" >&5
20403 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20404 if test "${ac_cv_header_stdint_h+set}" = set; then
20405 echo $ECHO_N "(cached) $ECHO_C" >&6
20407 ac_cv_header_stdint_h=$ac_header_preproc
20409 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20410 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20413 if test $ac_cv_header_stdint_h = yes; then
20414 INCLUDE_STDINT_H='#include <stdint.h>'
20416 INCLUDE_STDINT_H=''
20423 echo "$as_me:$LINENO: checking for pid_t" >&5
20424 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20425 if test "${ac_cv_type_pid_t+set}" = set; then
20426 echo $ECHO_N "(cached) $ECHO_C" >&6
20428 cat >conftest.$ac_ext <<_ACEOF
20431 cat confdefs.h >>conftest.$ac_ext
20432 cat >>conftest.$ac_ext <<_ACEOF
20433 /* end confdefs.h. */
20434 $ac_includes_default
20440 if (sizeof (pid_t))
20446 rm -f conftest.$ac_objext
20447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20448 (eval $ac_compile) 2>conftest.er1
20450 grep -v '^ *+' conftest.er1 >conftest.err
20452 cat conftest.err >&5
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); } &&
20455 { ac_try='test -z "$ac_c_werror_flag"
20456 || test ! -s conftest.err'
20457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20458 (eval $ac_try) 2>&5
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); }; } &&
20462 { ac_try='test -s conftest.$ac_objext'
20463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20464 (eval $ac_try) 2>&5
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); }; }; then
20468 ac_cv_type_pid_t=yes
20470 echo "$as_me: failed program was:" >&5
20471 sed 's/^/| /' conftest.$ac_ext >&5
20473 ac_cv_type_pid_t=no
20475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20477 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20478 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20479 if test $ac_cv_type_pid_t = yes; then
20483 cat >>confdefs.h <<_ACEOF
20489 echo "$as_me:$LINENO: checking for size_t" >&5
20490 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20491 if test "${ac_cv_type_size_t+set}" = set; then
20492 echo $ECHO_N "(cached) $ECHO_C" >&6
20494 cat >conftest.$ac_ext <<_ACEOF
20497 cat confdefs.h >>conftest.$ac_ext
20498 cat >>conftest.$ac_ext <<_ACEOF
20499 /* end confdefs.h. */
20500 $ac_includes_default
20506 if (sizeof (size_t))
20512 rm -f conftest.$ac_objext
20513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20514 (eval $ac_compile) 2>conftest.er1
20516 grep -v '^ *+' conftest.er1 >conftest.err
20518 cat conftest.err >&5
20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); } &&
20521 { ac_try='test -z "$ac_c_werror_flag"
20522 || test ! -s conftest.err'
20523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20524 (eval $ac_try) 2>&5
20526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527 (exit $ac_status); }; } &&
20528 { ac_try='test -s conftest.$ac_objext'
20529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20530 (eval $ac_try) 2>&5
20532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533 (exit $ac_status); }; }; then
20534 ac_cv_type_size_t=yes
20536 echo "$as_me: failed program was:" >&5
20537 sed 's/^/| /' conftest.$ac_ext >&5
20539 ac_cv_type_size_t=no
20541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20543 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20544 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20545 if test $ac_cv_type_size_t = yes; then
20549 cat >>confdefs.h <<_ACEOF
20550 #define size_t unsigned
20555 echo "$as_me:$LINENO: checking for int64_t" >&5
20556 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20557 if test "${ac_cv_type_int64_t+set}" = set; then
20558 echo $ECHO_N "(cached) $ECHO_C" >&6
20560 cat >conftest.$ac_ext <<_ACEOF
20563 cat confdefs.h >>conftest.$ac_ext
20564 cat >>conftest.$ac_ext <<_ACEOF
20565 /* end confdefs.h. */
20566 $ac_includes_default
20572 if (sizeof (int64_t))
20578 rm -f conftest.$ac_objext
20579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20580 (eval $ac_compile) 2>conftest.er1
20582 grep -v '^ *+' conftest.er1 >conftest.err
20584 cat conftest.err >&5
20585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586 (exit $ac_status); } &&
20587 { ac_try='test -z "$ac_c_werror_flag"
20588 || test ! -s conftest.err'
20589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20590 (eval $ac_try) 2>&5
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); }; } &&
20594 { ac_try='test -s conftest.$ac_objext'
20595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20596 (eval $ac_try) 2>&5
20598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599 (exit $ac_status); }; }; then
20600 ac_cv_type_int64_t=yes
20602 echo "$as_me: failed program was:" >&5
20603 sed 's/^/| /' conftest.$ac_ext >&5
20605 ac_cv_type_int64_t=no
20607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20609 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20610 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20611 if test $ac_cv_type_int64_t = yes; then
20613 cat >>confdefs.h <<_ACEOF
20614 #define HAVE_INT64_T 1
20619 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20620 echo "$as_me: error: Type int64_t required but not found" >&2;}
20621 { (exit 1); exit 1; }; }
20624 echo "$as_me:$LINENO: checking for uint64_t" >&5
20625 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20626 if test "${ac_cv_type_uint64_t+set}" = set; then
20627 echo $ECHO_N "(cached) $ECHO_C" >&6
20629 cat >conftest.$ac_ext <<_ACEOF
20632 cat confdefs.h >>conftest.$ac_ext
20633 cat >>conftest.$ac_ext <<_ACEOF
20634 /* end confdefs.h. */
20635 $ac_includes_default
20639 if ((uint64_t *) 0)
20641 if (sizeof (uint64_t))
20647 rm -f conftest.$ac_objext
20648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20649 (eval $ac_compile) 2>conftest.er1
20651 grep -v '^ *+' conftest.er1 >conftest.err
20653 cat conftest.err >&5
20654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); } &&
20656 { ac_try='test -z "$ac_c_werror_flag"
20657 || test ! -s conftest.err'
20658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20659 (eval $ac_try) 2>&5
20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); }; } &&
20663 { ac_try='test -s conftest.$ac_objext'
20664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20665 (eval $ac_try) 2>&5
20667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 (exit $ac_status); }; }; then
20669 ac_cv_type_uint64_t=yes
20671 echo "$as_me: failed program was:" >&5
20672 sed 's/^/| /' conftest.$ac_ext >&5
20674 ac_cv_type_uint64_t=no
20676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20678 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20679 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20680 if test $ac_cv_type_uint64_t = yes; then
20682 cat >>confdefs.h <<_ACEOF
20683 #define HAVE_UINT64_T 1
20688 echo "$as_me:$LINENO: checking for u_int64_t" >&5
20689 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
20690 if test "${ac_cv_type_u_int64_t+set}" = set; then
20691 echo $ECHO_N "(cached) $ECHO_C" >&6
20693 cat >conftest.$ac_ext <<_ACEOF
20696 cat confdefs.h >>conftest.$ac_ext
20697 cat >>conftest.$ac_ext <<_ACEOF
20698 /* end confdefs.h. */
20699 $ac_includes_default
20703 if ((u_int64_t *) 0)
20705 if (sizeof (u_int64_t))
20711 rm -f conftest.$ac_objext
20712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20713 (eval $ac_compile) 2>conftest.er1
20715 grep -v '^ *+' conftest.er1 >conftest.err
20717 cat conftest.err >&5
20718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719 (exit $ac_status); } &&
20720 { ac_try='test -z "$ac_c_werror_flag"
20721 || test ! -s conftest.err'
20722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20723 (eval $ac_try) 2>&5
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); }; } &&
20727 { ac_try='test -s conftest.$ac_objext'
20728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20729 (eval $ac_try) 2>&5
20731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); }; }; then
20733 ac_cv_type_u_int64_t=yes
20735 echo "$as_me: failed program was:" >&5
20736 sed 's/^/| /' conftest.$ac_ext >&5
20738 ac_cv_type_u_int64_t=no
20740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20742 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
20743 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
20744 if test $ac_cv_type_u_int64_t = yes; then
20746 cat >>confdefs.h <<_ACEOF
20747 #define HAVE_U_INT64_T 1
20752 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
20753 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
20754 { (exit 1); exit 1; }; }
20759 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20760 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20761 if test "${ac_cv_header_time+set}" = set; then
20762 echo $ECHO_N "(cached) $ECHO_C" >&6
20764 cat >conftest.$ac_ext <<_ACEOF
20767 cat confdefs.h >>conftest.$ac_ext
20768 cat >>conftest.$ac_ext <<_ACEOF
20769 /* end confdefs.h. */
20770 #include <sys/types.h>
20771 #include <sys/time.h>
20777 if ((struct tm *) 0)
20783 rm -f conftest.$ac_objext
20784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20785 (eval $ac_compile) 2>conftest.er1
20787 grep -v '^ *+' conftest.er1 >conftest.err
20789 cat conftest.err >&5
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); } &&
20792 { ac_try='test -z "$ac_c_werror_flag"
20793 || test ! -s conftest.err'
20794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20795 (eval $ac_try) 2>&5
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 (exit $ac_status); }; } &&
20799 { ac_try='test -s conftest.$ac_objext'
20800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20801 (eval $ac_try) 2>&5
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); }; }; then
20805 ac_cv_header_time=yes
20807 echo "$as_me: failed program was:" >&5
20808 sed 's/^/| /' conftest.$ac_ext >&5
20810 ac_cv_header_time=no
20812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20814 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20815 echo "${ECHO_T}$ac_cv_header_time" >&6
20816 if test $ac_cv_header_time = yes; then
20818 cat >>confdefs.h <<\_ACEOF
20819 #define TIME_WITH_SYS_TIME 1
20824 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20825 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20826 if test "${ac_cv_struct_tm+set}" = set; then
20827 echo $ECHO_N "(cached) $ECHO_C" >&6
20829 cat >conftest.$ac_ext <<_ACEOF
20832 cat confdefs.h >>conftest.$ac_ext
20833 cat >>conftest.$ac_ext <<_ACEOF
20834 /* end confdefs.h. */
20835 #include <sys/types.h>
20841 struct tm *tp; tp->tm_sec;
20846 rm -f conftest.$ac_objext
20847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20848 (eval $ac_compile) 2>conftest.er1
20850 grep -v '^ *+' conftest.er1 >conftest.err
20852 cat conftest.err >&5
20853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854 (exit $ac_status); } &&
20855 { ac_try='test -z "$ac_c_werror_flag"
20856 || test ! -s conftest.err'
20857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20858 (eval $ac_try) 2>&5
20860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861 (exit $ac_status); }; } &&
20862 { ac_try='test -s conftest.$ac_objext'
20863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20864 (eval $ac_try) 2>&5
20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); }; }; then
20868 ac_cv_struct_tm=time.h
20870 echo "$as_me: failed program was:" >&5
20871 sed 's/^/| /' conftest.$ac_ext >&5
20873 ac_cv_struct_tm=sys/time.h
20875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20877 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20878 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20879 if test $ac_cv_struct_tm = sys/time.h; then
20881 cat >>confdefs.h <<\_ACEOF
20882 #define TM_IN_SYS_TIME 1
20889 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
20890 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
20892 ac_cpp='$CPP $CPPFLAGS'
20893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20897 if test "$cross_compiling" = yes; then
20900 cat >conftest.$ac_ext <<_ACEOF
20904 cat confdefs.h >>conftest.$ac_ext
20905 cat >>conftest.$ac_ext <<_ACEOF
20906 /* end confdefs.h. */
20909 #include <stdlib.h>
20915 volatile double A, B;
20919 sprintf(Buffer, "%a", A);
20923 if (A != 0x1.999999999999ap-4)
20930 rm -f conftest$ac_exeext
20931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20932 (eval $ac_link) 2>&5
20934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20937 (eval $ac_try) 2>&5
20939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940 (exit $ac_status); }; }; then
20943 echo "$as_me: program exited with status $ac_status" >&5
20944 echo "$as_me: failed program was:" >&5
20945 sed 's/^/| /' conftest.$ac_ext >&5
20947 ( exit $ac_status )
20950 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20953 ac_cpp='$CPP $CPPFLAGS'
20954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20958 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
20959 echo "${ECHO_T}$ac_c_printf_a" >&6
20960 if test "$ac_c_printf_a" = "yes"; then
20962 cat >>confdefs.h <<\_ACEOF
20963 #define HAVE_PRINTF_A 1
20969 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20970 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20971 if test "${ac_cv_c_bigendian+set}" = set; then
20972 echo $ECHO_N "(cached) $ECHO_C" >&6
20974 # See if sys/param.h defines the BYTE_ORDER macro.
20975 cat >conftest.$ac_ext <<_ACEOF
20978 cat confdefs.h >>conftest.$ac_ext
20979 cat >>conftest.$ac_ext <<_ACEOF
20980 /* end confdefs.h. */
20981 #include <sys/types.h>
20982 #include <sys/param.h>
20987 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20988 bogus endian macros
20995 rm -f conftest.$ac_objext
20996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20997 (eval $ac_compile) 2>conftest.er1
20999 grep -v '^ *+' conftest.er1 >conftest.err
21001 cat conftest.err >&5
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); } &&
21004 { ac_try='test -z "$ac_c_werror_flag"
21005 || test ! -s conftest.err'
21006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21007 (eval $ac_try) 2>&5
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); }; } &&
21011 { ac_try='test -s conftest.$ac_objext'
21012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21013 (eval $ac_try) 2>&5
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); }; }; then
21017 # It does; now see whether it defined to BIG_ENDIAN or not.
21018 cat >conftest.$ac_ext <<_ACEOF
21021 cat confdefs.h >>conftest.$ac_ext
21022 cat >>conftest.$ac_ext <<_ACEOF
21023 /* end confdefs.h. */
21024 #include <sys/types.h>
21025 #include <sys/param.h>
21030 #if BYTE_ORDER != BIG_ENDIAN
21038 rm -f conftest.$ac_objext
21039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21040 (eval $ac_compile) 2>conftest.er1
21042 grep -v '^ *+' conftest.er1 >conftest.err
21044 cat conftest.err >&5
21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); } &&
21047 { ac_try='test -z "$ac_c_werror_flag"
21048 || test ! -s conftest.err'
21049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21050 (eval $ac_try) 2>&5
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); }; } &&
21054 { ac_try='test -s conftest.$ac_objext'
21055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21056 (eval $ac_try) 2>&5
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); }; }; then
21060 ac_cv_c_bigendian=yes
21062 echo "$as_me: failed program was:" >&5
21063 sed 's/^/| /' conftest.$ac_ext >&5
21065 ac_cv_c_bigendian=no
21067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21069 echo "$as_me: failed program was:" >&5
21070 sed 's/^/| /' conftest.$ac_ext >&5
21072 # It does not; compile a test program.
21073 if test "$cross_compiling" = yes; then
21074 # try to guess the endianness by grepping values into an object file
21075 ac_cv_c_bigendian=unknown
21076 cat >conftest.$ac_ext <<_ACEOF
21079 cat confdefs.h >>conftest.$ac_ext
21080 cat >>conftest.$ac_ext <<_ACEOF
21081 /* end confdefs.h. */
21082 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21083 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21084 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21085 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21086 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21087 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21091 _ascii (); _ebcdic ();
21096 rm -f conftest.$ac_objext
21097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21098 (eval $ac_compile) 2>conftest.er1
21100 grep -v '^ *+' conftest.er1 >conftest.err
21102 cat conftest.err >&5
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); } &&
21105 { ac_try='test -z "$ac_c_werror_flag"
21106 || test ! -s conftest.err'
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); }; } &&
21112 { ac_try='test -s conftest.$ac_objext'
21113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21114 (eval $ac_try) 2>&5
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); }; }; then
21118 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21119 ac_cv_c_bigendian=yes
21121 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21122 if test "$ac_cv_c_bigendian" = unknown; then
21123 ac_cv_c_bigendian=no
21125 # finding both strings is unlikely to happen, but who knows?
21126 ac_cv_c_bigendian=unknown
21130 echo "$as_me: failed program was:" >&5
21131 sed 's/^/| /' conftest.$ac_ext >&5
21134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21136 cat >conftest.$ac_ext <<_ACEOF
21139 cat confdefs.h >>conftest.$ac_ext
21140 cat >>conftest.$ac_ext <<_ACEOF
21141 /* end confdefs.h. */
21145 /* Are we little or big endian? From Harbison&Steele. */
21149 char c[sizeof (long)];
21152 exit (u.c[sizeof (long) - 1] == 1);
21155 rm -f conftest$ac_exeext
21156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21157 (eval $ac_link) 2>&5
21159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21162 (eval $ac_try) 2>&5
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); }; }; then
21166 ac_cv_c_bigendian=no
21168 echo "$as_me: program exited with status $ac_status" >&5
21169 echo "$as_me: failed program was:" >&5
21170 sed 's/^/| /' conftest.$ac_ext >&5
21172 ( exit $ac_status )
21173 ac_cv_c_bigendian=yes
21175 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21180 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21181 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21182 case $ac_cv_c_bigendian in
21190 { { echo "$as_me:$LINENO: error: unknown endianness
21191 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21192 echo "$as_me: error: unknown endianness
21193 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21194 { (exit 1); exit 1; }; } ;;
21198 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
21199 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
21200 if test "${ac_cv_cxx_namespaces+set}" = set; then
21201 echo $ECHO_N "(cached) $ECHO_C" >&6
21204 ac_cpp='$CXXCPP $CPPFLAGS'
21205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21209 cat >conftest.$ac_ext <<_ACEOF
21212 cat confdefs.h >>conftest.$ac_ext
21213 cat >>conftest.$ac_ext <<_ACEOF
21214 /* end confdefs.h. */
21215 namespace Outer { namespace Inner { int i = 0; }}
21219 using namespace Outer::Inner; return i;
21224 rm -f conftest.$ac_objext
21225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21226 (eval $ac_compile) 2>conftest.er1
21228 grep -v '^ *+' conftest.er1 >conftest.err
21230 cat conftest.err >&5
21231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232 (exit $ac_status); } &&
21233 { ac_try='test -z "$ac_cxx_werror_flag"
21234 || test ! -s conftest.err'
21235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21236 (eval $ac_try) 2>&5
21238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); }; } &&
21240 { ac_try='test -s conftest.$ac_objext'
21241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21242 (eval $ac_try) 2>&5
21244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245 (exit $ac_status); }; }; then
21246 ac_cv_cxx_namespaces=yes
21248 echo "$as_me: failed program was:" >&5
21249 sed 's/^/| /' conftest.$ac_ext >&5
21251 ac_cv_cxx_namespaces=no
21253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21255 ac_cpp='$CPP $CPPFLAGS'
21256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21262 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
21263 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
21264 if test "$ac_cv_cxx_namespaces" = yes; then
21266 cat >>confdefs.h <<\_ACEOF
21267 #define HAVE_NAMESPACES
21272 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
21273 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
21274 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
21275 echo $ECHO_N "(cached) $ECHO_C" >&6
21279 ac_cpp='$CXXCPP $CPPFLAGS'
21280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21284 cat >conftest.$ac_ext <<_ACEOF
21287 cat confdefs.h >>conftest.$ac_ext
21288 cat >>conftest.$ac_ext <<_ACEOF
21289 /* end confdefs.h. */
21290 #include <ext/hash_map>
21291 #ifdef HAVE_NAMESPACES
21292 using namespace std;
21297 hash_map<int, int> t;
21302 rm -f conftest.$ac_objext
21303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21304 (eval $ac_compile) 2>conftest.er1
21306 grep -v '^ *+' conftest.er1 >conftest.err
21308 cat conftest.err >&5
21309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310 (exit $ac_status); } &&
21311 { ac_try='test -z "$ac_cxx_werror_flag"
21312 || test ! -s conftest.err'
21313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21314 (eval $ac_try) 2>&5
21316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317 (exit $ac_status); }; } &&
21318 { ac_try='test -s conftest.$ac_objext'
21319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21320 (eval $ac_try) 2>&5
21322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); }; }; then
21324 ac_cv_cxx_have_std_ext_hash_map=yes
21326 echo "$as_me: failed program was:" >&5
21327 sed 's/^/| /' conftest.$ac_ext >&5
21329 ac_cv_cxx_have_std_ext_hash_map=no
21331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21333 ac_cpp='$CPP $CPPFLAGS'
21334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21339 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21340 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
21341 HAVE_STD_EXT_HASH_MAP=0
21342 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21344 HAVE_STD_EXT_HASH_MAP=1
21347 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21348 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21349 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21350 echo $ECHO_N "(cached) $ECHO_C" >&6
21354 ac_cpp='$CXXCPP $CPPFLAGS'
21355 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21356 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21357 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21359 cat >conftest.$ac_ext <<_ACEOF
21362 cat confdefs.h >>conftest.$ac_ext
21363 cat >>conftest.$ac_ext <<_ACEOF
21364 /* end confdefs.h. */
21365 #include <ext/hash_map>
21366 #ifdef HAVE_NAMESPACES
21367 using namespace __gnu_cxx;
21372 hash_map<int,int> t;
21377 rm -f conftest.$ac_objext
21378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21379 (eval $ac_compile) 2>conftest.er1
21381 grep -v '^ *+' conftest.er1 >conftest.err
21383 cat conftest.err >&5
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); } &&
21386 { ac_try='test -z "$ac_cxx_werror_flag"
21387 || test ! -s conftest.err'
21388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21389 (eval $ac_try) 2>&5
21391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392 (exit $ac_status); }; } &&
21393 { ac_try='test -s conftest.$ac_objext'
21394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21395 (eval $ac_try) 2>&5
21397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398 (exit $ac_status); }; }; then
21399 ac_cv_cxx_have_gnu_ext_hash_map=yes
21401 echo "$as_me: failed program was:" >&5
21402 sed 's/^/| /' conftest.$ac_ext >&5
21404 ac_cv_cxx_have_gnu_ext_hash_map=no
21406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21408 ac_cpp='$CPP $CPPFLAGS'
21409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21414 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21415 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
21416 HAVE_GNU_EXT_HASH_MAP=0
21417 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21419 HAVE_GNU_EXT_HASH_MAP=1
21422 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21423 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21424 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21425 echo $ECHO_N "(cached) $ECHO_C" >&6
21429 ac_cpp='$CXXCPP $CPPFLAGS'
21430 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21431 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21432 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21434 cat >conftest.$ac_ext <<_ACEOF
21437 cat confdefs.h >>conftest.$ac_ext
21438 cat >>conftest.$ac_ext <<_ACEOF
21439 /* end confdefs.h. */
21440 #include <hash_map>
21444 hash_map<int,int> t;
21449 rm -f conftest.$ac_objext
21450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21451 (eval $ac_compile) 2>conftest.er1
21453 grep -v '^ *+' conftest.er1 >conftest.err
21455 cat conftest.err >&5
21456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457 (exit $ac_status); } &&
21458 { ac_try='test -z "$ac_cxx_werror_flag"
21459 || test ! -s conftest.err'
21460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21461 (eval $ac_try) 2>&5
21463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464 (exit $ac_status); }; } &&
21465 { ac_try='test -s conftest.$ac_objext'
21466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21467 (eval $ac_try) 2>&5
21469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470 (exit $ac_status); }; }; then
21471 ac_cv_cxx_have_global_hash_map=yes
21473 echo "$as_me: failed program was:" >&5
21474 sed 's/^/| /' conftest.$ac_ext >&5
21476 ac_cv_cxx_have_global_hash_map=no
21478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21480 ac_cpp='$CPP $CPPFLAGS'
21481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21486 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21487 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
21488 HAVE_GLOBAL_HASH_MAP=0
21489 if test "$ac_cv_cxx_have_global_hash_map" = yes
21491 HAVE_GLOBAL_HASH_MAP=1
21494 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21495 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21496 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
21497 echo $ECHO_N "(cached) $ECHO_C" >&6
21501 ac_cpp='$CXXCPP $CPPFLAGS'
21502 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21503 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21504 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21506 cat >conftest.$ac_ext <<_ACEOF
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h. */
21512 #include <ext/hash_set>
21513 #ifdef HAVE_NAMESPACES
21514 using namespace std;
21524 rm -f conftest.$ac_objext
21525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21526 (eval $ac_compile) 2>conftest.er1
21528 grep -v '^ *+' conftest.er1 >conftest.err
21530 cat conftest.err >&5
21531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532 (exit $ac_status); } &&
21533 { ac_try='test -z "$ac_cxx_werror_flag"
21534 || test ! -s conftest.err'
21535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21536 (eval $ac_try) 2>&5
21538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); }; } &&
21540 { ac_try='test -s conftest.$ac_objext'
21541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21542 (eval $ac_try) 2>&5
21544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545 (exit $ac_status); }; }; then
21546 ac_cv_cxx_have_std_ext_hash_set=yes
21548 echo "$as_me: failed program was:" >&5
21549 sed 's/^/| /' conftest.$ac_ext >&5
21551 ac_cv_cxx_have_std_ext_hash_set=no
21553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21555 ac_cpp='$CPP $CPPFLAGS'
21556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21561 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21562 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
21563 HAVE_STD_EXT_HASH_SET=0
21564 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
21566 HAVE_STD_EXT_HASH_SET=1
21569 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21570 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21571 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21572 echo $ECHO_N "(cached) $ECHO_C" >&6
21576 ac_cpp='$CXXCPP $CPPFLAGS'
21577 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21578 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21579 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21581 cat >conftest.$ac_ext <<_ACEOF
21584 cat confdefs.h >>conftest.$ac_ext
21585 cat >>conftest.$ac_ext <<_ACEOF
21586 /* end confdefs.h. */
21587 #include <ext/hash_set>
21588 #ifdef HAVE_NAMESPACES
21589 using namespace __gnu_cxx;
21599 rm -f conftest.$ac_objext
21600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21601 (eval $ac_compile) 2>conftest.er1
21603 grep -v '^ *+' conftest.er1 >conftest.err
21605 cat conftest.err >&5
21606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607 (exit $ac_status); } &&
21608 { ac_try='test -z "$ac_cxx_werror_flag"
21609 || test ! -s conftest.err'
21610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21611 (eval $ac_try) 2>&5
21613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614 (exit $ac_status); }; } &&
21615 { ac_try='test -s conftest.$ac_objext'
21616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21617 (eval $ac_try) 2>&5
21619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620 (exit $ac_status); }; }; then
21621 ac_cv_cxx_have_gnu_ext_hash_set=yes
21623 echo "$as_me: failed program was:" >&5
21624 sed 's/^/| /' conftest.$ac_ext >&5
21626 ac_cv_cxx_have_gnu_ext_hash_set=no
21628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21630 ac_cpp='$CPP $CPPFLAGS'
21631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21636 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21637 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
21638 HAVE_GNU_EXT_HASH_SET=0
21639 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
21641 HAVE_GNU_EXT_HASH_SET=1
21644 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21645 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21646 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21647 echo $ECHO_N "(cached) $ECHO_C" >&6
21651 ac_cpp='$CXXCPP $CPPFLAGS'
21652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21656 cat >conftest.$ac_ext <<_ACEOF
21659 cat confdefs.h >>conftest.$ac_ext
21660 cat >>conftest.$ac_ext <<_ACEOF
21661 /* end confdefs.h. */
21662 #include <hash_set>
21666 hash_set<int> t; return 0;
21671 rm -f conftest.$ac_objext
21672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21673 (eval $ac_compile) 2>conftest.er1
21675 grep -v '^ *+' conftest.er1 >conftest.err
21677 cat conftest.err >&5
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); } &&
21680 { ac_try='test -z "$ac_cxx_werror_flag"
21681 || test ! -s conftest.err'
21682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21683 (eval $ac_try) 2>&5
21685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686 (exit $ac_status); }; } &&
21687 { ac_try='test -s conftest.$ac_objext'
21688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21689 (eval $ac_try) 2>&5
21691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692 (exit $ac_status); }; }; then
21693 ac_cv_cxx_have_global_hash_set=yes
21695 echo "$as_me: failed program was:" >&5
21696 sed 's/^/| /' conftest.$ac_ext >&5
21698 ac_cv_cxx_have_global_hash_set=no
21700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21702 ac_cpp='$CPP $CPPFLAGS'
21703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21708 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21709 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
21710 HAVE_GLOBAL_HASH_SET=0
21711 if test "$ac_cv_cxx_have_global_hash_set" = yes
21713 HAVE_GLOBAL_HASH_SET=1
21716 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21717 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21718 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21719 echo $ECHO_N "(cached) $ECHO_C" >&6
21723 ac_cpp='$CXXCPP $CPPFLAGS'
21724 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21725 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21726 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21728 cat >conftest.$ac_ext <<_ACEOF
21731 cat confdefs.h >>conftest.$ac_ext
21732 cat >>conftest.$ac_ext <<_ACEOF
21733 /* end confdefs.h. */
21734 #include <iterator>
21735 #ifdef HAVE_NAMESPACES
21736 using namespace std;
21741 iterator<int,int,int> t; return 0;
21746 rm -f conftest.$ac_objext
21747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21748 (eval $ac_compile) 2>conftest.er1
21750 grep -v '^ *+' conftest.er1 >conftest.err
21752 cat conftest.err >&5
21753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); } &&
21755 { ac_try='test -z "$ac_cxx_werror_flag"
21756 || test ! -s conftest.err'
21757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21758 (eval $ac_try) 2>&5
21760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761 (exit $ac_status); }; } &&
21762 { ac_try='test -s conftest.$ac_objext'
21763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21764 (eval $ac_try) 2>&5
21766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767 (exit $ac_status); }; }; then
21768 ac_cv_cxx_have_std_iterator=yes
21770 echo "$as_me: failed program was:" >&5
21771 sed 's/^/| /' conftest.$ac_ext >&5
21773 ac_cv_cxx_have_std_iterator=no
21775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21777 ac_cpp='$CPP $CPPFLAGS'
21778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21784 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21785 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21786 HAVE_STD_ITERATOR=0
21787 if test "$ac_cv_cxx_have_std_iterator" = yes
21789 HAVE_STD_ITERATOR=1
21792 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21793 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21794 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21795 echo $ECHO_N "(cached) $ECHO_C" >&6
21799 ac_cpp='$CXXCPP $CPPFLAGS'
21800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21804 cat >conftest.$ac_ext <<_ACEOF
21807 cat confdefs.h >>conftest.$ac_ext
21808 cat >>conftest.$ac_ext <<_ACEOF
21809 /* end confdefs.h. */
21810 #include <iterator>
21811 #ifdef HAVE_NAMESPACES
21812 using namespace std;
21817 bidirectional_iterator<int,int> t; return 0;
21822 rm -f conftest.$ac_objext
21823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21824 (eval $ac_compile) 2>conftest.er1
21826 grep -v '^ *+' conftest.er1 >conftest.err
21828 cat conftest.err >&5
21829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830 (exit $ac_status); } &&
21831 { ac_try='test -z "$ac_cxx_werror_flag"
21832 || test ! -s conftest.err'
21833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21834 (eval $ac_try) 2>&5
21836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837 (exit $ac_status); }; } &&
21838 { ac_try='test -s conftest.$ac_objext'
21839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21840 (eval $ac_try) 2>&5
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); }; }; then
21844 ac_cv_cxx_have_bi_iterator=yes
21846 echo "$as_me: failed program was:" >&5
21847 sed 's/^/| /' conftest.$ac_ext >&5
21849 ac_cv_cxx_have_bi_iterator=no
21851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21853 ac_cpp='$CPP $CPPFLAGS'
21854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21860 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21861 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21863 if test "$ac_cv_cxx_have_bi_iterator" = yes
21868 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21869 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21870 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21871 echo $ECHO_N "(cached) $ECHO_C" >&6
21875 ac_cpp='$CXXCPP $CPPFLAGS'
21876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21880 cat >conftest.$ac_ext <<_ACEOF
21883 cat confdefs.h >>conftest.$ac_ext
21884 cat >>conftest.$ac_ext <<_ACEOF
21885 /* end confdefs.h. */
21886 #include <iterator>
21887 #ifdef HAVE_NAMESPACES
21888 using namespace std;
21893 forward_iterator<int,int> t; return 0;
21898 rm -f conftest.$ac_objext
21899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21900 (eval $ac_compile) 2>conftest.er1
21902 grep -v '^ *+' conftest.er1 >conftest.err
21904 cat conftest.err >&5
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); } &&
21907 { ac_try='test -z "$ac_cxx_werror_flag"
21908 || test ! -s conftest.err'
21909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21910 (eval $ac_try) 2>&5
21912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913 (exit $ac_status); }; } &&
21914 { ac_try='test -s conftest.$ac_objext'
21915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21916 (eval $ac_try) 2>&5
21918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919 (exit $ac_status); }; }; then
21920 ac_cv_cxx_have_fwd_iterator=yes
21922 echo "$as_me: failed program was:" >&5
21923 sed 's/^/| /' conftest.$ac_ext >&5
21925 ac_cv_cxx_have_fwd_iterator=no
21927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21929 ac_cpp='$CPP $CPPFLAGS'
21930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21936 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21937 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21938 HAVE_FWD_ITERATOR=0
21939 if test "$ac_cv_cxx_have_fwd_iterator" = yes
21941 HAVE_FWD_ITERATOR=1
21946 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
21947 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
21948 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
21949 echo $ECHO_N "(cached) $ECHO_C" >&6
21952 ac_cpp='$CXXCPP $CPPFLAGS'
21953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21957 cat >conftest.$ac_ext <<_ACEOF
21960 cat confdefs.h >>conftest.$ac_ext
21961 cat >>conftest.$ac_ext <<_ACEOF
21962 /* end confdefs.h. */
21964 int foo(float f) {return isnan(f);}
21966 rm -f conftest.$ac_objext
21967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21968 (eval $ac_compile) 2>conftest.er1
21970 grep -v '^ *+' conftest.er1 >conftest.err
21972 cat conftest.err >&5
21973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974 (exit $ac_status); } &&
21975 { ac_try='test -z "$ac_cxx_werror_flag"
21976 || test ! -s conftest.err'
21977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21978 (eval $ac_try) 2>&5
21980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21981 (exit $ac_status); }; } &&
21982 { ac_try='test -s conftest.$ac_objext'
21983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21984 (eval $ac_try) 2>&5
21986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21987 (exit $ac_status); }; }; then
21988 ac_cv_func_isnan_in_math_h=yes
21990 echo "$as_me: failed program was:" >&5
21991 sed 's/^/| /' conftest.$ac_ext >&5
21993 ac_cv_func_isnan_in_math_h=no
21995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21997 ac_cpp='$CPP $CPPFLAGS'
21998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22003 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
22004 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
22005 if test "$ac_cv_func_isnan_in_math_h" = "yes"
22008 cat >>confdefs.h <<\_ACEOF
22009 #define HAVE_ISNAN_IN_MATH_H 1
22013 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
22014 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
22015 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
22016 echo $ECHO_N "(cached) $ECHO_C" >&6
22019 ac_cpp='$CXXCPP $CPPFLAGS'
22020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22024 cat >conftest.$ac_ext <<_ACEOF
22027 cat confdefs.h >>conftest.$ac_ext
22028 cat >>conftest.$ac_ext <<_ACEOF
22029 /* end confdefs.h. */
22031 int foo(float f) {return isnan(f);}
22033 rm -f conftest.$ac_objext
22034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22035 (eval $ac_compile) 2>conftest.er1
22037 grep -v '^ *+' conftest.er1 >conftest.err
22039 cat conftest.err >&5
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); } &&
22042 { ac_try='test -z "$ac_cxx_werror_flag"
22043 || test ! -s conftest.err'
22044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22045 (eval $ac_try) 2>&5
22047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22048 (exit $ac_status); }; } &&
22049 { ac_try='test -s conftest.$ac_objext'
22050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22051 (eval $ac_try) 2>&5
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); }; }; then
22055 ac_cv_func_isnan_in_cmath=yes
22057 echo "$as_me: failed program was:" >&5
22058 sed 's/^/| /' conftest.$ac_ext >&5
22060 ac_cv_func_isnan_in_cmath=no
22062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22064 ac_cpp='$CPP $CPPFLAGS'
22065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22070 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
22071 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
22072 if test "$ac_cv_func_isnan_in_cmath" = "yes"
22075 cat >>confdefs.h <<\_ACEOF
22076 #define HAVE_ISNAN_IN_CMATH 1
22080 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
22081 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
22082 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
22083 echo $ECHO_N "(cached) $ECHO_C" >&6
22086 ac_cpp='$CXXCPP $CPPFLAGS'
22087 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22088 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22089 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22091 cat >conftest.$ac_ext <<_ACEOF
22094 cat confdefs.h >>conftest.$ac_ext
22095 cat >>conftest.$ac_ext <<_ACEOF
22096 /* end confdefs.h. */
22098 using std::isnan; int foo(float f) {return isnan(f);}
22100 rm -f conftest.$ac_objext
22101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22102 (eval $ac_compile) 2>conftest.er1
22104 grep -v '^ *+' conftest.er1 >conftest.err
22106 cat conftest.err >&5
22107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108 (exit $ac_status); } &&
22109 { ac_try='test -z "$ac_cxx_werror_flag"
22110 || test ! -s conftest.err'
22111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22112 (eval $ac_try) 2>&5
22114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115 (exit $ac_status); }; } &&
22116 { ac_try='test -s conftest.$ac_objext'
22117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22118 (eval $ac_try) 2>&5
22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); }; }; then
22122 ac_cv_func_std_isnan_in_cmath=yes
22124 echo "$as_me: failed program was:" >&5
22125 sed 's/^/| /' conftest.$ac_ext >&5
22127 ac_cv_func_std_isnan_in_cmath=no
22129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22131 ac_cpp='$CPP $CPPFLAGS'
22132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22137 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
22138 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
22139 if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
22142 cat >>confdefs.h <<\_ACEOF
22143 #define HAVE_STD_ISNAN_IN_CMATH 1
22149 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
22150 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
22151 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
22152 echo $ECHO_N "(cached) $ECHO_C" >&6
22155 ac_cpp='$CXXCPP $CPPFLAGS'
22156 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22157 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22158 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22160 cat >conftest.$ac_ext <<_ACEOF
22163 cat confdefs.h >>conftest.$ac_ext
22164 cat >>conftest.$ac_ext <<_ACEOF
22165 /* end confdefs.h. */
22167 int foo(float f) {return isinf(f);}
22169 rm -f conftest.$ac_objext
22170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22171 (eval $ac_compile) 2>conftest.er1
22173 grep -v '^ *+' conftest.er1 >conftest.err
22175 cat conftest.err >&5
22176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177 (exit $ac_status); } &&
22178 { ac_try='test -z "$ac_cxx_werror_flag"
22179 || test ! -s conftest.err'
22180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22181 (eval $ac_try) 2>&5
22183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); }; } &&
22185 { ac_try='test -s conftest.$ac_objext'
22186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22187 (eval $ac_try) 2>&5
22189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22190 (exit $ac_status); }; }; then
22191 ac_cv_func_isinf_in_math_h=yes
22193 echo "$as_me: failed program was:" >&5
22194 sed 's/^/| /' conftest.$ac_ext >&5
22196 ac_cv_func_isinf_in_math_h=no
22198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22200 ac_cpp='$CPP $CPPFLAGS'
22201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22206 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
22207 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
22208 if test "$ac_cv_func_isinf_in_math_h" = "yes"
22211 cat >>confdefs.h <<\_ACEOF
22212 #define HAVE_ISINF_IN_MATH_H 1
22216 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
22217 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
22218 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
22219 echo $ECHO_N "(cached) $ECHO_C" >&6
22222 ac_cpp='$CXXCPP $CPPFLAGS'
22223 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22224 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22225 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22227 cat >conftest.$ac_ext <<_ACEOF
22230 cat confdefs.h >>conftest.$ac_ext
22231 cat >>conftest.$ac_ext <<_ACEOF
22232 /* end confdefs.h. */
22234 int foo(float f) {return isinf(f);}
22236 rm -f conftest.$ac_objext
22237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22238 (eval $ac_compile) 2>conftest.er1
22240 grep -v '^ *+' conftest.er1 >conftest.err
22242 cat conftest.err >&5
22243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244 (exit $ac_status); } &&
22245 { ac_try='test -z "$ac_cxx_werror_flag"
22246 || test ! -s conftest.err'
22247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22248 (eval $ac_try) 2>&5
22250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251 (exit $ac_status); }; } &&
22252 { ac_try='test -s conftest.$ac_objext'
22253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22254 (eval $ac_try) 2>&5
22256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257 (exit $ac_status); }; }; then
22258 ac_cv_func_isinf_in_cmath=yes
22260 echo "$as_me: failed program was:" >&5
22261 sed 's/^/| /' conftest.$ac_ext >&5
22263 ac_cv_func_isinf_in_cmath=no
22265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22267 ac_cpp='$CPP $CPPFLAGS'
22268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22273 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
22274 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
22275 if test "$ac_cv_func_isinf_in_cmath" = "yes"
22278 cat >>confdefs.h <<\_ACEOF
22279 #define HAVE_ISINF_IN_CMATH 1
22283 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
22284 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
22285 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
22286 echo $ECHO_N "(cached) $ECHO_C" >&6
22289 ac_cpp='$CXXCPP $CPPFLAGS'
22290 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22291 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22292 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22294 cat >conftest.$ac_ext <<_ACEOF
22297 cat confdefs.h >>conftest.$ac_ext
22298 cat >>conftest.$ac_ext <<_ACEOF
22299 /* end confdefs.h. */
22301 using std::isinf; int foo(float f) {return isinf(f);}
22303 rm -f conftest.$ac_objext
22304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22305 (eval $ac_compile) 2>conftest.er1
22307 grep -v '^ *+' conftest.er1 >conftest.err
22309 cat conftest.err >&5
22310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); } &&
22312 { ac_try='test -z "$ac_cxx_werror_flag"
22313 || test ! -s conftest.err'
22314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22315 (eval $ac_try) 2>&5
22317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22318 (exit $ac_status); }; } &&
22319 { ac_try='test -s conftest.$ac_objext'
22320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22321 (eval $ac_try) 2>&5
22323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22324 (exit $ac_status); }; }; then
22325 ac_cv_func_std_isinf_in_cmath=yes
22327 echo "$as_me: failed program was:" >&5
22328 sed 's/^/| /' conftest.$ac_ext >&5
22330 ac_cv_func_std_isinf_in_cmath=no
22332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22334 ac_cpp='$CPP $CPPFLAGS'
22335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22340 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22341 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22342 if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
22345 cat >>confdefs.h <<\_ACEOF
22346 #define HAVE_STD_ISINF_IN_CMATH 1
22350 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22351 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22352 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22353 echo $ECHO_N "(cached) $ECHO_C" >&6
22356 ac_cpp='$CXXCPP $CPPFLAGS'
22357 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22358 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22359 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22361 cat >conftest.$ac_ext <<_ACEOF
22364 cat confdefs.h >>conftest.$ac_ext
22365 cat >>conftest.$ac_ext <<_ACEOF
22366 /* end confdefs.h. */
22367 #include <ieeefp.h>
22368 int foo(float f) {return finite(f);}
22370 rm -f conftest.$ac_objext
22371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22372 (eval $ac_compile) 2>conftest.er1
22374 grep -v '^ *+' conftest.er1 >conftest.err
22376 cat conftest.err >&5
22377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378 (exit $ac_status); } &&
22379 { ac_try='test -z "$ac_cxx_werror_flag"
22380 || test ! -s conftest.err'
22381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22382 (eval $ac_try) 2>&5
22384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22385 (exit $ac_status); }; } &&
22386 { ac_try='test -s conftest.$ac_objext'
22387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22388 (eval $ac_try) 2>&5
22390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391 (exit $ac_status); }; }; then
22392 ac_cv_func_finite_in_ieeefp_h=yes
22394 echo "$as_me: failed program was:" >&5
22395 sed 's/^/| /' conftest.$ac_ext >&5
22397 ac_cv_func_finite_in_ieeefp_h=no
22399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22401 ac_cpp='$CPP $CPPFLAGS'
22402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22407 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22408 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22409 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
22412 cat >>confdefs.h <<\_ACEOF
22413 #define HAVE_FINITE_IN_IEEEFP_H 1
22419 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22420 # for constant arguments. Useless!
22421 echo "$as_me:$LINENO: checking for working alloca.h" >&5
22422 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22423 if test "${ac_cv_working_alloca_h+set}" = set; then
22424 echo $ECHO_N "(cached) $ECHO_C" >&6
22426 cat >conftest.$ac_ext <<_ACEOF
22429 cat confdefs.h >>conftest.$ac_ext
22430 cat >>conftest.$ac_ext <<_ACEOF
22431 /* end confdefs.h. */
22432 #include <alloca.h>
22436 char *p = (char *) alloca (2 * sizeof (int));
22441 rm -f conftest.$ac_objext conftest$ac_exeext
22442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22443 (eval $ac_link) 2>conftest.er1
22445 grep -v '^ *+' conftest.er1 >conftest.err
22447 cat conftest.err >&5
22448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449 (exit $ac_status); } &&
22450 { ac_try='test -z "$ac_c_werror_flag"
22451 || test ! -s conftest.err'
22452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22453 (eval $ac_try) 2>&5
22455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456 (exit $ac_status); }; } &&
22457 { ac_try='test -s conftest$ac_exeext'
22458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22459 (eval $ac_try) 2>&5
22461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462 (exit $ac_status); }; }; then
22463 ac_cv_working_alloca_h=yes
22465 echo "$as_me: failed program was:" >&5
22466 sed 's/^/| /' conftest.$ac_ext >&5
22468 ac_cv_working_alloca_h=no
22470 rm -f conftest.err conftest.$ac_objext \
22471 conftest$ac_exeext conftest.$ac_ext
22473 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22474 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22475 if test $ac_cv_working_alloca_h = yes; then
22477 cat >>confdefs.h <<\_ACEOF
22478 #define HAVE_ALLOCA_H 1
22483 echo "$as_me:$LINENO: checking for alloca" >&5
22484 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22485 if test "${ac_cv_func_alloca_works+set}" = set; then
22486 echo $ECHO_N "(cached) $ECHO_C" >&6
22488 cat >conftest.$ac_ext <<_ACEOF
22491 cat confdefs.h >>conftest.$ac_ext
22492 cat >>conftest.$ac_ext <<_ACEOF
22493 /* end confdefs.h. */
22495 # define alloca __builtin_alloca
22498 # include <malloc.h>
22499 # define alloca _alloca
22502 # include <alloca.h>
22507 # ifndef alloca /* predefined by HP cc +Olibcalls */
22518 char *p = (char *) alloca (1);
22523 rm -f conftest.$ac_objext conftest$ac_exeext
22524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22525 (eval $ac_link) 2>conftest.er1
22527 grep -v '^ *+' conftest.er1 >conftest.err
22529 cat conftest.err >&5
22530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531 (exit $ac_status); } &&
22532 { ac_try='test -z "$ac_c_werror_flag"
22533 || test ! -s conftest.err'
22534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22535 (eval $ac_try) 2>&5
22537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538 (exit $ac_status); }; } &&
22539 { ac_try='test -s conftest$ac_exeext'
22540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22541 (eval $ac_try) 2>&5
22543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544 (exit $ac_status); }; }; then
22545 ac_cv_func_alloca_works=yes
22547 echo "$as_me: failed program was:" >&5
22548 sed 's/^/| /' conftest.$ac_ext >&5
22550 ac_cv_func_alloca_works=no
22552 rm -f conftest.err conftest.$ac_objext \
22553 conftest$ac_exeext conftest.$ac_ext
22555 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22556 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22558 if test $ac_cv_func_alloca_works = yes; then
22560 cat >>confdefs.h <<\_ACEOF
22561 #define HAVE_ALLOCA 1
22565 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22566 # that cause trouble. Some versions do not even contain alloca or
22567 # contain a buggy version. If you still want to use their alloca,
22568 # use ar to extract alloca.o from them instead of compiling alloca.c.
22570 ALLOCA=alloca.$ac_objext
22572 cat >>confdefs.h <<\_ACEOF
22577 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22578 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22579 if test "${ac_cv_os_cray+set}" = set; then
22580 echo $ECHO_N "(cached) $ECHO_C" >&6
22582 cat >conftest.$ac_ext <<_ACEOF
22585 cat confdefs.h >>conftest.$ac_ext
22586 cat >>conftest.$ac_ext <<_ACEOF
22587 /* end confdefs.h. */
22588 #if defined(CRAY) && ! defined(CRAY2)
22595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22596 $EGREP "webecray" >/dev/null 2>&1; then
22604 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22605 echo "${ECHO_T}$ac_cv_os_cray" >&6
22606 if test $ac_cv_os_cray = yes; then
22607 for ac_func in _getb67 GETB67 getb67; do
22608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22609 echo "$as_me:$LINENO: checking for $ac_func" >&5
22610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22611 if eval "test \"\${$as_ac_var+set}\" = set"; then
22612 echo $ECHO_N "(cached) $ECHO_C" >&6
22614 cat >conftest.$ac_ext <<_ACEOF
22617 cat confdefs.h >>conftest.$ac_ext
22618 cat >>conftest.$ac_ext <<_ACEOF
22619 /* end confdefs.h. */
22620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22622 #define $ac_func innocuous_$ac_func
22624 /* System header to define __stub macros and hopefully few prototypes,
22625 which can conflict with char $ac_func (); below.
22626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22627 <limits.h> exists even on freestanding compilers. */
22630 # include <limits.h>
22632 # include <assert.h>
22637 /* Override any gcc2 internal prototype to avoid an error. */
22642 /* We use char because int might match the return type of a gcc2
22643 builtin and then its argument prototype would still apply. */
22645 /* The GNU C library defines this for functions which it implements
22646 to always fail with ENOSYS. Some functions are actually named
22647 something starting with __ and the normal name is an alias. */
22648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22651 char (*f) () = $ac_func;
22660 return f != $ac_func;
22665 rm -f conftest.$ac_objext conftest$ac_exeext
22666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22667 (eval $ac_link) 2>conftest.er1
22669 grep -v '^ *+' conftest.er1 >conftest.err
22671 cat conftest.err >&5
22672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22673 (exit $ac_status); } &&
22674 { ac_try='test -z "$ac_c_werror_flag"
22675 || test ! -s conftest.err'
22676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22677 (eval $ac_try) 2>&5
22679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22680 (exit $ac_status); }; } &&
22681 { ac_try='test -s conftest$ac_exeext'
22682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22683 (eval $ac_try) 2>&5
22685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686 (exit $ac_status); }; }; then
22687 eval "$as_ac_var=yes"
22689 echo "$as_me: failed program was:" >&5
22690 sed 's/^/| /' conftest.$ac_ext >&5
22692 eval "$as_ac_var=no"
22694 rm -f conftest.err conftest.$ac_objext \
22695 conftest$ac_exeext conftest.$ac_ext
22697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22698 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22699 if test `eval echo '${'$as_ac_var'}'` = yes; then
22701 cat >>confdefs.h <<_ACEOF
22702 #define CRAY_STACKSEG_END $ac_func
22711 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22712 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22713 if test "${ac_cv_c_stack_direction+set}" = set; then
22714 echo $ECHO_N "(cached) $ECHO_C" >&6
22716 if test "$cross_compiling" = yes; then
22717 ac_cv_c_stack_direction=0
22719 cat >conftest.$ac_ext <<_ACEOF
22722 cat confdefs.h >>conftest.$ac_ext
22723 cat >>conftest.$ac_ext <<_ACEOF
22724 /* end confdefs.h. */
22726 find_stack_direction ()
22728 static char *addr = 0;
22733 return find_stack_direction ();
22736 return (&dummy > addr) ? 1 : -1;
22742 exit (find_stack_direction () < 0);
22745 rm -f conftest$ac_exeext
22746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22747 (eval $ac_link) 2>&5
22749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22752 (eval $ac_try) 2>&5
22754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22755 (exit $ac_status); }; }; then
22756 ac_cv_c_stack_direction=1
22758 echo "$as_me: program exited with status $ac_status" >&5
22759 echo "$as_me: failed program was:" >&5
22760 sed 's/^/| /' conftest.$ac_ext >&5
22762 ( exit $ac_status )
22763 ac_cv_c_stack_direction=-1
22765 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22768 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22769 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22771 cat >>confdefs.h <<_ACEOF
22772 #define STACK_DIRECTION $ac_cv_c_stack_direction
22780 for ac_header in stdlib.h unistd.h
22782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22784 echo "$as_me:$LINENO: checking for $ac_header" >&5
22785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22787 echo $ECHO_N "(cached) $ECHO_C" >&6
22789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22792 # Is the header compilable?
22793 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22795 cat >conftest.$ac_ext <<_ACEOF
22798 cat confdefs.h >>conftest.$ac_ext
22799 cat >>conftest.$ac_ext <<_ACEOF
22800 /* end confdefs.h. */
22801 $ac_includes_default
22802 #include <$ac_header>
22804 rm -f conftest.$ac_objext
22805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22806 (eval $ac_compile) 2>conftest.er1
22808 grep -v '^ *+' conftest.er1 >conftest.err
22810 cat conftest.err >&5
22811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812 (exit $ac_status); } &&
22813 { ac_try='test -z "$ac_c_werror_flag"
22814 || test ! -s conftest.err'
22815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22816 (eval $ac_try) 2>&5
22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 (exit $ac_status); }; } &&
22820 { ac_try='test -s conftest.$ac_objext'
22821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22822 (eval $ac_try) 2>&5
22824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825 (exit $ac_status); }; }; then
22826 ac_header_compiler=yes
22828 echo "$as_me: failed program was:" >&5
22829 sed 's/^/| /' conftest.$ac_ext >&5
22831 ac_header_compiler=no
22833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22834 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22835 echo "${ECHO_T}$ac_header_compiler" >&6
22837 # Is the header present?
22838 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22840 cat >conftest.$ac_ext <<_ACEOF
22843 cat confdefs.h >>conftest.$ac_ext
22844 cat >>conftest.$ac_ext <<_ACEOF
22845 /* end confdefs.h. */
22846 #include <$ac_header>
22848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22851 grep -v '^ *+' conftest.er1 >conftest.err
22853 cat conftest.err >&5
22854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855 (exit $ac_status); } >/dev/null; then
22856 if test -s conftest.err; then
22857 ac_cpp_err=$ac_c_preproc_warn_flag
22858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22865 if test -z "$ac_cpp_err"; then
22866 ac_header_preproc=yes
22868 echo "$as_me: failed program was:" >&5
22869 sed 's/^/| /' conftest.$ac_ext >&5
22871 ac_header_preproc=no
22873 rm -f conftest.err conftest.$ac_ext
22874 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22875 echo "${ECHO_T}$ac_header_preproc" >&6
22877 # So? What about this header?
22878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22884 ac_header_preproc=yes
22887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22890 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22891 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22892 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22893 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22894 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22897 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22898 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22901 ## ----------------------------------- ##
22902 ## Report this to llvmbugs@cs.uiuc.edu ##
22903 ## ----------------------------------- ##
22906 sed "s/^/$as_me: WARNING: /" >&2
22909 echo "$as_me:$LINENO: checking for $ac_header" >&5
22910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22912 echo $ECHO_N "(cached) $ECHO_C" >&6
22914 eval "$as_ac_Header=\$ac_header_preproc"
22916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22921 cat >>confdefs.h <<_ACEOF
22922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22930 for ac_func in getpagesize
22932 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22933 echo "$as_me:$LINENO: checking for $ac_func" >&5
22934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22935 if eval "test \"\${$as_ac_var+set}\" = set"; then
22936 echo $ECHO_N "(cached) $ECHO_C" >&6
22938 cat >conftest.$ac_ext <<_ACEOF
22941 cat confdefs.h >>conftest.$ac_ext
22942 cat >>conftest.$ac_ext <<_ACEOF
22943 /* end confdefs.h. */
22944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22946 #define $ac_func innocuous_$ac_func
22948 /* System header to define __stub macros and hopefully few prototypes,
22949 which can conflict with char $ac_func (); below.
22950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22951 <limits.h> exists even on freestanding compilers. */
22954 # include <limits.h>
22956 # include <assert.h>
22961 /* Override any gcc2 internal prototype to avoid an error. */
22966 /* We use char because int might match the return type of a gcc2
22967 builtin and then its argument prototype would still apply. */
22969 /* The GNU C library defines this for functions which it implements
22970 to always fail with ENOSYS. Some functions are actually named
22971 something starting with __ and the normal name is an alias. */
22972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22975 char (*f) () = $ac_func;
22984 return f != $ac_func;
22989 rm -f conftest.$ac_objext conftest$ac_exeext
22990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22991 (eval $ac_link) 2>conftest.er1
22993 grep -v '^ *+' conftest.er1 >conftest.err
22995 cat conftest.err >&5
22996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997 (exit $ac_status); } &&
22998 { ac_try='test -z "$ac_c_werror_flag"
22999 || test ! -s conftest.err'
23000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23001 (eval $ac_try) 2>&5
23003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004 (exit $ac_status); }; } &&
23005 { ac_try='test -s conftest$ac_exeext'
23006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23007 (eval $ac_try) 2>&5
23009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010 (exit $ac_status); }; }; then
23011 eval "$as_ac_var=yes"
23013 echo "$as_me: failed program was:" >&5
23014 sed 's/^/| /' conftest.$ac_ext >&5
23016 eval "$as_ac_var=no"
23018 rm -f conftest.err conftest.$ac_objext \
23019 conftest$ac_exeext conftest.$ac_ext
23021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23022 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23023 if test `eval echo '${'$as_ac_var'}'` = yes; then
23024 cat >>confdefs.h <<_ACEOF
23025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23031 echo "$as_me:$LINENO: checking for working mmap" >&5
23032 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
23033 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
23034 echo $ECHO_N "(cached) $ECHO_C" >&6
23036 if test "$cross_compiling" = yes; then
23037 ac_cv_func_mmap_fixed_mapped=no
23039 cat >conftest.$ac_ext <<_ACEOF
23042 cat confdefs.h >>conftest.$ac_ext
23043 cat >>conftest.$ac_ext <<_ACEOF
23044 /* end confdefs.h. */
23045 $ac_includes_default
23046 /* malloc might have been renamed as rpl_malloc. */
23049 /* Thanks to Mike Haertel and Jim Avera for this test.
23050 Here is a matrix of mmap possibilities:
23051 mmap private not fixed
23052 mmap private fixed at somewhere currently unmapped
23053 mmap private fixed at somewhere already mapped
23054 mmap shared not fixed
23055 mmap shared fixed at somewhere currently unmapped
23056 mmap shared fixed at somewhere already mapped
23057 For private mappings, we should verify that changes cannot be read()
23058 back from the file, nor mmap's back from the file at a different
23059 address. (There have been systems where private was not correctly
23060 implemented like the infamous i386 svr4.0, and systems where the
23061 VM page cache was not coherent with the file system buffer cache
23062 like early versions of FreeBSD and possibly contemporary NetBSD.)
23063 For shared mappings, we should conversely verify that changes get
23064 propagated back to all the places they're supposed to be.
23066 Grep wants private fixed already mapped.
23067 The main things grep needs to know about mmap are:
23068 * does it exist and is it safe to write into the mmap'd area
23069 * how to use it (BSD variants) */
23072 #include <sys/mman.h>
23074 #if !STDC_HEADERS && !HAVE_STDLIB_H
23078 /* This mess was copied from the GNU getpagesize.h. */
23079 #if !HAVE_GETPAGESIZE
23080 /* Assume that all systems that can run configure have sys/param.h. */
23081 # if !HAVE_SYS_PARAM_H
23082 # define HAVE_SYS_PARAM_H 1
23085 # ifdef _SC_PAGESIZE
23086 # define getpagesize() sysconf(_SC_PAGESIZE)
23087 # else /* no _SC_PAGESIZE */
23088 # if HAVE_SYS_PARAM_H
23089 # include <sys/param.h>
23090 # ifdef EXEC_PAGESIZE
23091 # define getpagesize() EXEC_PAGESIZE
23092 # else /* no EXEC_PAGESIZE */
23094 # define getpagesize() NBPG * CLSIZE
23097 # endif /* no CLSIZE */
23098 # else /* no NBPG */
23100 # define getpagesize() NBPC
23101 # else /* no NBPC */
23103 # define getpagesize() PAGESIZE
23104 # endif /* PAGESIZE */
23105 # endif /* no NBPC */
23106 # endif /* no NBPG */
23107 # endif /* no EXEC_PAGESIZE */
23108 # else /* no HAVE_SYS_PARAM_H */
23109 # define getpagesize() 8192 /* punt totally */
23110 # endif /* no HAVE_SYS_PARAM_H */
23111 # endif /* no _SC_PAGESIZE */
23113 #endif /* no HAVE_GETPAGESIZE */
23118 char *data, *data2, *data3;
23122 pagesize = getpagesize ();
23124 /* First, make a file with some known garbage in it. */
23125 data = (char *) malloc (pagesize);
23128 for (i = 0; i < pagesize; ++i)
23129 *(data + i) = rand ();
23131 fd = creat ("conftest.mmap", 0600);
23134 if (write (fd, data, pagesize) != pagesize)
23138 /* Next, try to mmap the file at a fixed address which already has
23139 something else allocated at it. If we can, also make sure that
23140 we see the same garbage. */
23141 fd = open ("conftest.mmap", O_RDWR);
23144 data2 = (char *) malloc (2 * pagesize);
23147 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
23148 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23149 MAP_PRIVATE | MAP_FIXED, fd, 0L))
23151 for (i = 0; i < pagesize; ++i)
23152 if (*(data + i) != *(data2 + i))
23155 /* Finally, make sure that changes to the mapped area do not
23156 percolate back to the file as seen by read(). (This is a bug on
23157 some variants of i386 svr4.0.) */
23158 for (i = 0; i < pagesize; ++i)
23159 *(data2 + i) = *(data2 + i) + 1;
23160 data3 = (char *) malloc (pagesize);
23163 if (read (fd, data3, pagesize) != pagesize)
23165 for (i = 0; i < pagesize; ++i)
23166 if (*(data + i) != *(data3 + i))
23172 rm -f conftest$ac_exeext
23173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23174 (eval $ac_link) 2>&5
23176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23179 (eval $ac_try) 2>&5
23181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23182 (exit $ac_status); }; }; then
23183 ac_cv_func_mmap_fixed_mapped=yes
23185 echo "$as_me: program exited with status $ac_status" >&5
23186 echo "$as_me: failed program was:" >&5
23187 sed 's/^/| /' conftest.$ac_ext >&5
23189 ( exit $ac_status )
23190 ac_cv_func_mmap_fixed_mapped=no
23192 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23195 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
23196 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
23197 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23199 cat >>confdefs.h <<\_ACEOF
23200 #define HAVE_MMAP 1
23204 rm -f conftest.mmap
23206 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
23208 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
23209 echo "$as_me: WARNING: mmap() required but not found" >&2;}
23211 echo "$as_me:$LINENO: checking for mmap of files" >&5
23212 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
23213 if test "${ac_cv_func_mmap_file+set}" = set; then
23214 echo $ECHO_N "(cached) $ECHO_C" >&6
23217 ac_cpp='$CPP $CPPFLAGS'
23218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23222 if test "$cross_compiling" = yes; then
23223 ac_cv_func_mmap_file=no
23225 cat >conftest.$ac_ext <<_ACEOF
23229 cat confdefs.h >>conftest.$ac_ext
23230 cat >>conftest.$ac_ext <<_ACEOF
23231 /* end confdefs.h. */
23233 #include <sys/types.h>
23234 #include <sys/mman.h>
23242 fd = creat ("foo",0777);
23243 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
23245 return (fd != (int) MAP_FAILED);
23250 rm -f conftest$ac_exeext
23251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23252 (eval $ac_link) 2>&5
23254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23257 (eval $ac_try) 2>&5
23259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23260 (exit $ac_status); }; }; then
23261 ac_cv_func_mmap_file=yes
23263 echo "$as_me: program exited with status $ac_status" >&5
23264 echo "$as_me: failed program was:" >&5
23265 sed 's/^/| /' conftest.$ac_ext >&5
23267 ( exit $ac_status )
23268 ac_cv_func_mmap_file=no
23270 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23273 ac_cpp='$CPP $CPPFLAGS'
23274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23280 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
23281 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
23282 if test "$ac_cv_func_mmap_file" = yes; then
23284 cat >>confdefs.h <<\_ACEOF
23285 #define HAVE_MMAP_FILE
23292 if test "$ac_cv_func_mmap_file" = "no"
23294 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23295 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
23297 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23298 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23299 if test "${ac_cv_header_mmap_anon+set}" = set; then
23300 echo $ECHO_N "(cached) $ECHO_C" >&6
23303 ac_cpp='$CPP $CPPFLAGS'
23304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23308 cat >conftest.$ac_ext <<_ACEOF
23311 cat confdefs.h >>conftest.$ac_ext
23312 cat >>conftest.$ac_ext <<_ACEOF
23313 /* end confdefs.h. */
23314 #include <sys/mman.h>
23315 #include <unistd.h>
23320 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23325 rm -f conftest.$ac_objext
23326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23327 (eval $ac_compile) 2>conftest.er1
23329 grep -v '^ *+' conftest.er1 >conftest.err
23331 cat conftest.err >&5
23332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333 (exit $ac_status); } &&
23334 { ac_try='test -z "$ac_c_werror_flag"
23335 || test ! -s conftest.err'
23336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23337 (eval $ac_try) 2>&5
23339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23340 (exit $ac_status); }; } &&
23341 { ac_try='test -s conftest.$ac_objext'
23342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23343 (eval $ac_try) 2>&5
23345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346 (exit $ac_status); }; }; then
23347 ac_cv_header_mmap_anon=yes
23349 echo "$as_me: failed program was:" >&5
23350 sed 's/^/| /' conftest.$ac_ext >&5
23352 ac_cv_header_mmap_anon=no
23354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23356 ac_cpp='$CPP $CPPFLAGS'
23357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23363 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23364 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23365 if test "$ac_cv_header_mmap_anon" = yes; then
23367 cat >>confdefs.h <<\_ACEOF
23368 #define HAVE_MMAP_ANONYMOUS
23373 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23374 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23375 if test "${ac_cv_type_signal+set}" = set; then
23376 echo $ECHO_N "(cached) $ECHO_C" >&6
23378 cat >conftest.$ac_ext <<_ACEOF
23381 cat confdefs.h >>conftest.$ac_ext
23382 cat >>conftest.$ac_ext <<_ACEOF
23383 /* end confdefs.h. */
23384 #include <sys/types.h>
23385 #include <signal.h>
23390 extern "C" void (*signal (int, void (*)(int)))(int);
23392 void (*signal ()) ();
23403 rm -f conftest.$ac_objext
23404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23405 (eval $ac_compile) 2>conftest.er1
23407 grep -v '^ *+' conftest.er1 >conftest.err
23409 cat conftest.err >&5
23410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411 (exit $ac_status); } &&
23412 { ac_try='test -z "$ac_c_werror_flag"
23413 || test ! -s conftest.err'
23414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23415 (eval $ac_try) 2>&5
23417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418 (exit $ac_status); }; } &&
23419 { ac_try='test -s conftest.$ac_objext'
23420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23421 (eval $ac_try) 2>&5
23423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424 (exit $ac_status); }; }; then
23425 ac_cv_type_signal=void
23427 echo "$as_me: failed program was:" >&5
23428 sed 's/^/| /' conftest.$ac_ext >&5
23430 ac_cv_type_signal=int
23432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23434 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23435 echo "${ECHO_T}$ac_cv_type_signal" >&6
23437 cat >>confdefs.h <<_ACEOF
23438 #define RETSIGTYPE $ac_cv_type_signal
23451 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
23453 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23454 echo "$as_me:$LINENO: checking for $ac_func" >&5
23455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23456 if eval "test \"\${$as_ac_var+set}\" = set"; then
23457 echo $ECHO_N "(cached) $ECHO_C" >&6
23459 cat >conftest.$ac_ext <<_ACEOF
23462 cat confdefs.h >>conftest.$ac_ext
23463 cat >>conftest.$ac_ext <<_ACEOF
23464 /* end confdefs.h. */
23465 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23467 #define $ac_func innocuous_$ac_func
23469 /* System header to define __stub macros and hopefully few prototypes,
23470 which can conflict with char $ac_func (); below.
23471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23472 <limits.h> exists even on freestanding compilers. */
23475 # include <limits.h>
23477 # include <assert.h>
23482 /* Override any gcc2 internal prototype to avoid an error. */
23487 /* We use char because int might match the return type of a gcc2
23488 builtin and then its argument prototype would still apply. */
23490 /* The GNU C library defines this for functions which it implements
23491 to always fail with ENOSYS. Some functions are actually named
23492 something starting with __ and the normal name is an alias. */
23493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23496 char (*f) () = $ac_func;
23505 return f != $ac_func;
23510 rm -f conftest.$ac_objext conftest$ac_exeext
23511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23512 (eval $ac_link) 2>conftest.er1
23514 grep -v '^ *+' conftest.er1 >conftest.err
23516 cat conftest.err >&5
23517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23518 (exit $ac_status); } &&
23519 { ac_try='test -z "$ac_c_werror_flag"
23520 || test ! -s conftest.err'
23521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23522 (eval $ac_try) 2>&5
23524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23525 (exit $ac_status); }; } &&
23526 { ac_try='test -s conftest$ac_exeext'
23527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23528 (eval $ac_try) 2>&5
23530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531 (exit $ac_status); }; }; then
23532 eval "$as_ac_var=yes"
23534 echo "$as_me: failed program was:" >&5
23535 sed 's/^/| /' conftest.$ac_ext >&5
23537 eval "$as_ac_var=no"
23539 rm -f conftest.err conftest.$ac_objext \
23540 conftest$ac_exeext conftest.$ac_ext
23542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23543 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23544 if test `eval echo '${'$as_ac_var'}'` = yes; then
23545 cat >>confdefs.h <<_ACEOF
23546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23552 echo "$as_me:$LINENO: checking for mprotect" >&5
23553 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
23554 if test "${ac_cv_func_mprotect+set}" = set; then
23555 echo $ECHO_N "(cached) $ECHO_C" >&6
23557 cat >conftest.$ac_ext <<_ACEOF
23560 cat confdefs.h >>conftest.$ac_ext
23561 cat >>conftest.$ac_ext <<_ACEOF
23562 /* end confdefs.h. */
23563 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
23564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23565 #define mprotect innocuous_mprotect
23567 /* System header to define __stub macros and hopefully few prototypes,
23568 which can conflict with char mprotect (); below.
23569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23570 <limits.h> exists even on freestanding compilers. */
23573 # include <limits.h>
23575 # include <assert.h>
23580 /* Override any gcc2 internal prototype to avoid an error. */
23585 /* We use char because int might match the return type of a gcc2
23586 builtin and then its argument prototype would still apply. */
23588 /* The GNU C library defines this for functions which it implements
23589 to always fail with ENOSYS. Some functions are actually named
23590 something starting with __ and the normal name is an alias. */
23591 #if defined (__stub_mprotect) || defined (__stub___mprotect)
23594 char (*f) () = mprotect;
23603 return f != mprotect;
23608 rm -f conftest.$ac_objext conftest$ac_exeext
23609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23610 (eval $ac_link) 2>conftest.er1
23612 grep -v '^ *+' conftest.er1 >conftest.err
23614 cat conftest.err >&5
23615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23616 (exit $ac_status); } &&
23617 { ac_try='test -z "$ac_c_werror_flag"
23618 || test ! -s conftest.err'
23619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23620 (eval $ac_try) 2>&5
23622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623 (exit $ac_status); }; } &&
23624 { ac_try='test -s conftest$ac_exeext'
23625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23626 (eval $ac_try) 2>&5
23628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23629 (exit $ac_status); }; }; then
23630 ac_cv_func_mprotect=yes
23632 echo "$as_me: failed program was:" >&5
23633 sed 's/^/| /' conftest.$ac_ext >&5
23635 ac_cv_func_mprotect=no
23637 rm -f conftest.err conftest.$ac_objext \
23638 conftest$ac_exeext conftest.$ac_ext
23640 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
23641 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
23642 if test $ac_cv_func_mprotect = yes; then
23645 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
23646 echo "$as_me: error: Function mprotect() required but not found" >&2;}
23647 { (exit 1); exit 1; }; }
23652 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
23653 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
23655 ac_cpp='$CPP $CPPFLAGS'
23656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23660 oldcflags="$CFLAGS"
23661 CFLAGS="$CFLAGS -Wl,-R."
23662 cat >conftest.$ac_ext <<_ACEOF
23665 cat confdefs.h >>conftest.$ac_ext
23666 cat >>conftest.$ac_ext <<_ACEOF
23667 /* end confdefs.h. */
23672 int main() { return 0; }
23677 rm -f conftest.$ac_objext conftest$ac_exeext
23678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23679 (eval $ac_link) 2>conftest.er1
23681 grep -v '^ *+' conftest.er1 >conftest.err
23683 cat conftest.err >&5
23684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23685 (exit $ac_status); } &&
23686 { ac_try='test -z "$ac_c_werror_flag"
23687 || test ! -s conftest.err'
23688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23689 (eval $ac_try) 2>&5
23691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23692 (exit $ac_status); }; } &&
23693 { ac_try='test -s conftest$ac_exeext'
23694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23695 (eval $ac_try) 2>&5
23697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23698 (exit $ac_status); }; }; then
23699 ac_cv_link_use_r=yes
23701 echo "$as_me: failed program was:" >&5
23702 sed 's/^/| /' conftest.$ac_ext >&5
23704 ac_cv_link_use_r=no
23706 rm -f conftest.err conftest.$ac_objext \
23707 conftest$ac_exeext conftest.$ac_ext
23708 CFLAGS="$oldcflags"
23710 ac_cpp='$CPP $CPPFLAGS'
23711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23715 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
23716 echo "${ECHO_T}$ac_cv_link_use_r" >&6
23717 if test "$ac_cv_link_use_r" = yes
23720 cat >>confdefs.h <<\_ACEOF
23721 #define HAVE_LINK_R 1
23727 # Check whether --enable-optimized or --disable-optimized was given.
23728 if test "${enable_optimized+set}" = set; then
23729 enableval="$enable_optimized"
23734 if test ${enableval} = "no"
23739 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
23743 # Check whether --enable-jit or --disable-jit was given.
23744 if test "${enable_jit+set}" = set; then
23745 enableval="$enable_jit"
23750 if test ${enableval} = "no"
23757 JIT=TARGET_HAS_JIT=1
23761 JIT=TARGET_HAS_JIT=1
23772 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
23773 if test "${with_llvmgccdir+set}" = set; then
23774 withval="$with_llvmgccdir"
23775 LLVMGCCDIR=$withval
23778 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
23779 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
23781 if test -d "$LLVMGCCDIR"
23783 if test -x "$LLVMGCCDIR/bin/gcc"
23785 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
23789 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
23790 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
23791 if test "$LLVM_GCC_CHECK" = "no"
23795 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
23796 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
23798 if test -x "$LLVM_GCC_CHECK"
23800 cp /dev/null conftest.c
23801 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
23807 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
23808 LLVMCC1=$llvmcc1path
23810 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
23811 LLVMCC1PLUS=$llvmcc1pluspath
23814 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
23815 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
23816 if test "$LLVM_GCC_SANE" = "no"
23821 echo "$as_me:$LINENO: checking for shared library suffix" >&5
23822 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
23823 eval "SHLIBEXT=$shrext_cmds"
23824 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
23825 echo "${ECHO_T}$SHLIBEXT" >&6
23829 cat >>confdefs.h <<_ACEOF
23830 #define SHLIBEXT "$SHLIBEXT"
23834 # Translate the various configuration directories and other basic
23835 # information into substitutions that will end up in config.h.in so
23836 # that these configured values can be hard-wired into a program.
23837 eval LLVM_PREFIX="${prefix}";
23838 eval LLVM_BINDIR="${prefix}/bin";
23839 eval LLVM_LIBDIR="${prefix}/lib";
23840 eval LLVM_DATADIR="${prefix}/data";
23841 eval LLVM_DOCSDIR="${prefix}/docs";
23842 eval LLVM_ETCDIR="${prefix}/etc";
23843 eval LLVM_INCLUDEDIR="${prefix}/include";
23844 eval LLVM_INFODIR="${prefix}/info";
23845 eval LLVM_MANDIR="${prefix}/man";
23846 LLVM_CONFIGTIME=`date`
23858 cat >>confdefs.h <<_ACEOF
23859 #define LLVM_PREFIX "$LLVM_PREFIX"
23863 cat >>confdefs.h <<_ACEOF
23864 #define LLVM_BINDIR "$LLVM_BINDIR"
23868 cat >>confdefs.h <<_ACEOF
23869 #define LLVM_LIBDIR "$LLVM_LIBDIR"
23873 cat >>confdefs.h <<_ACEOF
23874 #define LLVM_DATADIR "$LLVM_DATADIR"
23878 cat >>confdefs.h <<_ACEOF
23879 #define LLVM_DATADIR "$LLVM_DOCSDIR"
23883 cat >>confdefs.h <<_ACEOF
23884 #define LLVM_ETCDIR "$LLVM_ETCDIR"
23888 cat >>confdefs.h <<_ACEOF
23889 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
23893 cat >>confdefs.h <<_ACEOF
23894 #define LLVM_INFODIR "$LLVM_INFODIR"
23898 cat >>confdefs.h <<_ACEOF
23899 #define LLVM_MANDIR "$LLVM_MANDIR"
23903 cat >>confdefs.h <<_ACEOF
23904 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
23908 cat >confcache <<\_ACEOF
23909 # This file is a shell script that caches the results of configure
23910 # tests run on this system so they can be shared between configure
23911 # scripts and configure runs, see configure's option --config-cache.
23912 # It is not useful on other systems. If it contains results you don't
23913 # want to keep, you may remove or edit it.
23915 # config.status only pays attention to the cache file if you give it
23916 # the --recheck option to rerun configure.
23918 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23919 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23920 # following values.
23924 # The following way of writing the cache mishandles newlines in values,
23925 # but we know of no workaround that is simple, portable, and efficient.
23926 # So, don't put newlines in cache variables' values.
23927 # Ultrix sh set writes to stderr and can't be redirected directly,
23928 # and sets the high bit in the cache file unless we assign to the vars.
23931 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23933 # `set' does not quote correctly, so add quotes (double-quote
23934 # substitution turns \\\\ into \\, and sed turns \\ into \).
23937 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23940 # `set' quotes correctly as required by POSIX, so do not add quotes.
23942 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23949 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23951 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23953 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23954 if test -w $cache_file; then
23955 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23956 cat confcache >$cache_file
23958 echo "not updating unwritable cache $cache_file"
23963 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23964 # Let make expand exec_prefix.
23965 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23967 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23968 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23969 # trailing colons and then remove the whole line if VPATH becomes empty
23970 # (actually we leave an empty line to preserve line numbers).
23971 if test "x$srcdir" = x.; then
23972 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23973 s/:*\$(srcdir):*/:/;
23974 s/:*\${srcdir}:*/:/;
23976 s/^\([^=]*=[ ]*\):*/\1/;
23982 DEFS=-DHAVE_CONFIG_H
23986 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23987 # 1. Remove the extension, and $U if already installed.
23988 ac_i=`echo "$ac_i" |
23989 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23991 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23992 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23994 LIBOBJS=$ac_libobjs
23996 LTLIBOBJS=$ac_ltlibobjs
24000 : ${CONFIG_STATUS=./config.status}
24001 ac_clean_files_save=$ac_clean_files
24002 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24003 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24004 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24005 cat >$CONFIG_STATUS <<_ACEOF
24007 # Generated by $as_me.
24008 # Run this file to recreate the current configuration.
24009 # Compiler output produced by configure, useful for debugging
24010 # configure, is in config.log if it exists.
24013 ac_cs_recheck=false
24015 SHELL=\${CONFIG_SHELL-$SHELL}
24018 cat >>$CONFIG_STATUS <<\_ACEOF
24019 ## --------------------- ##
24020 ## M4sh Initialization. ##
24021 ## --------------------- ##
24023 # Be Bourne compatible
24024 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24027 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24028 # is contrary to our usage. Disable this feature.
24029 alias -g '${1+"$@"}'='"$@"'
24030 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24033 DUALCASE=1; export DUALCASE # for MKS sh
24035 # Support unset when possible.
24036 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24043 # Work around bugs in pre-3.0 UWIN ksh.
24044 $as_unset ENV MAIL MAILPATH
24051 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24052 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24053 LC_TELEPHONE LC_TIME
24055 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24056 eval $as_var=C; export $as_var
24062 # Required to use basename.
24063 if expr a : '\(a\)' >/dev/null 2>&1; then
24069 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24070 as_basename=basename
24076 # Name of the executable.
24077 as_me=`$as_basename "$0" ||
24078 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24079 X"$0" : 'X\(//\)$' \| \
24080 X"$0" : 'X\(/\)$' \| \
24081 . : '\(.\)' 2>/dev/null ||
24083 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24084 /^X\/\(\/\/\)$/{ s//\1/; q; }
24085 /^X\/\(\/\).*/{ s//\1/; q; }
24089 # PATH needs CR, and LINENO needs CR and PATH.
24090 # Avoid depending upon Character Ranges.
24091 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24092 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24093 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24094 as_cr_digits='0123456789'
24095 as_cr_alnum=$as_cr_Letters$as_cr_digits
24097 # The user is always right.
24098 if test "${PATH_SEPARATOR+set}" != set; then
24099 echo "#! /bin/sh" >conf$$.sh
24100 echo "exit 0" >>conf$$.sh
24102 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24111 as_lineno_1=$LINENO
24112 as_lineno_2=$LINENO
24113 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24114 test "x$as_lineno_1" != "x$as_lineno_2" &&
24115 test "x$as_lineno_3" = "x$as_lineno_2" || {
24116 # Find who we are. Look in the path if we contain no path at all
24119 *[\\/]* ) as_myself=$0 ;;
24120 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24121 for as_dir in $PATH
24124 test -z "$as_dir" && as_dir=.
24125 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24130 # We did not find ourselves, most probably we were run as `sh COMMAND'
24131 # in which case we are not to be found in the path.
24132 if test "x$as_myself" = x; then
24135 if test ! -f "$as_myself"; then
24136 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24137 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24138 { (exit 1); exit 1; }; }
24140 case $CONFIG_SHELL in
24142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24143 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24146 test -z "$as_dir" && as_dir=.
24147 for as_base in sh bash ksh sh5; do
24150 if ("$as_dir/$as_base" -c '
24151 as_lineno_1=$LINENO
24152 as_lineno_2=$LINENO
24153 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24154 test "x$as_lineno_1" != "x$as_lineno_2" &&
24155 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24156 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24157 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24158 CONFIG_SHELL=$as_dir/$as_base
24159 export CONFIG_SHELL
24160 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24168 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24169 # uniformly replaced by the line number. The first 'sed' inserts a
24170 # line-number line before each line; the second 'sed' does the real
24171 # work. The second script uses 'N' to pair each line-number line
24172 # with the numbered line, and appends trailing '-' during
24173 # substitution so that $LINENO is not a special case at line end.
24174 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24175 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24176 sed '=' <$as_myself |
24181 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24184 s,^['$as_cr_digits']*\n,,
24185 ' >$as_me.lineno &&
24186 chmod +x $as_me.lineno ||
24187 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24188 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24189 { (exit 1); exit 1; }; }
24191 # Don't try to exec as it changes $[0], causing all sort of problems
24192 # (the dirname of $[0] is not the place where we might find the
24193 # original and so on. Autoconf is especially sensible to this).
24195 # Exit status is that of the last command.
24200 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24201 *c*,-n*) ECHO_N= ECHO_C='
24203 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24204 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24207 if expr a : '\(a\)' >/dev/null 2>&1; then
24213 rm -f conf$$ conf$$.exe conf$$.file
24215 if ln -s conf$$.file conf$$ 2>/dev/null; then
24216 # We could just check for DJGPP; but this test a) works b) is more generic
24217 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24218 if test -f conf$$.exe; then
24219 # Don't use ln at all; we don't have any links
24224 elif ln conf$$.file conf$$ 2>/dev/null; then
24229 rm -f conf$$ conf$$.exe conf$$.file
24231 if mkdir -p . 2>/dev/null; then
24234 test -d ./-p && rmdir ./-p
24238 as_executable_p="test -f"
24240 # Sed expression to map a string onto a valid CPP name.
24241 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24243 # Sed expression to map a string onto a valid variable name.
24244 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24248 # We need space, tab and new line, in precisely that order.
24258 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24259 # report actual input values of CONFIG_FILES etc. instead of their
24260 # values after options handling. Logging --version etc. is OK.
24264 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24265 ## Running $as_me. ##
24270 This file was extended by LLVM $as_me 1.4, which was
24271 generated by GNU Autoconf 2.59. Invocation command line was
24273 CONFIG_FILES = $CONFIG_FILES
24274 CONFIG_HEADERS = $CONFIG_HEADERS
24275 CONFIG_LINKS = $CONFIG_LINKS
24276 CONFIG_COMMANDS = $CONFIG_COMMANDS
24280 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24284 # Files that config.status was made for.
24285 if test -n "$ac_config_files"; then
24286 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24289 if test -n "$ac_config_headers"; then
24290 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24293 if test -n "$ac_config_links"; then
24294 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24297 if test -n "$ac_config_commands"; then
24298 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24301 cat >>$CONFIG_STATUS <<\_ACEOF
24304 \`$as_me' instantiates files from templates according to the
24305 current configuration.
24307 Usage: $0 [OPTIONS] [FILE]...
24309 -h, --help print this help, then exit
24310 -V, --version print version number, then exit
24311 -q, --quiet do not print progress messages
24312 -d, --debug don't remove temporary files
24313 --recheck update $as_me by reconfiguring in the same conditions
24314 --file=FILE[:TEMPLATE]
24315 instantiate the configuration file FILE
24316 --header=FILE[:TEMPLATE]
24317 instantiate the configuration header FILE
24319 Configuration files:
24322 Configuration headers:
24325 Configuration links:
24328 Configuration commands:
24331 Report bugs to <bug-autoconf@gnu.org>."
24334 cat >>$CONFIG_STATUS <<_ACEOF
24336 LLVM config.status 1.4
24337 configured by $0, generated by GNU Autoconf 2.59,
24338 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24340 Copyright (C) 2003 Free Software Foundation, Inc.
24341 This config.status script is free software; the Free Software Foundation
24342 gives unlimited permission to copy, distribute and modify it."
24347 cat >>$CONFIG_STATUS <<\_ACEOF
24348 # If no file are specified by the user, then we need to provide default
24349 # value. By we need to know if files were specified by the user.
24355 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24356 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24364 *) # This is not an option, so the user has probably given explicit
24367 ac_need_defaults=false;;
24371 # Handling of the options.
24373 cat >>$CONFIG_STATUS <<\_ACEOF
24374 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24376 --version | --vers* | -V )
24377 echo "$ac_cs_version"; exit 0 ;;
24379 # Conflict between --help and --header
24380 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24381 Try \`$0 --help' for more information." >&5
24382 echo "$as_me: error: ambiguous option: $1
24383 Try \`$0 --help' for more information." >&2;}
24384 { (exit 1); exit 1; }; };;
24385 --help | --hel | -h )
24386 echo "$ac_cs_usage"; exit 0 ;;
24387 --debug | --d* | -d )
24389 --file | --fil | --fi | --f )
24391 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24392 ac_need_defaults=false;;
24393 --header | --heade | --head | --hea )
24395 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24396 ac_need_defaults=false;;
24397 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24398 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24401 # This is an error.
24402 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24403 Try \`$0 --help' for more information." >&5
24404 echo "$as_me: error: unrecognized option: $1
24405 Try \`$0 --help' for more information." >&2;}
24406 { (exit 1); exit 1; }; } ;;
24408 *) ac_config_targets="$ac_config_targets $1" ;;
24414 ac_configure_extra_args=
24416 if $ac_cs_silent; then
24418 ac_configure_extra_args="$ac_configure_extra_args --silent"
24422 cat >>$CONFIG_STATUS <<_ACEOF
24423 if \$ac_cs_recheck; then
24424 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24425 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24430 cat >>$CONFIG_STATUS <<_ACEOF
24432 # INIT-COMMANDS section.
24435 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
24436 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
24437 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
24438 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
24439 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
24440 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
24441 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24442 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
24443 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
24444 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
24445 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
24446 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
24452 cat >>$CONFIG_STATUS <<\_ACEOF
24453 for ac_config_target in $ac_config_targets
24455 case "$ac_config_target" in
24456 # Handling of arguments.
24457 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
24458 "include/llvm/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/DataTypes.h" ;;
24459 "include/llvm/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/ThreadSupport.h" ;;
24460 "include/llvm/ADT/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_map" ;;
24461 "include/llvm/ADT/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_set" ;;
24462 "include/llvm/ADT/iterator" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/iterator" ;;
24463 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
24464 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
24465 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
24466 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
24467 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
24468 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
24469 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
24470 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
24471 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
24472 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
24473 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
24474 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
24475 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
24476 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
24477 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24478 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24479 { (exit 1); exit 1; }; };;
24483 # If the user did not use the arguments to specify the items to instantiate,
24484 # then the envvar interface is used. Set only those that are not.
24485 # We use the long form for the default assignment because of an extremely
24486 # bizarre bug on SunOS 4.1.3.
24487 if $ac_need_defaults; then
24488 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24489 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24490 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
24491 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24494 # Have a temporary directory for convenience. Make it in the build tree
24495 # simply because there is no reason to put it here, and in addition,
24496 # creating and moving files from /tmp can sometimes cause problems.
24497 # Create a temporary directory, and hook for its removal unless debugging.
24500 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24501 trap '{ (exit 1); exit 1; }' 1 2 13 15
24504 # Create a (secure) tmp directory for tmp files.
24507 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24508 test -n "$tmp" && test -d "$tmp"
24511 tmp=./confstat$$-$RANDOM
24512 (umask 077 && mkdir $tmp)
24515 echo "$me: cannot create a temporary directory in ." >&2
24516 { (exit 1); exit 1; }
24521 cat >>$CONFIG_STATUS <<_ACEOF
24524 # CONFIG_FILES section.
24527 # No need to generate the scripts if there are no CONFIG_FILES.
24528 # This happens for instance when ./config.status config.h
24529 if test -n "\$CONFIG_FILES"; then
24530 # Protect against being on the right side of a sed subst in config.status.
24531 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24532 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24533 s,@SHELL@,$SHELL,;t t
24534 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24535 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24536 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24537 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24538 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24539 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24540 s,@exec_prefix@,$exec_prefix,;t t
24541 s,@prefix@,$prefix,;t t
24542 s,@program_transform_name@,$program_transform_name,;t t
24543 s,@bindir@,$bindir,;t t
24544 s,@sbindir@,$sbindir,;t t
24545 s,@libexecdir@,$libexecdir,;t t
24546 s,@datadir@,$datadir,;t t
24547 s,@sysconfdir@,$sysconfdir,;t t
24548 s,@sharedstatedir@,$sharedstatedir,;t t
24549 s,@localstatedir@,$localstatedir,;t t
24550 s,@libdir@,$libdir,;t t
24551 s,@includedir@,$includedir,;t t
24552 s,@oldincludedir@,$oldincludedir,;t t
24553 s,@infodir@,$infodir,;t t
24554 s,@mandir@,$mandir,;t t
24555 s,@build_alias@,$build_alias,;t t
24556 s,@host_alias@,$host_alias,;t t
24557 s,@target_alias@,$target_alias,;t t
24558 s,@DEFS@,$DEFS,;t t
24559 s,@ECHO_C@,$ECHO_C,;t t
24560 s,@ECHO_N@,$ECHO_N,;t t
24561 s,@ECHO_T@,$ECHO_T,;t t
24562 s,@LIBS@,$LIBS,;t t
24563 s,@subdirs@,$subdirs,;t t
24564 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24565 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24566 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24567 s,@build@,$build,;t t
24568 s,@build_cpu@,$build_cpu,;t t
24569 s,@build_vendor@,$build_vendor,;t t
24570 s,@build_os@,$build_os,;t t
24571 s,@host@,$host,;t t
24572 s,@host_cpu@,$host_cpu,;t t
24573 s,@host_vendor@,$host_vendor,;t t
24574 s,@host_os@,$host_os,;t t
24575 s,@target@,$target,;t t
24576 s,@target_cpu@,$target_cpu,;t t
24577 s,@target_vendor@,$target_vendor,;t t
24578 s,@target_os@,$target_os,;t t
24580 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
24581 s,@ARCH@,$ARCH,;t t
24583 s,@CXXFLAGS@,$CXXFLAGS,;t t
24584 s,@LDFLAGS@,$LDFLAGS,;t t
24585 s,@CPPFLAGS@,$CPPFLAGS,;t t
24586 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24587 s,@EXEEXT@,$EXEEXT,;t t
24588 s,@OBJEXT@,$OBJEXT,;t t
24590 s,@CFLAGS@,$CFLAGS,;t t
24591 s,@ac_ct_CC@,$ac_ct_CC,;t t
24593 s,@ifGNUmake@,$ifGNUmake,;t t
24595 s,@LEXLIB@,$LEXLIB,;t t
24596 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
24597 s,@FLEX@,$FLEX,;t t
24598 s,@YACC@,$YACC,;t t
24599 s,@BISON@,$BISON,;t t
24600 s,@EGREP@,$EGREP,;t t
24601 s,@LN_S@,$LN_S,;t t
24602 s,@ECHO@,$ECHO,;t t
24604 s,@ac_ct_AR@,$ac_ct_AR,;t t
24605 s,@RANLIB@,$RANLIB,;t t
24606 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24607 s,@STRIP@,$STRIP,;t t
24608 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24609 s,@CXXCPP@,$CXXCPP,;t t
24611 s,@FFLAGS@,$FFLAGS,;t t
24612 s,@ac_ct_F77@,$ac_ct_F77,;t t
24613 s,@LIBTOOL@,$LIBTOOL,;t t
24615 s,@ETAGS@,$ETAGS,;t t
24616 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
24617 s,@PYTHON@,$PYTHON,;t t
24618 s,@QMTEST@,$QMTEST,;t t
24619 s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
24620 s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
24621 s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
24622 s,@INCLUDE_STDINT_H@,$INCLUDE_STDINT_H,;t t
24623 s,@ENDIAN@,$ENDIAN,;t t
24624 s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
24625 s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
24626 s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
24627 s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
24628 s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
24629 s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
24630 s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
24631 s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
24632 s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
24633 s,@ALLOCA@,$ALLOCA,;t t
24634 s,@MMAP_FILE@,$MMAP_FILE,;t t
24635 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
24637 s,@LLVMCC1@,$LLVMCC1,;t t
24638 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
24639 s,@SHLIBEXT@,$SHLIBEXT,;t t
24640 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
24641 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
24642 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
24643 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
24644 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
24645 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
24646 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
24647 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
24648 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
24649 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
24650 s,@LIBOBJS@,$LIBOBJS,;t t
24651 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24656 cat >>$CONFIG_STATUS <<\_ACEOF
24657 # Split the substitutions into bite-sized pieces for seds with
24658 # small command number limits, like on Digital OSF/1 and HP-UX.
24659 ac_max_sed_lines=48
24660 ac_sed_frag=1 # Number of current file.
24661 ac_beg=1 # First line for current file.
24662 ac_end=$ac_max_sed_lines # Line after last line for current file.
24665 while $ac_more_lines; do
24666 if test $ac_beg -gt 1; then
24667 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24669 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24671 if test ! -s $tmp/subs.frag; then
24672 ac_more_lines=false
24674 # The purpose of the label and of the branching condition is to
24675 # speed up the sed processing (if there are no `@' at all, there
24676 # is no need to browse any of the substitutions).
24677 # These are the two extra sed commands mentioned above.
24679 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24680 if test -z "$ac_sed_cmds"; then
24681 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24683 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24685 ac_sed_frag=`expr $ac_sed_frag + 1`
24687 ac_end=`expr $ac_end + $ac_max_sed_lines`
24690 if test -z "$ac_sed_cmds"; then
24693 fi # test -n "$CONFIG_FILES"
24696 cat >>$CONFIG_STATUS <<\_ACEOF
24697 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24698 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24700 - | *:- | *:-:* ) # input from stdin
24702 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24703 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24704 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24705 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24706 * ) ac_file_in=$ac_file.in ;;
24709 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24710 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24711 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24712 X"$ac_file" : 'X\(//\)[^/]' \| \
24713 X"$ac_file" : 'X\(//\)$' \| \
24714 X"$ac_file" : 'X\(/\)' \| \
24715 . : '\(.\)' 2>/dev/null ||
24717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24719 /^X\(\/\/\)$/{ s//\1/; q; }
24720 /^X\(\/\).*/{ s//\1/; q; }
24722 { if $as_mkdir_p; then
24727 while test ! -d "$as_dir"; do
24728 as_dirs="$as_dir $as_dirs"
24729 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24730 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24731 X"$as_dir" : 'X\(//\)[^/]' \| \
24732 X"$as_dir" : 'X\(//\)$' \| \
24733 X"$as_dir" : 'X\(/\)' \| \
24734 . : '\(.\)' 2>/dev/null ||
24736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24737 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24738 /^X\(\/\/\)$/{ s//\1/; q; }
24739 /^X\(\/\).*/{ s//\1/; q; }
24742 test ! -n "$as_dirs" || mkdir $as_dirs
24743 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24744 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24745 { (exit 1); exit 1; }; }; }
24749 if test "$ac_dir" != .; then
24750 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24751 # A "../" for each directory in $ac_dir_suffix.
24752 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24754 ac_dir_suffix= ac_top_builddir=
24758 .) # No --srcdir option. We are building in place.
24760 if test -z "$ac_top_builddir"; then
24763 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24765 [\\/]* | ?:[\\/]* ) # Absolute path.
24766 ac_srcdir=$srcdir$ac_dir_suffix;
24767 ac_top_srcdir=$srcdir ;;
24768 *) # Relative path.
24769 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24770 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24773 # Do not use `cd foo && pwd` to compute absolute paths, because
24774 # the directories may not exist.
24776 .) ac_abs_builddir="$ac_dir";;
24779 .) ac_abs_builddir=`pwd`;;
24780 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24781 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24784 case $ac_abs_builddir in
24785 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24787 case ${ac_top_builddir}. in
24788 .) ac_abs_top_builddir=$ac_abs_builddir;;
24789 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24790 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24793 case $ac_abs_builddir in
24794 .) ac_abs_srcdir=$ac_srcdir;;
24797 .) ac_abs_srcdir=$ac_abs_builddir;;
24798 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24799 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24802 case $ac_abs_builddir in
24803 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24805 case $ac_top_srcdir in
24806 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24807 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24808 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24814 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24815 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24818 if test x"$ac_file" != x-; then
24819 { echo "$as_me:$LINENO: creating $ac_file" >&5
24820 echo "$as_me: creating $ac_file" >&6;}
24823 # Let's still pretend it is `configure' which instantiates (i.e., don't
24824 # use $as_me), people would be surprised to read:
24825 # /* config.h. Generated by config.status. */
24826 if test x"$ac_file" = x-; then
24829 configure_input="$ac_file. "
24831 configure_input=$configure_input"Generated from `echo $ac_file_in |
24832 sed 's,.*/,,'` by configure."
24834 # First look for the input files in the build tree, otherwise in the
24836 ac_file_inputs=`IFS=:
24837 for f in $ac_file_in; do
24839 -) echo $tmp/stdin ;;
24841 # Absolute (can't be DOS-style, as IFS=:)
24842 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24843 echo "$as_me: error: cannot find input file: $f" >&2;}
24844 { (exit 1); exit 1; }; }
24847 if test -f "$f"; then
24850 elif test -f "$srcdir/$f"; then
24855 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24856 echo "$as_me: error: cannot find input file: $f" >&2;}
24857 { (exit 1); exit 1; }; }
24860 done` || { (exit 1); exit 1; }
24862 cat >>$CONFIG_STATUS <<_ACEOF
24866 cat >>$CONFIG_STATUS <<\_ACEOF
24868 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24869 s,@configure_input@,$configure_input,;t t
24870 s,@srcdir@,$ac_srcdir,;t t
24871 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24872 s,@top_srcdir@,$ac_top_srcdir,;t t
24873 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24874 s,@builddir@,$ac_builddir,;t t
24875 s,@abs_builddir@,$ac_abs_builddir,;t t
24876 s,@top_builddir@,$ac_top_builddir,;t t
24877 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24878 s,@INSTALL@,$ac_INSTALL,;t t
24879 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24881 if test x"$ac_file" != x-; then
24882 mv $tmp/out $ac_file
24890 cat >>$CONFIG_STATUS <<\_ACEOF
24893 # CONFIG_HEADER section.
24896 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24897 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24899 # ac_d sets the value in "#define NAME VALUE" lines.
24900 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24901 ac_dB='[ ].*$,\1#\2'
24904 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24905 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24906 ac_uB='$,\1#\2define\3'
24910 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24911 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24913 - | *:- | *:-:* ) # input from stdin
24915 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24916 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24917 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24918 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24919 * ) ac_file_in=$ac_file.in ;;
24922 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24923 echo "$as_me: creating $ac_file" >&6;}
24925 # First look for the input files in the build tree, otherwise in the
24927 ac_file_inputs=`IFS=:
24928 for f in $ac_file_in; do
24930 -) echo $tmp/stdin ;;
24932 # Absolute (can't be DOS-style, as IFS=:)
24933 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24934 echo "$as_me: error: cannot find input file: $f" >&2;}
24935 { (exit 1); exit 1; }; }
24936 # Do quote $f, to prevent DOS paths from being IFS'd.
24939 if test -f "$f"; then
24942 elif test -f "$srcdir/$f"; then
24947 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24948 echo "$as_me: error: cannot find input file: $f" >&2;}
24949 { (exit 1); exit 1; }; }
24952 done` || { (exit 1); exit 1; }
24953 # Remove the trailing spaces.
24954 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24958 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24959 # `conftest.undefs', that substitutes the proper values into
24960 # config.h.in to produce config.h. The first handles `#define'
24961 # templates, and the second `#undef' templates.
24962 # And first: Protect against being on the right side of a sed subst in
24963 # config.status. Protect against being in an unquoted here document
24964 # in config.status.
24965 rm -f conftest.defines conftest.undefs
24966 # Using a here document instead of a string reduces the quoting nightmare.
24967 # Putting comments in sed scripts is not portable.
24969 # `end' is used to avoid that the second main sed command (meant for
24970 # 0-ary CPP macros) applies to n-ary macro definitions.
24971 # See the Autoconf documentation for `clear'.
24972 cat >confdef2sed.sed <<\_ACEOF
24977 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24979 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24982 # If some macros were called several times there might be several times
24983 # the same #defines, which is useless. Nevertheless, we may not want to
24984 # sort them, since we want the *last* AC-DEFINE to be honored.
24985 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24986 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24987 rm -f confdef2sed.sed
24989 # This sed command replaces #undef with comments. This is necessary, for
24990 # example, in the case of _POSIX_SOURCE, which is predefined and required
24991 # on some systems where configure will not decide to define it.
24992 cat >>conftest.undefs <<\_ACEOF
24993 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24996 # Break up conftest.defines because some shells have a limit on the size
24997 # of here documents, and old seds have small limits too (100 cmds).
24998 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24999 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25000 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25001 echo ' :' >>$CONFIG_STATUS
25002 rm -f conftest.tail
25003 while grep . conftest.defines >/dev/null
25005 # Write a limited-size here document to $tmp/defines.sed.
25006 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25007 # Speed up: don't consider the non `#define' lines.
25008 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25009 # Work around the forget-to-reset-the-flag bug.
25010 echo 't clr' >>$CONFIG_STATUS
25011 echo ': clr' >>$CONFIG_STATUS
25012 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25014 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25016 mv $tmp/out $tmp/in
25018 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25019 rm -f conftest.defines
25020 mv conftest.tail conftest.defines
25022 rm -f conftest.defines
25023 echo ' fi # grep' >>$CONFIG_STATUS
25024 echo >>$CONFIG_STATUS
25026 # Break up conftest.undefs because some shells have a limit on the size
25027 # of here documents, and old seds have small limits too (100 cmds).
25028 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25029 rm -f conftest.tail
25030 while grep . conftest.undefs >/dev/null
25032 # Write a limited-size here document to $tmp/undefs.sed.
25033 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25034 # Speed up: don't consider the non `#undef'
25035 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25036 # Work around the forget-to-reset-the-flag bug.
25037 echo 't clr' >>$CONFIG_STATUS
25038 echo ': clr' >>$CONFIG_STATUS
25039 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25041 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25043 mv $tmp/out $tmp/in
25045 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25046 rm -f conftest.undefs
25047 mv conftest.tail conftest.undefs
25049 rm -f conftest.undefs
25051 cat >>$CONFIG_STATUS <<\_ACEOF
25052 # Let's still pretend it is `configure' which instantiates (i.e., don't
25053 # use $as_me), people would be surprised to read:
25054 # /* config.h. Generated by config.status. */
25055 if test x"$ac_file" = x-; then
25056 echo "/* Generated by configure. */" >$tmp/config.h
25058 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25060 cat $tmp/in >>$tmp/config.h
25062 if test x"$ac_file" != x-; then
25063 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25064 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25065 echo "$as_me: $ac_file is unchanged" >&6;}
25067 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25068 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25069 X"$ac_file" : 'X\(//\)[^/]' \| \
25070 X"$ac_file" : 'X\(//\)$' \| \
25071 X"$ac_file" : 'X\(/\)' \| \
25072 . : '\(.\)' 2>/dev/null ||
25074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25075 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25076 /^X\(\/\/\)$/{ s//\1/; q; }
25077 /^X\(\/\).*/{ s//\1/; q; }
25079 { if $as_mkdir_p; then
25084 while test ! -d "$as_dir"; do
25085 as_dirs="$as_dir $as_dirs"
25086 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25087 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25088 X"$as_dir" : 'X\(//\)[^/]' \| \
25089 X"$as_dir" : 'X\(//\)$' \| \
25090 X"$as_dir" : 'X\(/\)' \| \
25091 . : '\(.\)' 2>/dev/null ||
25093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25094 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25095 /^X\(\/\/\)$/{ s//\1/; q; }
25096 /^X\(\/\).*/{ s//\1/; q; }
25099 test ! -n "$as_dirs" || mkdir $as_dirs
25100 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25101 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25102 { (exit 1); exit 1; }; }; }
25105 mv $tmp/config.h $ac_file
25109 rm -f $tmp/config.h
25113 cat >>$CONFIG_STATUS <<\_ACEOF
25116 # CONFIG_LINKS section.
25119 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25120 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25121 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25123 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25124 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25126 if test ! -r $srcdir/$ac_source; then
25127 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25128 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25129 { (exit 1); exit 1; }; }
25133 # Make relative symlinks.
25134 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25135 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25136 X"$ac_dest" : 'X\(//\)[^/]' \| \
25137 X"$ac_dest" : 'X\(//\)$' \| \
25138 X"$ac_dest" : 'X\(/\)' \| \
25139 . : '\(.\)' 2>/dev/null ||
25141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25142 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25143 /^X\(\/\/\)$/{ s//\1/; q; }
25144 /^X\(\/\).*/{ s//\1/; q; }
25146 { if $as_mkdir_p; then
25147 mkdir -p "$ac_dest_dir"
25149 as_dir="$ac_dest_dir"
25151 while test ! -d "$as_dir"; do
25152 as_dirs="$as_dir $as_dirs"
25153 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25154 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25155 X"$as_dir" : 'X\(//\)[^/]' \| \
25156 X"$as_dir" : 'X\(//\)$' \| \
25157 X"$as_dir" : 'X\(/\)' \| \
25158 . : '\(.\)' 2>/dev/null ||
25160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25161 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25162 /^X\(\/\/\)$/{ s//\1/; q; }
25163 /^X\(\/\).*/{ s//\1/; q; }
25166 test ! -n "$as_dirs" || mkdir $as_dirs
25167 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25168 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25169 { (exit 1); exit 1; }; }; }
25173 if test "$ac_dest_dir" != .; then
25174 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25175 # A "../" for each directory in $ac_dir_suffix.
25176 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25178 ac_dir_suffix= ac_top_builddir=
25182 .) # No --srcdir option. We are building in place.
25184 if test -z "$ac_top_builddir"; then
25187 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25189 [\\/]* | ?:[\\/]* ) # Absolute path.
25190 ac_srcdir=$srcdir$ac_dir_suffix;
25191 ac_top_srcdir=$srcdir ;;
25192 *) # Relative path.
25193 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25194 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25197 # Do not use `cd foo && pwd` to compute absolute paths, because
25198 # the directories may not exist.
25200 .) ac_abs_builddir="$ac_dest_dir";;
25202 case "$ac_dest_dir" in
25203 .) ac_abs_builddir=`pwd`;;
25204 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25205 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25208 case $ac_abs_builddir in
25209 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25211 case ${ac_top_builddir}. in
25212 .) ac_abs_top_builddir=$ac_abs_builddir;;
25213 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25214 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25217 case $ac_abs_builddir in
25218 .) ac_abs_srcdir=$ac_srcdir;;
25221 .) ac_abs_srcdir=$ac_abs_builddir;;
25222 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25223 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25226 case $ac_abs_builddir in
25227 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25229 case $ac_top_srcdir in
25230 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25231 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25232 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25238 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25239 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25242 # Try a symlink, then a hard link, then a copy.
25243 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25244 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25245 cp -p $srcdir/$ac_source $ac_dest ||
25246 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25247 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25248 { (exit 1); exit 1; }; }
25251 cat >>$CONFIG_STATUS <<\_ACEOF
25254 # CONFIG_COMMANDS section.
25256 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25257 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25258 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25259 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25260 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25261 X"$ac_dest" : 'X\(//\)[^/]' \| \
25262 X"$ac_dest" : 'X\(//\)$' \| \
25263 X"$ac_dest" : 'X\(/\)' \| \
25264 . : '\(.\)' 2>/dev/null ||
25266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25267 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25268 /^X\(\/\/\)$/{ s//\1/; q; }
25269 /^X\(\/\).*/{ s//\1/; q; }
25271 { if $as_mkdir_p; then
25276 while test ! -d "$as_dir"; do
25277 as_dirs="$as_dir $as_dirs"
25278 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25279 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25280 X"$as_dir" : 'X\(//\)[^/]' \| \
25281 X"$as_dir" : 'X\(//\)$' \| \
25282 X"$as_dir" : 'X\(/\)' \| \
25283 . : '\(.\)' 2>/dev/null ||
25285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25286 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25287 /^X\(\/\/\)$/{ s//\1/; q; }
25288 /^X\(\/\).*/{ s//\1/; q; }
25291 test ! -n "$as_dirs" || mkdir $as_dirs
25292 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25293 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25294 { (exit 1); exit 1; }; }; }
25298 if test "$ac_dir" != .; then
25299 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25300 # A "../" for each directory in $ac_dir_suffix.
25301 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25303 ac_dir_suffix= ac_top_builddir=
25307 .) # No --srcdir option. We are building in place.
25309 if test -z "$ac_top_builddir"; then
25312 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25314 [\\/]* | ?:[\\/]* ) # Absolute path.
25315 ac_srcdir=$srcdir$ac_dir_suffix;
25316 ac_top_srcdir=$srcdir ;;
25317 *) # Relative path.
25318 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25319 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25322 # Do not use `cd foo && pwd` to compute absolute paths, because
25323 # the directories may not exist.
25325 .) ac_abs_builddir="$ac_dir";;
25328 .) ac_abs_builddir=`pwd`;;
25329 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25330 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25333 case $ac_abs_builddir in
25334 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25336 case ${ac_top_builddir}. in
25337 .) ac_abs_top_builddir=$ac_abs_builddir;;
25338 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25339 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25342 case $ac_abs_builddir in
25343 .) ac_abs_srcdir=$ac_srcdir;;
25346 .) ac_abs_srcdir=$ac_abs_builddir;;
25347 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25348 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25351 case $ac_abs_builddir in
25352 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25354 case $ac_top_srcdir in
25355 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25356 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25357 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25362 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25363 echo "$as_me: executing $ac_dest commands" >&6;}
25365 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25366 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
25367 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
25368 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
25369 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
25370 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25371 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
25372 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25373 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
25374 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
25375 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
25376 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
25381 cat >>$CONFIG_STATUS <<\_ACEOF
25383 { (exit 0); exit 0; }
25385 chmod +x $CONFIG_STATUS
25386 ac_clean_files=$ac_clean_files_save
25389 # configure is writing to config.log, and then calls config.status.
25390 # config.status does its own redirection, appending to config.log.
25391 # Unfortunately, on DOS this fails, as config.log is still kept open
25392 # by configure, so config.status won't be able to write to it; its
25393 # output is simply discarded. So we exec the FD to /dev/null,
25394 # effectively closing config.log, so it can be properly (re)opened and
25395 # appended to by config.status. When coming back to configure, we
25396 # need to make the FD available again.
25397 if test "$no_create" != yes; then
25399 ac_config_status_args=
25400 test "$silent" = yes &&
25401 ac_config_status_args="$ac_config_status_args --quiet"
25403 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25405 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25406 # would make configure fail if this is the last instruction.
25407 $ac_cs_success || { (exit 1); exit 1; }
25411 # CONFIG_SUBDIRS section.
25413 if test "$no_recursion" != yes; then
25415 # Remove --cache-file and --srcdir arguments so they do not pile up.
25416 ac_sub_configure_args=
25418 for ac_arg in $ac_configure_args; do
25419 if test -n "$ac_prev"; then
25424 -cache-file | --cache-file | --cache-fil | --cache-fi \
25425 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25426 ac_prev=cache_file ;;
25427 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25428 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25431 --config-cache | -C)
25433 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25435 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25437 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25439 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25441 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25445 # Always prepend --prefix to ensure using the same prefix
25446 # in subdir configurations.
25447 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25450 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25452 # Do not complain, so a configure script can configure whichever
25453 # parts of a large source tree are present.
25454 test -d $srcdir/$ac_dir || continue
25456 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25457 echo "$as_me: configuring in $ac_dir" >&6;}
25458 { if $as_mkdir_p; then
25463 while test ! -d "$as_dir"; do
25464 as_dirs="$as_dir $as_dirs"
25465 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25466 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25467 X"$as_dir" : 'X\(//\)[^/]' \| \
25468 X"$as_dir" : 'X\(//\)$' \| \
25469 X"$as_dir" : 'X\(/\)' \| \
25470 . : '\(.\)' 2>/dev/null ||
25472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25473 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25474 /^X\(\/\/\)$/{ s//\1/; q; }
25475 /^X\(\/\).*/{ s//\1/; q; }
25478 test ! -n "$as_dirs" || mkdir $as_dirs
25479 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25480 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25481 { (exit 1); exit 1; }; }; }
25485 if test "$ac_dir" != .; then
25486 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25487 # A "../" for each directory in $ac_dir_suffix.
25488 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25490 ac_dir_suffix= ac_top_builddir=
25494 .) # No --srcdir option. We are building in place.
25496 if test -z "$ac_top_builddir"; then
25499 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25501 [\\/]* | ?:[\\/]* ) # Absolute path.
25502 ac_srcdir=$srcdir$ac_dir_suffix;
25503 ac_top_srcdir=$srcdir ;;
25504 *) # Relative path.
25505 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25506 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25509 # Do not use `cd foo && pwd` to compute absolute paths, because
25510 # the directories may not exist.
25512 .) ac_abs_builddir="$ac_dir";;
25515 .) ac_abs_builddir=`pwd`;;
25516 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25517 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25520 case $ac_abs_builddir in
25521 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25523 case ${ac_top_builddir}. in
25524 .) ac_abs_top_builddir=$ac_abs_builddir;;
25525 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25526 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25529 case $ac_abs_builddir in
25530 .) ac_abs_srcdir=$ac_srcdir;;
25533 .) ac_abs_srcdir=$ac_abs_builddir;;
25534 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25535 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25538 case $ac_abs_builddir in
25539 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25541 case $ac_top_srcdir in
25542 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25543 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25544 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25551 # Check for guested configure; otherwise get Cygnus style configure.
25552 if test -f $ac_srcdir/configure.gnu; then
25553 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25554 elif test -f $ac_srcdir/configure; then
25555 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25556 elif test -f $ac_srcdir/configure.in; then
25557 ac_sub_configure=$ac_configure
25559 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25560 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25564 # The recursion is here.
25565 if test -n "$ac_sub_configure"; then
25566 # Make the cache file name correct relative to the subdirectory.
25567 case $cache_file in
25568 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25569 *) # Relative path.
25570 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25573 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25574 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25575 # The eval makes quoting arguments work.
25576 eval $ac_sub_configure $ac_sub_configure_args \
25577 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25578 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25579 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25580 { (exit 1); exit 1; }; }
25588 if test $llvmgccwarn = yes
25590 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
25591 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
25592 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
25593 echo "$as_me: WARNING: ***** appear to be working." >&2;}
25594 { echo "$as_me:$LINENO: WARNING: ***** " >&5
25595 echo "$as_me: WARNING: ***** " >&2;}
25596 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
25597 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
25598 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
25599 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
25600 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
25601 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}