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 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/ThreadSupport.h include/llvm/ADT/hash_map include/llvm/ADT/hash_set include/llvm/ADT/iterator"
1603 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
1606 ac_config_commands="$ac_config_commands Makefile"
1609 ac_config_commands="$ac_config_commands Makefile.common"
1612 ac_config_commands="$ac_config_commands examples/Makefile"
1615 ac_config_commands="$ac_config_commands lib/Makefile"
1618 ac_config_commands="$ac_config_commands runtime/Makefile"
1621 ac_config_commands="$ac_config_commands test/Makefile"
1624 ac_config_commands="$ac_config_commands test/Makefile.tests"
1627 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1630 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1633 ac_config_commands="$ac_config_commands tools/Makefile"
1636 ac_config_commands="$ac_config_commands utils/Makefile"
1639 ac_config_commands="$ac_config_commands projects/Makefile"
1643 # Find a good install program. We prefer a C program (faster),
1644 # so one script is as good as another. But avoid the broken or
1645 # incompatible versions:
1646 # SysV /etc/install, /usr/sbin/install
1647 # SunOS /usr/etc/install
1648 # IRIX /sbin/install
1650 # AmigaOS /C/install, which installs bootblocks on floppy discs
1651 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1652 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1653 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1654 # OS/2's system install, which has a completely different semantic
1655 # ./install, which can be erroneously created by make from ./install.sh.
1656 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1657 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1658 if test -z "$INSTALL"; then
1659 if test "${ac_cv_path_install+set}" = set; then
1660 echo $ECHO_N "(cached) $ECHO_C" >&6
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 test -z "$as_dir" && as_dir=.
1667 # Account for people who put trailing slashes in PATH elements.
1669 ./ | .// | /cC/* | \
1670 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1671 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1674 # OSF1 and SCO ODT 3.0 have their own names for install.
1675 # Don't use installbsd from OSF since it installs stuff as root
1677 for ac_prog in ginstall scoinst install; do
1678 for ac_exec_ext in '' $ac_executable_extensions; do
1679 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1680 if test $ac_prog = install &&
1681 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1682 # AIX install. It has an incompatible calling convention.
1684 elif test $ac_prog = install &&
1685 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1686 # program-specific install script used by HP pwplus--don't use.
1689 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1701 if test "${ac_cv_path_install+set}" = set; then
1702 INSTALL=$ac_cv_path_install
1704 # As a last resort, use the slow shell script. We don't cache a
1705 # path for INSTALL within a source directory, because that will
1706 # break other packages using the cache if that directory is
1707 # removed, or if the path is relative.
1708 INSTALL=$ac_install_sh
1711 echo "$as_me:$LINENO: result: $INSTALL" >&5
1712 echo "${ECHO_T}$INSTALL" >&6
1714 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1715 # It thinks the first close brace ends the variable substitution.
1716 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1718 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1720 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1723 # Make sure we can run config.sub.
1724 $ac_config_sub sun4 >/dev/null 2>&1 ||
1725 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1726 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1727 { (exit 1); exit 1; }; }
1729 echo "$as_me:$LINENO: checking build system type" >&5
1730 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1731 if test "${ac_cv_build+set}" = set; then
1732 echo $ECHO_N "(cached) $ECHO_C" >&6
1734 ac_cv_build_alias=$build_alias
1735 test -z "$ac_cv_build_alias" &&
1736 ac_cv_build_alias=`$ac_config_guess`
1737 test -z "$ac_cv_build_alias" &&
1738 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1739 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1740 { (exit 1); exit 1; }; }
1741 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1742 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1743 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1744 { (exit 1); exit 1; }; }
1747 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1748 echo "${ECHO_T}$ac_cv_build" >&6
1750 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1751 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1752 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1755 echo "$as_me:$LINENO: checking host system type" >&5
1756 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1757 if test "${ac_cv_host+set}" = set; then
1758 echo $ECHO_N "(cached) $ECHO_C" >&6
1760 ac_cv_host_alias=$host_alias
1761 test -z "$ac_cv_host_alias" &&
1762 ac_cv_host_alias=$ac_cv_build_alias
1763 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1764 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1765 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1766 { (exit 1); exit 1; }; }
1769 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1770 echo "${ECHO_T}$ac_cv_host" >&6
1772 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1773 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1774 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1777 echo "$as_me:$LINENO: checking target system type" >&5
1778 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1779 if test "${ac_cv_target+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1782 ac_cv_target_alias=$target_alias
1783 test "x$ac_cv_target_alias" = "x" &&
1784 ac_cv_target_alias=$ac_cv_host_alias
1785 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1786 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1787 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1788 { (exit 1); exit 1; }; }
1791 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1792 echo "${ECHO_T}$ac_cv_target" >&6
1793 target=$ac_cv_target
1794 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1795 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1796 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1799 # The aliases save the names the user supplied, while $host etc.
1800 # will get canonicalized.
1801 test -n "$target_alias" &&
1802 test "$program_prefix$program_suffix$program_transform_name" = \
1804 program_prefix=${target_alias}-
1807 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1808 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
1818 platform_type="Cygwin"
1823 platform_type="Darwin"
1828 platform_type="FreeBSD"
1833 platform_type="Interix"
1838 platform_type="Linux"
1839 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1841 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1848 platform_type="SunOS"
1849 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1851 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1858 platform_type="Win32"
1863 platform_type="Win32"
1868 platform_type="Unknown"
1872 if test "$platform_type" = "Unknown" ; then
1873 { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1874 echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1875 { (exit 1); exit 1; }; }
1878 ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1882 echo "$as_me:$LINENO: checking target architecture" >&5
1883 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1885 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1913 echo "$as_me:$LINENO: result: $ARCH" >&5
1914 echo "${ECHO_T}$ARCH" >&6
1917 ac_cpp='$CXXCPP $CPPFLAGS'
1918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1921 if test -n "$ac_tool_prefix"; then
1922 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1924 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1925 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1926 echo "$as_me:$LINENO: checking for $ac_word" >&5
1927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1928 if test "${ac_cv_prog_CXX+set}" = set; then
1929 echo $ECHO_N "(cached) $ECHO_C" >&6
1931 if test -n "$CXX"; then
1932 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938 test -z "$as_dir" && as_dir=.
1939 for ac_exec_ext in '' $ac_executable_extensions; do
1940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1941 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1951 if test -n "$CXX"; then
1952 echo "$as_me:$LINENO: result: $CXX" >&5
1953 echo "${ECHO_T}$CXX" >&6
1955 echo "$as_me:$LINENO: result: no" >&5
1956 echo "${ECHO_T}no" >&6
1959 test -n "$CXX" && break
1962 if test -z "$CXX"; then
1964 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1966 # Extract the first word of "$ac_prog", so it can be a program name with args.
1967 set dummy $ac_prog; ac_word=$2
1968 echo "$as_me:$LINENO: checking for $ac_word" >&5
1969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1970 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 if test -n "$ac_ct_CXX"; then
1974 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980 test -z "$as_dir" && as_dir=.
1981 for ac_exec_ext in '' $ac_executable_extensions; do
1982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1983 ac_cv_prog_ac_ct_CXX="$ac_prog"
1984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1992 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1993 if test -n "$ac_ct_CXX"; then
1994 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1995 echo "${ECHO_T}$ac_ct_CXX" >&6
1997 echo "$as_me:$LINENO: result: no" >&5
1998 echo "${ECHO_T}no" >&6
2001 test -n "$ac_ct_CXX" && break
2003 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2009 # Provide some information about the compiler.
2010 echo "$as_me:$LINENO:" \
2011 "checking for C++ compiler version" >&5
2012 ac_compiler=`set X $ac_compile; echo $2`
2013 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2014 (eval $ac_compiler --version </dev/null >&5) 2>&5
2016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017 (exit $ac_status); }
2018 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2019 (eval $ac_compiler -v </dev/null >&5) 2>&5
2021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022 (exit $ac_status); }
2023 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2024 (eval $ac_compiler -V </dev/null >&5) 2>&5
2026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027 (exit $ac_status); }
2029 cat >conftest.$ac_ext <<_ACEOF
2032 cat confdefs.h >>conftest.$ac_ext
2033 cat >>conftest.$ac_ext <<_ACEOF
2034 /* end confdefs.h. */
2044 ac_clean_files_save=$ac_clean_files
2045 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2046 # Try to create an executable without -o first, disregard a.out.
2047 # It will help us diagnose broken compilers, and finding out an intuition
2049 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2050 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2051 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2052 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2053 (eval $ac_link_default) 2>&5
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); }; then
2057 # Find the output, starting from the most likely. This scheme is
2058 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2061 # Be careful to initialize this variable, since it used to be cached.
2062 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2064 # b.out is created by i960 compilers.
2065 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2067 test -f "$ac_file" || continue
2069 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2072 # This is the source file.
2075 # We found the default executable, but exeext='' is most
2079 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2080 # FIXME: I believe we export ac_cv_exeext for Libtool,
2081 # but it would be cool to find out if it's true. Does anybody
2082 # maintain Libtool? --akim.
2090 echo "$as_me: failed program was:" >&5
2091 sed 's/^/| /' conftest.$ac_ext >&5
2093 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2094 See \`config.log' for more details." >&5
2095 echo "$as_me: error: C++ compiler cannot create executables
2096 See \`config.log' for more details." >&2;}
2097 { (exit 77); exit 77; }; }
2100 ac_exeext=$ac_cv_exeext
2101 echo "$as_me:$LINENO: result: $ac_file" >&5
2102 echo "${ECHO_T}$ac_file" >&6
2104 # Check the compiler produces executables we can run. If not, either
2105 # the compiler is broken, or we cross compile.
2106 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2107 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2108 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2109 # If not cross compiling, check that we can run a simple program.
2110 if test "$cross_compiling" != yes; then
2111 if { ac_try='./$ac_file'
2112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }; }; then
2119 if test "$cross_compiling" = maybe; then
2122 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2123 If you meant to cross compile, use \`--host'.
2124 See \`config.log' for more details." >&5
2125 echo "$as_me: error: cannot run C++ compiled programs.
2126 If you meant to cross compile, use \`--host'.
2127 See \`config.log' for more details." >&2;}
2128 { (exit 1); exit 1; }; }
2132 echo "$as_me:$LINENO: result: yes" >&5
2133 echo "${ECHO_T}yes" >&6
2135 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2136 ac_clean_files=$ac_clean_files_save
2137 # Check the compiler produces executables we can run. If not, either
2138 # the compiler is broken, or we cross compile.
2139 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2140 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2141 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2142 echo "${ECHO_T}$cross_compiling" >&6
2144 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2145 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2147 (eval $ac_link) 2>&5
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); }; then
2151 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2152 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2153 # work properly (i.e., refer to `conftest.exe'), while it won't with
2155 for ac_file in conftest.exe conftest conftest.*; do
2156 test -f "$ac_file" || continue
2158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2159 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2166 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2167 See \`config.log' for more details." >&5
2168 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2169 See \`config.log' for more details." >&2;}
2170 { (exit 1); exit 1; }; }
2173 rm -f conftest$ac_cv_exeext
2174 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2175 echo "${ECHO_T}$ac_cv_exeext" >&6
2177 rm -f conftest.$ac_ext
2178 EXEEXT=$ac_cv_exeext
2180 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2181 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2182 if test "${ac_cv_objext+set}" = set; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
2185 cat >conftest.$ac_ext <<_ACEOF
2188 cat confdefs.h >>conftest.$ac_ext
2189 cat >>conftest.$ac_ext <<_ACEOF
2190 /* end confdefs.h. */
2200 rm -f conftest.o conftest.obj
2201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2202 (eval $ac_compile) 2>&5
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); }; then
2206 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2208 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2209 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2214 echo "$as_me: failed program was:" >&5
2215 sed 's/^/| /' conftest.$ac_ext >&5
2217 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2218 See \`config.log' for more details." >&5
2219 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2220 See \`config.log' for more details." >&2;}
2221 { (exit 1); exit 1; }; }
2224 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2226 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2227 echo "${ECHO_T}$ac_cv_objext" >&6
2228 OBJEXT=$ac_cv_objext
2230 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2231 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2232 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2233 echo $ECHO_N "(cached) $ECHO_C" >&6
2235 cat >conftest.$ac_ext <<_ACEOF
2238 cat confdefs.h >>conftest.$ac_ext
2239 cat >>conftest.$ac_ext <<_ACEOF
2240 /* end confdefs.h. */
2253 rm -f conftest.$ac_objext
2254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2255 (eval $ac_compile) 2>conftest.er1
2257 grep -v '^ *+' conftest.er1 >conftest.err
2259 cat conftest.err >&5
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); } &&
2262 { ac_try='test -z "$ac_cxx_werror_flag"
2263 || test ! -s conftest.err'
2264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; } &&
2269 { ac_try='test -s conftest.$ac_objext'
2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; }; then
2277 echo "$as_me: failed program was:" >&5
2278 sed 's/^/| /' conftest.$ac_ext >&5
2282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2283 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2286 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2287 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2288 GXX=`test $ac_compiler_gnu = yes && echo yes`
2289 ac_test_CXXFLAGS=${CXXFLAGS+set}
2290 ac_save_CXXFLAGS=$CXXFLAGS
2292 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2293 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2294 if test "${ac_cv_prog_cxx_g+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2297 cat >conftest.$ac_ext <<_ACEOF
2300 cat confdefs.h >>conftest.$ac_ext
2301 cat >>conftest.$ac_ext <<_ACEOF
2302 /* end confdefs.h. */
2312 rm -f conftest.$ac_objext
2313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2314 (eval $ac_compile) 2>conftest.er1
2316 grep -v '^ *+' conftest.er1 >conftest.err
2318 cat conftest.err >&5
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); } &&
2321 { ac_try='test -z "$ac_cxx_werror_flag"
2322 || test ! -s conftest.err'
2323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); }; } &&
2328 { ac_try='test -s conftest.$ac_objext'
2329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; }; then
2334 ac_cv_prog_cxx_g=yes
2336 echo "$as_me: failed program was:" >&5
2337 sed 's/^/| /' conftest.$ac_ext >&5
2341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2343 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2344 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2345 if test "$ac_test_CXXFLAGS" = set; then
2346 CXXFLAGS=$ac_save_CXXFLAGS
2347 elif test $ac_cv_prog_cxx_g = yes; then
2348 if test "$GXX" = yes; then
2354 if test "$GXX" = yes; then
2360 for ac_declaration in \
2362 'extern "C" void std::exit (int) throw (); using std::exit;' \
2363 'extern "C" void std::exit (int); using std::exit;' \
2364 'extern "C" void exit (int) throw ();' \
2365 'extern "C" void exit (int);' \
2368 cat >conftest.$ac_ext <<_ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h. */
2384 rm -f conftest.$ac_objext
2385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2386 (eval $ac_compile) 2>conftest.er1
2388 grep -v '^ *+' conftest.er1 >conftest.err
2390 cat conftest.err >&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); } &&
2393 { ac_try='test -z "$ac_cxx_werror_flag"
2394 || test ! -s conftest.err'
2395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; } &&
2400 { ac_try='test -s conftest.$ac_objext'
2401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; }; then
2408 echo "$as_me: failed program was:" >&5
2409 sed 's/^/| /' conftest.$ac_ext >&5
2413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2414 cat >conftest.$ac_ext <<_ACEOF
2417 cat confdefs.h >>conftest.$ac_ext
2418 cat >>conftest.$ac_ext <<_ACEOF
2419 /* end confdefs.h. */
2429 rm -f conftest.$ac_objext
2430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431 (eval $ac_compile) 2>conftest.er1
2433 grep -v '^ *+' conftest.er1 >conftest.err
2435 cat conftest.err >&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); } &&
2438 { ac_try='test -z "$ac_cxx_werror_flag"
2439 || test ! -s conftest.err'
2440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }; } &&
2445 { ac_try='test -s conftest.$ac_objext'
2446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; }; then
2453 echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.$ac_ext >&5
2457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2460 if test -n "$ac_declaration"; then
2461 echo '#ifdef __cplusplus' >>confdefs.h
2462 echo $ac_declaration >>confdefs.h
2463 echo '#endif' >>confdefs.h
2467 ac_cpp='$CPP $CPPFLAGS'
2468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2473 ac_cpp='$CPP $CPPFLAGS'
2474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2477 if test -n "$ac_tool_prefix"; then
2480 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2481 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2482 echo "$as_me:$LINENO: checking for $ac_word" >&5
2483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2484 if test "${ac_cv_prog_CC+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 if test -n "$CC"; then
2488 ac_cv_prog_CC="$CC" # Let the user override the test.
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 test -z "$as_dir" && as_dir=.
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2497 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2507 if test -n "$CC"; then
2508 echo "$as_me:$LINENO: result: $CC" >&5
2509 echo "${ECHO_T}$CC" >&6
2511 echo "$as_me:$LINENO: result: no" >&5
2512 echo "${ECHO_T}no" >&6
2515 test -n "$CC" && break
2518 if test -z "$CC"; then
2522 # Extract the first word of "$ac_prog", so it can be a program name with args.
2523 set dummy $ac_prog; ac_word=$2
2524 echo "$as_me:$LINENO: checking for $ac_word" >&5
2525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2526 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2529 if test -n "$ac_ct_CC"; then
2530 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 test -z "$as_dir" && as_dir=.
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2539 ac_cv_prog_ac_ct_CC="$ac_prog"
2540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2549 if test -n "$ac_ct_CC"; then
2550 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2551 echo "${ECHO_T}$ac_ct_CC" >&6
2553 echo "$as_me:$LINENO: result: no" >&5
2554 echo "${ECHO_T}no" >&6
2557 test -n "$ac_ct_CC" && break
2564 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2565 See \`config.log' for more details." >&5
2566 echo "$as_me: error: no acceptable C compiler found in \$PATH
2567 See \`config.log' for more details." >&2;}
2568 { (exit 1); exit 1; }; }
2570 # Provide some information about the compiler.
2571 echo "$as_me:$LINENO:" \
2572 "checking for C compiler version" >&5
2573 ac_compiler=`set X $ac_compile; echo $2`
2574 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2575 (eval $ac_compiler --version </dev/null >&5) 2>&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }
2579 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2580 (eval $ac_compiler -v </dev/null >&5) 2>&5
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }
2584 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2585 (eval $ac_compiler -V </dev/null >&5) 2>&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }
2590 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2591 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2592 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
2595 cat >conftest.$ac_ext <<_ACEOF
2598 cat confdefs.h >>conftest.$ac_ext
2599 cat >>conftest.$ac_ext <<_ACEOF
2600 /* end confdefs.h. */
2613 rm -f conftest.$ac_objext
2614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2615 (eval $ac_compile) 2>conftest.er1
2617 grep -v '^ *+' conftest.er1 >conftest.err
2619 cat conftest.err >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); } &&
2622 { ac_try='test -z "$ac_c_werror_flag"
2623 || test ! -s conftest.err'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; } &&
2629 { ac_try='test -s conftest.$ac_objext'
2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; }; then
2637 echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2643 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2646 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2647 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2648 GCC=`test $ac_compiler_gnu = yes && echo yes`
2649 ac_test_CFLAGS=${CFLAGS+set}
2650 ac_save_CFLAGS=$CFLAGS
2652 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2653 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2654 if test "${ac_cv_prog_cc_g+set}" = set; then
2655 echo $ECHO_N "(cached) $ECHO_C" >&6
2657 cat >conftest.$ac_ext <<_ACEOF
2660 cat confdefs.h >>conftest.$ac_ext
2661 cat >>conftest.$ac_ext <<_ACEOF
2662 /* end confdefs.h. */
2672 rm -f conftest.$ac_objext
2673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2674 (eval $ac_compile) 2>conftest.er1
2676 grep -v '^ *+' conftest.er1 >conftest.err
2678 cat conftest.err >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); } &&
2681 { ac_try='test -z "$ac_c_werror_flag"
2682 || test ! -s conftest.err'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; } &&
2688 { ac_try='test -s conftest.$ac_objext'
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; }; then
2696 echo "$as_me: failed program was:" >&5
2697 sed 's/^/| /' conftest.$ac_ext >&5
2701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2703 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2704 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2705 if test "$ac_test_CFLAGS" = set; then
2706 CFLAGS=$ac_save_CFLAGS
2707 elif test $ac_cv_prog_cc_g = yes; then
2708 if test "$GCC" = yes; then
2714 if test "$GCC" = yes; then
2720 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2721 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2722 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2723 echo $ECHO_N "(cached) $ECHO_C" >&6
2725 ac_cv_prog_cc_stdc=no
2727 cat >conftest.$ac_ext <<_ACEOF
2730 cat confdefs.h >>conftest.$ac_ext
2731 cat >>conftest.$ac_ext <<_ACEOF
2732 /* end confdefs.h. */
2735 #include <sys/types.h>
2736 #include <sys/stat.h>
2737 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2738 struct buf { int x; };
2739 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2740 static char *e (p, i)
2746 static char *f (char * (*g) (char **, int), char **p, ...)
2751 s = g (p, va_arg (v,int));
2756 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2757 function prototypes and stuff, but not '\xHH' hex character constants.
2758 These don't provoke an error unfortunately, instead are silently treated
2759 as 'x'. The following induces an error, until -std1 is added to get
2760 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2761 array size at least. It's necessary to write '\x00'==0 to get something
2762 that's true only with -std1. */
2763 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2765 int test (int i, double x);
2766 struct s1 {int (*f) (int a);};
2767 struct s2 {int (*f) (double a);};
2768 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2774 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2779 # Don't try gcc -ansi; that turns off useful extensions and
2780 # breaks some systems' header files.
2781 # AIX -qlanglvl=ansi
2782 # Ultrix and OSF/1 -std1
2783 # HP-UX 10.20 and later -Ae
2784 # HP-UX older versions -Aa -D_HPUX_SOURCE
2785 # SVR4 -Xc -D__EXTENSIONS__
2786 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2788 CC="$ac_save_CC $ac_arg"
2789 rm -f conftest.$ac_objext
2790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2791 (eval $ac_compile) 2>conftest.er1
2793 grep -v '^ *+' conftest.er1 >conftest.err
2795 cat conftest.err >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); } &&
2798 { ac_try='test -z "$ac_c_werror_flag"
2799 || test ! -s conftest.err'
2800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; } &&
2805 { ac_try='test -s conftest.$ac_objext'
2806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); }; }; then
2811 ac_cv_prog_cc_stdc=$ac_arg
2814 echo "$as_me: failed program was:" >&5
2815 sed 's/^/| /' conftest.$ac_ext >&5
2818 rm -f conftest.err conftest.$ac_objext
2820 rm -f conftest.$ac_ext conftest.$ac_objext
2825 case "x$ac_cv_prog_cc_stdc" in
2827 echo "$as_me:$LINENO: result: none needed" >&5
2828 echo "${ECHO_T}none needed" >&6 ;;
2830 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2831 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2832 CC="$CC $ac_cv_prog_cc_stdc" ;;
2835 # Some people use a C++ compiler to compile C. Since we use `exit',
2836 # in C++ we need to declare it. In case someone uses the same compiler
2837 # for both compiling C and C++ we need to have the C++ compiler decide
2838 # the declaration of exit, since it's the most demanding environment.
2839 cat >conftest.$ac_ext <<_ACEOF
2844 rm -f conftest.$ac_objext
2845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2846 (eval $ac_compile) 2>conftest.er1
2848 grep -v '^ *+' conftest.er1 >conftest.err
2850 cat conftest.err >&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); } &&
2853 { ac_try='test -z "$ac_c_werror_flag"
2854 || test ! -s conftest.err'
2855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); }; } &&
2860 { ac_try='test -s conftest.$ac_objext'
2861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); }; }; then
2866 for ac_declaration in \
2868 'extern "C" void std::exit (int) throw (); using std::exit;' \
2869 'extern "C" void std::exit (int); using std::exit;' \
2870 'extern "C" void exit (int) throw ();' \
2871 'extern "C" void exit (int);' \
2874 cat >conftest.$ac_ext <<_ACEOF
2877 cat confdefs.h >>conftest.$ac_ext
2878 cat >>conftest.$ac_ext <<_ACEOF
2879 /* end confdefs.h. */
2890 rm -f conftest.$ac_objext
2891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2892 (eval $ac_compile) 2>conftest.er1
2894 grep -v '^ *+' conftest.er1 >conftest.err
2896 cat conftest.err >&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } &&
2899 { ac_try='test -z "$ac_c_werror_flag"
2900 || test ! -s conftest.err'
2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; } &&
2906 { ac_try='test -s conftest.$ac_objext'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; }; then
2914 echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2920 cat >conftest.$ac_ext <<_ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h. */
2935 rm -f conftest.$ac_objext
2936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2937 (eval $ac_compile) 2>conftest.er1
2939 grep -v '^ *+' conftest.er1 >conftest.err
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } &&
2944 { ac_try='test -z "$ac_c_werror_flag"
2945 || test ! -s conftest.err'
2946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; } &&
2951 { ac_try='test -s conftest.$ac_objext'
2952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; }; then
2959 echo "$as_me: failed program was:" >&5
2960 sed 's/^/| /' conftest.$ac_ext >&5
2963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2966 if test -n "$ac_declaration"; then
2967 echo '#ifdef __cplusplus' >>confdefs.h
2968 echo $ac_declaration >>confdefs.h
2969 echo '#endif' >>confdefs.h
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2979 ac_cpp='$CPP $CPPFLAGS'
2980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2984 if test "$GCC" != "yes"
2986 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
2987 echo "$as_me: error: gcc required but not found" >&2;}
2988 { (exit 1); exit 1; }; }
2991 ac_cpp='$CPP $CPPFLAGS'
2992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2995 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2996 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2997 # On Suns, sometimes $CPP names a directory.
2998 if test -n "$CPP" && test -d "$CPP"; then
3001 if test -z "$CPP"; then
3002 if test "${ac_cv_prog_CPP+set}" = set; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3005 # Double quotes because CPP needs to be expanded
3006 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3009 for ac_c_preproc_warn_flag in '' yes
3011 # Use a header file that comes with gcc, so configuring glibc
3012 # with a fresh cross-compiler works.
3013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3014 # <limits.h> exists even on freestanding compilers.
3015 # On the NeXT, cc -E runs the code through the compiler's parser,
3016 # not just through cpp. "Syntax error" is here to catch this case.
3017 cat >conftest.$ac_ext <<_ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3024 # include <limits.h>
3026 # include <assert.h>
3030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3033 grep -v '^ *+' conftest.er1 >conftest.err
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } >/dev/null; then
3038 if test -s conftest.err; then
3039 ac_cpp_err=$ac_c_preproc_warn_flag
3040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3047 if test -z "$ac_cpp_err"; then
3050 echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.$ac_ext >&5
3053 # Broken: fails on valid input.
3056 rm -f conftest.err conftest.$ac_ext
3058 # OK, works on sane cases. Now check whether non-existent headers
3059 # can be detected and how.
3060 cat >conftest.$ac_ext <<_ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3066 #include <ac_nonexistent.h>
3068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3071 grep -v '^ *+' conftest.er1 >conftest.err
3073 cat conftest.err >&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } >/dev/null; then
3076 if test -s conftest.err; then
3077 ac_cpp_err=$ac_c_preproc_warn_flag
3078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3085 if test -z "$ac_cpp_err"; then
3086 # Broken: success on invalid input.
3089 echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3092 # Passes both tests.
3096 rm -f conftest.err conftest.$ac_ext
3099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3100 rm -f conftest.err conftest.$ac_ext
3101 if $ac_preproc_ok; then
3113 echo "$as_me:$LINENO: result: $CPP" >&5
3114 echo "${ECHO_T}$CPP" >&6
3116 for ac_c_preproc_warn_flag in '' yes
3118 # Use a header file that comes with gcc, so configuring glibc
3119 # with a fresh cross-compiler works.
3120 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3121 # <limits.h> exists even on freestanding compilers.
3122 # On the NeXT, cc -E runs the code through the compiler's parser,
3123 # not just through cpp. "Syntax error" is here to catch this case.
3124 cat >conftest.$ac_ext <<_ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h. */
3131 # include <limits.h>
3133 # include <assert.h>
3137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3140 grep -v '^ *+' conftest.er1 >conftest.err
3142 cat conftest.err >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } >/dev/null; then
3145 if test -s conftest.err; then
3146 ac_cpp_err=$ac_c_preproc_warn_flag
3147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3154 if test -z "$ac_cpp_err"; then
3157 echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3160 # Broken: fails on valid input.
3163 rm -f conftest.err conftest.$ac_ext
3165 # OK, works on sane cases. Now check whether non-existent headers
3166 # can be detected and how.
3167 cat >conftest.$ac_ext <<_ACEOF
3170 cat confdefs.h >>conftest.$ac_ext
3171 cat >>conftest.$ac_ext <<_ACEOF
3172 /* end confdefs.h. */
3173 #include <ac_nonexistent.h>
3175 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3178 grep -v '^ *+' conftest.er1 >conftest.err
3180 cat conftest.err >&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); } >/dev/null; then
3183 if test -s conftest.err; then
3184 ac_cpp_err=$ac_c_preproc_warn_flag
3185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3192 if test -z "$ac_cpp_err"; then
3193 # Broken: success on invalid input.
3196 echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3199 # Passes both tests.
3203 rm -f conftest.err conftest.$ac_ext
3206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3207 rm -f conftest.err conftest.$ac_ext
3208 if $ac_preproc_ok; then
3211 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3212 See \`config.log' for more details." >&5
3213 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3214 See \`config.log' for more details." >&2;}
3215 { (exit 1); exit 1; }; }
3219 ac_cpp='$CPP $CPPFLAGS'
3220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3224 if test "$GXX" != "yes"
3226 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3227 echo "$as_me: error: g++ required but not found" >&2;}
3228 { (exit 1); exit 1; }; }
3231 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3232 if test "$gccmajor" -lt "3"
3234 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3235 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3236 { (exit 1); exit 1; }; }
3239 echo "$as_me:$LINENO: checking for GNU make" >&5
3240 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3241 if test "${_cv_gnu_make_command+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" >&6
3244 _cv_gnu_make_command='' ;
3245 for a in "$MAKE" make gmake gnumake ; do
3246 if test -z "$a" ; then continue ; fi ;
3247 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3248 _cv_gnu_make_command=$a ;
3254 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3255 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3256 if test "x$_cv_gnu_make_command" != "x" ; then
3260 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3261 echo "${ECHO_T}\"Not found\"" >&6;
3265 if test -z "$_cv_gnu_make_command"
3267 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3268 echo "$as_me: error: GNU Make required but not found" >&2;}
3269 { (exit 1); exit 1; }; }
3273 echo "$as_me:$LINENO: checking " >&5
3274 echo $ECHO_N "checking ... $ECHO_C" >&6
3275 if test "${ac_cv_has_flex+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 for ac_prog in flex lex
3280 # Extract the first word of "$ac_prog", so it can be a program name with args.
3281 set dummy $ac_prog; ac_word=$2
3282 echo "$as_me:$LINENO: checking for $ac_word" >&5
3283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3284 if test "${ac_cv_prog_LEX+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 if test -n "$LEX"; then
3288 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294 test -z "$as_dir" && as_dir=.
3295 for ac_exec_ext in '' $ac_executable_extensions; do
3296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3297 ac_cv_prog_LEX="$ac_prog"
3298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3307 if test -n "$LEX"; then
3308 echo "$as_me:$LINENO: result: $LEX" >&5
3309 echo "${ECHO_T}$LEX" >&6
3311 echo "$as_me:$LINENO: result: no" >&5
3312 echo "${ECHO_T}no" >&6
3315 test -n "$LEX" && break
3317 test -n "$LEX" || LEX=":"
3319 if test -z "$LEXLIB"
3321 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3322 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3323 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3324 echo $ECHO_N "(cached) $ECHO_C" >&6
3326 ac_check_lib_save_LIBS=$LIBS
3328 cat >conftest.$ac_ext <<_ACEOF
3331 cat confdefs.h >>conftest.$ac_ext
3332 cat >>conftest.$ac_ext <<_ACEOF
3333 /* end confdefs.h. */
3335 /* Override any gcc2 internal prototype to avoid an error. */
3339 /* We use char because int might match the return type of a gcc2
3340 builtin and then its argument prototype would still apply. */
3350 rm -f conftest.$ac_objext conftest$ac_exeext
3351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3352 (eval $ac_link) 2>conftest.er1
3354 grep -v '^ *+' conftest.er1 >conftest.err
3356 cat conftest.err >&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); } &&
3359 { ac_try='test -z "$ac_c_werror_flag"
3360 || test ! -s conftest.err'
3361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); }; } &&
3366 { ac_try='test -s conftest$ac_exeext'
3367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; }; then
3372 ac_cv_lib_fl_yywrap=yes
3374 echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3377 ac_cv_lib_fl_yywrap=no
3379 rm -f conftest.err conftest.$ac_objext \
3380 conftest$ac_exeext conftest.$ac_ext
3381 LIBS=$ac_check_lib_save_LIBS
3383 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3384 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3385 if test $ac_cv_lib_fl_yywrap = yes; then
3388 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3389 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3390 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3391 echo $ECHO_N "(cached) $ECHO_C" >&6
3393 ac_check_lib_save_LIBS=$LIBS
3395 cat >conftest.$ac_ext <<_ACEOF
3398 cat confdefs.h >>conftest.$ac_ext
3399 cat >>conftest.$ac_ext <<_ACEOF
3400 /* end confdefs.h. */
3402 /* Override any gcc2 internal prototype to avoid an error. */
3406 /* We use char because int might match the return type of a gcc2
3407 builtin and then its argument prototype would still apply. */
3417 rm -f conftest.$ac_objext conftest$ac_exeext
3418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3419 (eval $ac_link) 2>conftest.er1
3421 grep -v '^ *+' conftest.er1 >conftest.err
3423 cat conftest.err >&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); } &&
3426 { ac_try='test -z "$ac_c_werror_flag"
3427 || test ! -s conftest.err'
3428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); }; } &&
3433 { ac_try='test -s conftest$ac_exeext'
3434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); }; }; then
3439 ac_cv_lib_l_yywrap=yes
3441 echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3444 ac_cv_lib_l_yywrap=no
3446 rm -f conftest.err conftest.$ac_objext \
3447 conftest$ac_exeext conftest.$ac_ext
3448 LIBS=$ac_check_lib_save_LIBS
3450 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3451 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3452 if test $ac_cv_lib_l_yywrap = yes; then
3460 if test "x$LEX" != "x:"; then
3461 echo "$as_me:$LINENO: checking lex output file root" >&5
3462 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3463 if test "${ac_cv_prog_lex_root+set}" = set; then
3464 echo $ECHO_N "(cached) $ECHO_C" >&6
3466 # The minimal lex program is just a single line: %%. But some broken lexes
3467 # (Solaris, I think it was) want two %% lines, so accommodate them.
3468 cat >conftest.l <<_ACEOF
3472 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3473 (eval $LEX conftest.l) 2>&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); }
3477 if test -f lex.yy.c; then
3478 ac_cv_prog_lex_root=lex.yy
3479 elif test -f lexyy.c; then
3480 ac_cv_prog_lex_root=lexyy
3482 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3483 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3484 { (exit 1); exit 1; }; }
3487 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3488 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3490 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3492 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3493 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3494 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 # POSIX says lex can declare yytext either as a pointer or an array; the
3498 # default is implementation-dependent. Figure out which it is, since
3499 # not all implementations provide the %pointer and %array declarations.
3500 ac_cv_prog_lex_yytext_pointer=no
3501 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3503 LIBS="$LIBS $LEXLIB"
3504 cat >conftest.$ac_ext <<_ACEOF
3505 `cat $LEX_OUTPUT_ROOT.c`
3507 rm -f conftest.$ac_objext conftest$ac_exeext
3508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3509 (eval $ac_link) 2>conftest.er1
3511 grep -v '^ *+' conftest.er1 >conftest.err
3513 cat conftest.err >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } &&
3516 { ac_try='test -z "$ac_c_werror_flag"
3517 || test ! -s conftest.err'
3518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }; } &&
3523 { ac_try='test -s conftest$ac_exeext'
3524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }; }; then
3529 ac_cv_prog_lex_yytext_pointer=yes
3531 echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3535 rm -f conftest.err conftest.$ac_objext \
3536 conftest$ac_exeext conftest.$ac_ext
3538 rm -f "${LEX_OUTPUT_ROOT}.c"
3541 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3542 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3543 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3545 cat >>confdefs.h <<\_ACEOF
3546 #define YYTEXT_POINTER 1
3554 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3555 echo "${ECHO_T}$ac_cv_has_flex" >&6
3556 if test "$LEX" != "flex"; then
3557 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3558 echo "$as_me: error: flex not found but required" >&2;}
3559 { (exit 1); exit 1; }; }
3565 echo "$as_me:$LINENO: checking " >&5
3566 echo $ECHO_N "checking ... $ECHO_C" >&6
3567 if test "${ac_cv_has_bison+set}" = set; then
3568 echo $ECHO_N "(cached) $ECHO_C" >&6
3570 for ac_prog in 'bison -y' byacc
3572 # Extract the first word of "$ac_prog", so it can be a program name with args.
3573 set dummy $ac_prog; ac_word=$2
3574 echo "$as_me:$LINENO: checking for $ac_word" >&5
3575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3576 if test "${ac_cv_prog_YACC+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 if test -n "$YACC"; then
3580 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586 test -z "$as_dir" && as_dir=.
3587 for ac_exec_ext in '' $ac_executable_extensions; do
3588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3589 ac_cv_prog_YACC="$ac_prog"
3590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3598 YACC=$ac_cv_prog_YACC
3599 if test -n "$YACC"; then
3600 echo "$as_me:$LINENO: result: $YACC" >&5
3601 echo "${ECHO_T}$YACC" >&6
3603 echo "$as_me:$LINENO: result: no" >&5
3604 echo "${ECHO_T}no" >&6
3607 test -n "$YACC" && break
3609 test -n "$YACC" || YACC="yacc"
3613 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3614 echo "${ECHO_T}$ac_cv_has_bison" >&6
3615 if test "$YACC" != "bison -y"; then
3616 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3617 echo "$as_me: error: bison not found but required" >&2;}
3618 { (exit 1); exit 1; }; }
3624 # Check whether --enable-shared or --disable-shared was given.
3625 if test "${enable_shared+set}" = set; then
3626 enableval="$enable_shared"
3627 p=${PACKAGE-default}
3629 yes) enable_shared=yes ;;
3630 no) enable_shared=no ;;
3633 # Look at the argument we got. We use all the common list separators.
3634 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3635 for pkg in $enableval; do
3637 if test "X$pkg" = "X$p"; then
3648 # Check whether --enable-static or --disable-static was given.
3649 if test "${enable_static+set}" = set; then
3650 enableval="$enable_static"
3651 p=${PACKAGE-default}
3653 yes) enable_static=yes ;;
3654 no) enable_static=no ;;
3657 # Look at the argument we got. We use all the common list separators.
3658 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3659 for pkg in $enableval; do
3661 if test "X$pkg" = "X$p"; then
3672 # Check whether --enable-fast-install or --disable-fast-install was given.
3673 if test "${enable_fast_install+set}" = set; then
3674 enableval="$enable_fast_install"
3675 p=${PACKAGE-default}
3677 yes) enable_fast_install=yes ;;
3678 no) enable_fast_install=no ;;
3680 enable_fast_install=no
3681 # Look at the argument we got. We use all the common list separators.
3682 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3683 for pkg in $enableval; do
3685 if test "X$pkg" = "X$p"; then
3686 enable_fast_install=yes
3693 enable_fast_install=yes
3696 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3697 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3698 if test "${lt_cv_path_SED+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 # Loop through the user's path and test for sed and gsed.
3702 # Then use that list of sed's as ones to test for truncation.
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 test -z "$as_dir" && as_dir=.
3708 for lt_ac_prog in sed gsed; do
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3711 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3718 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3719 # along with /bin/sed that truncates output.
3720 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3721 test ! -f $lt_ac_sed && break
3722 cat /dev/null > conftest.in
3724 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3725 # Check for GNU sed and select it if it is found.
3726 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3727 lt_cv_path_SED=$lt_ac_sed
3731 cat conftest.in conftest.in >conftest.tmp
3732 mv conftest.tmp conftest.in
3733 cp conftest.in conftest.nl
3735 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3736 cmp -s conftest.out conftest.nl || break
3737 # 10000 chars as input seems more than enough
3738 test $lt_ac_count -gt 10 && break
3739 lt_ac_count=`expr $lt_ac_count + 1`
3740 if test $lt_ac_count -gt $lt_ac_max; then
3741 lt_ac_max=$lt_ac_count
3742 lt_cv_path_SED=$lt_ac_sed
3750 echo "$as_me:$LINENO: result: $SED" >&5
3751 echo "${ECHO_T}$SED" >&6
3753 echo "$as_me:$LINENO: checking for egrep" >&5
3754 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3755 if test "${ac_cv_prog_egrep+set}" = set; then
3756 echo $ECHO_N "(cached) $ECHO_C" >&6
3758 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3759 then ac_cv_prog_egrep='grep -E'
3760 else ac_cv_prog_egrep='egrep'
3763 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3764 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3765 EGREP=$ac_cv_prog_egrep
3769 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3770 if test "${with_gnu_ld+set}" = set; then
3771 withval="$with_gnu_ld"
3772 test "$withval" = no || with_gnu_ld=yes
3777 if test "$GCC" = yes; then
3778 # Check if gcc -print-prog-name=ld gives a path.
3779 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3780 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3783 # gcc leaves a trailing carriage return which upsets mingw
3784 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3786 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3789 # Accept absolute paths.
3791 re_direlt='/[^/][^/]*/\.\./'
3792 # Canonicalize the pathname of ld
3793 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3794 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3795 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3797 test -z "$LD" && LD="$ac_prog"
3800 # If it fails, then pretend we aren't using GCC.
3804 # If it is relative, then search for the first ld in PATH.
3808 elif test "$with_gnu_ld" = yes; then
3809 echo "$as_me:$LINENO: checking for GNU ld" >&5
3810 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3812 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3813 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3815 if test "${lt_cv_path_LD+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 if test -z "$LD"; then
3819 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3820 for ac_dir in $PATH; do
3822 test -z "$ac_dir" && ac_dir=.
3823 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3824 lt_cv_path_LD="$ac_dir/$ac_prog"
3825 # Check to see if the program is GNU ld. I'd rather use --version,
3826 # but apparently some GNU ld's only accept -v.
3827 # Break only if it was the GNU/non-GNU ld that we prefer.
3828 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3829 *GNU* | *'with BFD'*)
3830 test "$with_gnu_ld" != no && break
3833 test "$with_gnu_ld" != yes && break
3840 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3845 if test -n "$LD"; then
3846 echo "$as_me:$LINENO: result: $LD" >&5
3847 echo "${ECHO_T}$LD" >&6
3849 echo "$as_me:$LINENO: result: no" >&5
3850 echo "${ECHO_T}no" >&6
3852 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3853 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3854 { (exit 1); exit 1; }; }
3855 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3856 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3857 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3858 echo $ECHO_N "(cached) $ECHO_C" >&6
3860 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3861 case `$LD -v 2>&1 </dev/null` in
3862 *GNU* | *'with BFD'*)
3863 lt_cv_prog_gnu_ld=yes
3866 lt_cv_prog_gnu_ld=no
3870 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3871 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3872 with_gnu_ld=$lt_cv_prog_gnu_ld
3875 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3876 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3877 if test "${lt_cv_ld_reload_flag+set}" = set; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 lt_cv_ld_reload_flag='-r'
3882 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3883 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3884 reload_flag=$lt_cv_ld_reload_flag
3885 case $reload_flag in
3887 *) reload_flag=" $reload_flag" ;;
3889 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3892 if test "$GCC" = yes; then
3893 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3895 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3900 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3901 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3902 if test "${lt_cv_path_NM+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3905 if test -n "$NM"; then
3906 # Let the user override the test.
3909 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3910 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3912 test -z "$ac_dir" && ac_dir=.
3913 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3914 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3915 # Check to see if the nm accepts a BSD-compat flag.
3916 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3917 # nm: unknown option "B" ignored
3918 # Tru64's nm complains that /dev/null is an invalid object file
3919 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3920 */dev/null* | *'Invalid file or object type'*)
3921 lt_cv_path_NM="$tmp_nm -B"
3925 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3927 lt_cv_path_NM="$tmp_nm -p"
3931 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3932 continue # so that we can try to find one that supports BSD flags
3939 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3942 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3943 echo "${ECHO_T}$lt_cv_path_NM" >&6
3946 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3947 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3949 if test "$LN_S" = "ln -s"; then
3950 echo "$as_me:$LINENO: result: yes" >&5
3951 echo "${ECHO_T}yes" >&6
3953 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3954 echo "${ECHO_T}no, using $LN_S" >&6
3957 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3958 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3959 if test "${lt_cv_deplibs_check_method+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3962 lt_cv_file_magic_cmd='$MAGIC_CMD'
3963 lt_cv_file_magic_test_file=
3964 lt_cv_deplibs_check_method='unknown'
3965 # Need to set the preceding variable on all platforms that support
3966 # interlibrary dependencies.
3967 # 'none' -- dependencies not supported.
3968 # `unknown' -- same as none, but documents that we really don't know.
3969 # 'pass_all' -- all dependencies passed with no checks.
3970 # 'test_compile' -- check by making test program.
3971 # 'file_magic [[regex]]' -- check by looking for files in library path
3972 # which responds to the $file_magic_cmd with a given extended regex.
3973 # If you have `file' or equivalent on your system and you're not sure
3974 # whether `pass_all' will *always* work, you probably want this one.
3978 lt_cv_deplibs_check_method=pass_all
3982 lt_cv_deplibs_check_method=pass_all
3986 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3987 lt_cv_file_magic_cmd='/usr/bin/file -L'
3988 lt_cv_file_magic_test_file=/shlib/libc.so
3992 # func_win32_libid is a shell function defined in ltmain.sh
3993 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3994 lt_cv_file_magic_cmd='func_win32_libid'
3998 # Base MSYS/MinGW do not provide the 'file' command needed by
3999 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4000 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4001 lt_cv_file_magic_cmd='$OBJDUMP -f'
4004 darwin* | rhapsody*)
4005 lt_cv_deplibs_check_method=pass_all
4008 freebsd* | kfreebsd*-gnu)
4009 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4012 # Not sure whether the presence of OpenBSD here was a mistake.
4013 # Let's accept both of them until this is cleared up.
4014 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4015 lt_cv_file_magic_cmd=/usr/bin/file
4016 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4020 lt_cv_deplibs_check_method=pass_all
4025 lt_cv_deplibs_check_method=pass_all
4028 hpux10.20* | hpux11*)
4029 lt_cv_file_magic_cmd=/usr/bin/file
4032 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4033 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4036 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]'
4037 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4040 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4041 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4046 irix5* | irix6* | nonstopux*)
4048 *-32|*"-32 ") libmagic=32-bit;;
4049 *-n32|*"-n32 ") libmagic=N32;;
4050 *-64|*"-64 ") libmagic=64-bit;;
4051 *) libmagic=never-match;;
4053 lt_cv_deplibs_check_method=pass_all
4056 # This must be Linux ELF.
4058 lt_cv_deplibs_check_method=pass_all
4062 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4063 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4065 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4070 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4071 lt_cv_file_magic_cmd=/usr/bin/file
4072 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4076 lt_cv_deplibs_check_method=unknown
4080 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4087 osf3* | osf4* | osf5*)
4088 lt_cv_deplibs_check_method=pass_all
4092 lt_cv_deplibs_check_method=pass_all
4096 lt_cv_deplibs_check_method=pass_all
4099 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4100 case $host_vendor in
4102 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]'
4103 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4106 lt_cv_deplibs_check_method=pass_all
4109 lt_cv_file_magic_cmd='/bin/file'
4110 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4113 lt_cv_file_magic_cmd='/bin/file'
4114 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4115 lt_cv_file_magic_test_file=/lib/libc.so
4118 lt_cv_deplibs_check_method=pass_all
4123 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4124 lt_cv_deplibs_check_method=pass_all
4129 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4130 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4131 file_magic_cmd=$lt_cv_file_magic_cmd
4132 deplibs_check_method=$lt_cv_deplibs_check_method
4133 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4138 # If no C compiler was specified, use CC.
4141 # Allow CC to be a program name with arguments.
4144 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4145 if test "${enable_libtool_lock+set}" = set; then
4146 enableval="$enable_libtool_lock"
4149 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4151 # Some flags need to be propagated to the compiler or linker for good
4155 # Find out which ABI we are using.
4156 echo 'int i;' > conftest.$ac_ext
4157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4158 (eval $ac_compile) 2>&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; then
4162 case `/usr/bin/file conftest.$ac_objext` in
4174 # Find out which ABI we are using.
4175 echo '#line 4175 "configure"' > conftest.$ac_ext
4176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4177 (eval $ac_compile) 2>&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); }; then
4181 if test "$lt_cv_prog_gnu_ld" = yes; then
4182 case `/usr/bin/file conftest.$ac_objext` in
4184 LD="${LD-ld} -melf32bsmip"
4187 LD="${LD-ld} -melf32bmipn32"
4190 LD="${LD-ld} -melf64bmip"
4194 case `/usr/bin/file conftest.$ac_objext` in
4210 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4211 # Find out which ABI we are using.
4212 echo 'int i;' > conftest.$ac_ext
4213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4214 (eval $ac_compile) 2>&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); }; then
4218 case "`/usr/bin/file conftest.o`" in
4222 LD="${LD-ld} -m elf_i386"
4224 ppc64-*linux*|powerpc64-*linux*)
4225 LD="${LD-ld} -m elf32ppclinux"
4228 LD="${LD-ld} -m elf_s390"
4231 LD="${LD-ld} -m elf32_sparc"
4238 LD="${LD-ld} -m elf_x86_64"
4240 ppc*-*linux*|powerpc*-*linux*)
4241 LD="${LD-ld} -m elf64ppc"
4244 LD="${LD-ld} -m elf64_s390"
4247 LD="${LD-ld} -m elf64_sparc"
4257 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4258 SAVE_CFLAGS="$CFLAGS"
4259 CFLAGS="$CFLAGS -belf"
4260 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4261 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4262 if test "${lt_cv_cc_needs_belf+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 ac_cpp='$CPP $CPPFLAGS'
4267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4271 cat >conftest.$ac_ext <<_ACEOF
4274 cat confdefs.h >>conftest.$ac_ext
4275 cat >>conftest.$ac_ext <<_ACEOF
4276 /* end confdefs.h. */
4286 rm -f conftest.$ac_objext conftest$ac_exeext
4287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4288 (eval $ac_link) 2>conftest.er1
4290 grep -v '^ *+' conftest.er1 >conftest.err
4292 cat conftest.err >&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); } &&
4295 { ac_try='test -z "$ac_c_werror_flag"
4296 || test ! -s conftest.err'
4297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }; } &&
4302 { ac_try='test -s conftest$ac_exeext'
4303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); }; }; then
4308 lt_cv_cc_needs_belf=yes
4310 echo "$as_me: failed program was:" >&5
4311 sed 's/^/| /' conftest.$ac_ext >&5
4313 lt_cv_cc_needs_belf=no
4315 rm -f conftest.err conftest.$ac_objext \
4316 conftest$ac_exeext conftest.$ac_ext
4318 ac_cpp='$CPP $CPPFLAGS'
4319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4324 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4325 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4326 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4327 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4328 CFLAGS="$SAVE_CFLAGS"
4334 need_locks="$enable_libtool_lock"
4338 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4339 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4340 if test "${ac_cv_header_stdc+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 cat >conftest.$ac_ext <<_ACEOF
4346 cat confdefs.h >>conftest.$ac_ext
4347 cat >>conftest.$ac_ext <<_ACEOF
4348 /* end confdefs.h. */
4362 rm -f conftest.$ac_objext
4363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4364 (eval $ac_compile) 2>conftest.er1
4366 grep -v '^ *+' conftest.er1 >conftest.err
4368 cat conftest.err >&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); } &&
4371 { ac_try='test -z "$ac_c_werror_flag"
4372 || test ! -s conftest.err'
4373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; } &&
4378 { ac_try='test -s conftest.$ac_objext'
4379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); }; }; then
4384 ac_cv_header_stdc=yes
4386 echo "$as_me: failed program was:" >&5
4387 sed 's/^/| /' conftest.$ac_ext >&5
4389 ac_cv_header_stdc=no
4391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4393 if test $ac_cv_header_stdc = yes; then
4394 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4395 cat >conftest.$ac_ext <<_ACEOF
4398 cat confdefs.h >>conftest.$ac_ext
4399 cat >>conftest.$ac_ext <<_ACEOF
4400 /* end confdefs.h. */
4404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4405 $EGREP "memchr" >/dev/null 2>&1; then
4408 ac_cv_header_stdc=no
4414 if test $ac_cv_header_stdc = yes; then
4415 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4416 cat >conftest.$ac_ext <<_ACEOF
4419 cat confdefs.h >>conftest.$ac_ext
4420 cat >>conftest.$ac_ext <<_ACEOF
4421 /* end confdefs.h. */
4425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4426 $EGREP "free" >/dev/null 2>&1; then
4429 ac_cv_header_stdc=no
4435 if test $ac_cv_header_stdc = yes; then
4436 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4437 if test "$cross_compiling" = yes; then
4440 cat >conftest.$ac_ext <<_ACEOF
4443 cat confdefs.h >>conftest.$ac_ext
4444 cat >>conftest.$ac_ext <<_ACEOF
4445 /* end confdefs.h. */
4447 #if ((' ' & 0x0FF) == 0x020)
4448 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4449 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4451 # define ISLOWER(c) \
4452 (('a' <= (c) && (c) <= 'i') \
4453 || ('j' <= (c) && (c) <= 'r') \
4454 || ('s' <= (c) && (c) <= 'z'))
4455 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4458 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4463 for (i = 0; i < 256; i++)
4464 if (XOR (islower (i), ISLOWER (i))
4465 || toupper (i) != TOUPPER (i))
4470 rm -f conftest$ac_exeext
4471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4472 (eval $ac_link) 2>&5
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; }; then
4483 echo "$as_me: program exited with status $ac_status" >&5
4484 echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.$ac_ext >&5
4488 ac_cv_header_stdc=no
4490 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4494 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4495 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4496 if test $ac_cv_header_stdc = yes; then
4498 cat >>confdefs.h <<\_ACEOF
4499 #define STDC_HEADERS 1
4504 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4514 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4515 inttypes.h stdint.h unistd.h
4517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4518 echo "$as_me:$LINENO: checking for $ac_header" >&5
4519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4523 cat >conftest.$ac_ext <<_ACEOF
4526 cat confdefs.h >>conftest.$ac_ext
4527 cat >>conftest.$ac_ext <<_ACEOF
4528 /* end confdefs.h. */
4529 $ac_includes_default
4531 #include <$ac_header>
4533 rm -f conftest.$ac_objext
4534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4535 (eval $ac_compile) 2>conftest.er1
4537 grep -v '^ *+' conftest.er1 >conftest.err
4539 cat conftest.err >&5
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); } &&
4542 { ac_try='test -z "$ac_c_werror_flag"
4543 || test ! -s conftest.err'
4544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }; } &&
4549 { ac_try='test -s conftest.$ac_objext'
4550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; }; then
4555 eval "$as_ac_Header=yes"
4557 echo "$as_me: failed program was:" >&5
4558 sed 's/^/| /' conftest.$ac_ext >&5
4560 eval "$as_ac_Header=no"
4562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4567 cat >>confdefs.h <<_ACEOF
4568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4577 for ac_header in dlfcn.h
4579 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4581 echo "$as_me:$LINENO: checking for $ac_header" >&5
4582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4584 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4589 # Is the header compilable?
4590 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4591 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4592 cat >conftest.$ac_ext <<_ACEOF
4595 cat confdefs.h >>conftest.$ac_ext
4596 cat >>conftest.$ac_ext <<_ACEOF
4597 /* end confdefs.h. */
4598 $ac_includes_default
4599 #include <$ac_header>
4601 rm -f conftest.$ac_objext
4602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4603 (eval $ac_compile) 2>conftest.er1
4605 grep -v '^ *+' conftest.er1 >conftest.err
4607 cat conftest.err >&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); } &&
4610 { ac_try='test -z "$ac_c_werror_flag"
4611 || test ! -s conftest.err'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; } &&
4617 { ac_try='test -s conftest.$ac_objext'
4618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); }; }; then
4623 ac_header_compiler=yes
4625 echo "$as_me: failed program was:" >&5
4626 sed 's/^/| /' conftest.$ac_ext >&5
4628 ac_header_compiler=no
4630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4631 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4632 echo "${ECHO_T}$ac_header_compiler" >&6
4634 # Is the header present?
4635 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4636 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4637 cat >conftest.$ac_ext <<_ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h. */
4643 #include <$ac_header>
4645 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4646 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4648 grep -v '^ *+' conftest.er1 >conftest.err
4650 cat conftest.err >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } >/dev/null; then
4653 if test -s conftest.err; then
4654 ac_cpp_err=$ac_c_preproc_warn_flag
4655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4662 if test -z "$ac_cpp_err"; then
4663 ac_header_preproc=yes
4665 echo "$as_me: failed program was:" >&5
4666 sed 's/^/| /' conftest.$ac_ext >&5
4668 ac_header_preproc=no
4670 rm -f conftest.err conftest.$ac_ext
4671 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4672 echo "${ECHO_T}$ac_header_preproc" >&6
4674 # So? What about this header?
4675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4677 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4678 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4680 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4681 ac_header_preproc=yes
4684 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4685 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4686 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4687 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4688 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4689 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4690 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4691 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4693 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4694 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4695 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4698 ## ----------------------------------- ##
4699 ## Report this to llvmbugs@cs.uiuc.edu ##
4700 ## ----------------------------------- ##
4703 sed "s/^/$as_me: WARNING: /" >&2
4706 echo "$as_me:$LINENO: checking for $ac_header" >&5
4707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4711 eval "$as_ac_Header=\$ac_header_preproc"
4713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4718 cat >>confdefs.h <<_ACEOF
4719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4728 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4729 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4730 (test "X$CXX" != "Xg++"))) ; then
4732 ac_cpp='$CXXCPP $CPPFLAGS'
4733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4736 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4737 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4738 if test -z "$CXXCPP"; then
4739 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 # Double quotes because CXXCPP needs to be expanded
4743 for CXXCPP in "$CXX -E" "/lib/cpp"
4746 for ac_cxx_preproc_warn_flag in '' yes
4748 # Use a header file that comes with gcc, so configuring glibc
4749 # with a fresh cross-compiler works.
4750 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4751 # <limits.h> exists even on freestanding compilers.
4752 # On the NeXT, cc -E runs the code through the compiler's parser,
4753 # not just through cpp. "Syntax error" is here to catch this case.
4754 cat >conftest.$ac_ext <<_ACEOF
4757 cat confdefs.h >>conftest.$ac_ext
4758 cat >>conftest.$ac_ext <<_ACEOF
4759 /* end confdefs.h. */
4761 # include <limits.h>
4763 # include <assert.h>
4767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4770 grep -v '^ *+' conftest.er1 >conftest.err
4772 cat conftest.err >&5
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); } >/dev/null; then
4775 if test -s conftest.err; then
4776 ac_cpp_err=$ac_cxx_preproc_warn_flag
4777 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4784 if test -z "$ac_cpp_err"; then
4787 echo "$as_me: failed program was:" >&5
4788 sed 's/^/| /' conftest.$ac_ext >&5
4790 # Broken: fails on valid input.
4793 rm -f conftest.err conftest.$ac_ext
4795 # OK, works on sane cases. Now check whether non-existent headers
4796 # can be detected and how.
4797 cat >conftest.$ac_ext <<_ACEOF
4800 cat confdefs.h >>conftest.$ac_ext
4801 cat >>conftest.$ac_ext <<_ACEOF
4802 /* end confdefs.h. */
4803 #include <ac_nonexistent.h>
4805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4808 grep -v '^ *+' conftest.er1 >conftest.err
4810 cat conftest.err >&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); } >/dev/null; then
4813 if test -s conftest.err; then
4814 ac_cpp_err=$ac_cxx_preproc_warn_flag
4815 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4822 if test -z "$ac_cpp_err"; then
4823 # Broken: success on invalid input.
4826 echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.$ac_ext >&5
4829 # Passes both tests.
4833 rm -f conftest.err conftest.$ac_ext
4836 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4837 rm -f conftest.err conftest.$ac_ext
4838 if $ac_preproc_ok; then
4843 ac_cv_prog_CXXCPP=$CXXCPP
4846 CXXCPP=$ac_cv_prog_CXXCPP
4848 ac_cv_prog_CXXCPP=$CXXCPP
4850 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4851 echo "${ECHO_T}$CXXCPP" >&6
4853 for ac_cxx_preproc_warn_flag in '' yes
4855 # Use a header file that comes with gcc, so configuring glibc
4856 # with a fresh cross-compiler works.
4857 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4858 # <limits.h> exists even on freestanding compilers.
4859 # On the NeXT, cc -E runs the code through the compiler's parser,
4860 # not just through cpp. "Syntax error" is here to catch this case.
4861 cat >conftest.$ac_ext <<_ACEOF
4864 cat confdefs.h >>conftest.$ac_ext
4865 cat >>conftest.$ac_ext <<_ACEOF
4866 /* end confdefs.h. */
4868 # include <limits.h>
4870 # include <assert.h>
4874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4877 grep -v '^ *+' conftest.er1 >conftest.err
4879 cat conftest.err >&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); } >/dev/null; then
4882 if test -s conftest.err; then
4883 ac_cpp_err=$ac_cxx_preproc_warn_flag
4884 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4891 if test -z "$ac_cpp_err"; then
4894 echo "$as_me: failed program was:" >&5
4895 sed 's/^/| /' conftest.$ac_ext >&5
4897 # Broken: fails on valid input.
4900 rm -f conftest.err conftest.$ac_ext
4902 # OK, works on sane cases. Now check whether non-existent headers
4903 # can be detected and how.
4904 cat >conftest.$ac_ext <<_ACEOF
4907 cat confdefs.h >>conftest.$ac_ext
4908 cat >>conftest.$ac_ext <<_ACEOF
4909 /* end confdefs.h. */
4910 #include <ac_nonexistent.h>
4912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4913 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4915 grep -v '^ *+' conftest.er1 >conftest.err
4917 cat conftest.err >&5
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); } >/dev/null; then
4920 if test -s conftest.err; then
4921 ac_cpp_err=$ac_cxx_preproc_warn_flag
4922 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4929 if test -z "$ac_cpp_err"; then
4930 # Broken: success on invalid input.
4933 echo "$as_me: failed program was:" >&5
4934 sed 's/^/| /' conftest.$ac_ext >&5
4936 # Passes both tests.
4940 rm -f conftest.err conftest.$ac_ext
4943 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4944 rm -f conftest.err conftest.$ac_ext
4945 if $ac_preproc_ok; then
4948 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4949 See \`config.log' for more details." >&5
4950 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4951 See \`config.log' for more details." >&2;}
4952 { (exit 1); exit 1; }; }
4956 ac_cpp='$CXXCPP $CPPFLAGS'
4957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4965 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4966 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4968 if test -n "$ac_tool_prefix"; then
4969 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4971 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4972 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4973 echo "$as_me:$LINENO: checking for $ac_word" >&5
4974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4975 if test "${ac_cv_prog_F77+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4978 if test -n "$F77"; then
4979 ac_cv_prog_F77="$F77" # Let the user override the test.
4981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 test -z "$as_dir" && as_dir=.
4986 for ac_exec_ext in '' $ac_executable_extensions; do
4987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4988 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4998 if test -n "$F77"; then
4999 echo "$as_me:$LINENO: result: $F77" >&5
5000 echo "${ECHO_T}$F77" >&6
5002 echo "$as_me:$LINENO: result: no" >&5
5003 echo "${ECHO_T}no" >&6
5006 test -n "$F77" && break
5009 if test -z "$F77"; then
5011 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5013 # Extract the first word of "$ac_prog", so it can be a program name with args.
5014 set dummy $ac_prog; ac_word=$2
5015 echo "$as_me:$LINENO: checking for $ac_word" >&5
5016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5017 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5020 if test -n "$ac_ct_F77"; then
5021 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 test -z "$as_dir" && as_dir=.
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5030 ac_cv_prog_ac_ct_F77="$ac_prog"
5031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5039 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5040 if test -n "$ac_ct_F77"; then
5041 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5042 echo "${ECHO_T}$ac_ct_F77" >&6
5044 echo "$as_me:$LINENO: result: no" >&5
5045 echo "${ECHO_T}no" >&6
5048 test -n "$ac_ct_F77" && break
5055 # Provide some information about the compiler.
5056 echo "$as_me:5056:" \
5057 "checking for Fortran 77 compiler version" >&5
5058 ac_compiler=`set X $ac_compile; echo $2`
5059 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5060 (eval $ac_compiler --version </dev/null >&5) 2>&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); }
5064 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5065 (eval $ac_compiler -v </dev/null >&5) 2>&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); }
5069 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5070 (eval $ac_compiler -V </dev/null >&5) 2>&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); }
5076 # If we don't use `.F' as extension, the preprocessor is not run on the
5077 # input file. (Note that this only needs to work for GNU compilers.)
5080 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5081 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5082 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5085 cat >conftest.$ac_ext <<_ACEOF
5093 rm -f conftest.$ac_objext
5094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5095 (eval $ac_compile) 2>conftest.er1
5097 grep -v '^ *+' conftest.er1 >conftest.err
5099 cat conftest.err >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } &&
5102 { ac_try='test -z "$ac_f77_werror_flag"
5103 || test ! -s conftest.err'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; } &&
5109 { ac_try='test -s conftest.$ac_objext'
5110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }; }; then
5117 echo "$as_me: failed program was:" >&5
5118 sed 's/^/| /' conftest.$ac_ext >&5
5122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5123 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5126 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5127 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5129 ac_test_FFLAGS=${FFLAGS+set}
5130 ac_save_FFLAGS=$FFLAGS
5132 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5133 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5134 if test "${ac_cv_prog_f77_g+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 cat >conftest.$ac_ext <<_ACEOF
5143 rm -f conftest.$ac_objext
5144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5145 (eval $ac_compile) 2>conftest.er1
5147 grep -v '^ *+' conftest.er1 >conftest.err
5149 cat conftest.err >&5
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); } &&
5152 { ac_try='test -z "$ac_f77_werror_flag"
5153 || test ! -s conftest.err'
5154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); }; } &&
5159 { ac_try='test -s conftest.$ac_objext'
5160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); }; }; then
5165 ac_cv_prog_f77_g=yes
5167 echo "$as_me: failed program was:" >&5
5168 sed 's/^/| /' conftest.$ac_ext >&5
5172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5175 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5176 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5177 if test "$ac_test_FFLAGS" = set; then
5178 FFLAGS=$ac_save_FFLAGS
5179 elif test $ac_cv_prog_f77_g = yes; then
5180 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5186 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5193 G77=`test $ac_compiler_gnu = yes && echo yes`
5195 ac_cpp='$CPP $CPPFLAGS'
5196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5202 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5204 # find the maximum length of command line arguments
5205 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5206 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5207 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5215 # On DJGPP, this test can blow up pretty badly due to problems in libc
5216 # (any single argument exceeding 2000 bytes causes a buffer overrun
5217 # during glob expansion). Even if it were fixed, the result of this
5218 # check would be larger than it should be.
5219 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5223 # Under GNU Hurd, this test is not required because there is
5224 # no limit to the length of command line arguments.
5225 # Libtool will interpret -1 as no limit whatsoever
5226 lt_cv_sys_max_cmd_len=-1;
5230 # On Win9x/ME, this test blows up -- it succeeds, but takes
5231 # about 5 minutes as the teststring grows exponentially.
5232 # Worse, since 9x/ME are not pre-emptively multitasking,
5233 # you end up with a "frozen" computer, even though with patience
5234 # the test eventually succeeds (with a max line length of 256k).
5235 # Instead, let's just punt: use the minimum linelength reported by
5236 # all of the supported platforms: 8192 (on NT/2K/XP).
5237 lt_cv_sys_max_cmd_len=8192;
5241 # On AmigaOS with pdksh, this test takes hours, literally.
5242 # So we just punt and use a minimum line length of 8192.
5243 lt_cv_sys_max_cmd_len=8192;
5246 netbsd* | freebsd* | openbsd* | darwin* )
5247 # This has been around since 386BSD, at least. Likely further.
5248 if test -x /sbin/sysctl; then
5249 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5250 elif test -x /usr/sbin/sysctl; then
5251 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5253 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5255 # And add a safety zone
5256 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5260 # If test is not a shell built-in, we'll probably end up computing a
5261 # maximum length that is only half of the actual maximum length, but
5263 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5264 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5265 = "XX$teststring") >/dev/null 2>&1 &&
5266 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5267 lt_cv_sys_max_cmd_len=$new_result &&
5268 test $i != 17 # 1/2 MB should be enough
5271 teststring=$teststring$teststring
5274 # Add a significant safety factor because C++ compilers can tack on massive
5275 # amounts of additional arguments before passing them to the linker.
5276 # It appears as though 1/2 is a usable value.
5277 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5283 if test -n $lt_cv_sys_max_cmd_len ; then
5284 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5285 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5287 echo "$as_me:$LINENO: result: none" >&5
5288 echo "${ECHO_T}none" >&6
5294 # Check for command to grab the raw symbol name followed by C symbol from nm.
5295 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5296 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5297 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5298 echo $ECHO_N "(cached) $ECHO_C" >&6
5301 # These are sane defaults that work on at least a few old systems.
5302 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5304 # Character class describing NM global symbol codes.
5305 symcode='[BCDEGRST]'
5307 # Regexp to match symbols that can be accessed directly from C.
5308 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5310 # Transform the above into a raw symbol and a C symbol.
5311 symxfrm='\1 \2\3 \3'
5313 # Transform an extracted symbol line into a proper C declaration
5314 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5316 # Transform an extracted symbol line into symbol name and symbol address
5317 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'"
5319 # Define system-specific variables.
5324 cygwin* | mingw* | pw32*)
5325 symcode='[ABCDGISTW]'
5327 hpux*) # Its linker distinguishes data from code symbols
5328 if test "$host_cpu" = ia64; then
5329 symcode='[ABCDEGRST]'
5331 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5332 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'"
5335 if test "$host_cpu" = ia64; then
5336 symcode='[ABCDGIRSTW]'
5337 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5338 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'"
5342 symcode='[BCDEGRST]'
5345 symcode='[BCDEGQRST]'
5355 # Handle CRLF in mingw tool chain
5359 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5363 # If we're using GNU nm, then use its standard symbol codes.
5364 case `$NM -V 2>&1` in
5365 *GNU* | *'with BFD'*)
5366 symcode='[ABCDGIRSTW]' ;;
5369 # Try without a prefix undercore, then with it.
5370 for ac_symprfx in "" "_"; do
5372 # Write the raw and C identifiers.
5373 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5375 # Check to see that the pipe works correctly.
5379 cat > conftest.$ac_ext <<EOF
5384 void nm_test_func(){}
5388 int main(){nm_test_var='a';nm_test_func();return(0);}
5391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5392 (eval $ac_compile) 2>&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); }; then
5396 # Now try to grab the symbols.
5398 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5399 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); } && test -s "$nlist"; then
5403 # Try sorting and uniquifying the output.
5404 if sort "$nlist" | uniq > "$nlist"T; then
5405 mv -f "$nlist"T "$nlist"
5410 # Make sure that we snagged all the symbols we need.
5411 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5412 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5413 cat <<EOF > conftest.$ac_ext
5419 # Now generate the symbol file.
5420 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5422 cat <<EOF >> conftest.$ac_ext
5423 #if defined (__STDC__) && __STDC__
5424 # define lt_ptr_t void *
5426 # define lt_ptr_t char *
5430 /* The mapping between symbol names and symbols. */
5435 lt_preloaded_symbols[] =
5438 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5439 cat <<\EOF >> conftest.$ac_ext
5447 # Now try linking the two files.
5448 mv conftest.$ac_objext conftstm.$ac_objext
5449 lt_save_LIBS="$LIBS"
5450 lt_save_CFLAGS="$CFLAGS"
5451 LIBS="conftstm.$ac_objext"
5452 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5454 (eval $ac_link) 2>&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5460 LIBS="$lt_save_LIBS"
5461 CFLAGS="$lt_save_CFLAGS"
5463 echo "cannot find nm_test_func in $nlist" >&5
5466 echo "cannot find nm_test_var in $nlist" >&5
5469 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5472 echo "$progname: failed program was:" >&5
5473 cat conftest.$ac_ext >&5
5475 rm -f conftest* conftst*
5477 # Do not use the global_symbol_pipe unless it works.
5478 if test "$pipe_works" = yes; then
5481 lt_cv_sys_global_symbol_pipe=
5487 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5488 lt_cv_sys_global_symbol_to_cdecl=
5490 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5491 echo "$as_me:$LINENO: result: failed" >&5
5492 echo "${ECHO_T}failed" >&6
5494 echo "$as_me:$LINENO: result: ok" >&5
5495 echo "${ECHO_T}ok" >&6
5498 echo "$as_me:$LINENO: checking for objdir" >&5
5499 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5500 if test "${lt_cv_objdir+set}" = set; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5503 rm -f .libs 2>/dev/null
5504 mkdir .libs 2>/dev/null
5505 if test -d .libs; then
5508 # MS-DOS does not allow filenames that begin with a dot.
5511 rmdir .libs 2>/dev/null
5513 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5514 echo "${ECHO_T}$lt_cv_objdir" >&6
5515 objdir=$lt_cv_objdir
5523 # AIX sometimes has problems with the GCC collect2 program. For some
5524 # reason, if we set the COLLECT_NAMES environment variable, the problems
5525 # vanish in a puff of smoke.
5526 if test "X${COLLECT_NAMES+set}" != Xset; then
5528 export COLLECT_NAMES
5533 # Sed substitution that helps us do robust quoting. It backslashifies
5534 # metacharacters that are still active within double-quoted strings.
5535 Xsed='sed -e s/^X//'
5536 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5538 # Same as above, but do not quote variable references.
5539 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5541 # Sed substitution to delay expansion of an escaped shell variable in a
5542 # double_quote_subst'ed string.
5543 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5545 # Sed substitution to avoid accidental globbing in evaled expressions
5546 no_glob_subst='s/\*/\\\*/g'
5553 can_build_shared=yes
5555 # All known linkers require a `.a' archive for static linking (except M$VC,
5556 # which needs '.lib').
5558 ltmain="$ac_aux_dir/ltmain.sh"
5559 ofile="$default_ofile"
5560 with_gnu_ld="$lt_cv_prog_gnu_ld"
5562 if test -n "$ac_tool_prefix"; then
5563 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5564 set dummy ${ac_tool_prefix}ar; ac_word=$2
5565 echo "$as_me:$LINENO: checking for $ac_word" >&5
5566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5567 if test "${ac_cv_prog_AR+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5570 if test -n "$AR"; then
5571 ac_cv_prog_AR="$AR" # Let the user override the test.
5573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577 test -z "$as_dir" && as_dir=.
5578 for ac_exec_ext in '' $ac_executable_extensions; do
5579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5580 ac_cv_prog_AR="${ac_tool_prefix}ar"
5581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5590 if test -n "$AR"; then
5591 echo "$as_me:$LINENO: result: $AR" >&5
5592 echo "${ECHO_T}$AR" >&6
5594 echo "$as_me:$LINENO: result: no" >&5
5595 echo "${ECHO_T}no" >&6
5599 if test -z "$ac_cv_prog_AR"; then
5601 # Extract the first word of "ar", so it can be a program name with args.
5602 set dummy ar; ac_word=$2
5603 echo "$as_me:$LINENO: checking for $ac_word" >&5
5604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5605 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5606 echo $ECHO_N "(cached) $ECHO_C" >&6
5608 if test -n "$ac_ct_AR"; then
5609 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615 test -z "$as_dir" && as_dir=.
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5618 ac_cv_prog_ac_ct_AR="ar"
5619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5625 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5628 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5629 if test -n "$ac_ct_AR"; then
5630 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5631 echo "${ECHO_T}$ac_ct_AR" >&6
5633 echo "$as_me:$LINENO: result: no" >&5
5634 echo "${ECHO_T}no" >&6
5642 if test -n "$ac_tool_prefix"; then
5643 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5644 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5645 echo "$as_me:$LINENO: checking for $ac_word" >&5
5646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5647 if test "${ac_cv_prog_RANLIB+set}" = set; then
5648 echo $ECHO_N "(cached) $ECHO_C" >&6
5650 if test -n "$RANLIB"; then
5651 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5657 test -z "$as_dir" && as_dir=.
5658 for ac_exec_ext in '' $ac_executable_extensions; do
5659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5660 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5669 RANLIB=$ac_cv_prog_RANLIB
5670 if test -n "$RANLIB"; then
5671 echo "$as_me:$LINENO: result: $RANLIB" >&5
5672 echo "${ECHO_T}$RANLIB" >&6
5674 echo "$as_me:$LINENO: result: no" >&5
5675 echo "${ECHO_T}no" >&6
5679 if test -z "$ac_cv_prog_RANLIB"; then
5680 ac_ct_RANLIB=$RANLIB
5681 # Extract the first word of "ranlib", so it can be a program name with args.
5682 set dummy ranlib; ac_word=$2
5683 echo "$as_me:$LINENO: checking for $ac_word" >&5
5684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5685 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5686 echo $ECHO_N "(cached) $ECHO_C" >&6
5688 if test -n "$ac_ct_RANLIB"; then
5689 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695 test -z "$as_dir" && as_dir=.
5696 for ac_exec_ext in '' $ac_executable_extensions; do
5697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5698 ac_cv_prog_ac_ct_RANLIB="ranlib"
5699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5705 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5708 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5709 if test -n "$ac_ct_RANLIB"; then
5710 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5711 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5713 echo "$as_me:$LINENO: result: no" >&5
5714 echo "${ECHO_T}no" >&6
5717 RANLIB=$ac_ct_RANLIB
5719 RANLIB="$ac_cv_prog_RANLIB"
5722 if test -n "$ac_tool_prefix"; then
5723 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5724 set dummy ${ac_tool_prefix}strip; ac_word=$2
5725 echo "$as_me:$LINENO: checking for $ac_word" >&5
5726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5727 if test "${ac_cv_prog_STRIP+set}" = set; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 if test -n "$STRIP"; then
5731 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 test -z "$as_dir" && as_dir=.
5738 for ac_exec_ext in '' $ac_executable_extensions; do
5739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5740 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5749 STRIP=$ac_cv_prog_STRIP
5750 if test -n "$STRIP"; then
5751 echo "$as_me:$LINENO: result: $STRIP" >&5
5752 echo "${ECHO_T}$STRIP" >&6
5754 echo "$as_me:$LINENO: result: no" >&5
5755 echo "${ECHO_T}no" >&6
5759 if test -z "$ac_cv_prog_STRIP"; then
5761 # Extract the first word of "strip", so it can be a program name with args.
5762 set dummy strip; ac_word=$2
5763 echo "$as_me:$LINENO: checking for $ac_word" >&5
5764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5765 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5768 if test -n "$ac_ct_STRIP"; then
5769 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775 test -z "$as_dir" && as_dir=.
5776 for ac_exec_ext in '' $ac_executable_extensions; do
5777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5778 ac_cv_prog_ac_ct_STRIP="strip"
5779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5785 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5788 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5789 if test -n "$ac_ct_STRIP"; then
5790 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5791 echo "${ECHO_T}$ac_ct_STRIP" >&6
5793 echo "$as_me:$LINENO: result: no" >&5
5794 echo "${ECHO_T}no" >&6
5799 STRIP="$ac_cv_prog_STRIP"
5804 old_CFLAGS="$CFLAGS"
5806 # Set sane defaults for various variables
5807 test -z "$AR" && AR=ar
5808 test -z "$AR_FLAGS" && AR_FLAGS=cru
5809 test -z "$AS" && AS=as
5810 test -z "$CC" && CC=cc
5811 test -z "$LTCC" && LTCC=$CC
5812 test -z "$DLLTOOL" && DLLTOOL=dlltool
5813 test -z "$LD" && LD=ld
5814 test -z "$LN_S" && LN_S="ln -s"
5815 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5816 test -z "$NM" && NM=nm
5817 test -z "$SED" && SED=sed
5818 test -z "$OBJDUMP" && OBJDUMP=objdump
5819 test -z "$RANLIB" && RANLIB=:
5820 test -z "$STRIP" && STRIP=:
5821 test -z "$ac_objext" && ac_objext=o
5823 # Determine commands to create old-style static archives.
5824 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5825 old_postinstall_cmds='chmod 644 $oldlib'
5826 old_postuninstall_cmds=
5828 if test -n "$RANLIB"; then
5831 old_postinstall_cmds="\$RANLIB -t \$oldlib;$old_postinstall_cmds"
5834 old_postinstall_cmds="\$RANLIB \$oldlib;$old_postinstall_cmds"
5837 old_archive_cmds="$old_archive_cmds;\$RANLIB \$oldlib"
5840 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
5842 # Only perform the check for file, if the check method requires it
5843 case $deplibs_check_method in
5845 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5846 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5847 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5848 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5849 echo $ECHO_N "(cached) $ECHO_C" >&6
5853 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5856 lt_save_MAGIC_CMD="$MAGIC_CMD"
5857 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5858 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5859 for ac_dir in $ac_dummy; do
5861 test -z "$ac_dir" && ac_dir=.
5862 if test -f $ac_dir/${ac_tool_prefix}file; then
5863 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5864 if test -n "$file_magic_test_file"; then
5865 case $deplibs_check_method in
5867 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5868 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5869 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5870 $EGREP "$file_magic_regex" > /dev/null; then
5875 *** Warning: the command libtool uses to detect shared libraries,
5876 *** $file_magic_cmd, produces output that libtool cannot recognize.
5877 *** The result is that libtool may fail to recognize shared libraries
5878 *** as such. This will affect the creation of libtool libraries that
5879 *** depend on shared libraries, but programs linked with such libtool
5880 *** libraries will work regardless of this problem. Nevertheless, you
5881 *** may want to report the problem to your system manager and/or to
5882 *** bug-libtool@gnu.org
5892 MAGIC_CMD="$lt_save_MAGIC_CMD"
5897 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5898 if test -n "$MAGIC_CMD"; then
5899 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5900 echo "${ECHO_T}$MAGIC_CMD" >&6
5902 echo "$as_me:$LINENO: result: no" >&5
5903 echo "${ECHO_T}no" >&6
5906 if test -z "$lt_cv_path_MAGIC_CMD"; then
5907 if test -n "$ac_tool_prefix"; then
5908 echo "$as_me:$LINENO: checking for file" >&5
5909 echo $ECHO_N "checking for file... $ECHO_C" >&6
5910 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5915 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5918 lt_save_MAGIC_CMD="$MAGIC_CMD"
5919 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5920 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5921 for ac_dir in $ac_dummy; do
5923 test -z "$ac_dir" && ac_dir=.
5924 if test -f $ac_dir/file; then
5925 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5926 if test -n "$file_magic_test_file"; then
5927 case $deplibs_check_method in
5929 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5930 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5931 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5932 $EGREP "$file_magic_regex" > /dev/null; then
5937 *** Warning: the command libtool uses to detect shared libraries,
5938 *** $file_magic_cmd, produces output that libtool cannot recognize.
5939 *** The result is that libtool may fail to recognize shared libraries
5940 *** as such. This will affect the creation of libtool libraries that
5941 *** depend on shared libraries, but programs linked with such libtool
5942 *** libraries will work regardless of this problem. Nevertheless, you
5943 *** may want to report the problem to your system manager and/or to
5944 *** bug-libtool@gnu.org
5954 MAGIC_CMD="$lt_save_MAGIC_CMD"
5959 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5960 if test -n "$MAGIC_CMD"; then
5961 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5962 echo "${ECHO_T}$MAGIC_CMD" >&6
5964 echo "$as_me:$LINENO: result: no" >&5
5965 echo "${ECHO_T}no" >&6
5980 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5981 if test "${enable_libtool_lock+set}" = set; then
5982 enableval="$enable_libtool_lock"
5985 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5988 # Check whether --with-pic or --without-pic was given.
5989 if test "${with_pic+set}" = set; then
5995 test -z "$pic_mode" && pic_mode=default
5997 # Use C for the default configuration in the libtool script
6001 ac_cpp='$CPP $CPPFLAGS'
6002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6007 # Source file extension for C test sources.
6010 # Object file extension for compiled C test sources.
6014 # Code to be used in simple compile tests
6015 lt_simple_compile_test_code="int some_variable = 0;\n"
6017 # Code to be used in simple link tests
6018 lt_simple_link_test_code='int main(){return(0);}\n'
6021 # If no C compiler was specified, use CC.
6024 # Allow CC to be a program name with arguments.
6029 # Check for any special shared library compilation flags.
6032 if test "$GCC" = no; then
6035 lt_prog_cc_shlib='-belf'
6039 if test -n "$lt_prog_cc_shlib"; then
6040 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6041 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6042 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6044 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6045 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6046 lt_cv_prog_cc_can_build_shared=no
6052 # Check to make sure the static flag actually works.
6054 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6055 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6056 if test "${lt_prog_compiler_static_works+set}" = set; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
6059 lt_prog_compiler_static_works=no
6060 save_LDFLAGS="$LDFLAGS"
6061 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6062 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6063 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6064 # The compiler can only warn and ignore the option if not recognized
6065 # So say no if there are warnings
6066 if test -s conftest.err; then
6067 # Append any errors to the config.log.
6068 cat conftest.err 1>&5
6070 lt_prog_compiler_static_works=yes
6074 LDFLAGS="$save_LDFLAGS"
6077 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6078 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6080 if test x"$lt_prog_compiler_static_works" = xyes; then
6083 lt_prog_compiler_static=
6089 lt_prog_compiler_no_builtin_flag=
6091 if test "$GCC" = yes; then
6092 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6095 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6096 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6097 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
6100 lt_cv_prog_compiler_rtti_exceptions=no
6101 ac_outfile=conftest.$ac_objext
6102 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6103 lt_compiler_flag="-fno-rtti -fno-exceptions"
6104 # Insert the option either (1) after the last *FLAGS variable, or
6105 # (2) before a word containing "conftest.", or (3) at the end.
6106 # Note that $ac_compile itself does not contain backslashes and begins
6107 # with a dollar sign (not a hyphen), so the echo should work correctly.
6108 # The option is referenced via a variable to avoid confusing sed.
6109 lt_compile=`echo "$ac_compile" | $SED \
6110 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6111 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6112 -e 's:$: $lt_compiler_flag:'`
6113 (eval echo "\"\$as_me:6113: $lt_compile\"" >&5)
6114 (eval "$lt_compile" 2>conftest.err)
6116 cat conftest.err >&5
6117 echo "$as_me:6117: \$? = $ac_status" >&5
6118 if (exit $ac_status) && test -s "$ac_outfile"; then
6119 # The compiler can only warn and ignore the option if not recognized
6120 # So say no if there are warnings
6121 if test ! -s conftest.err; then
6122 lt_cv_prog_compiler_rtti_exceptions=yes
6128 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6129 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6131 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6132 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6139 lt_prog_compiler_wl=
6140 lt_prog_compiler_pic=
6141 lt_prog_compiler_static=
6143 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6144 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6146 if test "$GCC" = yes; then
6147 lt_prog_compiler_wl='-Wl,'
6148 lt_prog_compiler_static='-static'
6152 # All AIX code is PIC.
6153 if test "$host_cpu" = ia64; then
6154 # AIX 5 now supports IA64 processor
6155 lt_prog_compiler_static='-Bstatic'
6160 # FIXME: we need at least 68020 code to build shared libraries, but
6161 # adding the `-m68020' flag to GCC prevents building anything better,
6163 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6166 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6167 # PIC is the default for these OSes.
6170 mingw* | pw32* | os2*)
6171 # This hack is so that the source file can tell whether it is being
6172 # built for inclusion in a dll (and should export symbols for example).
6173 lt_prog_compiler_pic='-DDLL_EXPORT'
6176 darwin* | rhapsody*)
6177 # PIC is the default on this platform
6178 # Common symbols not allowed in MH_DYLIB files
6179 lt_prog_compiler_pic='-fno-common'
6183 # Just because we use GCC doesn't mean we suddenly get shared libraries
6184 # on systems that don't support them.
6185 lt_prog_compiler_can_build_shared=no
6190 if test -d /usr/nec; then
6191 lt_prog_compiler_pic=-Kconform_pic
6196 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6203 lt_prog_compiler_pic='-fPIC'
6209 lt_prog_compiler_pic='-fPIC'
6213 # PORTME Check for flag to pass linker flags through the system compiler.
6216 lt_prog_compiler_wl='-Wl,'
6217 if test "$host_cpu" = ia64; then
6218 # AIX 5 now supports IA64 processor
6219 lt_prog_compiler_static='-Bstatic'
6221 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6225 # PIC is the default on this platform
6226 # Common symbols not allowed in MH_DYLIB files
6227 case "$cc_basename" in
6229 lt_prog_compiler_pic='-qnocommon'
6230 lt_prog_compiler_wl='-Wl,'
6235 mingw* | pw32* | os2*)
6236 # This hack is so that the source file can tell whether it is being
6237 # built for inclusion in a dll (and should export symbols for example).
6238 lt_prog_compiler_pic='-DDLL_EXPORT'
6241 hpux9* | hpux10* | hpux11*)
6242 lt_prog_compiler_wl='-Wl,'
6243 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6250 lt_prog_compiler_pic='+Z'
6253 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6254 lt_prog_compiler_static='${wl}-a ${wl}archive'
6257 irix5* | irix6* | nonstopux*)
6258 lt_prog_compiler_wl='-Wl,'
6259 # PIC (with -KPIC) is the default.
6260 lt_prog_compiler_static='-non_shared'
6264 lt_prog_compiler_pic='-KPIC'
6265 lt_prog_compiler_static='-Bstatic'
6271 lt_prog_compiler_wl='-Wl,'
6272 lt_prog_compiler_pic='-KPIC'
6273 lt_prog_compiler_static='-static'
6276 lt_prog_compiler_wl='-Wl,'
6277 # All Alpha code is PIC.
6278 lt_prog_compiler_static='-non_shared'
6283 osf3* | osf4* | osf5*)
6284 lt_prog_compiler_wl='-Wl,'
6285 # All OSF/1 code is PIC.
6286 lt_prog_compiler_static='-non_shared'
6290 lt_prog_compiler_pic='-Kpic'
6291 lt_prog_compiler_static='-dn'
6295 lt_prog_compiler_wl='-Wl,'
6296 lt_prog_compiler_pic='-KPIC'
6297 lt_prog_compiler_static='-Bstatic'
6301 lt_prog_compiler_wl='-Qoption ld '
6302 lt_prog_compiler_pic='-PIC'
6303 lt_prog_compiler_static='-Bstatic'
6306 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6307 lt_prog_compiler_wl='-Wl,'
6308 lt_prog_compiler_pic='-KPIC'
6309 lt_prog_compiler_static='-Bstatic'
6313 if test -d /usr/nec ;then
6314 lt_prog_compiler_pic='-Kconform_pic'
6315 lt_prog_compiler_static='-Bstatic'
6320 lt_prog_compiler_pic='-pic'
6321 lt_prog_compiler_static='-Bstatic'
6325 lt_prog_compiler_can_build_shared=no
6330 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6331 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6334 # Check to make sure the PIC flag actually works.
6336 if test -n "$lt_prog_compiler_pic"; then
6338 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6339 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6340 if test "${lt_prog_compiler_pic_works+set}" = set; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
6343 lt_prog_compiler_pic_works=no
6344 ac_outfile=conftest.$ac_objext
6345 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6346 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6347 # Insert the option either (1) after the last *FLAGS variable, or
6348 # (2) before a word containing "conftest.", or (3) at the end.
6349 # Note that $ac_compile itself does not contain backslashes and begins
6350 # with a dollar sign (not a hyphen), so the echo should work correctly.
6351 # The option is referenced via a variable to avoid confusing sed.
6352 lt_compile=`echo "$ac_compile" | $SED \
6353 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6354 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6355 -e 's:$: $lt_compiler_flag:'`
6356 (eval echo "\"\$as_me:6356: $lt_compile\"" >&5)
6357 (eval "$lt_compile" 2>conftest.err)
6359 cat conftest.err >&5
6360 echo "$as_me:6360: \$? = $ac_status" >&5
6361 if (exit $ac_status) && test -s "$ac_outfile"; then
6362 # The compiler can only warn and ignore the option if not recognized
6363 # So say no if there are warnings
6364 if test ! -s conftest.err; then
6365 lt_prog_compiler_pic_works=yes
6371 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6372 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6374 if test x"$lt_prog_compiler_pic_works" = xyes; then
6375 case $lt_prog_compiler_pic in
6377 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6380 lt_prog_compiler_pic=
6381 lt_prog_compiler_can_build_shared=no
6386 # For platforms which do not support PIC, -DPIC is meaningless:
6388 lt_prog_compiler_pic=
6391 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6395 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6396 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6397 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6398 echo $ECHO_N "(cached) $ECHO_C" >&6
6400 lt_cv_prog_compiler_c_o=no
6401 $rm -r conftest 2>/dev/null
6405 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6407 lt_compiler_flag="-o out/conftest2.$ac_objext"
6408 # Insert the option either (1) after the last *FLAGS variable, or
6409 # (2) before a word containing "conftest.", or (3) at the end.
6410 # Note that $ac_compile itself does not contain backslashes and begins
6411 # with a dollar sign (not a hyphen), so the echo should work correctly.
6412 lt_compile=`echo "$ac_compile" | $SED \
6413 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6415 -e 's:$: $lt_compiler_flag:'`
6416 (eval echo "\"\$as_me:6416: $lt_compile\"" >&5)
6417 (eval "$lt_compile" 2>out/conftest.err)
6419 cat out/conftest.err >&5
6420 echo "$as_me:6420: \$? = $ac_status" >&5
6421 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6423 # The compiler can only warn and ignore the option if not recognized
6424 # So say no if there are warnings
6425 if test ! -s out/conftest.err; then
6426 lt_cv_prog_compiler_c_o=yes
6431 # SGI C++ compiler will create directory out/ii_files/ for
6432 # template instantiation
6433 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6434 $rm out/* && rmdir out
6440 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6441 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6444 hard_links="nottested"
6445 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6446 # do not overwrite the value of need_locks provided by the user
6447 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6448 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6451 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6453 ln conftest.a conftest.b 2>&5 || hard_links=no
6454 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6455 echo "$as_me:$LINENO: result: $hard_links" >&5
6456 echo "${ECHO_T}$hard_links" >&6
6457 if test "$hard_links" = no; then
6458 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6459 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6466 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6467 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6470 allow_undefined_flag=
6471 enable_shared_with_static_runtimes=no
6473 archive_expsym_cmds=
6474 old_archive_From_new_cmds=
6475 old_archive_from_expsyms_cmds=
6476 export_dynamic_flag_spec=
6477 whole_archive_flag_spec=
6478 thread_safe_flag_spec=
6479 hardcode_libdir_flag_spec=
6480 hardcode_libdir_flag_spec_ld=
6481 hardcode_libdir_separator=
6484 hardcode_shlibpath_var=unsupported
6485 link_all_deplibs=unknown
6486 hardcode_automatic=no
6489 always_export_symbols=no
6490 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6491 # include_expsyms should be a list of space-separated symbols to be *always*
6492 # included in the symbol list
6494 # exclude_expsyms can be an extended regexp of symbols to exclude
6495 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6496 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6497 # as well as any symbol that contains `d'.
6498 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6499 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6500 # platforms (ab)use it in PIC code, but their linkers get confused if
6501 # the symbol is explicitly referenced. Since portable code cannot
6502 # rely on this symbol name, it's probably fine to never include it in
6503 # preloaded symbol tables.
6504 extract_expsyms_cmds=
6507 cygwin* | mingw* | pw32*)
6508 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6509 # When not using gcc, we currently assume that we are using
6510 # Microsoft Visual C++.
6511 if test "$GCC" != yes; then
6521 if test "$with_gnu_ld" = yes; then
6522 # If archive_cmds runs LD, not CC, wlarc should be empty
6525 # See if GNU ld supports shared libraries.
6527 aix3* | aix4* | aix5*)
6528 # On AIX/PPC, the GNU linker is very broken
6529 if test "$host_cpu" != ia64; then
6533 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6534 *** to be unable to reliably create shared libraries on AIX.
6535 *** Therefore, libtool is disabling shared libraries support. If you
6536 *** really care for shared libraries, you may want to modify your PATH
6537 *** so that a non-GNU linker is found, and then restart.
6544 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)'
6545 hardcode_libdir_flag_spec='-L$libdir'
6546 hardcode_minus_L=yes
6548 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6549 # that the semantics of dynamic libraries on AmigaOS, at least up
6550 # to version 4, is to share data among multiple programs linked
6551 # with the same dynamic library. Since this doesn't match the
6552 # behavior of shared libraries on other platforms, we can't use
6558 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6559 allow_undefined_flag=unsupported
6560 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6561 # support --undefined. This deserves some investigation. FIXME
6562 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6568 cygwin* | mingw* | pw32*)
6569 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6570 # as there is no search path for DLLs.
6571 hardcode_libdir_flag_spec='-L$libdir'
6572 allow_undefined_flag=unsupported
6573 always_export_symbols=no
6574 enable_shared_with_static_runtimes=yes
6575 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6577 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6578 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6579 # If the export-symbols file already is a .def file (1st line
6580 # is EXPORTS), use it as is; otherwise, prepend...
6581 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6582 cp $export_symbols $output_objdir/$soname.def;
6584 echo EXPORTS > $output_objdir/$soname.def;
6585 cat $export_symbols >> $output_objdir/$soname.def;
6586 fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6593 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6594 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6597 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6598 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6603 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6607 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6608 *** create shared libraries on Solaris systems. Therefore, libtool
6609 *** is disabling shared libraries support. We urge you to upgrade GNU
6610 *** binutils to release 2.9.1 or newer. Another option is to modify
6611 *** your PATH or compiler configuration so that the native linker is
6612 *** used, and then restart.
6615 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6616 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6617 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6624 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6627 hardcode_shlibpath_var=no
6631 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6632 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6633 archive_cmds="$tmp_archive_cmds"
6634 supports_anon_versioning=no
6635 case `$LD -v 2>/dev/null` in
6636 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6637 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6638 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6639 *\ 2.11.*) ;; # other 2.11 versions
6640 *) supports_anon_versioning=yes ;;
6642 if test $supports_anon_versioning = yes; then
6643 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;
6644 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6646 archive_expsym_cmds="$tmp_archive_cmds"
6654 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6655 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6656 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6663 if test "$ld_shlibs" = yes; then
6664 runpath_var=LD_RUN_PATH
6665 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6666 export_dynamic_flag_spec='${wl}--export-dynamic'
6667 # ancient GNU ld didn't support --whole-archive et. al.
6668 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6669 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6671 whole_archive_flag_spec=
6675 # PORTME fill in a description of your system's linker (not GNU ld)
6678 allow_undefined_flag=unsupported
6679 always_export_symbols=yes
6680 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'
6681 # Note: this linker hardcodes the directories in LIBPATH if there
6682 # are no directories specified by -L.
6683 hardcode_minus_L=yes
6684 if test "$GCC" = yes && test -z "$link_static_flag"; then
6685 # Neither direct hardcoding nor static linking is supported with a
6687 hardcode_direct=unsupported
6692 if test "$host_cpu" = ia64; then
6693 # On IA64, the linker does run time linking by default, so we don't
6694 # have to do anything special.
6695 aix_use_runtimelinking=no
6696 exp_sym_flag='-Bexport'
6699 # If we're using GNU nm, then we don't want the "-C" option.
6700 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6701 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6702 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'
6704 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'
6706 aix_use_runtimelinking=no
6708 # Test if we are trying to use run time linking or normal
6709 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6710 # need to do runtime linking.
6711 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6712 for ld_flag in $LDFLAGS; do
6713 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6714 aix_use_runtimelinking=yes
6720 exp_sym_flag='-bexport'
6721 no_entry_flag='-bnoentry'
6724 # When large executables or shared objects are built, AIX ld can
6725 # have problems creating the table of contents. If linking a library
6726 # or program results in "error TOC overflow" add -mminimal-toc to
6727 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6728 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6732 hardcode_libdir_separator=':'
6733 link_all_deplibs=yes
6735 if test "$GCC" = yes; then
6736 case $host_os in aix4.012|aix4.012.*)
6737 # We only want to do this on AIX 4.2 and lower, the check
6738 # below for broken collect2 doesn't work under 4.3+
6739 collect2name=`${CC} -print-prog-name=collect2`
6740 if test -f "$collect2name" && \
6741 strings "$collect2name" | grep resolve_lib_name >/dev/null
6743 # We have reworked collect2
6746 # We have old collect2
6747 hardcode_direct=unsupported
6748 # It fails to find uninstalled libraries when the uninstalled
6749 # path is not listed in the libpath. Setting hardcode_minus_L
6750 # to unsupported forces relinking
6751 hardcode_minus_L=yes
6752 hardcode_libdir_flag_spec='-L$libdir'
6753 hardcode_libdir_separator=
6756 shared_flag='-shared'
6759 if test "$host_cpu" = ia64; then
6760 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6761 # chokes on -Wl,-G. The following line is correct:
6764 if test "$aix_use_runtimelinking" = yes; then
6765 shared_flag='${wl}-G'
6767 shared_flag='${wl}-bM:SRE'
6772 # It seems that -bexpall does not export symbols beginning with
6773 # underscore (_), so it is better to generate a list of symbols to export.
6774 always_export_symbols=yes
6775 if test "$aix_use_runtimelinking" = yes; then
6776 # Warning - without using the other runtime loading flags (-brtl),
6777 # -berok will link without error, but may produce a broken library.
6778 allow_undefined_flag='-berok'
6779 # Determine the default libpath from the value encoded in an empty executable.
6780 cat >conftest.$ac_ext <<_ACEOF
6783 cat confdefs.h >>conftest.$ac_ext
6784 cat >>conftest.$ac_ext <<_ACEOF
6785 /* end confdefs.h. */
6795 rm -f conftest.$ac_objext conftest$ac_exeext
6796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6797 (eval $ac_link) 2>conftest.er1
6799 grep -v '^ *+' conftest.er1 >conftest.err
6801 cat conftest.err >&5
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); } &&
6804 { ac_try='test -z "$ac_c_werror_flag"
6805 || test ! -s conftest.err'
6806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); }; } &&
6811 { ac_try='test -s conftest$ac_exeext'
6812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); }; }; then
6818 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6820 # Check for a 64-bit object if we didn't find anything.
6821 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; }
6824 echo "$as_me: failed program was:" >&5
6825 sed 's/^/| /' conftest.$ac_ext >&5
6828 rm -f conftest.err conftest.$ac_objext \
6829 conftest$ac_exeext conftest.$ac_ext
6830 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6832 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6833 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"
6835 if test "$host_cpu" = ia64; then
6836 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6837 allow_undefined_flag="-z nodefs"
6838 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"
6840 # Determine the default libpath from the value encoded in an empty executable.
6841 cat >conftest.$ac_ext <<_ACEOF
6844 cat confdefs.h >>conftest.$ac_ext
6845 cat >>conftest.$ac_ext <<_ACEOF
6846 /* end confdefs.h. */
6856 rm -f conftest.$ac_objext conftest$ac_exeext
6857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6858 (eval $ac_link) 2>conftest.er1
6860 grep -v '^ *+' conftest.er1 >conftest.err
6862 cat conftest.err >&5
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); } &&
6865 { ac_try='test -z "$ac_c_werror_flag"
6866 || test ! -s conftest.err'
6867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); }; } &&
6872 { ac_try='test -s conftest$ac_exeext'
6873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); }; }; then
6879 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6881 # Check for a 64-bit object if we didn't find anything.
6882 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; }
6885 echo "$as_me: failed program was:" >&5
6886 sed 's/^/| /' conftest.$ac_ext >&5
6889 rm -f conftest.err conftest.$ac_objext \
6890 conftest$ac_exeext conftest.$ac_ext
6891 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6893 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6894 # Warning - without using the other run time loading flags,
6895 # -berok will link without error, but may produce a broken library.
6896 no_undefined_flag=' ${wl}-bernotok'
6897 allow_undefined_flag=' ${wl}-berok'
6898 # -bexpall does not export symbols beginning with underscore (_)
6899 always_export_symbols=yes
6900 # Exported symbols can be pulled into shared objects from archives
6901 whole_archive_flag_spec=' '
6902 archive_cmds_need_lc=yes
6903 # This is similar to how AIX traditionally builds it's shared libraries.
6904 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'
6910 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)'
6911 hardcode_libdir_flag_spec='-L$libdir'
6912 hardcode_minus_L=yes
6913 # see comment about different semantics on the GNU ld section
6918 export_dynamic_flag_spec=-rdynamic
6921 cygwin* | mingw* | pw32*)
6922 # When not using gcc, we currently assume that we are using
6923 # Microsoft Visual C++.
6924 # hardcode_libdir_flag_spec is actually meaningless, as there is
6925 # no search path for DLLs.
6926 hardcode_libdir_flag_spec=' '
6927 allow_undefined_flag=unsupported
6928 # Tell ltmain to make .lib files, not .a files.
6930 # Tell ltmain to make .dll files, not .so files.
6932 # FIXME: Setting linknames here is a bad hack.
6933 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames='
6934 # The linker will automatically build a .lib file if we build a DLL.
6935 old_archive_From_new_cmds='true'
6936 # FIXME: Should let the user specify the lib program.
6937 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6938 fix_srcfile_path='`cygpath -w "$srcfile"`'
6939 enable_shared_with_static_runtimes=yes
6942 darwin* | rhapsody*)
6944 rhapsody* | darwin1.[012])
6945 allow_undefined_flag='${wl}-undefined ${wl}suppress'
6948 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6949 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6951 case ${MACOSX_DEPLOYMENT_TARGET} in
6953 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6956 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6962 archive_cmds_need_lc=no
6964 hardcode_automatic=yes
6965 hardcode_shlibpath_var=unsupported
6966 whole_archive_flag_spec=''
6967 link_all_deplibs=yes
6968 if test "$GCC" = yes ; then
6969 output_verbose_link_cmd='echo'
6970 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6971 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6972 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6973 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}'
6974 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}'
6976 case "$cc_basename" in
6978 output_verbose_link_cmd='echo'
6979 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6980 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6981 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6982 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}'
6983 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}'
6993 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6994 hardcode_libdir_flag_spec='-L$libdir'
6995 hardcode_shlibpath_var=no
7002 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7003 # support. Future versions do this automatically, but an explicit c++rt0.o
7004 # does not break anything, and helps significantly (at the cost of a little
7007 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7008 hardcode_libdir_flag_spec='-R$libdir'
7010 hardcode_shlibpath_var=no
7013 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7015 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7017 hardcode_minus_L=yes
7018 hardcode_shlibpath_var=no
7021 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7022 freebsd* | kfreebsd*-gnu)
7023 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7024 hardcode_libdir_flag_spec='-R$libdir'
7026 hardcode_shlibpath_var=no
7030 if test "$GCC" = yes; then
7031 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'
7033 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'
7035 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7036 hardcode_libdir_separator=:
7039 # hardcode_minus_L: Not really in the search PATH,
7040 # but as the default location of the library.
7041 hardcode_minus_L=yes
7042 export_dynamic_flag_spec='${wl}-E'
7046 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7049 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7052 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7058 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7061 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7065 if test "$with_gnu_ld" = no; then
7068 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7069 hardcode_libdir_flag_spec_ld='+b $libdir'
7070 hardcode_libdir_separator=:
7072 hardcode_shlibpath_var=no
7075 hardcode_libdir_flag_spec='-L$libdir'
7077 hardcode_shlibpath_var=no
7079 # hardcode_minus_L: Not really in the search PATH,
7080 # but as the default location of the library.
7081 hardcode_minus_L=yes
7084 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7085 hardcode_libdir_separator=:
7087 export_dynamic_flag_spec='${wl}-E'
7089 # hardcode_minus_L: Not really in the search PATH,
7090 # but as the default location of the library.
7091 hardcode_minus_L=yes
7097 irix5* | irix6* | nonstopux*)
7098 if test "$GCC" = yes; then
7099 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'
7101 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'
7102 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7104 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7105 hardcode_libdir_separator=:
7106 link_all_deplibs=yes
7110 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7111 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7113 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7115 hardcode_libdir_flag_spec='-R$libdir'
7117 hardcode_shlibpath_var=no
7121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7123 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7124 hardcode_libdir_separator=:
7125 hardcode_shlibpath_var=no
7130 hardcode_shlibpath_var=no
7131 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7132 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7133 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7134 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7135 export_dynamic_flag_spec='${wl}-E'
7138 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7139 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7140 hardcode_libdir_flag_spec='-R$libdir'
7143 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7144 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7151 hardcode_libdir_flag_spec='-L$libdir'
7152 hardcode_minus_L=yes
7153 allow_undefined_flag=unsupported
7154 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'
7155 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7159 if test "$GCC" = yes; then
7160 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7161 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'
7163 allow_undefined_flag=' -expect_unresolved \*'
7164 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'
7166 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7167 hardcode_libdir_separator=:
7170 osf4* | osf5*) # as osf3* with the addition of -msym flag
7171 if test "$GCC" = yes; then
7172 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7173 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'
7174 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7176 allow_undefined_flag=' -expect_unresolved \*'
7177 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'
7178 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'
7179 # Both c and cxx compiler support -rpath directly
7180 hardcode_libdir_flag_spec='-rpath $libdir'
7182 hardcode_libdir_separator=:
7186 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7187 hardcode_shlibpath_var=no
7188 export_dynamic_flag_spec='${wl}-Bexport'
7189 runpath_var=LD_RUN_PATH
7190 hardcode_runpath_var=yes
7194 no_undefined_flag=' -z text'
7195 if test "$GCC" = yes; then
7196 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7197 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'
7199 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7200 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'
7202 hardcode_libdir_flag_spec='-R$libdir'
7203 hardcode_shlibpath_var=no
7205 solaris2.[0-5] | solaris2.[0-5].*) ;;
7206 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7207 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7209 link_all_deplibs=yes
7213 if test "x$host_vendor" = xsequent; then
7214 # Use $CC to link under sequent, because it throws in some extra .o
7215 # files that make .init and .fini sections work.
7216 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7218 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7220 hardcode_libdir_flag_spec='-L$libdir'
7222 hardcode_minus_L=yes
7223 hardcode_shlibpath_var=no
7227 case $host_vendor in
7229 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7230 hardcode_direct=yes # is this really true???
7233 ## LD is ld it makes a PLAMLIB
7234 ## CC just makes a GrossModule.
7235 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7236 reload_cmds='$CC -r -o $output$reload_objs'
7240 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7241 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7244 runpath_var='LD_RUN_PATH'
7245 hardcode_shlibpath_var=no
7249 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7250 hardcode_shlibpath_var=no
7251 export_dynamic_flag_spec='-Bexport'
7255 if test -d /usr/nec; then
7256 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7257 hardcode_shlibpath_var=no
7258 runpath_var=LD_RUN_PATH
7259 hardcode_runpath_var=yes
7265 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7268 hardcode_shlibpath_var=no
7269 hardcode_runpath_var=yes
7270 runpath_var=LD_RUN_PATH
7273 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7274 no_undefined_flag='${wl}-z ${wl}text'
7275 if test "$GCC" = yes; then
7276 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7278 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7280 runpath_var='LD_RUN_PATH'
7281 hardcode_shlibpath_var=no
7285 no_undefined_flag=' -z text'
7286 # $CC -shared without GNU ld will not create a library from C++
7287 # object files and a static libstdc++, better avoid it by now
7288 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7289 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'
7290 hardcode_libdir_flag_spec=
7291 hardcode_shlibpath_var=no
7292 runpath_var='LD_RUN_PATH'
7296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7297 hardcode_libdir_flag_spec='-L$libdir'
7298 hardcode_shlibpath_var=no
7307 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7308 echo "${ECHO_T}$ld_shlibs" >&6
7309 test "$ld_shlibs" = no && can_build_shared=no
7311 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7312 if test "$GCC" = yes; then
7313 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7317 # Do we need to explicitly link libc?
7319 case "x$archive_cmds_need_lc" in
7321 # Assume -lc should be added
7322 archive_cmds_need_lc=yes
7324 if test "$enable_shared" = yes && test "$GCC" = yes; then
7325 case $archive_cmds in
7327 # FIXME: we may have to deal with multi-command sequences.
7330 # Test whether the compiler implicitly links with -lc since on some
7331 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7332 # to ld, don't add -lc before -lgcc.
7333 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7334 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7336 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7339 (eval $ac_compile) 2>&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); } 2>conftest.err; then
7345 libobjs=conftest.$ac_objext
7347 wl=$lt_prog_compiler_wl
7353 lt_save_allow_undefined_flag=$allow_undefined_flag
7354 allow_undefined_flag=
7355 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7356 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); }
7361 archive_cmds_need_lc=no
7363 archive_cmds_need_lc=yes
7365 allow_undefined_flag=$lt_save_allow_undefined_flag
7367 cat conftest.err 1>&5
7370 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7371 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7378 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7379 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7381 libname_spec='lib$name'
7389 shlibpath_overrides_runpath=unknown
7391 dynamic_linker="$host_os ld.so"
7392 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7393 if test "$GCC" = yes; then
7394 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7395 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7396 # if the path contains ";" then we assume it to be the separator
7397 # otherwise default to the standard path separator (i.e. ":") - it is
7398 # assumed that no part of a normal pathname contains ";" but that should
7399 # okay in the real world where ";" in dirpaths is itself problematic.
7400 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7402 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7405 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7407 need_lib_prefix=unknown
7408 hardcode_into_libs=no
7410 # when you set need_version to no, make sure it does not cause -set_version
7411 # flags to be left without arguments
7412 need_version=unknown
7417 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7418 shlibpath_var=LIBPATH
7420 # AIX 3 has no versioning support, so we append a major version to the name.
7421 soname_spec='${libname}${release}${shared_ext}$major'
7428 hardcode_into_libs=yes
7429 if test "$host_cpu" = ia64; then
7430 # AIX 5 supports IA64
7431 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7432 shlibpath_var=LD_LIBRARY_PATH
7434 # With GCC up to 2.95.x, collect2 would create an import file
7435 # for dependence libraries. The import file would start with
7436 # the line `#! .'. This would cause the generated library to
7437 # depend on `.', always an invalid library. This was fixed in
7438 # development snapshots of GCC prior to 3.0.
7440 aix4 | aix4.[01] | aix4.[01].*)
7441 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7443 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7450 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7451 # soname into executable. Probably we can add versioning support to
7452 # collect2, so additional links can be useful in future.
7453 if test "$aix_use_runtimelinking" = yes; then
7454 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7455 # instead of lib<name>.a to let people know that these are not
7456 # typical AIX shared libraries.
7457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7459 # We preserve .a as extension for shared libraries through AIX4.2
7460 # and later when we are not doing run time linking.
7461 library_names_spec='${libname}${release}.a $libname.a'
7462 soname_spec='${libname}${release}${shared_ext}$major'
7464 shlibpath_var=LIBPATH
7469 library_names_spec='$libname.ixlibrary $libname.a'
7470 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7471 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'
7475 library_names_spec='${libname}${shared_ext}'
7476 dynamic_linker="$host_os ld.so"
7477 shlibpath_var=LIBRARY_PATH
7483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7484 soname_spec='${libname}${release}${shared_ext}$major'
7485 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7486 shlibpath_var=LD_LIBRARY_PATH
7487 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7488 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7489 # the default ld.so.conf also contains /usr/contrib/lib and
7490 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7491 # libtool to hard-code these into programs
7494 cygwin* | mingw* | pw32*)
7495 version_type=windows
7500 case $GCC,$host_os in
7501 yes,cygwin* | yes,mingw* | yes,pw32*)
7502 library_names_spec='$libname.dll.a'
7503 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7504 postinstall_cmds='base_file=`basename \${file}`;
7505 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
7506 dldir=$destdir/`dirname \$dlpath`;
7507 test -d \$dldir || mkdir -p \$dldir;
7508 $install_prog $dir/$dlname \$dldir/$dlname'
7509 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
7510 dlpath=$dir/\$dldll;
7512 shlibpath_overrides_runpath=yes
7516 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7517 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7518 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7521 # MinGW DLLs use traditional 'lib' prefix
7522 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7523 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7524 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7525 # It is most probably a Windows format PATH printed by
7526 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7527 # path with ; separators, and with drive letters. We can handle the
7528 # drive letters (cygwin fileutils understands them), so leave them,
7529 # especially as we might pass files found there to a mingw objdump,
7530 # which wouldn't understand a cygwinified path. Ahh.
7531 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7533 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7537 # pw32 DLLs use 'pw' prefix rather than 'lib'
7538 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7544 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7547 dynamic_linker='Win32 ld.exe'
7548 # FIXME: first we should search . and the directory the executable is in
7552 darwin* | rhapsody*)
7553 dynamic_linker="$host_os dyld"
7557 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7558 soname_spec='${libname}${release}${major}$shared_ext'
7559 shlibpath_overrides_runpath=yes
7560 shlibpath_var=DYLD_LIBRARY_PATH
7561 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7562 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7563 if test "$GCC" = yes; then
7564 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"`
7566 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7568 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7576 soname_spec='${libname}${release}${shared_ext}$major'
7577 shlibpath_var=LD_LIBRARY_PATH
7588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7589 soname_spec='${libname}${release}${shared_ext}$major'
7590 shlibpath_var=LD_LIBRARY_PATH
7591 shlibpath_overrides_runpath=no
7592 hardcode_into_libs=yes
7593 dynamic_linker='GNU ld.so'
7597 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7598 version_type=freebsd-$objformat
7599 case $version_type in
7601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7606 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7610 shlibpath_var=LD_LIBRARY_PATH
7613 shlibpath_overrides_runpath=yes
7615 freebsd3.01* | freebsdelf3.01*)
7616 shlibpath_overrides_runpath=yes
7617 hardcode_into_libs=yes
7620 shlibpath_overrides_runpath=no
7621 hardcode_into_libs=yes
7630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7631 soname_spec='${libname}${release}${shared_ext}$major'
7632 shlibpath_var=LD_LIBRARY_PATH
7633 hardcode_into_libs=yes
7636 hpux9* | hpux10* | hpux11*)
7637 # Give a soname corresponding to the major version so that dld.sl refuses to
7638 # link against other versions.
7645 hardcode_into_libs=yes
7646 dynamic_linker="$host_os dld.so"
7647 shlibpath_var=LD_LIBRARY_PATH
7648 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7650 soname_spec='${libname}${release}${shared_ext}$major'
7651 if test "X$HPUX_IA64_MODE" = X32; then
7652 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7654 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7656 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7660 hardcode_into_libs=yes
7661 dynamic_linker="$host_os dld.sl"
7662 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7663 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7665 soname_spec='${libname}${release}${shared_ext}$major'
7666 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7667 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7671 dynamic_linker="$host_os dld.sl"
7672 shlibpath_var=SHLIB_PATH
7673 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7675 soname_spec='${libname}${release}${shared_ext}$major'
7678 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7679 postinstall_cmds='chmod 555 $lib'
7682 irix5* | irix6* | nonstopux*)
7684 nonstopux*) version_type=nonstopux ;;
7686 if test "$lt_cv_prog_gnu_ld" = yes; then
7694 soname_spec='${libname}${release}${shared_ext}$major'
7695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7697 irix5* | nonstopux*)
7701 case $LD in # libtool.m4 will add one of these switches to LD
7702 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7703 libsuff= shlibsuff= libmagic=32-bit;;
7704 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7705 libsuff=32 shlibsuff=N32 libmagic=N32;;
7706 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7707 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7708 *) libsuff= shlibsuff= libmagic=never-match;;
7712 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7713 shlibpath_overrides_runpath=no
7714 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7715 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7716 hardcode_into_libs=yes
7719 # No shared lib support for Linux oldld, aout, or coff.
7720 linux*oldld* | linux*aout* | linux*coff*)
7724 # This must be Linux ELF.
7729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7730 soname_spec='${libname}${release}${shared_ext}$major'
7731 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7732 shlibpath_var=LD_LIBRARY_PATH
7733 shlibpath_overrides_runpath=no
7734 # This implies no fast_install, which is unacceptable.
7735 # Some rework will be needed to allow for fast_install
7736 # before this can be enabled.
7737 hardcode_into_libs=yes
7739 # Append ld.so.conf contents to the search path
7740 if test -f /etc/ld.so.conf; then
7741 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7742 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7745 # We used to test for /lib/ld.so.1 and disable shared libraries on
7746 # powerpc, because MkLinux only supported shared libraries with the
7747 # GNU dynamic linker. Since this was broken with cross compilers,
7748 # most powerpc-linux boxes support dynamic linking these days and
7749 # people can always --disable-shared, the test was removed, and we
7750 # assume the GNU/Linux dynamic linker is in use.
7751 dynamic_linker='GNU/Linux ld.so'
7758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7759 soname_spec='${libname}${release}${shared_ext}$major'
7760 shlibpath_var=LD_LIBRARY_PATH
7761 shlibpath_overrides_runpath=no
7762 hardcode_into_libs=yes
7763 dynamic_linker='GNU ld.so'
7770 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7772 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7773 dynamic_linker='NetBSD (a.out) ld.so'
7775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7776 soname_spec='${libname}${release}${shared_ext}$major'
7777 dynamic_linker='NetBSD ld.elf_so'
7779 shlibpath_var=LD_LIBRARY_PATH
7780 shlibpath_overrides_runpath=yes
7781 hardcode_into_libs=yes
7786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7787 shlibpath_var=LD_LIBRARY_PATH
7788 shlibpath_overrides_runpath=yes
7795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7796 soname_spec='${libname}${release}${shared_ext}$major'
7797 shlibpath_var=LD_LIBRARY_PATH
7798 shlibpath_overrides_runpath=yes
7805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7806 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7807 shlibpath_var=LD_LIBRARY_PATH
7808 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7810 openbsd2.[89] | openbsd2.[89].*)
7811 shlibpath_overrides_runpath=no
7814 shlibpath_overrides_runpath=yes
7818 shlibpath_overrides_runpath=yes
7823 libname_spec='$name'
7826 library_names_spec='$libname${shared_ext} $libname.a'
7827 dynamic_linker='OS/2 ld.exe'
7828 shlibpath_var=LIBPATH
7831 osf3* | osf4* | osf5*)
7835 soname_spec='${libname}${release}${shared_ext}$major'
7836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7837 shlibpath_var=LD_LIBRARY_PATH
7838 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7839 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7844 soname_spec='${libname}${release}${shared_ext}$major'
7845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7846 shlibpath_var=LD_LIBRARY_PATH
7853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7854 soname_spec='${libname}${release}${shared_ext}$major'
7855 shlibpath_var=LD_LIBRARY_PATH
7856 shlibpath_overrides_runpath=yes
7857 hardcode_into_libs=yes
7858 # ldd complains unless libraries are executable
7859 postinstall_cmds='chmod +x $lib'
7864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7865 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7866 shlibpath_var=LD_LIBRARY_PATH
7867 shlibpath_overrides_runpath=yes
7868 if test "$with_gnu_ld" = yes; then
7874 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7877 soname_spec='${libname}${release}${shared_ext}$major'
7878 shlibpath_var=LD_LIBRARY_PATH
7879 case $host_vendor in
7881 shlibpath_overrides_runpath=no
7883 export_dynamic_flag_spec='${wl}-Blargedynsym'
7884 runpath_var=LD_RUN_PATH
7892 shlibpath_overrides_runpath=no
7893 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7899 if test -d /usr/nec ;then
7901 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7902 soname_spec='$libname${shared_ext}.$major'
7903 shlibpath_var=LD_LIBRARY_PATH
7909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7910 soname_spec='${libname}${release}${shared_ext}$major'
7911 shlibpath_var=LD_LIBRARY_PATH
7918 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7919 echo "${ECHO_T}$dynamic_linker" >&6
7920 test "$dynamic_linker" = no && can_build_shared=no
7922 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7923 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7925 if test -n "$hardcode_libdir_flag_spec" || \
7926 test -n "$runpath_var" || \
7927 test "X$hardcode_automatic" = "Xyes" ; then
7929 # We can hardcode non-existant directories.
7930 if test "$hardcode_direct" != no &&
7931 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7932 # have to relink, otherwise we might link with an installed library
7933 # when we should be linking with a yet-to-be-installed one
7934 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7935 test "$hardcode_minus_L" != no; then
7936 # Linking always hardcodes the temporary library directory.
7937 hardcode_action=relink
7939 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7940 hardcode_action=immediate
7943 # We cannot hardcode anything, or else we can only hardcode existing
7945 hardcode_action=unsupported
7947 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7948 echo "${ECHO_T}$hardcode_action" >&6
7950 if test "$hardcode_action" = relink; then
7951 # Fast installation is not supported
7952 enable_fast_install=no
7953 elif test "$shlibpath_overrides_runpath" = yes ||
7954 test "$enable_shared" = no; then
7955 # Fast installation is not necessary
7956 enable_fast_install=needless
7961 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7962 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7963 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7964 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7965 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7966 echo "$as_me:$LINENO: result: yes" >&5
7967 echo "${ECHO_T}yes" >&6
7969 # FIXME - insert some real tests, host_os isn't really good enough
7972 if test -n "$STRIP" ; then
7973 striplib="$STRIP -x"
7974 echo "$as_me:$LINENO: result: yes" >&5
7975 echo "${ECHO_T}yes" >&6
7977 echo "$as_me:$LINENO: result: no" >&5
7978 echo "${ECHO_T}no" >&6
7982 echo "$as_me:$LINENO: result: no" >&5
7983 echo "${ECHO_T}no" >&6
7988 if test "x$enable_dlopen" != xyes; then
7989 enable_dlopen=unknown
7990 enable_dlopen_self=unknown
7991 enable_dlopen_self_static=unknown
7998 lt_cv_dlopen="load_add_on"
8000 lt_cv_dlopen_self=yes
8004 lt_cv_dlopen="LoadLibrary"
8009 lt_cv_dlopen="dlopen"
8014 # if libdl is installed we need to link against it
8015 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8016 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8017 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8018 echo $ECHO_N "(cached) $ECHO_C" >&6
8020 ac_check_lib_save_LIBS=$LIBS
8022 cat >conftest.$ac_ext <<_ACEOF
8025 cat confdefs.h >>conftest.$ac_ext
8026 cat >>conftest.$ac_ext <<_ACEOF
8027 /* end confdefs.h. */
8029 /* Override any gcc2 internal prototype to avoid an error. */
8033 /* We use char because int might match the return type of a gcc2
8034 builtin and then its argument prototype would still apply. */
8044 rm -f conftest.$ac_objext conftest$ac_exeext
8045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8046 (eval $ac_link) 2>conftest.er1
8048 grep -v '^ *+' conftest.er1 >conftest.err
8050 cat conftest.err >&5
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); } &&
8053 { ac_try='test -z "$ac_c_werror_flag"
8054 || test ! -s conftest.err'
8055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); }; } &&
8060 { ac_try='test -s conftest$ac_exeext'
8061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); }; }; then
8066 ac_cv_lib_dl_dlopen=yes
8068 echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.$ac_ext >&5
8071 ac_cv_lib_dl_dlopen=no
8073 rm -f conftest.err conftest.$ac_objext \
8074 conftest$ac_exeext conftest.$ac_ext
8075 LIBS=$ac_check_lib_save_LIBS
8077 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8078 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8079 if test $ac_cv_lib_dl_dlopen = yes; then
8080 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8085 lt_cv_dlopen_self=yes
8092 echo "$as_me:$LINENO: checking for shl_load" >&5
8093 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8094 if test "${ac_cv_func_shl_load+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8097 cat >conftest.$ac_ext <<_ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h. */
8103 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8105 #define shl_load innocuous_shl_load
8107 /* System header to define __stub macros and hopefully few prototypes,
8108 which can conflict with char shl_load (); below.
8109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8110 <limits.h> exists even on freestanding compilers. */
8113 # include <limits.h>
8115 # include <assert.h>
8120 /* Override any gcc2 internal prototype to avoid an error. */
8125 /* We use char because int might match the return type of a gcc2
8126 builtin and then its argument prototype would still apply. */
8128 /* The GNU C library defines this for functions which it implements
8129 to always fail with ENOSYS. Some functions are actually named
8130 something starting with __ and the normal name is an alias. */
8131 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8134 char (*f) () = shl_load;
8143 return f != shl_load;
8148 rm -f conftest.$ac_objext conftest$ac_exeext
8149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8150 (eval $ac_link) 2>conftest.er1
8152 grep -v '^ *+' conftest.er1 >conftest.err
8154 cat conftest.err >&5
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); } &&
8157 { ac_try='test -z "$ac_c_werror_flag"
8158 || test ! -s conftest.err'
8159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); }; } &&
8164 { ac_try='test -s conftest$ac_exeext'
8165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); }; }; then
8170 ac_cv_func_shl_load=yes
8172 echo "$as_me: failed program was:" >&5
8173 sed 's/^/| /' conftest.$ac_ext >&5
8175 ac_cv_func_shl_load=no
8177 rm -f conftest.err conftest.$ac_objext \
8178 conftest$ac_exeext conftest.$ac_ext
8180 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8181 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8182 if test $ac_cv_func_shl_load = yes; then
8183 lt_cv_dlopen="shl_load"
8185 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8186 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8187 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8188 echo $ECHO_N "(cached) $ECHO_C" >&6
8190 ac_check_lib_save_LIBS=$LIBS
8192 cat >conftest.$ac_ext <<_ACEOF
8195 cat confdefs.h >>conftest.$ac_ext
8196 cat >>conftest.$ac_ext <<_ACEOF
8197 /* end confdefs.h. */
8199 /* Override any gcc2 internal prototype to avoid an error. */
8203 /* We use char because int might match the return type of a gcc2
8204 builtin and then its argument prototype would still apply. */
8214 rm -f conftest.$ac_objext conftest$ac_exeext
8215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8216 (eval $ac_link) 2>conftest.er1
8218 grep -v '^ *+' conftest.er1 >conftest.err
8220 cat conftest.err >&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); } &&
8223 { ac_try='test -z "$ac_c_werror_flag"
8224 || test ! -s conftest.err'
8225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); }; } &&
8230 { ac_try='test -s conftest$ac_exeext'
8231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); }; }; then
8236 ac_cv_lib_dld_shl_load=yes
8238 echo "$as_me: failed program was:" >&5
8239 sed 's/^/| /' conftest.$ac_ext >&5
8241 ac_cv_lib_dld_shl_load=no
8243 rm -f conftest.err conftest.$ac_objext \
8244 conftest$ac_exeext conftest.$ac_ext
8245 LIBS=$ac_check_lib_save_LIBS
8247 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8248 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8249 if test $ac_cv_lib_dld_shl_load = yes; then
8250 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8252 echo "$as_me:$LINENO: checking for dlopen" >&5
8253 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8254 if test "${ac_cv_func_dlopen+set}" = set; then
8255 echo $ECHO_N "(cached) $ECHO_C" >&6
8257 cat >conftest.$ac_ext <<_ACEOF
8260 cat confdefs.h >>conftest.$ac_ext
8261 cat >>conftest.$ac_ext <<_ACEOF
8262 /* end confdefs.h. */
8263 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8265 #define dlopen innocuous_dlopen
8267 /* System header to define __stub macros and hopefully few prototypes,
8268 which can conflict with char dlopen (); below.
8269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8270 <limits.h> exists even on freestanding compilers. */
8273 # include <limits.h>
8275 # include <assert.h>
8280 /* Override any gcc2 internal prototype to avoid an error. */
8285 /* We use char because int might match the return type of a gcc2
8286 builtin and then its argument prototype would still apply. */
8288 /* The GNU C library defines this for functions which it implements
8289 to always fail with ENOSYS. Some functions are actually named
8290 something starting with __ and the normal name is an alias. */
8291 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8294 char (*f) () = dlopen;
8308 rm -f conftest.$ac_objext conftest$ac_exeext
8309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8310 (eval $ac_link) 2>conftest.er1
8312 grep -v '^ *+' conftest.er1 >conftest.err
8314 cat conftest.err >&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); } &&
8317 { ac_try='test -z "$ac_c_werror_flag"
8318 || test ! -s conftest.err'
8319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; } &&
8324 { ac_try='test -s conftest$ac_exeext'
8325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); }; }; then
8330 ac_cv_func_dlopen=yes
8332 echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.$ac_ext >&5
8335 ac_cv_func_dlopen=no
8337 rm -f conftest.err conftest.$ac_objext \
8338 conftest$ac_exeext conftest.$ac_ext
8340 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8341 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8342 if test $ac_cv_func_dlopen = yes; then
8343 lt_cv_dlopen="dlopen"
8345 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8346 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8347 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8348 echo $ECHO_N "(cached) $ECHO_C" >&6
8350 ac_check_lib_save_LIBS=$LIBS
8352 cat >conftest.$ac_ext <<_ACEOF
8355 cat confdefs.h >>conftest.$ac_ext
8356 cat >>conftest.$ac_ext <<_ACEOF
8357 /* end confdefs.h. */
8359 /* Override any gcc2 internal prototype to avoid an error. */
8363 /* We use char because int might match the return type of a gcc2
8364 builtin and then its argument prototype would still apply. */
8374 rm -f conftest.$ac_objext conftest$ac_exeext
8375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8376 (eval $ac_link) 2>conftest.er1
8378 grep -v '^ *+' conftest.er1 >conftest.err
8380 cat conftest.err >&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); } &&
8383 { ac_try='test -z "$ac_c_werror_flag"
8384 || test ! -s conftest.err'
8385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); }; } &&
8390 { ac_try='test -s conftest$ac_exeext'
8391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); }; }; then
8396 ac_cv_lib_dl_dlopen=yes
8398 echo "$as_me: failed program was:" >&5
8399 sed 's/^/| /' conftest.$ac_ext >&5
8401 ac_cv_lib_dl_dlopen=no
8403 rm -f conftest.err conftest.$ac_objext \
8404 conftest$ac_exeext conftest.$ac_ext
8405 LIBS=$ac_check_lib_save_LIBS
8407 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8408 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8409 if test $ac_cv_lib_dl_dlopen = yes; then
8410 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8412 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8413 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8414 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8415 echo $ECHO_N "(cached) $ECHO_C" >&6
8417 ac_check_lib_save_LIBS=$LIBS
8419 cat >conftest.$ac_ext <<_ACEOF
8422 cat confdefs.h >>conftest.$ac_ext
8423 cat >>conftest.$ac_ext <<_ACEOF
8424 /* end confdefs.h. */
8426 /* Override any gcc2 internal prototype to avoid an error. */
8430 /* We use char because int might match the return type of a gcc2
8431 builtin and then its argument prototype would still apply. */
8441 rm -f conftest.$ac_objext conftest$ac_exeext
8442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8443 (eval $ac_link) 2>conftest.er1
8445 grep -v '^ *+' conftest.er1 >conftest.err
8447 cat conftest.err >&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } &&
8450 { ac_try='test -z "$ac_c_werror_flag"
8451 || test ! -s conftest.err'
8452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); }; } &&
8457 { ac_try='test -s conftest$ac_exeext'
8458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); }; }; then
8463 ac_cv_lib_svld_dlopen=yes
8465 echo "$as_me: failed program was:" >&5
8466 sed 's/^/| /' conftest.$ac_ext >&5
8468 ac_cv_lib_svld_dlopen=no
8470 rm -f conftest.err conftest.$ac_objext \
8471 conftest$ac_exeext conftest.$ac_ext
8472 LIBS=$ac_check_lib_save_LIBS
8474 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8475 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8476 if test $ac_cv_lib_svld_dlopen = yes; then
8477 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8479 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8480 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8481 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8482 echo $ECHO_N "(cached) $ECHO_C" >&6
8484 ac_check_lib_save_LIBS=$LIBS
8486 cat >conftest.$ac_ext <<_ACEOF
8489 cat confdefs.h >>conftest.$ac_ext
8490 cat >>conftest.$ac_ext <<_ACEOF
8491 /* end confdefs.h. */
8493 /* Override any gcc2 internal prototype to avoid an error. */
8497 /* We use char because int might match the return type of a gcc2
8498 builtin and then its argument prototype would still apply. */
8508 rm -f conftest.$ac_objext conftest$ac_exeext
8509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8510 (eval $ac_link) 2>conftest.er1
8512 grep -v '^ *+' conftest.er1 >conftest.err
8514 cat conftest.err >&5
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); } &&
8517 { ac_try='test -z "$ac_c_werror_flag"
8518 || test ! -s conftest.err'
8519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); }; } &&
8524 { ac_try='test -s conftest$ac_exeext'
8525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }; }; then
8530 ac_cv_lib_dld_dld_link=yes
8532 echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.$ac_ext >&5
8535 ac_cv_lib_dld_dld_link=no
8537 rm -f conftest.err conftest.$ac_objext \
8538 conftest$ac_exeext conftest.$ac_ext
8539 LIBS=$ac_check_lib_save_LIBS
8541 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8542 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8543 if test $ac_cv_lib_dld_dld_link = yes; then
8544 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8565 if test "x$lt_cv_dlopen" != xno; then
8571 case $lt_cv_dlopen in
8573 save_CPPFLAGS="$CPPFLAGS"
8574 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8576 save_LDFLAGS="$LDFLAGS"
8577 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8580 LIBS="$lt_cv_dlopen_libs $LIBS"
8582 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8583 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8584 if test "${lt_cv_dlopen_self+set}" = set; then
8585 echo $ECHO_N "(cached) $ECHO_C" >&6
8587 if test "$cross_compiling" = yes; then :
8588 lt_cv_dlopen_self=cross
8590 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8591 lt_status=$lt_dlunknown
8592 cat > conftest.$ac_ext <<EOF
8593 #line 8593 "configure"
8594 #include "confdefs.h"
8603 # define LT_DLGLOBAL RTLD_GLOBAL
8606 # define LT_DLGLOBAL DL_GLOBAL
8608 # define LT_DLGLOBAL 0
8612 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8613 find out it does not work in some platform. */
8614 #ifndef LT_DLLAZY_OR_NOW
8616 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8619 # define LT_DLLAZY_OR_NOW DL_LAZY
8622 # define LT_DLLAZY_OR_NOW RTLD_NOW
8625 # define LT_DLLAZY_OR_NOW DL_NOW
8627 # define LT_DLLAZY_OR_NOW 0
8635 extern "C" void exit (int);
8638 void fnord() { int i=42;}
8641 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8642 int status = $lt_dlunknown;
8646 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8647 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8648 /* dlclose (self); */
8654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8655 (eval $ac_link) 2>&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8659 (./conftest; exit; ) 2>/dev/null
8662 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8663 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8664 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8667 # compilation failed
8668 lt_cv_dlopen_self=no
8675 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8676 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8678 if test "x$lt_cv_dlopen_self" = xyes; then
8679 LDFLAGS="$LDFLAGS $link_static_flag"
8680 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8681 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8682 if test "${lt_cv_dlopen_self_static+set}" = set; then
8683 echo $ECHO_N "(cached) $ECHO_C" >&6
8685 if test "$cross_compiling" = yes; then :
8686 lt_cv_dlopen_self_static=cross
8688 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8689 lt_status=$lt_dlunknown
8690 cat > conftest.$ac_ext <<EOF
8691 #line 8691 "configure"
8692 #include "confdefs.h"
8701 # define LT_DLGLOBAL RTLD_GLOBAL
8704 # define LT_DLGLOBAL DL_GLOBAL
8706 # define LT_DLGLOBAL 0
8710 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8711 find out it does not work in some platform. */
8712 #ifndef LT_DLLAZY_OR_NOW
8714 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8717 # define LT_DLLAZY_OR_NOW DL_LAZY
8720 # define LT_DLLAZY_OR_NOW RTLD_NOW
8723 # define LT_DLLAZY_OR_NOW DL_NOW
8725 # define LT_DLLAZY_OR_NOW 0
8733 extern "C" void exit (int);
8736 void fnord() { int i=42;}
8739 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8740 int status = $lt_dlunknown;
8744 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8745 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8746 /* dlclose (self); */
8752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8753 (eval $ac_link) 2>&5
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8757 (./conftest; exit; ) 2>/dev/null
8760 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8761 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8762 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8765 # compilation failed
8766 lt_cv_dlopen_self_static=no
8773 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8774 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8777 CPPFLAGS="$save_CPPFLAGS"
8778 LDFLAGS="$save_LDFLAGS"
8783 case $lt_cv_dlopen_self in
8784 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8785 *) enable_dlopen_self=unknown ;;
8788 case $lt_cv_dlopen_self_static in
8789 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8790 *) enable_dlopen_self_static=unknown ;;
8795 # Report which librarie types wil actually be built
8796 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8797 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8798 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8799 echo "${ECHO_T}$can_build_shared" >&6
8801 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8802 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8803 test "$can_build_shared" = "no" && enable_shared=no
8805 # On AIX, shared libraries and static libraries use the same namespace, and
8806 # are all built from PIC.
8809 test "$enable_shared" = yes && enable_static=no
8810 if test -n "$RANLIB"; then
8811 archive_cmds="$archive_cmds;\$RANLIB \$lib"
8812 postinstall_cmds='$RANLIB $lib'
8817 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8818 test "$enable_shared" = yes && enable_static=no
8822 echo "$as_me:$LINENO: result: $enable_shared" >&5
8823 echo "${ECHO_T}$enable_shared" >&6
8825 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8826 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8827 # Make sure either enable_shared or enable_static is yes.
8828 test "$enable_shared" = yes || enable_static=yes
8829 echo "$as_me:$LINENO: result: $enable_static" >&5
8830 echo "${ECHO_T}$enable_static" >&6
8832 # The else clause should only fire when bootstrapping the
8833 # libtool distribution, otherwise you forgot to ship ltmain.sh
8834 # with your package, and you will get complaints that there are
8835 # no rules to generate ltmain.sh.
8836 if test -f "$ltmain"; then
8837 # See if we are running on zsh, and set the options which allow our commands through
8838 # without removal of \ escapes.
8839 if test -n "${ZSH_VERSION+set}" ; then
8840 setopt NO_GLOB_SUBST
8842 # Now quote all the things that may contain metacharacters while being
8843 # careful not to overquote the AC_SUBSTed values. We take copies of the
8844 # variables and quote the copies for generation of the libtool script.
8845 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8847 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8848 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8849 deplibs_check_method reload_flag reload_cmds need_locks \
8850 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8851 lt_cv_sys_global_symbol_to_c_name_address \
8852 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8853 old_postinstall_cmds old_postuninstall_cmds \
8857 lt_prog_compiler_wl \
8858 lt_prog_compiler_pic \
8859 lt_prog_compiler_static \
8860 lt_prog_compiler_no_builtin_flag \
8861 export_dynamic_flag_spec \
8862 thread_safe_flag_spec \
8863 whole_archive_flag_spec \
8864 enable_shared_with_static_runtimes \
8866 old_archive_from_new_cmds \
8871 compiler_lib_search_path \
8873 archive_expsym_cmds \
8875 postuninstall_cmds \
8876 old_archive_from_expsyms_cmds \
8877 allow_undefined_flag \
8879 export_symbols_cmds \
8880 hardcode_libdir_flag_spec \
8881 hardcode_libdir_flag_spec_ld \
8882 hardcode_libdir_separator \
8883 hardcode_automatic \
8885 module_expsym_cmds \
8886 lt_cv_prog_compiler_c_o \
8891 old_archive_cmds | \
8892 old_archive_from_new_cmds | \
8894 archive_expsym_cmds | \
8896 module_expsym_cmds | \
8897 old_archive_from_expsyms_cmds | \
8898 export_symbols_cmds | \
8899 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8900 postinstall_cmds | postuninstall_cmds | \
8901 old_postinstall_cmds | old_postuninstall_cmds | \
8902 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8903 # Double-quote double-evaled strings.
8904 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8907 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8913 *'\$0 --fallback-echo"')
8914 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8919 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8921 { echo "$as_me:$LINENO: creating $ofile" >&5
8922 echo "$as_me: creating $ofile" >&6;}
8924 cat <<__EOF__ >> "$cfgfile"
8927 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8928 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8929 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8931 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8932 # Free Software Foundation, Inc.
8934 # This file is part of GNU Libtool:
8935 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8937 # This program is free software; you can redistribute it and/or modify
8938 # it under the terms of the GNU General Public License as published by
8939 # the Free Software Foundation; either version 2 of the License, or
8940 # (at your option) any later version.
8942 # This program is distributed in the hope that it will be useful, but
8943 # WITHOUT ANY WARRANTY; without even the implied warranty of
8944 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8945 # General Public License for more details.
8947 # You should have received a copy of the GNU General Public License
8948 # along with this program; if not, write to the Free Software
8949 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8951 # As a special exception to the GNU General Public License, if you
8952 # distribute this file as part of a program that contains a
8953 # configuration script generated by Autoconf, you may include it under
8954 # the same distribution terms that you use for the rest of that program.
8956 # A sed program that does not truncate output.
8959 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8960 Xsed="$SED -e s/^X//"
8962 # The HP-UX ksh and POSIX shell print the target directory to stdout
8964 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8966 # The names of the tagged configurations supported by this script.
8969 # ### BEGIN LIBTOOL CONFIG
8971 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8973 # Shell to use when invoking shell scripts.
8976 # Whether or not to build shared libraries.
8977 build_libtool_libs=$enable_shared
8979 # Whether or not to build static libraries.
8980 build_old_libs=$enable_static
8982 # Whether or not to add -lc for building shared libraries.
8983 build_libtool_need_lc=$archive_cmds_need_lc
8985 # Whether or not to disallow shared libs when runtime libs are static
8986 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8988 # Whether or not to optimize for fast installation.
8989 fast_install=$enable_fast_install
8992 host_alias=$host_alias
8995 # An echo program that does not interpret backslashes.
9000 AR_FLAGS=$lt_AR_FLAGS
9005 # A language-specific compiler.
9008 # Is the compiler the GNU C compiler?
9014 # The linker used to build libraries.
9017 # Whether we need hard or soft links.
9020 # A BSD-compatible nm program.
9023 # A symbol stripping program
9026 # Used to examine libraries when file_magic_cmd begins "file"
9027 MAGIC_CMD=$MAGIC_CMD
9029 # Used on cygwin: DLL creation program.
9032 # Used on cygwin: object dumper.
9035 # Used on cygwin: assembler.
9038 # The name of the directory that contains temporary libtool files.
9041 # How to create reloadable object files.
9042 reload_flag=$lt_reload_flag
9043 reload_cmds=$lt_reload_cmds
9045 # How to pass a linker flag through the compiler.
9046 wl=$lt_lt_prog_compiler_wl
9048 # Object file suffix (normally "o").
9051 # Old archive suffix (normally "a").
9054 # Shared library suffix (normally ".so").
9055 shrext_cmds='$shrext_cmds'
9057 # Executable file suffix (normally "").
9060 # Additional compiler flags for building library objects.
9061 pic_flag=$lt_lt_prog_compiler_pic
9064 # What is the maximum length of a command?
9065 max_cmd_len=$lt_cv_sys_max_cmd_len
9067 # Does compiler simultaneously support -c and -o options?
9068 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9070 # Must we lock files when doing compilation ?
9071 need_locks=$lt_need_locks
9073 # Do we need the lib prefix for modules?
9074 need_lib_prefix=$need_lib_prefix
9076 # Do we need a version for libraries?
9077 need_version=$need_version
9079 # Whether dlopen is supported.
9080 dlopen_support=$enable_dlopen
9082 # Whether dlopen of programs is supported.
9083 dlopen_self=$enable_dlopen_self
9085 # Whether dlopen of statically linked programs is supported.
9086 dlopen_self_static=$enable_dlopen_self_static
9088 # Compiler flag to prevent dynamic linking.
9089 link_static_flag=$lt_lt_prog_compiler_static
9091 # Compiler flag to turn off builtin functions.
9092 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9094 # Compiler flag to allow reflexive dlopens.
9095 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9097 # Compiler flag to generate shared objects directly from archives.
9098 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9100 # Compiler flag to generate thread-safe objects.
9101 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9103 # Library versioning type.
9104 version_type=$version_type
9106 # Format of library name prefix.
9107 libname_spec=$lt_libname_spec
9109 # List of archive names. First name is the real one, the rest are links.
9110 # The last name is the one that the linker finds with -lNAME.
9111 library_names_spec=$lt_library_names_spec
9113 # The coded name of the library, if different from the real name.
9114 soname_spec=$lt_soname_spec
9116 # Commands used to build and install an old-style archive.
9118 old_archive_cmds=$lt_old_archive_cmds
9119 old_postinstall_cmds=$lt_old_postinstall_cmds
9120 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9122 # Create an old-style archive from a shared archive.
9123 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9125 # Create a temporary old-style archive to link instead of a shared archive.
9126 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9128 # Commands used to build and install a shared archive.
9129 archive_cmds=$lt_archive_cmds
9130 archive_expsym_cmds=$lt_archive_expsym_cmds
9131 postinstall_cmds=$lt_postinstall_cmds
9132 postuninstall_cmds=$lt_postuninstall_cmds
9134 # Commands used to build a loadable module (assumed same as above if empty)
9135 module_cmds=$lt_module_cmds
9136 module_expsym_cmds=$lt_module_expsym_cmds
9138 # Commands to strip libraries.
9139 old_striplib=$lt_old_striplib
9140 striplib=$lt_striplib
9142 # Dependencies to place before the objects being linked to create a
9144 predep_objects=$lt_predep_objects
9146 # Dependencies to place after the objects being linked to create a
9148 postdep_objects=$lt_postdep_objects
9150 # Dependencies to place before the objects being linked to create a
9154 # Dependencies to place after the objects being linked to create a
9156 postdeps=$lt_postdeps
9158 # The library search path used internally by the compiler when linking
9160 compiler_lib_search_path=$lt_compiler_lib_search_path
9162 # Method to check whether dependent libraries are shared objects.
9163 deplibs_check_method=$lt_deplibs_check_method
9165 # Command to use when deplibs_check_method == file_magic.
9166 file_magic_cmd=$lt_file_magic_cmd
9168 # Flag that allows shared libraries with undefined symbols to be built.
9169 allow_undefined_flag=$lt_allow_undefined_flag
9171 # Flag that forces no undefined symbols.
9172 no_undefined_flag=$lt_no_undefined_flag
9174 # Commands used to finish a libtool library installation in a directory.
9175 finish_cmds=$lt_finish_cmds
9177 # Same as above, but a single script fragment to be evaled but not shown.
9178 finish_eval=$lt_finish_eval
9180 # Take the output of nm and produce a listing of raw symbols and C names.
9181 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9183 # Transform the output of nm in a proper C declaration
9184 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9186 # Transform the output of nm in a C name address pair
9187 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9189 # This is the shared library runtime path variable.
9190 runpath_var=$runpath_var
9192 # This is the shared library path variable.
9193 shlibpath_var=$shlibpath_var
9195 # Is shlibpath searched before the hard-coded library search path?
9196 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9198 # How to hardcode a shared library path into an executable.
9199 hardcode_action=$hardcode_action
9201 # Whether we should hardcode library paths into libraries.
9202 hardcode_into_libs=$hardcode_into_libs
9204 # Flag to hardcode \$libdir into a binary during linking.
9205 # This must work even if \$libdir does not exist.
9206 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9208 # If ld is used when linking, flag to hardcode \$libdir into
9209 # a binary during linking. This must work even if \$libdir does
9211 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9213 # Whether we need a single -rpath flag with a separated argument.
9214 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9216 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9218 hardcode_direct=$hardcode_direct
9220 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9222 hardcode_minus_L=$hardcode_minus_L
9224 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9225 # the resulting binary.
9226 hardcode_shlibpath_var=$hardcode_shlibpath_var
9228 # Set to yes if building a shared library automatically hardcodes DIR into the library
9229 # and all subsequent libraries and executables linked against it.
9230 hardcode_automatic=$hardcode_automatic
9232 # Variables whose values should be saved in libtool wrapper scripts and
9233 # restored at relink time.
9234 variables_saved_for_relink="$variables_saved_for_relink"
9236 # Whether libtool must link a program against all its dependency libraries.
9237 link_all_deplibs=$link_all_deplibs
9239 # Compile-time system search path for libraries
9240 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9242 # Run-time system search path for libraries
9243 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9245 # Fix the shell variable \$srcfile for the compiler.
9246 fix_srcfile_path="$fix_srcfile_path"
9248 # Set to yes if exported symbols are required.
9249 always_export_symbols=$always_export_symbols
9251 # The commands to list exported symbols.
9252 export_symbols_cmds=$lt_export_symbols_cmds
9254 # The commands to extract the exported symbol list from a shared archive.
9255 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9257 # Symbols that should not be listed in the preloaded symbols.
9258 exclude_expsyms=$lt_exclude_expsyms
9260 # Symbols that must always be exported.
9261 include_expsyms=$lt_include_expsyms
9263 # ### END LIBTOOL CONFIG
9270 cat <<\EOF >> "$cfgfile"
9272 # AIX sometimes has problems with the GCC collect2 program. For some
9273 # reason, if we set the COLLECT_NAMES environment variable, the problems
9274 # vanish in a puff of smoke.
9275 if test "X${COLLECT_NAMES+set}" != Xset; then
9277 export COLLECT_NAMES
9283 # We use sed instead of cat because bash on DJGPP gets confused if
9284 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9285 # text mode, it properly converts lines to CR/LF. This bash problem
9286 # is reportedly fixed, but why not run on old versions too?
9287 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9289 mv -f "$cfgfile" "$ofile" || \
9290 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9294 # If there is no Makefile yet, we rely on a make rule to execute
9295 # `config.status --recheck' to rerun these tests and create the
9296 # libtool script then.
9297 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9298 if test -f "$ltmain_in"; then
9299 test -f Makefile && make "$ltmain"
9305 ac_cpp='$CPP $CPPFLAGS'
9306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9313 # Check whether --with-tags or --without-tags was given.
9314 if test "${with_tags+set}" = set; then
9315 withval="$with_tags"
9319 if test -f "$ltmain" && test -n "$tagnames"; then
9320 if test ! -f "${ofile}"; then
9321 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9322 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9325 if test -z "$LTCC"; then
9326 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9327 if test -z "$LTCC"; then
9328 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9329 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9331 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9332 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9336 # Extract list of available tagged configurations in $ofile.
9337 # Note that this assumes the entire list is on one line.
9338 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9340 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9341 for tagname in $tagnames; do
9343 # Check whether tagname contains only valid characters
9344 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9346 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9347 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9348 { (exit 1); exit 1; }; }
9352 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9354 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9355 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9356 { (exit 1); exit 1; }; }
9359 # Update the list of available tags.
9360 if test -n "$tagname"; then
9361 echo appending configuration tag \"$tagname\" to $ofile
9365 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9366 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9367 (test "X$CXX" != "Xg++"))) ; then
9369 ac_cpp='$CXXCPP $CPPFLAGS'
9370 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9371 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9372 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9377 archive_cmds_need_lc_CXX=no
9378 allow_undefined_flag_CXX=
9379 always_export_symbols_CXX=no
9380 archive_expsym_cmds_CXX=
9381 export_dynamic_flag_spec_CXX=
9382 hardcode_direct_CXX=no
9383 hardcode_libdir_flag_spec_CXX=
9384 hardcode_libdir_flag_spec_ld_CXX=
9385 hardcode_libdir_separator_CXX=
9386 hardcode_minus_L_CXX=no
9387 hardcode_automatic_CXX=no
9389 module_expsym_cmds_CXX=
9390 link_all_deplibs_CXX=unknown
9391 old_archive_cmds_CXX=$old_archive_cmds
9392 no_undefined_flag_CXX=
9393 whole_archive_flag_spec_CXX=
9394 enable_shared_with_static_runtimes_CXX=no
9396 # Dependencies to place before and after the object being linked:
9398 postdep_objects_CXX=
9401 compiler_lib_search_path_CXX=
9403 # Source file extension for C++ test sources.
9406 # Object file extension for compiled C++ test sources.
9410 # Code to be used in simple compile tests
9411 lt_simple_compile_test_code="int some_variable = 0;\n"
9413 # Code to be used in simple link tests
9414 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9416 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9418 # If no C compiler was specified, use CC.
9421 # Allow CC to be a program name with arguments.
9425 # Allow CC to be a program name with arguments.
9430 lt_save_with_gnu_ld=$with_gnu_ld
9431 lt_save_path_LD=$lt_cv_path_LD
9432 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9433 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9435 unset lt_cv_prog_gnu_ld
9437 if test -n "${lt_cv_path_LDCXX+set}"; then
9438 lt_cv_path_LD=$lt_cv_path_LDCXX
9442 test -z "${LDCXX+set}" || LD=$LDCXX
9446 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9448 # We don't want -fno-exception wen compiling C++ code, so set the
9449 # no_builtin_flag separately
9450 if test "$GXX" = yes; then
9451 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9453 lt_prog_compiler_no_builtin_flag_CXX=
9456 if test "$GXX" = yes; then
9457 # Set up default GNU C++ configuration
9460 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9461 if test "${with_gnu_ld+set}" = set; then
9462 withval="$with_gnu_ld"
9463 test "$withval" = no || with_gnu_ld=yes
9468 if test "$GCC" = yes; then
9469 # Check if gcc -print-prog-name=ld gives a path.
9470 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9471 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9474 # gcc leaves a trailing carriage return which upsets mingw
9475 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9477 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9480 # Accept absolute paths.
9482 re_direlt='/[^/][^/]*/\.\./'
9483 # Canonicalize the pathname of ld
9484 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9485 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9486 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9488 test -z "$LD" && LD="$ac_prog"
9491 # If it fails, then pretend we aren't using GCC.
9495 # If it is relative, then search for the first ld in PATH.
9499 elif test "$with_gnu_ld" = yes; then
9500 echo "$as_me:$LINENO: checking for GNU ld" >&5
9501 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9503 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9504 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9506 if test "${lt_cv_path_LD+set}" = set; then
9507 echo $ECHO_N "(cached) $ECHO_C" >&6
9509 if test -z "$LD"; then
9510 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9511 for ac_dir in $PATH; do
9513 test -z "$ac_dir" && ac_dir=.
9514 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9515 lt_cv_path_LD="$ac_dir/$ac_prog"
9516 # Check to see if the program is GNU ld. I'd rather use --version,
9517 # but apparently some GNU ld's only accept -v.
9518 # Break only if it was the GNU/non-GNU ld that we prefer.
9519 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9520 *GNU* | *'with BFD'*)
9521 test "$with_gnu_ld" != no && break
9524 test "$with_gnu_ld" != yes && break
9531 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9536 if test -n "$LD"; then
9537 echo "$as_me:$LINENO: result: $LD" >&5
9538 echo "${ECHO_T}$LD" >&6
9540 echo "$as_me:$LINENO: result: no" >&5
9541 echo "${ECHO_T}no" >&6
9543 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9544 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9545 { (exit 1); exit 1; }; }
9546 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9547 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9548 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9549 echo $ECHO_N "(cached) $ECHO_C" >&6
9551 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9552 case `$LD -v 2>&1 </dev/null` in
9553 *GNU* | *'with BFD'*)
9554 lt_cv_prog_gnu_ld=yes
9557 lt_cv_prog_gnu_ld=no
9561 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9562 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9563 with_gnu_ld=$lt_cv_prog_gnu_ld
9567 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9568 # archiving commands below assume that GNU ld is being used.
9569 if test "$with_gnu_ld" = yes; then
9570 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9571 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'
9573 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9574 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9576 # If archive_cmds runs LD, not CC, wlarc should be empty
9577 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9578 # investigate it a little bit more. (MM)
9581 # ancient GNU ld didn't support --whole-archive et. al.
9582 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9583 grep 'no-whole-archive' > /dev/null; then
9584 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9586 whole_archive_flag_spec_CXX=
9592 # A generic and very simple default shared library creation
9593 # command for GNU C++ for the case where it uses the native
9594 # linker, instead of GNU ld. If possible, this setting should
9595 # overridden to take advantage of the native linker features on
9596 # the platform it is being used on.
9597 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9600 # Commands to make compiler produce verbose output that lists
9601 # what "hidden" libraries, object files and flags are used when
9602 # linking a shared library.
9603 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9611 # PORTME: fill in a description of your system's C++ link characteristics
9612 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9613 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9617 # FIXME: insert proper C++ library support
9621 if test "$host_cpu" = ia64; then
9622 # On IA64, the linker does run time linking by default, so we don't
9623 # have to do anything special.
9624 aix_use_runtimelinking=no
9625 exp_sym_flag='-Bexport'
9628 aix_use_runtimelinking=no
9630 # Test if we are trying to use run time linking or normal
9631 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9632 # need to do runtime linking.
9633 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9634 for ld_flag in $LDFLAGS; do
9637 aix_use_runtimelinking=yes
9644 exp_sym_flag='-bexport'
9645 no_entry_flag='-bnoentry'
9648 # When large executables or shared objects are built, AIX ld can
9649 # have problems creating the table of contents. If linking a library
9650 # or program results in "error TOC overflow" add -mminimal-toc to
9651 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9652 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9655 hardcode_direct_CXX=yes
9656 hardcode_libdir_separator_CXX=':'
9657 link_all_deplibs_CXX=yes
9659 if test "$GXX" = yes; then
9660 case $host_os in aix4.012|aix4.012.*)
9661 # We only want to do this on AIX 4.2 and lower, the check
9662 # below for broken collect2 doesn't work under 4.3+
9663 collect2name=`${CC} -print-prog-name=collect2`
9664 if test -f "$collect2name" && \
9665 strings "$collect2name" | grep resolve_lib_name >/dev/null
9667 # We have reworked collect2
9668 hardcode_direct_CXX=yes
9670 # We have old collect2
9671 hardcode_direct_CXX=unsupported
9672 # It fails to find uninstalled libraries when the uninstalled
9673 # path is not listed in the libpath. Setting hardcode_minus_L
9674 # to unsupported forces relinking
9675 hardcode_minus_L_CXX=yes
9676 hardcode_libdir_flag_spec_CXX='-L$libdir'
9677 hardcode_libdir_separator_CXX=
9680 shared_flag='-shared'
9683 if test "$host_cpu" = ia64; then
9684 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9685 # chokes on -Wl,-G. The following line is correct:
9688 if test "$aix_use_runtimelinking" = yes; then
9689 shared_flag='${wl}-G'
9691 shared_flag='${wl}-bM:SRE'
9696 # It seems that -bexpall does not export symbols beginning with
9697 # underscore (_), so it is better to generate a list of symbols to export.
9698 always_export_symbols_CXX=yes
9699 if test "$aix_use_runtimelinking" = yes; then
9700 # Warning - without using the other runtime loading flags (-brtl),
9701 # -berok will link without error, but may produce a broken library.
9702 allow_undefined_flag_CXX='-berok'
9703 # Determine the default libpath from the value encoded in an empty executable.
9704 cat >conftest.$ac_ext <<_ACEOF
9707 cat confdefs.h >>conftest.$ac_ext
9708 cat >>conftest.$ac_ext <<_ACEOF
9709 /* end confdefs.h. */
9719 rm -f conftest.$ac_objext conftest$ac_exeext
9720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9721 (eval $ac_link) 2>conftest.er1
9723 grep -v '^ *+' conftest.er1 >conftest.err
9725 cat conftest.err >&5
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); } &&
9728 { ac_try='test -z "$ac_cxx_werror_flag"
9729 || test ! -s conftest.err'
9730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; } &&
9735 { ac_try='test -s conftest$ac_exeext'
9736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); }; }; then
9742 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9744 # Check for a 64-bit object if we didn't find anything.
9745 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; }
9748 echo "$as_me: failed program was:" >&5
9749 sed 's/^/| /' conftest.$ac_ext >&5
9752 rm -f conftest.err conftest.$ac_objext \
9753 conftest$ac_exeext conftest.$ac_ext
9754 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9756 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9758 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"
9760 if test "$host_cpu" = ia64; then
9761 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9762 allow_undefined_flag_CXX="-z nodefs"
9763 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"
9765 # Determine the default libpath from the value encoded in an empty executable.
9766 cat >conftest.$ac_ext <<_ACEOF
9769 cat confdefs.h >>conftest.$ac_ext
9770 cat >>conftest.$ac_ext <<_ACEOF
9771 /* end confdefs.h. */
9781 rm -f conftest.$ac_objext conftest$ac_exeext
9782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9783 (eval $ac_link) 2>conftest.er1
9785 grep -v '^ *+' conftest.er1 >conftest.err
9787 cat conftest.err >&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); } &&
9790 { ac_try='test -z "$ac_cxx_werror_flag"
9791 || test ! -s conftest.err'
9792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); }; } &&
9797 { ac_try='test -s conftest$ac_exeext'
9798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; }; then
9804 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9806 # Check for a 64-bit object if we didn't find anything.
9807 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; }
9810 echo "$as_me: failed program was:" >&5
9811 sed 's/^/| /' conftest.$ac_ext >&5
9814 rm -f conftest.err conftest.$ac_objext \
9815 conftest$ac_exeext conftest.$ac_ext
9816 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9818 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9819 # Warning - without using the other run time loading flags,
9820 # -berok will link without error, but may produce a broken library.
9821 no_undefined_flag_CXX=' ${wl}-bernotok'
9822 allow_undefined_flag_CXX=' ${wl}-berok'
9823 # -bexpall does not export symbols beginning with underscore (_)
9824 always_export_symbols_CXX=yes
9825 # Exported symbols can be pulled into shared objects from archives
9826 whole_archive_flag_spec_CXX=' '
9827 archive_cmds_need_lc_CXX=yes
9828 # This is similar to how AIX traditionally builds it's shared libraries.
9829 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'
9834 case $cc_basename in
9836 # FIXME: insert proper C++ library support
9843 cygwin* | mingw* | pw32*)
9844 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9845 # as there is no search path for DLLs.
9846 hardcode_libdir_flag_spec_CXX='-L$libdir'
9847 allow_undefined_flag_CXX=unsupported
9848 always_export_symbols_CXX=no
9849 enable_shared_with_static_runtimes_CXX=yes
9851 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9852 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'
9853 # If the export-symbols file already is a .def file (1st line
9854 # is EXPORTS), use it as is; otherwise, prepend...
9855 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9856 cp $export_symbols $output_objdir/$soname.def;
9858 echo EXPORTS > $output_objdir/$soname.def;
9859 cat $export_symbols >> $output_objdir/$soname.def;
9860 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'
9865 darwin* | rhapsody*)
9867 rhapsody* | darwin1.[012])
9868 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
9871 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9872 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9874 case ${MACOSX_DEPLOYMENT_TARGET} in
9876 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9879 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
9885 archive_cmds_need_lc_CXX=no
9886 hardcode_direct_CXX=no
9887 hardcode_automatic_CXX=yes
9888 hardcode_shlibpath_var_CXX=unsupported
9889 whole_archive_flag_spec_CXX=''
9890 link_all_deplibs_CXX=yes
9892 if test "$GXX" = yes ; then
9893 lt_int_apple_cc_single_mod=no
9894 output_verbose_link_cmd='echo'
9895 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9896 lt_int_apple_cc_single_mod=yes
9898 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9899 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9901 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'
9903 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9904 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9905 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9906 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}'
9908 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}'
9910 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}'
9912 case "$cc_basename" in
9914 output_verbose_link_cmd='echo'
9915 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'
9916 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9917 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9918 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}'
9919 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}'
9929 case $cc_basename in
9931 # FIXME: insert proper C++ library support
9935 # Green Hills C++ Compiler
9936 # FIXME: insert proper C++ library support
9940 # FIXME: insert proper C++ library support
9946 # C++ shared libraries reported to be fairly broken before switch to ELF
9950 archive_cmds_need_lc_CXX=no
9952 freebsd* | kfreebsd*-gnu)
9953 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9960 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9961 hardcode_libdir_separator_CXX=:
9962 export_dynamic_flag_spec_CXX='${wl}-E'
9963 hardcode_direct_CXX=yes
9964 hardcode_minus_L_CXX=yes # Not in the search PATH,
9965 # but as the default
9966 # location of the library.
9968 case $cc_basename in
9970 # FIXME: insert proper C++ library support
9974 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'
9975 # Commands to make compiler produce verbose output that lists
9976 # what "hidden" libraries, object files and flags are used when
9977 # linking a shared library.
9979 # There doesn't appear to be a way to prevent this compiler from
9980 # explicitly linking system object files so we need to strip them
9981 # from the output so that they don't get included in the library
9983 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'
9986 if test "$GXX" = yes; then
9987 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'
9989 # FIXME: insert proper C++ library support
9996 if test $with_gnu_ld = no; then
9999 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10000 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10001 hardcode_libdir_separator_CXX=:
10004 hardcode_libdir_flag_spec_CXX='-L$libdir'
10007 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10008 hardcode_libdir_separator_CXX=:
10009 export_dynamic_flag_spec_CXX='${wl}-E'
10013 case "$host_cpu" in
10015 hardcode_direct_CXX=no
10016 hardcode_shlibpath_var_CXX=no
10019 hardcode_direct_CXX=no
10020 hardcode_shlibpath_var_CXX=no
10021 hardcode_minus_L_CXX=yes # Not in the search PATH,
10022 # but as the default
10023 # location of the library.
10026 hardcode_direct_CXX=yes
10027 hardcode_minus_L_CXX=yes # Not in the search PATH,
10028 # but as the default
10029 # location of the library.
10033 case $cc_basename in
10035 # FIXME: insert proper C++ library support
10039 case "$host_cpu" in
10041 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10044 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10047 # Commands to make compiler produce verbose output that lists
10048 # what "hidden" libraries, object files and flags are used when
10049 # linking a shared library.
10051 # There doesn't appear to be a way to prevent this compiler from
10052 # explicitly linking system object files so we need to strip them
10053 # from the output so that they don't get included in the library
10055 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'
10058 if test "$GXX" = yes; then
10059 if test $with_gnu_ld = no; then
10060 case "$host_cpu" in
10062 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10065 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'
10070 # FIXME: insert proper C++ library support
10077 case $cc_basename in
10080 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'
10082 # Archives containing C++ object files must be created using
10083 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10084 # necessary to make sure instantiated templates are included
10086 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10089 if test "$GXX" = yes; then
10090 if test "$with_gnu_ld" = no; then
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` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10093 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'
10096 link_all_deplibs_CXX=yes
10099 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10100 hardcode_libdir_separator_CXX=:
10103 case $cc_basename in
10105 # Kuck and Associates, Inc. (KAI) C++ Compiler
10107 # KCC will only create a shared library if the output file
10108 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10109 # to its proper name (with version) after linking.
10110 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'
10111 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'
10112 # Commands to make compiler produce verbose output that lists
10113 # what "hidden" libraries, object files and flags are used when
10114 # linking a shared library.
10116 # There doesn't appear to be a way to prevent this compiler from
10117 # explicitly linking system object files so we need to strip them
10118 # from the output so that they don't get included in the library
10120 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'
10122 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10123 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10125 # Archives containing C++ object files must be created using
10126 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10127 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10132 # version 8.0 and above of icpc choke on multiply defined symbols
10133 # if we add $predep_objects and $postdep_objects, however 7.1 and
10134 # earlier do not add the objects themselves.
10135 case `$CC -V 2>&1` in
10137 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10138 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'
10140 *) # Version 8.0 or newer
10141 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10142 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10145 archive_cmds_need_lc_CXX=no
10146 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10147 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10148 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10152 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10153 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'
10155 runpath_var=LD_RUN_PATH
10156 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10157 hardcode_libdir_separator_CXX=:
10159 # Commands to make compiler produce verbose output that lists
10160 # what "hidden" libraries, object files and flags are used when
10161 # linking a shared library.
10163 # There doesn't appear to be a way to prevent this compiler from
10164 # explicitly linking system object files so we need to strip them
10165 # from the output so that they don't get included in the library
10167 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'
10172 # FIXME: insert proper C++ library support
10176 # FIXME: insert proper C++ library support
10180 case $cc_basename in
10182 # FIXME: insert proper C++ library support
10186 # FIXME: insert proper C++ library support
10192 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10193 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10195 hardcode_libdir_flag_spec_CXX='-R$libdir'
10196 hardcode_direct_CXX=yes
10197 hardcode_shlibpath_var_CXX=no
10199 # Workaround some broken pre-1.5 toolchains
10200 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10203 # C++ shared libraries are fairly broken
10207 hardcode_direct_CXX=yes
10208 hardcode_shlibpath_var_CXX=no
10209 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10210 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10211 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10212 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10213 export_dynamic_flag_spec_CXX='${wl}-E'
10214 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10216 output_verbose_link_cmd='echo'
10219 case $cc_basename in
10221 # Kuck and Associates, Inc. (KAI) C++ Compiler
10223 # KCC will only create a shared library if the output file
10224 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10225 # to its proper name (with version) after linking.
10226 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10228 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10229 hardcode_libdir_separator_CXX=:
10231 # Archives containing C++ object files must be created using
10232 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10233 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10237 # Rational C++ 2.4.1
10238 # FIXME: insert proper C++ library support
10242 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10243 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'
10245 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10246 hardcode_libdir_separator_CXX=:
10248 # Commands to make compiler produce verbose output that lists
10249 # what "hidden" libraries, object files and flags are used when
10250 # linking a shared library.
10252 # There doesn't appear to be a way to prevent this compiler from
10253 # explicitly linking system object files so we need to strip them
10254 # from the output so that they don't get included in the library
10256 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'
10259 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10260 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10261 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'
10263 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10264 hardcode_libdir_separator_CXX=:
10266 # Commands to make compiler produce verbose output that lists
10267 # what "hidden" libraries, object files and flags are used when
10268 # linking a shared library.
10269 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10272 # FIXME: insert proper C++ library support
10279 case $cc_basename in
10281 # Kuck and Associates, Inc. (KAI) C++ Compiler
10283 # KCC will only create a shared library if the output file
10284 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10285 # to its proper name (with version) after linking.
10286 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'
10288 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10289 hardcode_libdir_separator_CXX=:
10291 # Archives containing C++ object files must be created using
10292 # the KAI C++ compiler.
10293 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10296 # Rational C++ 2.4.1
10297 # FIXME: insert proper C++ library support
10301 allow_undefined_flag_CXX=' -expect_unresolved \*'
10302 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'
10303 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'
10305 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10306 hardcode_libdir_separator_CXX=:
10308 # Commands to make compiler produce verbose output that lists
10309 # what "hidden" libraries, object files and flags are used when
10310 # linking a shared library.
10312 # There doesn't appear to be a way to prevent this compiler from
10313 # explicitly linking system object files so we need to strip them
10314 # from the output so that they don't get included in the library
10316 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'
10319 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10320 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10321 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'
10323 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10324 hardcode_libdir_separator_CXX=:
10326 # Commands to make compiler produce verbose output that lists
10327 # what "hidden" libraries, object files and flags are used when
10328 # linking a shared library.
10329 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10332 # FIXME: insert proper C++ library support
10339 # FIXME: insert proper C++ library support
10343 archive_cmds_need_lc_CXX=no
10344 case $cc_basename in
10346 # FIXME: insert proper C++ library support
10350 # FIXME: insert proper C++ library support
10356 case $cc_basename in
10359 # FIXME: insert proper C++ library support
10364 # FIXME: insert proper C++ library support
10368 # FIXME: insert proper C++ library support
10374 case $cc_basename in
10376 # Sun C++ 4.2, 5.x and Centerline C++
10377 no_undefined_flag_CXX=' -zdefs'
10378 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10379 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'
10381 hardcode_libdir_flag_spec_CXX='-R$libdir'
10382 hardcode_shlibpath_var_CXX=no
10384 solaris2.0-5 | solaris2.0-5.*) ;;
10386 # The C++ compiler is used as linker so we must use $wl
10387 # flag to pass the commands to the underlying system
10389 # Supported since Solaris 2.6 (maybe 2.5.1?)
10390 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10393 link_all_deplibs_CXX=yes
10395 # Commands to make compiler produce verbose output that lists
10396 # what "hidden" libraries, object files and flags are used when
10397 # linking a shared library.
10399 # There doesn't appear to be a way to prevent this compiler from
10400 # explicitly linking system object files so we need to strip them
10401 # from the output so that they don't get included in the library
10403 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'
10405 # Archives containing C++ object files must be created using
10406 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10407 # necessary to make sure instantiated templates are included
10409 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10412 # Green Hills C++ Compiler
10413 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10415 # The C++ compiler must be used to create the archive.
10416 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10419 # GNU C++ compiler with Solaris linker
10420 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10421 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10422 if $CC --version | grep -v '^2\.7' > /dev/null; then
10423 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10424 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'
10425 # Commands to make compiler produce verbose output that lists
10426 # what "hidden" libraries, object files and flags are used when
10427 # linking a shared library.
10428 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10430 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10432 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10433 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp;
10434 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags;$rm $lib.exp'
10436 # Commands to make compiler produce verbose output that lists
10437 # what "hidden" libraries, object files and flags are used when
10438 # linking a shared library.
10439 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10442 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10447 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10448 archive_cmds_need_lc_CXX=no
10451 case $cc_basename in
10453 # NonStop-UX NCC 3.20
10454 # FIXME: insert proper C++ library support
10458 # FIXME: insert proper C++ library support
10464 # FIXME: insert proper C++ library support
10468 # FIXME: insert proper C++ library support
10472 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10473 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10474 test "$ld_shlibs_CXX" = no && can_build_shared=no
10480 cat > conftest.$ac_ext <<EOF
10484 Foo (void) { a = 0; }
10490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10491 (eval $ac_compile) 2>&5
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); }; then
10495 # Parse the compiler output and extract the necessary
10496 # objects, libraries and library flags.
10498 # Sentinel used to keep track of whether or not we are before
10499 # the conftest object file.
10500 pre_test_object_deps_done=no
10502 # The `*' in the case matches for architectures that use `case' in
10503 # $output_verbose_cmd can trigger glob expansion during the loop
10504 # eval without this substitution.
10505 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10507 for p in `eval $output_verbose_link_cmd`; do
10511 # Some compilers place space between "-{L,R}" and the path.
10512 # Remove the space.
10513 if test $p = "-L" \
10514 || test $p = "-R"; then
10521 if test "$pre_test_object_deps_done" = no; then
10524 # Internal compiler library paths should come after those
10525 # provided the user. The postdeps already come after the
10526 # user supplied libs so there is no need to process them.
10527 if test -z "$compiler_lib_search_path_CXX"; then
10528 compiler_lib_search_path_CXX="${prev}${p}"
10530 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10533 # The "-l" case would never come before the object being
10534 # linked, so don't bother handling this case.
10537 if test -z "$postdeps_CXX"; then
10538 postdeps_CXX="${prev}${p}"
10540 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10546 # This assumes that the test object file only shows up
10547 # once in the compiler output.
10548 if test "$p" = "conftest.$objext"; then
10549 pre_test_object_deps_done=yes
10553 if test "$pre_test_object_deps_done" = no; then
10554 if test -z "$predep_objects_CXX"; then
10555 predep_objects_CXX="$p"
10557 predep_objects_CXX="$predep_objects_CXX $p"
10560 if test -z "$postdep_objects_CXX"; then
10561 postdep_objects_CXX="$p"
10563 postdep_objects_CXX="$postdep_objects_CXX $p"
10568 *) ;; # Ignore the rest.
10576 echo "libtool.m4: error: problem compiling CXX test program"
10579 $rm -f confest.$objext
10581 case " $postdeps_CXX " in
10582 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10585 lt_prog_compiler_wl_CXX=
10586 lt_prog_compiler_pic_CXX=
10587 lt_prog_compiler_static_CXX=
10589 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10590 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10592 # C++ specific cases for pic, static, wl, etc.
10593 if test "$GXX" = yes; then
10594 lt_prog_compiler_wl_CXX='-Wl,'
10595 lt_prog_compiler_static_CXX='-static'
10599 # All AIX code is PIC.
10600 if test "$host_cpu" = ia64; then
10601 # AIX 5 now supports IA64 processor
10602 lt_prog_compiler_static_CXX='-Bstatic'
10606 # FIXME: we need at least 68020 code to build shared libraries, but
10607 # adding the `-m68020' flag to GCC prevents building anything better,
10609 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10611 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10612 # PIC is the default for these OSes.
10614 mingw* | os2* | pw32*)
10615 # This hack is so that the source file can tell whether it is being
10616 # built for inclusion in a dll (and should export symbols for example).
10617 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10619 darwin* | rhapsody*)
10620 # PIC is the default on this platform
10621 # Common symbols not allowed in MH_DYLIB files
10622 lt_prog_compiler_pic_CXX='-fno-common'
10625 # DJGPP does not support shared libraries at all
10626 lt_prog_compiler_pic_CXX=
10629 if test -d /usr/nec; then
10630 lt_prog_compiler_pic_CXX=-Kconform_pic
10634 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10635 # not for PA HP-UX.
10636 case "$host_cpu" in
10640 lt_prog_compiler_pic_CXX='-fPIC'
10645 lt_prog_compiler_pic_CXX='-fPIC'
10651 # All AIX code is PIC.
10652 if test "$host_cpu" = ia64; then
10653 # AIX 5 now supports IA64 processor
10654 lt_prog_compiler_static_CXX='-Bstatic'
10656 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10660 case $cc_basename in
10662 # Green Hills C++ Compiler
10663 # _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"
10668 # PIC is the default on this platform
10669 # Common symbols not allowed in MH_DYLIB files
10670 case "$cc_basename" in
10672 lt_prog_compiler_pic_CXX='-qnocommon'
10673 lt_prog_compiler_wl_CXX='-Wl,'
10678 case $cc_basename in
10680 lt_prog_compiler_pic_CXX='-KPIC'
10683 # Green Hills C++ Compiler
10684 lt_prog_compiler_pic_CXX='-pic'
10690 freebsd* | kfreebsd*-gnu)
10691 # FreeBSD uses GNU C++
10693 hpux9* | hpux10* | hpux11*)
10694 case $cc_basename in
10696 lt_prog_compiler_wl_CXX='-Wl,'
10697 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10698 if test "$host_cpu" != ia64; then
10699 lt_prog_compiler_pic_CXX='+Z'
10703 lt_prog_compiler_wl_CXX='-Wl,'
10704 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10705 case "$host_cpu" in
10710 lt_prog_compiler_pic_CXX='+Z'
10718 irix5* | irix6* | nonstopux*)
10719 case $cc_basename in
10721 lt_prog_compiler_wl_CXX='-Wl,'
10722 lt_prog_compiler_static_CXX='-non_shared'
10723 # CC pic flag -KPIC is the default.
10730 case $cc_basename in
10733 lt_prog_compiler_wl_CXX='--backend -Wl,'
10734 lt_prog_compiler_pic_CXX='-fPIC'
10738 lt_prog_compiler_wl_CXX='-Wl,'
10739 lt_prog_compiler_pic_CXX='-KPIC'
10740 lt_prog_compiler_static_CXX='-static'
10744 # Make sure the PIC flag is empty. It appears that all Alpha
10745 # Linux and Compaq Tru64 Unix objects are PIC.
10746 lt_prog_compiler_pic_CXX=
10747 lt_prog_compiler_static_CXX='-non_shared'
10758 case $cc_basename in
10760 lt_prog_compiler_pic_CXX='-W c,exportall'
10768 osf3* | osf4* | osf5*)
10769 case $cc_basename in
10771 lt_prog_compiler_wl_CXX='--backend -Wl,'
10774 # Rational C++ 2.4.1
10775 lt_prog_compiler_pic_CXX='-pic'
10778 # Digital/Compaq C++
10779 lt_prog_compiler_wl_CXX='-Wl,'
10780 # Make sure the PIC flag is empty. It appears that all Alpha
10781 # Linux and Compaq Tru64 Unix objects are PIC.
10782 lt_prog_compiler_pic_CXX=
10783 lt_prog_compiler_static_CXX='-non_shared'
10792 case $cc_basename in
10794 lt_prog_compiler_pic_CXX='-fPIC'
10801 case $cc_basename in
10803 # Sun C++ 4.2, 5.x and Centerline C++
10804 lt_prog_compiler_pic_CXX='-KPIC'
10805 lt_prog_compiler_static_CXX='-Bstatic'
10806 lt_prog_compiler_wl_CXX='-Qoption ld '
10809 # Green Hills C++ Compiler
10810 lt_prog_compiler_pic_CXX='-PIC'
10817 case $cc_basename in
10820 lt_prog_compiler_pic_CXX='-pic'
10821 lt_prog_compiler_static_CXX='-Bstatic'
10825 lt_prog_compiler_pic_CXX='-pic'
10832 case $cc_basename in
10834 # NonStop-UX NCC 3.20
10835 lt_prog_compiler_pic_CXX='-KPIC'
10846 lt_prog_compiler_can_build_shared_CXX=no
10851 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10852 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10855 # Check to make sure the PIC flag actually works.
10857 if test -n "$lt_prog_compiler_pic_CXX"; then
10859 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10860 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10861 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10862 echo $ECHO_N "(cached) $ECHO_C" >&6
10864 lt_prog_compiler_pic_works_CXX=no
10865 ac_outfile=conftest.$ac_objext
10866 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10867 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10868 # Insert the option either (1) after the last *FLAGS variable, or
10869 # (2) before a word containing "conftest.", or (3) at the end.
10870 # Note that $ac_compile itself does not contain backslashes and begins
10871 # with a dollar sign (not a hyphen), so the echo should work correctly.
10872 # The option is referenced via a variable to avoid confusing sed.
10873 lt_compile=`echo "$ac_compile" | $SED \
10874 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10875 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10876 -e 's:$: $lt_compiler_flag:'`
10877 (eval echo "\"\$as_me:10877: $lt_compile\"" >&5)
10878 (eval "$lt_compile" 2>conftest.err)
10880 cat conftest.err >&5
10881 echo "$as_me:10881: \$? = $ac_status" >&5
10882 if (exit $ac_status) && test -s "$ac_outfile"; then
10883 # The compiler can only warn and ignore the option if not recognized
10884 # So say no if there are warnings
10885 if test ! -s conftest.err; then
10886 lt_prog_compiler_pic_works_CXX=yes
10892 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10893 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10895 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10896 case $lt_prog_compiler_pic_CXX in
10898 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10901 lt_prog_compiler_pic_CXX=
10902 lt_prog_compiler_can_build_shared_CXX=no
10907 # For platforms which do not support PIC, -DPIC is meaningless:
10909 lt_prog_compiler_pic_CXX=
10912 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10916 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10917 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10918 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10919 echo $ECHO_N "(cached) $ECHO_C" >&6
10921 lt_cv_prog_compiler_c_o_CXX=no
10922 $rm -r conftest 2>/dev/null
10926 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10928 lt_compiler_flag="-o out/conftest2.$ac_objext"
10929 # Insert the option either (1) after the last *FLAGS variable, or
10930 # (2) before a word containing "conftest.", or (3) at the end.
10931 # Note that $ac_compile itself does not contain backslashes and begins
10932 # with a dollar sign (not a hyphen), so the echo should work correctly.
10933 lt_compile=`echo "$ac_compile" | $SED \
10934 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10935 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10936 -e 's:$: $lt_compiler_flag:'`
10937 (eval echo "\"\$as_me:10937: $lt_compile\"" >&5)
10938 (eval "$lt_compile" 2>out/conftest.err)
10940 cat out/conftest.err >&5
10941 echo "$as_me:10941: \$? = $ac_status" >&5
10942 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10944 # The compiler can only warn and ignore the option if not recognized
10945 # So say no if there are warnings
10946 if test ! -s out/conftest.err; then
10947 lt_cv_prog_compiler_c_o_CXX=yes
10952 # SGI C++ compiler will create directory out/ii_files/ for
10953 # template instantiation
10954 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10955 $rm out/* && rmdir out
10961 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10962 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10965 hard_links="nottested"
10966 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10967 # do not overwrite the value of need_locks provided by the user
10968 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10969 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10972 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10974 ln conftest.a conftest.b 2>&5 || hard_links=no
10975 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10976 echo "$as_me:$LINENO: result: $hard_links" >&5
10977 echo "${ECHO_T}$hard_links" >&6
10978 if test "$hard_links" = no; then
10979 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10980 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10987 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10988 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10990 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10993 # If we're using GNU nm, then we don't want the "-C" option.
10994 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10995 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10996 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'
10998 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'
11002 export_symbols_cmds_CXX="$ltdll_cmds"
11005 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11008 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11012 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11013 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11014 test "$ld_shlibs_CXX" = no && can_build_shared=no
11016 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11017 if test "$GCC" = yes; then
11018 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11022 # Do we need to explicitly link libc?
11024 case "x$archive_cmds_need_lc_CXX" in
11026 # Assume -lc should be added
11027 archive_cmds_need_lc_CXX=yes
11029 if test "$enable_shared" = yes && test "$GCC" = yes; then
11030 case $archive_cmds_CXX in
11032 # FIXME: we may have to deal with multi-command sequences.
11035 # Test whether the compiler implicitly links with -lc since on some
11036 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11037 # to ld, don't add -lc before -lgcc.
11038 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11039 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11041 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11044 (eval $ac_compile) 2>&5
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); } 2>conftest.err; then
11050 libobjs=conftest.$ac_objext
11052 wl=$lt_prog_compiler_wl_CXX
11058 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11059 allow_undefined_flag_CXX=
11060 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11061 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); }
11066 archive_cmds_need_lc_CXX=no
11068 archive_cmds_need_lc_CXX=yes
11070 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11072 cat conftest.err 1>&5
11075 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11076 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11083 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11084 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11085 library_names_spec=
11086 libname_spec='lib$name'
11090 postuninstall_cmds=
11094 shlibpath_overrides_runpath=unknown
11096 dynamic_linker="$host_os ld.so"
11097 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11098 if test "$GCC" = yes; then
11099 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11100 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11101 # if the path contains ";" then we assume it to be the separator
11102 # otherwise default to the standard path separator (i.e. ":") - it is
11103 # assumed that no part of a normal pathname contains ";" but that should
11104 # okay in the real world where ";" in dirpaths is itself problematic.
11105 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11107 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11110 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11112 need_lib_prefix=unknown
11113 hardcode_into_libs=no
11115 # when you set need_version to no, make sure it does not cause -set_version
11116 # flags to be left without arguments
11117 need_version=unknown
11122 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11123 shlibpath_var=LIBPATH
11125 # AIX 3 has no versioning support, so we append a major version to the name.
11126 soname_spec='${libname}${release}${shared_ext}$major'
11133 hardcode_into_libs=yes
11134 if test "$host_cpu" = ia64; then
11135 # AIX 5 supports IA64
11136 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11137 shlibpath_var=LD_LIBRARY_PATH
11139 # With GCC up to 2.95.x, collect2 would create an import file
11140 # for dependence libraries. The import file would start with
11141 # the line `#! .'. This would cause the generated library to
11142 # depend on `.', always an invalid library. This was fixed in
11143 # development snapshots of GCC prior to 3.0.
11145 aix4 | aix4.[01] | aix4.[01].*)
11146 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11148 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11151 can_build_shared=no
11155 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11156 # soname into executable. Probably we can add versioning support to
11157 # collect2, so additional links can be useful in future.
11158 if test "$aix_use_runtimelinking" = yes; then
11159 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11160 # instead of lib<name>.a to let people know that these are not
11161 # typical AIX shared libraries.
11162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11164 # We preserve .a as extension for shared libraries through AIX4.2
11165 # and later when we are not doing run time linking.
11166 library_names_spec='${libname}${release}.a $libname.a'
11167 soname_spec='${libname}${release}${shared_ext}$major'
11169 shlibpath_var=LIBPATH
11174 library_names_spec='$libname.ixlibrary $libname.a'
11175 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11176 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'
11180 library_names_spec='${libname}${shared_ext}'
11181 dynamic_linker="$host_os ld.so"
11182 shlibpath_var=LIBRARY_PATH
11188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11189 soname_spec='${libname}${release}${shared_ext}$major'
11190 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11191 shlibpath_var=LD_LIBRARY_PATH
11192 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11193 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11194 # the default ld.so.conf also contains /usr/contrib/lib and
11195 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11196 # libtool to hard-code these into programs
11199 cygwin* | mingw* | pw32*)
11200 version_type=windows
11205 case $GCC,$host_os in
11206 yes,cygwin* | yes,mingw* | yes,pw32*)
11207 library_names_spec='$libname.dll.a'
11208 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11209 postinstall_cmds='base_file=`basename \${file}`;
11210 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
11211 dldir=$destdir/`dirname \$dlpath`;
11212 test -d \$dldir || mkdir -p \$dldir;
11213 $install_prog $dir/$dlname \$dldir/$dlname'
11214 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
11215 dlpath=$dir/\$dldll;
11217 shlibpath_overrides_runpath=yes
11221 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11222 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11223 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11226 # MinGW DLLs use traditional 'lib' prefix
11227 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11228 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11229 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11230 # It is most probably a Windows format PATH printed by
11231 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11232 # path with ; separators, and with drive letters. We can handle the
11233 # drive letters (cygwin fileutils understands them), so leave them,
11234 # especially as we might pass files found there to a mingw objdump,
11235 # which wouldn't understand a cygwinified path. Ahh.
11236 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11238 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11242 # pw32 DLLs use 'pw' prefix rather than 'lib'
11243 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11249 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11252 dynamic_linker='Win32 ld.exe'
11253 # FIXME: first we should search . and the directory the executable is in
11257 darwin* | rhapsody*)
11258 dynamic_linker="$host_os dyld"
11259 version_type=darwin
11262 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11263 soname_spec='${libname}${release}${major}$shared_ext'
11264 shlibpath_overrides_runpath=yes
11265 shlibpath_var=DYLD_LIBRARY_PATH
11266 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11267 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11268 if test "$GCC" = yes; then
11269 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"`
11271 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11273 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11281 soname_spec='${libname}${release}${shared_ext}$major'
11282 shlibpath_var=LD_LIBRARY_PATH
11293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11294 soname_spec='${libname}${release}${shared_ext}$major'
11295 shlibpath_var=LD_LIBRARY_PATH
11296 shlibpath_overrides_runpath=no
11297 hardcode_into_libs=yes
11298 dynamic_linker='GNU ld.so'
11302 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11303 version_type=freebsd-$objformat
11304 case $version_type in
11306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11311 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11315 shlibpath_var=LD_LIBRARY_PATH
11318 shlibpath_overrides_runpath=yes
11320 freebsd3.01* | freebsdelf3.01*)
11321 shlibpath_overrides_runpath=yes
11322 hardcode_into_libs=yes
11325 shlibpath_overrides_runpath=no
11326 hardcode_into_libs=yes
11335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11336 soname_spec='${libname}${release}${shared_ext}$major'
11337 shlibpath_var=LD_LIBRARY_PATH
11338 hardcode_into_libs=yes
11341 hpux9* | hpux10* | hpux11*)
11342 # Give a soname corresponding to the major version so that dld.sl refuses to
11343 # link against other versions.
11347 case "$host_cpu" in
11350 hardcode_into_libs=yes
11351 dynamic_linker="$host_os dld.so"
11352 shlibpath_var=LD_LIBRARY_PATH
11353 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11355 soname_spec='${libname}${release}${shared_ext}$major'
11356 if test "X$HPUX_IA64_MODE" = X32; then
11357 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11359 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11361 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11365 hardcode_into_libs=yes
11366 dynamic_linker="$host_os dld.sl"
11367 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11368 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11370 soname_spec='${libname}${release}${shared_ext}$major'
11371 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11372 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11376 dynamic_linker="$host_os dld.sl"
11377 shlibpath_var=SHLIB_PATH
11378 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11380 soname_spec='${libname}${release}${shared_ext}$major'
11383 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11384 postinstall_cmds='chmod 555 $lib'
11387 irix5* | irix6* | nonstopux*)
11389 nonstopux*) version_type=nonstopux ;;
11391 if test "$lt_cv_prog_gnu_ld" = yes; then
11399 soname_spec='${libname}${release}${shared_ext}$major'
11400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11402 irix5* | nonstopux*)
11403 libsuff= shlibsuff=
11406 case $LD in # libtool.m4 will add one of these switches to LD
11407 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11408 libsuff= shlibsuff= libmagic=32-bit;;
11409 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11410 libsuff=32 shlibsuff=N32 libmagic=N32;;
11411 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11412 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11413 *) libsuff= shlibsuff= libmagic=never-match;;
11417 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11418 shlibpath_overrides_runpath=no
11419 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11420 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11421 hardcode_into_libs=yes
11424 # No shared lib support for Linux oldld, aout, or coff.
11425 linux*oldld* | linux*aout* | linux*coff*)
11429 # This must be Linux ELF.
11434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11435 soname_spec='${libname}${release}${shared_ext}$major'
11436 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11437 shlibpath_var=LD_LIBRARY_PATH
11438 shlibpath_overrides_runpath=no
11439 # This implies no fast_install, which is unacceptable.
11440 # Some rework will be needed to allow for fast_install
11441 # before this can be enabled.
11442 hardcode_into_libs=yes
11444 # Append ld.so.conf contents to the search path
11445 if test -f /etc/ld.so.conf; then
11446 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11447 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11450 # We used to test for /lib/ld.so.1 and disable shared libraries on
11451 # powerpc, because MkLinux only supported shared libraries with the
11452 # GNU dynamic linker. Since this was broken with cross compilers,
11453 # most powerpc-linux boxes support dynamic linking these days and
11454 # people can always --disable-shared, the test was removed, and we
11455 # assume the GNU/Linux dynamic linker is in use.
11456 dynamic_linker='GNU/Linux ld.so'
11463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11464 soname_spec='${libname}${release}${shared_ext}$major'
11465 shlibpath_var=LD_LIBRARY_PATH
11466 shlibpath_overrides_runpath=no
11467 hardcode_into_libs=yes
11468 dynamic_linker='GNU ld.so'
11475 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11477 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11478 dynamic_linker='NetBSD (a.out) ld.so'
11480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11481 soname_spec='${libname}${release}${shared_ext}$major'
11482 dynamic_linker='NetBSD ld.elf_so'
11484 shlibpath_var=LD_LIBRARY_PATH
11485 shlibpath_overrides_runpath=yes
11486 hardcode_into_libs=yes
11491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11492 shlibpath_var=LD_LIBRARY_PATH
11493 shlibpath_overrides_runpath=yes
11500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11501 soname_spec='${libname}${release}${shared_ext}$major'
11502 shlibpath_var=LD_LIBRARY_PATH
11503 shlibpath_overrides_runpath=yes
11510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11511 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11512 shlibpath_var=LD_LIBRARY_PATH
11513 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11515 openbsd2.[89] | openbsd2.[89].*)
11516 shlibpath_overrides_runpath=no
11519 shlibpath_overrides_runpath=yes
11523 shlibpath_overrides_runpath=yes
11528 libname_spec='$name'
11531 library_names_spec='$libname${shared_ext} $libname.a'
11532 dynamic_linker='OS/2 ld.exe'
11533 shlibpath_var=LIBPATH
11536 osf3* | osf4* | osf5*)
11540 soname_spec='${libname}${release}${shared_ext}$major'
11541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11542 shlibpath_var=LD_LIBRARY_PATH
11543 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11544 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11549 soname_spec='${libname}${release}${shared_ext}$major'
11550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11551 shlibpath_var=LD_LIBRARY_PATH
11558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11559 soname_spec='${libname}${release}${shared_ext}$major'
11560 shlibpath_var=LD_LIBRARY_PATH
11561 shlibpath_overrides_runpath=yes
11562 hardcode_into_libs=yes
11563 # ldd complains unless libraries are executable
11564 postinstall_cmds='chmod +x $lib'
11569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11570 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11571 shlibpath_var=LD_LIBRARY_PATH
11572 shlibpath_overrides_runpath=yes
11573 if test "$with_gnu_ld" = yes; then
11579 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11582 soname_spec='${libname}${release}${shared_ext}$major'
11583 shlibpath_var=LD_LIBRARY_PATH
11584 case $host_vendor in
11586 shlibpath_overrides_runpath=no
11588 export_dynamic_flag_spec='${wl}-Blargedynsym'
11589 runpath_var=LD_RUN_PATH
11597 shlibpath_overrides_runpath=no
11598 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11604 if test -d /usr/nec ;then
11606 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11607 soname_spec='$libname${shared_ext}.$major'
11608 shlibpath_var=LD_LIBRARY_PATH
11614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11615 soname_spec='${libname}${release}${shared_ext}$major'
11616 shlibpath_var=LD_LIBRARY_PATH
11623 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11624 echo "${ECHO_T}$dynamic_linker" >&6
11625 test "$dynamic_linker" = no && can_build_shared=no
11627 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11628 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11629 hardcode_action_CXX=
11630 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11631 test -n "$runpath_var_CXX" || \
11632 test "X$hardcode_automatic_CXX" = "Xyes" ; then
11634 # We can hardcode non-existant directories.
11635 if test "$hardcode_direct_CXX" != no &&
11636 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11637 # have to relink, otherwise we might link with an installed library
11638 # when we should be linking with a yet-to-be-installed one
11639 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11640 test "$hardcode_minus_L_CXX" != no; then
11641 # Linking always hardcodes the temporary library directory.
11642 hardcode_action_CXX=relink
11644 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11645 hardcode_action_CXX=immediate
11648 # We cannot hardcode anything, or else we can only hardcode existing
11650 hardcode_action_CXX=unsupported
11652 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11653 echo "${ECHO_T}$hardcode_action_CXX" >&6
11655 if test "$hardcode_action_CXX" = relink; then
11656 # Fast installation is not supported
11657 enable_fast_install=no
11658 elif test "$shlibpath_overrides_runpath" = yes ||
11659 test "$enable_shared" = no; then
11660 # Fast installation is not necessary
11661 enable_fast_install=needless
11666 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11667 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11668 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11669 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11670 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11671 echo "$as_me:$LINENO: result: yes" >&5
11672 echo "${ECHO_T}yes" >&6
11674 # FIXME - insert some real tests, host_os isn't really good enough
11677 if test -n "$STRIP" ; then
11678 striplib="$STRIP -x"
11679 echo "$as_me:$LINENO: result: yes" >&5
11680 echo "${ECHO_T}yes" >&6
11682 echo "$as_me:$LINENO: result: no" >&5
11683 echo "${ECHO_T}no" >&6
11687 echo "$as_me:$LINENO: result: no" >&5
11688 echo "${ECHO_T}no" >&6
11693 if test "x$enable_dlopen" != xyes; then
11694 enable_dlopen=unknown
11695 enable_dlopen_self=unknown
11696 enable_dlopen_self_static=unknown
11703 lt_cv_dlopen="load_add_on"
11705 lt_cv_dlopen_self=yes
11709 lt_cv_dlopen="LoadLibrary"
11714 lt_cv_dlopen="dlopen"
11719 # if libdl is installed we need to link against it
11720 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11721 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11722 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11723 echo $ECHO_N "(cached) $ECHO_C" >&6
11725 ac_check_lib_save_LIBS=$LIBS
11727 cat >conftest.$ac_ext <<_ACEOF
11730 cat confdefs.h >>conftest.$ac_ext
11731 cat >>conftest.$ac_ext <<_ACEOF
11732 /* end confdefs.h. */
11734 /* Override any gcc2 internal prototype to avoid an error. */
11738 /* We use char because int might match the return type of a gcc2
11739 builtin and then its argument prototype would still apply. */
11749 rm -f conftest.$ac_objext conftest$ac_exeext
11750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11751 (eval $ac_link) 2>conftest.er1
11753 grep -v '^ *+' conftest.er1 >conftest.err
11755 cat conftest.err >&5
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); } &&
11758 { ac_try='test -z "$ac_cxx_werror_flag"
11759 || test ! -s conftest.err'
11760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11761 (eval $ac_try) 2>&5
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); }; } &&
11765 { ac_try='test -s conftest$ac_exeext'
11766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11767 (eval $ac_try) 2>&5
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; }; then
11771 ac_cv_lib_dl_dlopen=yes
11773 echo "$as_me: failed program was:" >&5
11774 sed 's/^/| /' conftest.$ac_ext >&5
11776 ac_cv_lib_dl_dlopen=no
11778 rm -f conftest.err conftest.$ac_objext \
11779 conftest$ac_exeext conftest.$ac_ext
11780 LIBS=$ac_check_lib_save_LIBS
11782 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11783 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11784 if test $ac_cv_lib_dl_dlopen = yes; then
11785 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11788 lt_cv_dlopen="dyld"
11790 lt_cv_dlopen_self=yes
11797 echo "$as_me:$LINENO: checking for shl_load" >&5
11798 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11799 if test "${ac_cv_func_shl_load+set}" = set; then
11800 echo $ECHO_N "(cached) $ECHO_C" >&6
11802 cat >conftest.$ac_ext <<_ACEOF
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h. */
11808 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11810 #define shl_load innocuous_shl_load
11812 /* System header to define __stub macros and hopefully few prototypes,
11813 which can conflict with char shl_load (); below.
11814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11815 <limits.h> exists even on freestanding compilers. */
11818 # include <limits.h>
11820 # include <assert.h>
11825 /* Override any gcc2 internal prototype to avoid an error. */
11830 /* We use char because int might match the return type of a gcc2
11831 builtin and then its argument prototype would still apply. */
11833 /* The GNU C library defines this for functions which it implements
11834 to always fail with ENOSYS. Some functions are actually named
11835 something starting with __ and the normal name is an alias. */
11836 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11839 char (*f) () = shl_load;
11848 return f != shl_load;
11853 rm -f conftest.$ac_objext conftest$ac_exeext
11854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11855 (eval $ac_link) 2>conftest.er1
11857 grep -v '^ *+' conftest.er1 >conftest.err
11859 cat conftest.err >&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } &&
11862 { ac_try='test -z "$ac_cxx_werror_flag"
11863 || test ! -s conftest.err'
11864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11865 (eval $ac_try) 2>&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); }; } &&
11869 { ac_try='test -s conftest$ac_exeext'
11870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11871 (eval $ac_try) 2>&5
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); }; }; then
11875 ac_cv_func_shl_load=yes
11877 echo "$as_me: failed program was:" >&5
11878 sed 's/^/| /' conftest.$ac_ext >&5
11880 ac_cv_func_shl_load=no
11882 rm -f conftest.err conftest.$ac_objext \
11883 conftest$ac_exeext conftest.$ac_ext
11885 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11886 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11887 if test $ac_cv_func_shl_load = yes; then
11888 lt_cv_dlopen="shl_load"
11890 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11891 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11892 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11893 echo $ECHO_N "(cached) $ECHO_C" >&6
11895 ac_check_lib_save_LIBS=$LIBS
11897 cat >conftest.$ac_ext <<_ACEOF
11900 cat confdefs.h >>conftest.$ac_ext
11901 cat >>conftest.$ac_ext <<_ACEOF
11902 /* end confdefs.h. */
11904 /* Override any gcc2 internal prototype to avoid an error. */
11908 /* We use char because int might match the return type of a gcc2
11909 builtin and then its argument prototype would still apply. */
11919 rm -f conftest.$ac_objext conftest$ac_exeext
11920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11921 (eval $ac_link) 2>conftest.er1
11923 grep -v '^ *+' conftest.er1 >conftest.err
11925 cat conftest.err >&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); } &&
11928 { ac_try='test -z "$ac_cxx_werror_flag"
11929 || test ! -s conftest.err'
11930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11931 (eval $ac_try) 2>&5
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); }; } &&
11935 { ac_try='test -s conftest$ac_exeext'
11936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11937 (eval $ac_try) 2>&5
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); }; }; then
11941 ac_cv_lib_dld_shl_load=yes
11943 echo "$as_me: failed program was:" >&5
11944 sed 's/^/| /' conftest.$ac_ext >&5
11946 ac_cv_lib_dld_shl_load=no
11948 rm -f conftest.err conftest.$ac_objext \
11949 conftest$ac_exeext conftest.$ac_ext
11950 LIBS=$ac_check_lib_save_LIBS
11952 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11953 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11954 if test $ac_cv_lib_dld_shl_load = yes; then
11955 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11957 echo "$as_me:$LINENO: checking for dlopen" >&5
11958 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11959 if test "${ac_cv_func_dlopen+set}" = set; then
11960 echo $ECHO_N "(cached) $ECHO_C" >&6
11962 cat >conftest.$ac_ext <<_ACEOF
11965 cat confdefs.h >>conftest.$ac_ext
11966 cat >>conftest.$ac_ext <<_ACEOF
11967 /* end confdefs.h. */
11968 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11970 #define dlopen innocuous_dlopen
11972 /* System header to define __stub macros and hopefully few prototypes,
11973 which can conflict with char dlopen (); below.
11974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11975 <limits.h> exists even on freestanding compilers. */
11978 # include <limits.h>
11980 # include <assert.h>
11985 /* Override any gcc2 internal prototype to avoid an error. */
11990 /* We use char because int might match the return type of a gcc2
11991 builtin and then its argument prototype would still apply. */
11993 /* The GNU C library defines this for functions which it implements
11994 to always fail with ENOSYS. Some functions are actually named
11995 something starting with __ and the normal name is an alias. */
11996 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11999 char (*f) () = dlopen;
12008 return f != dlopen;
12013 rm -f conftest.$ac_objext conftest$ac_exeext
12014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12015 (eval $ac_link) 2>conftest.er1
12017 grep -v '^ *+' conftest.er1 >conftest.err
12019 cat conftest.err >&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); } &&
12022 { ac_try='test -z "$ac_cxx_werror_flag"
12023 || test ! -s conftest.err'
12024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12025 (eval $ac_try) 2>&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); }; } &&
12029 { ac_try='test -s conftest$ac_exeext'
12030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12031 (eval $ac_try) 2>&5
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); }; }; then
12035 ac_cv_func_dlopen=yes
12037 echo "$as_me: failed program was:" >&5
12038 sed 's/^/| /' conftest.$ac_ext >&5
12040 ac_cv_func_dlopen=no
12042 rm -f conftest.err conftest.$ac_objext \
12043 conftest$ac_exeext conftest.$ac_ext
12045 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12046 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12047 if test $ac_cv_func_dlopen = yes; then
12048 lt_cv_dlopen="dlopen"
12050 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12051 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12052 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12053 echo $ECHO_N "(cached) $ECHO_C" >&6
12055 ac_check_lib_save_LIBS=$LIBS
12057 cat >conftest.$ac_ext <<_ACEOF
12060 cat confdefs.h >>conftest.$ac_ext
12061 cat >>conftest.$ac_ext <<_ACEOF
12062 /* end confdefs.h. */
12064 /* Override any gcc2 internal prototype to avoid an error. */
12068 /* We use char because int might match the return type of a gcc2
12069 builtin and then its argument prototype would still apply. */
12079 rm -f conftest.$ac_objext conftest$ac_exeext
12080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12081 (eval $ac_link) 2>conftest.er1
12083 grep -v '^ *+' conftest.er1 >conftest.err
12085 cat conftest.err >&5
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); } &&
12088 { ac_try='test -z "$ac_cxx_werror_flag"
12089 || test ! -s conftest.err'
12090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091 (eval $ac_try) 2>&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; } &&
12095 { ac_try='test -s conftest$ac_exeext'
12096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12097 (eval $ac_try) 2>&5
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); }; }; then
12101 ac_cv_lib_dl_dlopen=yes
12103 echo "$as_me: failed program was:" >&5
12104 sed 's/^/| /' conftest.$ac_ext >&5
12106 ac_cv_lib_dl_dlopen=no
12108 rm -f conftest.err conftest.$ac_objext \
12109 conftest$ac_exeext conftest.$ac_ext
12110 LIBS=$ac_check_lib_save_LIBS
12112 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12113 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12114 if test $ac_cv_lib_dl_dlopen = yes; then
12115 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12117 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12118 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12119 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12120 echo $ECHO_N "(cached) $ECHO_C" >&6
12122 ac_check_lib_save_LIBS=$LIBS
12123 LIBS="-lsvld $LIBS"
12124 cat >conftest.$ac_ext <<_ACEOF
12127 cat confdefs.h >>conftest.$ac_ext
12128 cat >>conftest.$ac_ext <<_ACEOF
12129 /* end confdefs.h. */
12131 /* Override any gcc2 internal prototype to avoid an error. */
12135 /* We use char because int might match the return type of a gcc2
12136 builtin and then its argument prototype would still apply. */
12146 rm -f conftest.$ac_objext conftest$ac_exeext
12147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12148 (eval $ac_link) 2>conftest.er1
12150 grep -v '^ *+' conftest.er1 >conftest.err
12152 cat conftest.err >&5
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); } &&
12155 { ac_try='test -z "$ac_cxx_werror_flag"
12156 || test ! -s conftest.err'
12157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12158 (eval $ac_try) 2>&5
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); }; } &&
12162 { ac_try='test -s conftest$ac_exeext'
12163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12164 (eval $ac_try) 2>&5
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); }; }; then
12168 ac_cv_lib_svld_dlopen=yes
12170 echo "$as_me: failed program was:" >&5
12171 sed 's/^/| /' conftest.$ac_ext >&5
12173 ac_cv_lib_svld_dlopen=no
12175 rm -f conftest.err conftest.$ac_objext \
12176 conftest$ac_exeext conftest.$ac_ext
12177 LIBS=$ac_check_lib_save_LIBS
12179 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12180 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12181 if test $ac_cv_lib_svld_dlopen = yes; then
12182 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12184 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12185 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12186 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12187 echo $ECHO_N "(cached) $ECHO_C" >&6
12189 ac_check_lib_save_LIBS=$LIBS
12191 cat >conftest.$ac_ext <<_ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12198 /* Override any gcc2 internal prototype to avoid an error. */
12202 /* We use char because int might match the return type of a gcc2
12203 builtin and then its argument prototype would still apply. */
12213 rm -f conftest.$ac_objext conftest$ac_exeext
12214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12215 (eval $ac_link) 2>conftest.er1
12217 grep -v '^ *+' conftest.er1 >conftest.err
12219 cat conftest.err >&5
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); } &&
12222 { ac_try='test -z "$ac_cxx_werror_flag"
12223 || test ! -s conftest.err'
12224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225 (eval $ac_try) 2>&5
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; } &&
12229 { ac_try='test -s conftest$ac_exeext'
12230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231 (eval $ac_try) 2>&5
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; }; then
12235 ac_cv_lib_dld_dld_link=yes
12237 echo "$as_me: failed program was:" >&5
12238 sed 's/^/| /' conftest.$ac_ext >&5
12240 ac_cv_lib_dld_dld_link=no
12242 rm -f conftest.err conftest.$ac_objext \
12243 conftest$ac_exeext conftest.$ac_ext
12244 LIBS=$ac_check_lib_save_LIBS
12246 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12247 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12248 if test $ac_cv_lib_dld_dld_link = yes; then
12249 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12270 if test "x$lt_cv_dlopen" != xno; then
12276 case $lt_cv_dlopen in
12278 save_CPPFLAGS="$CPPFLAGS"
12279 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12281 save_LDFLAGS="$LDFLAGS"
12282 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12285 LIBS="$lt_cv_dlopen_libs $LIBS"
12287 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12288 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12289 if test "${lt_cv_dlopen_self+set}" = set; then
12290 echo $ECHO_N "(cached) $ECHO_C" >&6
12292 if test "$cross_compiling" = yes; then :
12293 lt_cv_dlopen_self=cross
12295 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12296 lt_status=$lt_dlunknown
12297 cat > conftest.$ac_ext <<EOF
12298 #line 12298 "configure"
12299 #include "confdefs.h"
12308 # define LT_DLGLOBAL RTLD_GLOBAL
12311 # define LT_DLGLOBAL DL_GLOBAL
12313 # define LT_DLGLOBAL 0
12317 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12318 find out it does not work in some platform. */
12319 #ifndef LT_DLLAZY_OR_NOW
12321 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12324 # define LT_DLLAZY_OR_NOW DL_LAZY
12327 # define LT_DLLAZY_OR_NOW RTLD_NOW
12330 # define LT_DLLAZY_OR_NOW DL_NOW
12332 # define LT_DLLAZY_OR_NOW 0
12340 extern "C" void exit (int);
12343 void fnord() { int i=42;}
12346 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12347 int status = $lt_dlunknown;
12351 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12352 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12353 /* dlclose (self); */
12359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12360 (eval $ac_link) 2>&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12364 (./conftest; exit; ) 2>/dev/null
12366 case x$lt_status in
12367 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12368 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12369 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12372 # compilation failed
12373 lt_cv_dlopen_self=no
12380 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12381 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12383 if test "x$lt_cv_dlopen_self" = xyes; then
12384 LDFLAGS="$LDFLAGS $link_static_flag"
12385 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12386 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12387 if test "${lt_cv_dlopen_self_static+set}" = set; then
12388 echo $ECHO_N "(cached) $ECHO_C" >&6
12390 if test "$cross_compiling" = yes; then :
12391 lt_cv_dlopen_self_static=cross
12393 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12394 lt_status=$lt_dlunknown
12395 cat > conftest.$ac_ext <<EOF
12396 #line 12396 "configure"
12397 #include "confdefs.h"
12406 # define LT_DLGLOBAL RTLD_GLOBAL
12409 # define LT_DLGLOBAL DL_GLOBAL
12411 # define LT_DLGLOBAL 0
12415 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12416 find out it does not work in some platform. */
12417 #ifndef LT_DLLAZY_OR_NOW
12419 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12422 # define LT_DLLAZY_OR_NOW DL_LAZY
12425 # define LT_DLLAZY_OR_NOW RTLD_NOW
12428 # define LT_DLLAZY_OR_NOW DL_NOW
12430 # define LT_DLLAZY_OR_NOW 0
12438 extern "C" void exit (int);
12441 void fnord() { int i=42;}
12444 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12445 int status = $lt_dlunknown;
12449 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12450 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12451 /* dlclose (self); */
12457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12458 (eval $ac_link) 2>&5
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12462 (./conftest; exit; ) 2>/dev/null
12464 case x$lt_status in
12465 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12466 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12467 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12470 # compilation failed
12471 lt_cv_dlopen_self_static=no
12478 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12479 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12482 CPPFLAGS="$save_CPPFLAGS"
12483 LDFLAGS="$save_LDFLAGS"
12488 case $lt_cv_dlopen_self in
12489 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12490 *) enable_dlopen_self=unknown ;;
12493 case $lt_cv_dlopen_self_static in
12494 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12495 *) enable_dlopen_self_static=unknown ;;
12500 # The else clause should only fire when bootstrapping the
12501 # libtool distribution, otherwise you forgot to ship ltmain.sh
12502 # with your package, and you will get complaints that there are
12503 # no rules to generate ltmain.sh.
12504 if test -f "$ltmain"; then
12505 # See if we are running on zsh, and set the options which allow our commands through
12506 # without removal of \ escapes.
12507 if test -n "${ZSH_VERSION+set}" ; then
12508 setopt NO_GLOB_SUBST
12510 # Now quote all the things that may contain metacharacters while being
12511 # careful not to overquote the AC_SUBSTed values. We take copies of the
12512 # variables and quote the copies for generation of the libtool script.
12513 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12515 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12516 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12517 deplibs_check_method reload_flag reload_cmds need_locks \
12518 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12519 lt_cv_sys_global_symbol_to_c_name_address \
12520 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12521 old_postinstall_cmds old_postuninstall_cmds \
12525 lt_prog_compiler_wl_CXX \
12526 lt_prog_compiler_pic_CXX \
12527 lt_prog_compiler_static_CXX \
12528 lt_prog_compiler_no_builtin_flag_CXX \
12529 export_dynamic_flag_spec_CXX \
12530 thread_safe_flag_spec_CXX \
12531 whole_archive_flag_spec_CXX \
12532 enable_shared_with_static_runtimes_CXX \
12533 old_archive_cmds_CXX \
12534 old_archive_from_new_cmds_CXX \
12535 predep_objects_CXX \
12536 postdep_objects_CXX \
12539 compiler_lib_search_path_CXX \
12541 archive_expsym_cmds_CXX \
12542 postinstall_cmds_CXX \
12543 postuninstall_cmds_CXX \
12544 old_archive_from_expsyms_cmds_CXX \
12545 allow_undefined_flag_CXX \
12546 no_undefined_flag_CXX \
12547 export_symbols_cmds_CXX \
12548 hardcode_libdir_flag_spec_CXX \
12549 hardcode_libdir_flag_spec_ld_CXX \
12550 hardcode_libdir_separator_CXX \
12551 hardcode_automatic_CXX \
12553 module_expsym_cmds_CXX \
12554 lt_cv_prog_compiler_c_o_CXX \
12555 exclude_expsyms_CXX \
12556 include_expsyms_CXX; do
12559 old_archive_cmds_CXX | \
12560 old_archive_from_new_cmds_CXX | \
12561 archive_cmds_CXX | \
12562 archive_expsym_cmds_CXX | \
12563 module_cmds_CXX | \
12564 module_expsym_cmds_CXX | \
12565 old_archive_from_expsyms_cmds_CXX | \
12566 export_symbols_cmds_CXX | \
12567 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12568 postinstall_cmds | postuninstall_cmds | \
12569 old_postinstall_cmds | old_postuninstall_cmds | \
12570 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12571 # Double-quote double-evaled strings.
12572 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12575 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12581 *'\$0 --fallback-echo"')
12582 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12588 cat <<__EOF__ >> "$cfgfile"
12589 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12591 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12593 # Shell to use when invoking shell scripts.
12596 # Whether or not to build shared libraries.
12597 build_libtool_libs=$enable_shared
12599 # Whether or not to build static libraries.
12600 build_old_libs=$enable_static
12602 # Whether or not to add -lc for building shared libraries.
12603 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12605 # Whether or not to disallow shared libs when runtime libs are static
12606 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12608 # Whether or not to optimize for fast installation.
12609 fast_install=$enable_fast_install
12612 host_alias=$host_alias
12615 # An echo program that does not interpret backslashes.
12620 AR_FLAGS=$lt_AR_FLAGS
12625 # A language-specific compiler.
12626 CC=$lt_compiler_CXX
12628 # Is the compiler the GNU C compiler?
12634 # The linker used to build libraries.
12637 # Whether we need hard or soft links.
12640 # A BSD-compatible nm program.
12643 # A symbol stripping program
12646 # Used to examine libraries when file_magic_cmd begins "file"
12647 MAGIC_CMD=$MAGIC_CMD
12649 # Used on cygwin: DLL creation program.
12652 # Used on cygwin: object dumper.
12655 # Used on cygwin: assembler.
12658 # The name of the directory that contains temporary libtool files.
12661 # How to create reloadable object files.
12662 reload_flag=$lt_reload_flag
12663 reload_cmds=$lt_reload_cmds
12665 # How to pass a linker flag through the compiler.
12666 wl=$lt_lt_prog_compiler_wl_CXX
12668 # Object file suffix (normally "o").
12669 objext="$ac_objext"
12671 # Old archive suffix (normally "a").
12674 # Shared library suffix (normally ".so").
12675 shrext_cmds='$shrext_cmds'
12677 # Executable file suffix (normally "").
12680 # Additional compiler flags for building library objects.
12681 pic_flag=$lt_lt_prog_compiler_pic_CXX
12684 # What is the maximum length of a command?
12685 max_cmd_len=$lt_cv_sys_max_cmd_len
12687 # Does compiler simultaneously support -c and -o options?
12688 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12690 # Must we lock files when doing compilation ?
12691 need_locks=$lt_need_locks
12693 # Do we need the lib prefix for modules?
12694 need_lib_prefix=$need_lib_prefix
12696 # Do we need a version for libraries?
12697 need_version=$need_version
12699 # Whether dlopen is supported.
12700 dlopen_support=$enable_dlopen
12702 # Whether dlopen of programs is supported.
12703 dlopen_self=$enable_dlopen_self
12705 # Whether dlopen of statically linked programs is supported.
12706 dlopen_self_static=$enable_dlopen_self_static
12708 # Compiler flag to prevent dynamic linking.
12709 link_static_flag=$lt_lt_prog_compiler_static_CXX
12711 # Compiler flag to turn off builtin functions.
12712 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12714 # Compiler flag to allow reflexive dlopens.
12715 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12717 # Compiler flag to generate shared objects directly from archives.
12718 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12720 # Compiler flag to generate thread-safe objects.
12721 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12723 # Library versioning type.
12724 version_type=$version_type
12726 # Format of library name prefix.
12727 libname_spec=$lt_libname_spec
12729 # List of archive names. First name is the real one, the rest are links.
12730 # The last name is the one that the linker finds with -lNAME.
12731 library_names_spec=$lt_library_names_spec
12733 # The coded name of the library, if different from the real name.
12734 soname_spec=$lt_soname_spec
12736 # Commands used to build and install an old-style archive.
12738 old_archive_cmds=$lt_old_archive_cmds_CXX
12739 old_postinstall_cmds=$lt_old_postinstall_cmds
12740 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12742 # Create an old-style archive from a shared archive.
12743 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12745 # Create a temporary old-style archive to link instead of a shared archive.
12746 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12748 # Commands used to build and install a shared archive.
12749 archive_cmds=$lt_archive_cmds_CXX
12750 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12751 postinstall_cmds=$lt_postinstall_cmds
12752 postuninstall_cmds=$lt_postuninstall_cmds
12754 # Commands used to build a loadable module (assumed same as above if empty)
12755 module_cmds=$lt_module_cmds_CXX
12756 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12758 # Commands to strip libraries.
12759 old_striplib=$lt_old_striplib
12760 striplib=$lt_striplib
12762 # Dependencies to place before the objects being linked to create a
12764 predep_objects=$lt_predep_objects_CXX
12766 # Dependencies to place after the objects being linked to create a
12768 postdep_objects=$lt_postdep_objects_CXX
12770 # Dependencies to place before the objects being linked to create a
12772 predeps=$lt_predeps_CXX
12774 # Dependencies to place after the objects being linked to create a
12776 postdeps=$lt_postdeps_CXX
12778 # The library search path used internally by the compiler when linking
12779 # a shared library.
12780 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12782 # Method to check whether dependent libraries are shared objects.
12783 deplibs_check_method=$lt_deplibs_check_method
12785 # Command to use when deplibs_check_method == file_magic.
12786 file_magic_cmd=$lt_file_magic_cmd
12788 # Flag that allows shared libraries with undefined symbols to be built.
12789 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12791 # Flag that forces no undefined symbols.
12792 no_undefined_flag=$lt_no_undefined_flag_CXX
12794 # Commands used to finish a libtool library installation in a directory.
12795 finish_cmds=$lt_finish_cmds
12797 # Same as above, but a single script fragment to be evaled but not shown.
12798 finish_eval=$lt_finish_eval
12800 # Take the output of nm and produce a listing of raw symbols and C names.
12801 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12803 # Transform the output of nm in a proper C declaration
12804 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12806 # Transform the output of nm in a C name address pair
12807 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12809 # This is the shared library runtime path variable.
12810 runpath_var=$runpath_var
12812 # This is the shared library path variable.
12813 shlibpath_var=$shlibpath_var
12815 # Is shlibpath searched before the hard-coded library search path?
12816 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12818 # How to hardcode a shared library path into an executable.
12819 hardcode_action=$hardcode_action_CXX
12821 # Whether we should hardcode library paths into libraries.
12822 hardcode_into_libs=$hardcode_into_libs
12824 # Flag to hardcode \$libdir into a binary during linking.
12825 # This must work even if \$libdir does not exist.
12826 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12828 # If ld is used when linking, flag to hardcode \$libdir into
12829 # a binary during linking. This must work even if \$libdir does
12831 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12833 # Whether we need a single -rpath flag with a separated argument.
12834 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12836 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12837 # resulting binary.
12838 hardcode_direct=$hardcode_direct_CXX
12840 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12841 # resulting binary.
12842 hardcode_minus_L=$hardcode_minus_L_CXX
12844 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12845 # the resulting binary.
12846 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12848 # Set to yes if building a shared library automatically hardcodes DIR into the library
12849 # and all subsequent libraries and executables linked against it.
12850 hardcode_automatic=$hardcode_automatic_CXX
12852 # Variables whose values should be saved in libtool wrapper scripts and
12853 # restored at relink time.
12854 variables_saved_for_relink="$variables_saved_for_relink"
12856 # Whether libtool must link a program against all its dependency libraries.
12857 link_all_deplibs=$link_all_deplibs_CXX
12859 # Compile-time system search path for libraries
12860 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12862 # Run-time system search path for libraries
12863 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12865 # Fix the shell variable \$srcfile for the compiler.
12866 fix_srcfile_path="$fix_srcfile_path_CXX"
12868 # Set to yes if exported symbols are required.
12869 always_export_symbols=$always_export_symbols_CXX
12871 # The commands to list exported symbols.
12872 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12874 # The commands to extract the exported symbol list from a shared archive.
12875 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12877 # Symbols that should not be listed in the preloaded symbols.
12878 exclude_expsyms=$lt_exclude_expsyms_CXX
12880 # Symbols that must always be exported.
12881 include_expsyms=$lt_include_expsyms_CXX
12883 # ### END LIBTOOL TAG CONFIG: $tagname
12889 # If there is no Makefile yet, we rely on a make rule to execute
12890 # `config.status --recheck' to rerun these tests and create the
12891 # libtool script then.
12892 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12893 if test -f "$ltmain_in"; then
12894 test -f Makefile && make "$ltmain"
12900 ac_cpp='$CPP $CPPFLAGS'
12901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12909 with_gnu_ldcxx=$with_gnu_ld
12910 with_gnu_ld=$lt_save_with_gnu_ld
12911 lt_cv_path_LDCXX=$lt_cv_path_LD
12912 lt_cv_path_LD=$lt_save_path_LD
12913 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12914 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12922 if test -n "$F77" && test "X$F77" != "Xno"; then
12925 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12926 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12927 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12930 archive_cmds_need_lc_F77=no
12931 allow_undefined_flag_F77=
12932 always_export_symbols_F77=no
12933 archive_expsym_cmds_F77=
12934 export_dynamic_flag_spec_F77=
12935 hardcode_direct_F77=no
12936 hardcode_libdir_flag_spec_F77=
12937 hardcode_libdir_flag_spec_ld_F77=
12938 hardcode_libdir_separator_F77=
12939 hardcode_minus_L_F77=no
12940 hardcode_automatic_F77=no
12942 module_expsym_cmds_F77=
12943 link_all_deplibs_F77=unknown
12944 old_archive_cmds_F77=$old_archive_cmds
12945 no_undefined_flag_F77=
12946 whole_archive_flag_spec_F77=
12947 enable_shared_with_static_runtimes_F77=no
12949 # Source file extension for f77 test sources.
12952 # Object file extension for compiled f77 test sources.
12956 # Code to be used in simple compile tests
12957 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12959 # Code to be used in simple link tests
12960 lt_simple_link_test_code=" program t\n end\n"
12962 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12964 # If no C compiler was specified, use CC.
12967 # Allow CC to be a program name with arguments.
12971 # Allow CC to be a program name with arguments.
12976 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12978 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12979 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12980 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12981 echo "${ECHO_T}$can_build_shared" >&6
12983 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12984 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12985 test "$can_build_shared" = "no" && enable_shared=no
12987 # On AIX, shared libraries and static libraries use the same namespace, and
12988 # are all built from PIC.
12991 test "$enable_shared" = yes && enable_static=no
12992 if test -n "$RANLIB"; then
12993 archive_cmds="$archive_cmds;\$RANLIB \$lib"
12994 postinstall_cmds='$RANLIB $lib'
12998 test "$enable_shared" = yes && enable_static=no
13001 echo "$as_me:$LINENO: result: $enable_shared" >&5
13002 echo "${ECHO_T}$enable_shared" >&6
13004 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13005 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13006 # Make sure either enable_shared or enable_static is yes.
13007 test "$enable_shared" = yes || enable_static=yes
13008 echo "$as_me:$LINENO: result: $enable_static" >&5
13009 echo "${ECHO_T}$enable_static" >&6
13011 test "$ld_shlibs_F77" = no && can_build_shared=no
13016 lt_prog_compiler_wl_F77=
13017 lt_prog_compiler_pic_F77=
13018 lt_prog_compiler_static_F77=
13020 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13021 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13023 if test "$GCC" = yes; then
13024 lt_prog_compiler_wl_F77='-Wl,'
13025 lt_prog_compiler_static_F77='-static'
13029 # All AIX code is PIC.
13030 if test "$host_cpu" = ia64; then
13031 # AIX 5 now supports IA64 processor
13032 lt_prog_compiler_static_F77='-Bstatic'
13037 # FIXME: we need at least 68020 code to build shared libraries, but
13038 # adding the `-m68020' flag to GCC prevents building anything better,
13040 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13043 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13044 # PIC is the default for these OSes.
13047 mingw* | pw32* | os2*)
13048 # This hack is so that the source file can tell whether it is being
13049 # built for inclusion in a dll (and should export symbols for example).
13050 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13053 darwin* | rhapsody*)
13054 # PIC is the default on this platform
13055 # Common symbols not allowed in MH_DYLIB files
13056 lt_prog_compiler_pic_F77='-fno-common'
13060 # Just because we use GCC doesn't mean we suddenly get shared libraries
13061 # on systems that don't support them.
13062 lt_prog_compiler_can_build_shared_F77=no
13067 if test -d /usr/nec; then
13068 lt_prog_compiler_pic_F77=-Kconform_pic
13073 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13074 # not for PA HP-UX.
13075 case "$host_cpu" in
13080 lt_prog_compiler_pic_F77='-fPIC'
13086 lt_prog_compiler_pic_F77='-fPIC'
13090 # PORTME Check for flag to pass linker flags through the system compiler.
13093 lt_prog_compiler_wl_F77='-Wl,'
13094 if test "$host_cpu" = ia64; then
13095 # AIX 5 now supports IA64 processor
13096 lt_prog_compiler_static_F77='-Bstatic'
13098 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13102 # PIC is the default on this platform
13103 # Common symbols not allowed in MH_DYLIB files
13104 case "$cc_basename" in
13106 lt_prog_compiler_pic_F77='-qnocommon'
13107 lt_prog_compiler_wl_F77='-Wl,'
13112 mingw* | pw32* | os2*)
13113 # This hack is so that the source file can tell whether it is being
13114 # built for inclusion in a dll (and should export symbols for example).
13115 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13118 hpux9* | hpux10* | hpux11*)
13119 lt_prog_compiler_wl_F77='-Wl,'
13120 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13121 # not for PA HP-UX.
13122 case "$host_cpu" in
13127 lt_prog_compiler_pic_F77='+Z'
13130 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13131 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13134 irix5* | irix6* | nonstopux*)
13135 lt_prog_compiler_wl_F77='-Wl,'
13136 # PIC (with -KPIC) is the default.
13137 lt_prog_compiler_static_F77='-non_shared'
13141 lt_prog_compiler_pic_F77='-KPIC'
13142 lt_prog_compiler_static_F77='-Bstatic'
13148 lt_prog_compiler_wl_F77='-Wl,'
13149 lt_prog_compiler_pic_F77='-KPIC'
13150 lt_prog_compiler_static_F77='-static'
13153 lt_prog_compiler_wl_F77='-Wl,'
13154 # All Alpha code is PIC.
13155 lt_prog_compiler_static_F77='-non_shared'
13160 osf3* | osf4* | osf5*)
13161 lt_prog_compiler_wl_F77='-Wl,'
13162 # All OSF/1 code is PIC.
13163 lt_prog_compiler_static_F77='-non_shared'
13167 lt_prog_compiler_pic_F77='-Kpic'
13168 lt_prog_compiler_static_F77='-dn'
13172 lt_prog_compiler_wl_F77='-Wl,'
13173 lt_prog_compiler_pic_F77='-KPIC'
13174 lt_prog_compiler_static_F77='-Bstatic'
13178 lt_prog_compiler_wl_F77='-Qoption ld '
13179 lt_prog_compiler_pic_F77='-PIC'
13180 lt_prog_compiler_static_F77='-Bstatic'
13183 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13184 lt_prog_compiler_wl_F77='-Wl,'
13185 lt_prog_compiler_pic_F77='-KPIC'
13186 lt_prog_compiler_static_F77='-Bstatic'
13190 if test -d /usr/nec ;then
13191 lt_prog_compiler_pic_F77='-Kconform_pic'
13192 lt_prog_compiler_static_F77='-Bstatic'
13197 lt_prog_compiler_pic_F77='-pic'
13198 lt_prog_compiler_static_F77='-Bstatic'
13202 lt_prog_compiler_can_build_shared_F77=no
13207 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13208 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13211 # Check to make sure the PIC flag actually works.
13213 if test -n "$lt_prog_compiler_pic_F77"; then
13215 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13216 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13217 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13218 echo $ECHO_N "(cached) $ECHO_C" >&6
13220 lt_prog_compiler_pic_works_F77=no
13221 ac_outfile=conftest.$ac_objext
13222 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13223 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13224 # Insert the option either (1) after the last *FLAGS variable, or
13225 # (2) before a word containing "conftest.", or (3) at the end.
13226 # Note that $ac_compile itself does not contain backslashes and begins
13227 # with a dollar sign (not a hyphen), so the echo should work correctly.
13228 # The option is referenced via a variable to avoid confusing sed.
13229 lt_compile=`echo "$ac_compile" | $SED \
13230 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13231 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13232 -e 's:$: $lt_compiler_flag:'`
13233 (eval echo "\"\$as_me:13233: $lt_compile\"" >&5)
13234 (eval "$lt_compile" 2>conftest.err)
13236 cat conftest.err >&5
13237 echo "$as_me:13237: \$? = $ac_status" >&5
13238 if (exit $ac_status) && test -s "$ac_outfile"; then
13239 # The compiler can only warn and ignore the option if not recognized
13240 # So say no if there are warnings
13241 if test ! -s conftest.err; then
13242 lt_prog_compiler_pic_works_F77=yes
13248 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13249 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13251 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13252 case $lt_prog_compiler_pic_F77 in
13254 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13257 lt_prog_compiler_pic_F77=
13258 lt_prog_compiler_can_build_shared_F77=no
13263 # For platforms which do not support PIC, -DPIC is meaningless:
13265 lt_prog_compiler_pic_F77=
13268 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13272 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13273 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13274 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13275 echo $ECHO_N "(cached) $ECHO_C" >&6
13277 lt_cv_prog_compiler_c_o_F77=no
13278 $rm -r conftest 2>/dev/null
13282 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13284 lt_compiler_flag="-o out/conftest2.$ac_objext"
13285 # Insert the option either (1) after the last *FLAGS variable, or
13286 # (2) before a word containing "conftest.", or (3) at the end.
13287 # Note that $ac_compile itself does not contain backslashes and begins
13288 # with a dollar sign (not a hyphen), so the echo should work correctly.
13289 lt_compile=`echo "$ac_compile" | $SED \
13290 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13291 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13292 -e 's:$: $lt_compiler_flag:'`
13293 (eval echo "\"\$as_me:13293: $lt_compile\"" >&5)
13294 (eval "$lt_compile" 2>out/conftest.err)
13296 cat out/conftest.err >&5
13297 echo "$as_me:13297: \$? = $ac_status" >&5
13298 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13300 # The compiler can only warn and ignore the option if not recognized
13301 # So say no if there are warnings
13302 if test ! -s out/conftest.err; then
13303 lt_cv_prog_compiler_c_o_F77=yes
13308 # SGI C++ compiler will create directory out/ii_files/ for
13309 # template instantiation
13310 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13311 $rm out/* && rmdir out
13317 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13318 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13321 hard_links="nottested"
13322 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13323 # do not overwrite the value of need_locks provided by the user
13324 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13325 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13328 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13330 ln conftest.a conftest.b 2>&5 || hard_links=no
13331 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13332 echo "$as_me:$LINENO: result: $hard_links" >&5
13333 echo "${ECHO_T}$hard_links" >&6
13334 if test "$hard_links" = no; then
13335 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13336 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13343 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13344 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13347 allow_undefined_flag_F77=
13348 enable_shared_with_static_runtimes_F77=no
13350 archive_expsym_cmds_F77=
13351 old_archive_From_new_cmds_F77=
13352 old_archive_from_expsyms_cmds_F77=
13353 export_dynamic_flag_spec_F77=
13354 whole_archive_flag_spec_F77=
13355 thread_safe_flag_spec_F77=
13356 hardcode_libdir_flag_spec_F77=
13357 hardcode_libdir_flag_spec_ld_F77=
13358 hardcode_libdir_separator_F77=
13359 hardcode_direct_F77=no
13360 hardcode_minus_L_F77=no
13361 hardcode_shlibpath_var_F77=unsupported
13362 link_all_deplibs_F77=unknown
13363 hardcode_automatic_F77=no
13365 module_expsym_cmds_F77=
13366 always_export_symbols_F77=no
13367 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13368 # include_expsyms should be a list of space-separated symbols to be *always*
13369 # included in the symbol list
13370 include_expsyms_F77=
13371 # exclude_expsyms can be an extended regexp of symbols to exclude
13372 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13373 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13374 # as well as any symbol that contains `d'.
13375 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13376 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13377 # platforms (ab)use it in PIC code, but their linkers get confused if
13378 # the symbol is explicitly referenced. Since portable code cannot
13379 # rely on this symbol name, it's probably fine to never include it in
13380 # preloaded symbol tables.
13381 extract_expsyms_cmds=
13384 cygwin* | mingw* | pw32*)
13385 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13386 # When not using gcc, we currently assume that we are using
13387 # Microsoft Visual C++.
13388 if test "$GCC" != yes; then
13398 if test "$with_gnu_ld" = yes; then
13399 # If archive_cmds runs LD, not CC, wlarc should be empty
13402 # See if GNU ld supports shared libraries.
13404 aix3* | aix4* | aix5*)
13405 # On AIX/PPC, the GNU linker is very broken
13406 if test "$host_cpu" != ia64; then
13410 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13411 *** to be unable to reliably create shared libraries on AIX.
13412 *** Therefore, libtool is disabling shared libraries support. If you
13413 *** really care for shared libraries, you may want to modify your PATH
13414 *** so that a non-GNU linker is found, and then restart.
13421 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)'
13422 hardcode_libdir_flag_spec_F77='-L$libdir'
13423 hardcode_minus_L_F77=yes
13425 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13426 # that the semantics of dynamic libraries on AmigaOS, at least up
13427 # to version 4, is to share data among multiple programs linked
13428 # with the same dynamic library. Since this doesn't match the
13429 # behavior of shared libraries on other platforms, we can't use
13435 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13436 allow_undefined_flag_F77=unsupported
13437 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13438 # support --undefined. This deserves some investigation. FIXME
13439 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13445 cygwin* | mingw* | pw32*)
13446 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13447 # as there is no search path for DLLs.
13448 hardcode_libdir_flag_spec_F77='-L$libdir'
13449 allow_undefined_flag_F77=unsupported
13450 always_export_symbols_F77=no
13451 enable_shared_with_static_runtimes_F77=yes
13452 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13454 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13455 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13456 # If the export-symbols file already is a .def file (1st line
13457 # is EXPORTS), use it as is; otherwise, prepend...
13458 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13459 cp $export_symbols $output_objdir/$soname.def;
13461 echo EXPORTS > $output_objdir/$soname.def;
13462 cat $export_symbols >> $output_objdir/$soname.def;
13463 fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13470 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13471 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13474 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13475 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13480 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13484 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13485 *** create shared libraries on Solaris systems. Therefore, libtool
13486 *** is disabling shared libraries support. We urge you to upgrade GNU
13487 *** binutils to release 2.9.1 or newer. Another option is to modify
13488 *** your PATH or compiler configuration so that the native linker is
13489 *** used, and then restart.
13492 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13493 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13494 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13501 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13503 hardcode_direct_F77=yes
13504 hardcode_shlibpath_var_F77=no
13508 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13509 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13510 archive_cmds_F77="$tmp_archive_cmds"
13511 supports_anon_versioning=no
13512 case `$LD -v 2>/dev/null` in
13513 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13514 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13515 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13516 *\ 2.11.*) ;; # other 2.11 versions
13517 *) supports_anon_versioning=yes ;;
13519 if test $supports_anon_versioning = yes; then
13520 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;
13521 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13523 archive_expsym_cmds_F77="$tmp_archive_cmds"
13531 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13532 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13533 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13540 if test "$ld_shlibs_F77" = yes; then
13541 runpath_var=LD_RUN_PATH
13542 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13543 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13544 # ancient GNU ld didn't support --whole-archive et. al.
13545 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13546 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13548 whole_archive_flag_spec_F77=
13552 # PORTME fill in a description of your system's linker (not GNU ld)
13555 allow_undefined_flag_F77=unsupported
13556 always_export_symbols_F77=yes
13557 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'
13558 # Note: this linker hardcodes the directories in LIBPATH if there
13559 # are no directories specified by -L.
13560 hardcode_minus_L_F77=yes
13561 if test "$GCC" = yes && test -z "$link_static_flag"; then
13562 # Neither direct hardcoding nor static linking is supported with a
13564 hardcode_direct_F77=unsupported
13569 if test "$host_cpu" = ia64; then
13570 # On IA64, the linker does run time linking by default, so we don't
13571 # have to do anything special.
13572 aix_use_runtimelinking=no
13573 exp_sym_flag='-Bexport'
13576 # If we're using GNU nm, then we don't want the "-C" option.
13577 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13578 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13579 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'
13581 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'
13583 aix_use_runtimelinking=no
13585 # Test if we are trying to use run time linking or normal
13586 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13587 # need to do runtime linking.
13588 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13589 for ld_flag in $LDFLAGS; do
13590 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13591 aix_use_runtimelinking=yes
13597 exp_sym_flag='-bexport'
13598 no_entry_flag='-bnoentry'
13601 # When large executables or shared objects are built, AIX ld can
13602 # have problems creating the table of contents. If linking a library
13603 # or program results in "error TOC overflow" add -mminimal-toc to
13604 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13605 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13607 archive_cmds_F77=''
13608 hardcode_direct_F77=yes
13609 hardcode_libdir_separator_F77=':'
13610 link_all_deplibs_F77=yes
13612 if test "$GCC" = yes; then
13613 case $host_os in aix4.012|aix4.012.*)
13614 # We only want to do this on AIX 4.2 and lower, the check
13615 # below for broken collect2 doesn't work under 4.3+
13616 collect2name=`${CC} -print-prog-name=collect2`
13617 if test -f "$collect2name" && \
13618 strings "$collect2name" | grep resolve_lib_name >/dev/null
13620 # We have reworked collect2
13621 hardcode_direct_F77=yes
13623 # We have old collect2
13624 hardcode_direct_F77=unsupported
13625 # It fails to find uninstalled libraries when the uninstalled
13626 # path is not listed in the libpath. Setting hardcode_minus_L
13627 # to unsupported forces relinking
13628 hardcode_minus_L_F77=yes
13629 hardcode_libdir_flag_spec_F77='-L$libdir'
13630 hardcode_libdir_separator_F77=
13633 shared_flag='-shared'
13636 if test "$host_cpu" = ia64; then
13637 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13638 # chokes on -Wl,-G. The following line is correct:
13641 if test "$aix_use_runtimelinking" = yes; then
13642 shared_flag='${wl}-G'
13644 shared_flag='${wl}-bM:SRE'
13649 # It seems that -bexpall does not export symbols beginning with
13650 # underscore (_), so it is better to generate a list of symbols to export.
13651 always_export_symbols_F77=yes
13652 if test "$aix_use_runtimelinking" = yes; then
13653 # Warning - without using the other runtime loading flags (-brtl),
13654 # -berok will link without error, but may produce a broken library.
13655 allow_undefined_flag_F77='-berok'
13656 # Determine the default libpath from the value encoded in an empty executable.
13657 cat >conftest.$ac_ext <<_ACEOF
13662 rm -f conftest.$ac_objext conftest$ac_exeext
13663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13664 (eval $ac_link) 2>conftest.er1
13666 grep -v '^ *+' conftest.er1 >conftest.err
13668 cat conftest.err >&5
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); } &&
13671 { ac_try='test -z "$ac_f77_werror_flag"
13672 || test ! -s conftest.err'
13673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13674 (eval $ac_try) 2>&5
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); }; } &&
13678 { ac_try='test -s conftest$ac_exeext'
13679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13680 (eval $ac_try) 2>&5
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); }; }; then
13685 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13687 # Check for a 64-bit object if we didn't find anything.
13688 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; }
13691 echo "$as_me: failed program was:" >&5
13692 sed 's/^/| /' conftest.$ac_ext >&5
13695 rm -f conftest.err conftest.$ac_objext \
13696 conftest$ac_exeext conftest.$ac_ext
13697 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13699 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13700 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"
13702 if test "$host_cpu" = ia64; then
13703 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13704 allow_undefined_flag_F77="-z nodefs"
13705 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"
13707 # Determine the default libpath from the value encoded in an empty executable.
13708 cat >conftest.$ac_ext <<_ACEOF
13713 rm -f conftest.$ac_objext conftest$ac_exeext
13714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13715 (eval $ac_link) 2>conftest.er1
13717 grep -v '^ *+' conftest.er1 >conftest.err
13719 cat conftest.err >&5
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); } &&
13722 { ac_try='test -z "$ac_f77_werror_flag"
13723 || test ! -s conftest.err'
13724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13725 (eval $ac_try) 2>&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); }; } &&
13729 { ac_try='test -s conftest$ac_exeext'
13730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13731 (eval $ac_try) 2>&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); }; }; then
13736 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13738 # Check for a 64-bit object if we didn't find anything.
13739 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; }
13742 echo "$as_me: failed program was:" >&5
13743 sed 's/^/| /' conftest.$ac_ext >&5
13746 rm -f conftest.err conftest.$ac_objext \
13747 conftest$ac_exeext conftest.$ac_ext
13748 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13750 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13751 # Warning - without using the other run time loading flags,
13752 # -berok will link without error, but may produce a broken library.
13753 no_undefined_flag_F77=' ${wl}-bernotok'
13754 allow_undefined_flag_F77=' ${wl}-berok'
13755 # -bexpall does not export symbols beginning with underscore (_)
13756 always_export_symbols_F77=yes
13757 # Exported symbols can be pulled into shared objects from archives
13758 whole_archive_flag_spec_F77=' '
13759 archive_cmds_need_lc_F77=yes
13760 # This is similar to how AIX traditionally builds it's shared libraries.
13761 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'
13767 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)'
13768 hardcode_libdir_flag_spec_F77='-L$libdir'
13769 hardcode_minus_L_F77=yes
13770 # see comment about different semantics on the GNU ld section
13775 export_dynamic_flag_spec_F77=-rdynamic
13778 cygwin* | mingw* | pw32*)
13779 # When not using gcc, we currently assume that we are using
13780 # Microsoft Visual C++.
13781 # hardcode_libdir_flag_spec is actually meaningless, as there is
13782 # no search path for DLLs.
13783 hardcode_libdir_flag_spec_F77=' '
13784 allow_undefined_flag_F77=unsupported
13785 # Tell ltmain to make .lib files, not .a files.
13787 # Tell ltmain to make .dll files, not .so files.
13789 # FIXME: Setting linknames here is a bad hack.
13790 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames='
13791 # The linker will automatically build a .lib file if we build a DLL.
13792 old_archive_From_new_cmds_F77='true'
13793 # FIXME: Should let the user specify the lib program.
13794 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13795 fix_srcfile_path='`cygpath -w "$srcfile"`'
13796 enable_shared_with_static_runtimes_F77=yes
13799 darwin* | rhapsody*)
13801 rhapsody* | darwin1.[012])
13802 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13805 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13806 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13808 case ${MACOSX_DEPLOYMENT_TARGET} in
13810 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13813 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13819 archive_cmds_need_lc_F77=no
13820 hardcode_direct_F77=no
13821 hardcode_automatic_F77=yes
13822 hardcode_shlibpath_var_F77=unsupported
13823 whole_archive_flag_spec_F77=''
13824 link_all_deplibs_F77=yes
13825 if test "$GCC" = yes ; then
13826 output_verbose_link_cmd='echo'
13827 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13828 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13829 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13830 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}'
13831 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}'
13833 case "$cc_basename" in
13835 output_verbose_link_cmd='echo'
13836 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13837 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13838 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13839 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}'
13840 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}'
13850 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13851 hardcode_libdir_flag_spec_F77='-L$libdir'
13852 hardcode_shlibpath_var_F77=no
13859 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13860 # support. Future versions do this automatically, but an explicit c++rt0.o
13861 # does not break anything, and helps significantly (at the cost of a little
13864 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13865 hardcode_libdir_flag_spec_F77='-R$libdir'
13866 hardcode_direct_F77=yes
13867 hardcode_shlibpath_var_F77=no
13870 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13872 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13873 hardcode_direct_F77=yes
13874 hardcode_minus_L_F77=yes
13875 hardcode_shlibpath_var_F77=no
13878 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13879 freebsd* | kfreebsd*-gnu)
13880 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13881 hardcode_libdir_flag_spec_F77='-R$libdir'
13882 hardcode_direct_F77=yes
13883 hardcode_shlibpath_var_F77=no
13887 if test "$GCC" = yes; then
13888 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'
13890 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'
13892 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13893 hardcode_libdir_separator_F77=:
13894 hardcode_direct_F77=yes
13896 # hardcode_minus_L: Not really in the search PATH,
13897 # but as the default location of the library.
13898 hardcode_minus_L_F77=yes
13899 export_dynamic_flag_spec_F77='${wl}-E'
13903 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13904 case "$host_cpu" in
13906 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13909 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13913 case "$host_cpu" in
13915 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13918 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13922 if test "$with_gnu_ld" = no; then
13923 case "$host_cpu" in
13925 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13926 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13927 hardcode_libdir_separator_F77=:
13928 hardcode_direct_F77=no
13929 hardcode_shlibpath_var_F77=no
13932 hardcode_libdir_flag_spec_F77='-L$libdir'
13933 hardcode_direct_F77=no
13934 hardcode_shlibpath_var_F77=no
13936 # hardcode_minus_L: Not really in the search PATH,
13937 # but as the default location of the library.
13938 hardcode_minus_L_F77=yes
13941 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13942 hardcode_libdir_separator_F77=:
13943 hardcode_direct_F77=yes
13944 export_dynamic_flag_spec_F77='${wl}-E'
13946 # hardcode_minus_L: Not really in the search PATH,
13947 # but as the default location of the library.
13948 hardcode_minus_L_F77=yes
13954 irix5* | irix6* | nonstopux*)
13955 if test "$GCC" = yes; then
13956 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'
13958 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'
13959 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13961 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13962 hardcode_libdir_separator_F77=:
13963 link_all_deplibs_F77=yes
13967 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13968 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13970 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13972 hardcode_libdir_flag_spec_F77='-R$libdir'
13973 hardcode_direct_F77=yes
13974 hardcode_shlibpath_var_F77=no
13978 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13979 hardcode_direct_F77=yes
13980 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13981 hardcode_libdir_separator_F77=:
13982 hardcode_shlibpath_var_F77=no
13986 hardcode_direct_F77=yes
13987 hardcode_shlibpath_var_F77=no
13988 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13989 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13990 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13991 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13992 export_dynamic_flag_spec_F77='${wl}-E'
13995 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13996 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13997 hardcode_libdir_flag_spec_F77='-R$libdir'
14000 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14001 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14008 hardcode_libdir_flag_spec_F77='-L$libdir'
14009 hardcode_minus_L_F77=yes
14010 allow_undefined_flag_F77=unsupported
14011 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'
14012 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14016 if test "$GCC" = yes; then
14017 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14018 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'
14020 allow_undefined_flag_F77=' -expect_unresolved \*'
14021 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'
14023 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14024 hardcode_libdir_separator_F77=:
14027 osf4* | osf5*) # as osf3* with the addition of -msym flag
14028 if test "$GCC" = yes; then
14029 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14030 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'
14031 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14033 allow_undefined_flag_F77=' -expect_unresolved \*'
14034 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'
14035 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'
14036 # Both c and cxx compiler support -rpath directly
14037 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14039 hardcode_libdir_separator_F77=:
14043 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14044 hardcode_shlibpath_var_F77=no
14045 export_dynamic_flag_spec_F77='${wl}-Bexport'
14046 runpath_var=LD_RUN_PATH
14047 hardcode_runpath_var=yes
14051 no_undefined_flag_F77=' -z text'
14052 if test "$GCC" = yes; then
14053 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14054 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'
14056 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14057 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'
14059 hardcode_libdir_flag_spec_F77='-R$libdir'
14060 hardcode_shlibpath_var_F77=no
14062 solaris2.[0-5] | solaris2.[0-5].*) ;;
14063 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14064 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14066 link_all_deplibs_F77=yes
14070 if test "x$host_vendor" = xsequent; then
14071 # Use $CC to link under sequent, because it throws in some extra .o
14072 # files that make .init and .fini sections work.
14073 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14075 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14077 hardcode_libdir_flag_spec_F77='-L$libdir'
14078 hardcode_direct_F77=yes
14079 hardcode_minus_L_F77=yes
14080 hardcode_shlibpath_var_F77=no
14084 case $host_vendor in
14086 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14087 hardcode_direct_F77=yes # is this really true???
14090 ## LD is ld it makes a PLAMLIB
14091 ## CC just makes a GrossModule.
14092 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14093 reload_cmds_F77='$CC -r -o $output$reload_objs'
14094 hardcode_direct_F77=no
14097 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14098 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14101 runpath_var='LD_RUN_PATH'
14102 hardcode_shlibpath_var_F77=no
14106 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14107 hardcode_shlibpath_var_F77=no
14108 export_dynamic_flag_spec_F77='-Bexport'
14112 if test -d /usr/nec; then
14113 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14114 hardcode_shlibpath_var_F77=no
14115 runpath_var=LD_RUN_PATH
14116 hardcode_runpath_var=yes
14122 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14123 hardcode_direct_F77=yes
14124 hardcode_minus_L_F77=no
14125 hardcode_shlibpath_var_F77=no
14126 hardcode_runpath_var=yes
14127 runpath_var=LD_RUN_PATH
14130 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14131 no_undefined_flag_F77='${wl}-z ${wl}text'
14132 if test "$GCC" = yes; then
14133 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14135 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14137 runpath_var='LD_RUN_PATH'
14138 hardcode_shlibpath_var_F77=no
14142 no_undefined_flag_F77=' -z text'
14143 # $CC -shared without GNU ld will not create a library from C++
14144 # object files and a static libstdc++, better avoid it by now
14145 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14146 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'
14147 hardcode_libdir_flag_spec_F77=
14148 hardcode_shlibpath_var_F77=no
14149 runpath_var='LD_RUN_PATH'
14153 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14154 hardcode_libdir_flag_spec_F77='-L$libdir'
14155 hardcode_shlibpath_var_F77=no
14164 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14165 echo "${ECHO_T}$ld_shlibs_F77" >&6
14166 test "$ld_shlibs_F77" = no && can_build_shared=no
14168 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14169 if test "$GCC" = yes; then
14170 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14174 # Do we need to explicitly link libc?
14176 case "x$archive_cmds_need_lc_F77" in
14178 # Assume -lc should be added
14179 archive_cmds_need_lc_F77=yes
14181 if test "$enable_shared" = yes && test "$GCC" = yes; then
14182 case $archive_cmds_F77 in
14184 # FIXME: we may have to deal with multi-command sequences.
14187 # Test whether the compiler implicitly links with -lc since on some
14188 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14189 # to ld, don't add -lc before -lgcc.
14190 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14191 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14193 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14196 (eval $ac_compile) 2>&5
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); } 2>conftest.err; then
14202 libobjs=conftest.$ac_objext
14204 wl=$lt_prog_compiler_wl_F77
14210 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14211 allow_undefined_flag_F77=
14212 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14213 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); }
14218 archive_cmds_need_lc_F77=no
14220 archive_cmds_need_lc_F77=yes
14222 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14224 cat conftest.err 1>&5
14227 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14228 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14235 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14236 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14237 library_names_spec=
14238 libname_spec='lib$name'
14242 postuninstall_cmds=
14246 shlibpath_overrides_runpath=unknown
14248 dynamic_linker="$host_os ld.so"
14249 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14250 if test "$GCC" = yes; then
14251 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14252 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14253 # if the path contains ";" then we assume it to be the separator
14254 # otherwise default to the standard path separator (i.e. ":") - it is
14255 # assumed that no part of a normal pathname contains ";" but that should
14256 # okay in the real world where ";" in dirpaths is itself problematic.
14257 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14259 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14262 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14264 need_lib_prefix=unknown
14265 hardcode_into_libs=no
14267 # when you set need_version to no, make sure it does not cause -set_version
14268 # flags to be left without arguments
14269 need_version=unknown
14274 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14275 shlibpath_var=LIBPATH
14277 # AIX 3 has no versioning support, so we append a major version to the name.
14278 soname_spec='${libname}${release}${shared_ext}$major'
14285 hardcode_into_libs=yes
14286 if test "$host_cpu" = ia64; then
14287 # AIX 5 supports IA64
14288 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14289 shlibpath_var=LD_LIBRARY_PATH
14291 # With GCC up to 2.95.x, collect2 would create an import file
14292 # for dependence libraries. The import file would start with
14293 # the line `#! .'. This would cause the generated library to
14294 # depend on `.', always an invalid library. This was fixed in
14295 # development snapshots of GCC prior to 3.0.
14297 aix4 | aix4.[01] | aix4.[01].*)
14298 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14300 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14303 can_build_shared=no
14307 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14308 # soname into executable. Probably we can add versioning support to
14309 # collect2, so additional links can be useful in future.
14310 if test "$aix_use_runtimelinking" = yes; then
14311 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14312 # instead of lib<name>.a to let people know that these are not
14313 # typical AIX shared libraries.
14314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14316 # We preserve .a as extension for shared libraries through AIX4.2
14317 # and later when we are not doing run time linking.
14318 library_names_spec='${libname}${release}.a $libname.a'
14319 soname_spec='${libname}${release}${shared_ext}$major'
14321 shlibpath_var=LIBPATH
14326 library_names_spec='$libname.ixlibrary $libname.a'
14327 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14328 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'
14332 library_names_spec='${libname}${shared_ext}'
14333 dynamic_linker="$host_os ld.so"
14334 shlibpath_var=LIBRARY_PATH
14340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14341 soname_spec='${libname}${release}${shared_ext}$major'
14342 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14343 shlibpath_var=LD_LIBRARY_PATH
14344 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14345 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14346 # the default ld.so.conf also contains /usr/contrib/lib and
14347 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14348 # libtool to hard-code these into programs
14351 cygwin* | mingw* | pw32*)
14352 version_type=windows
14357 case $GCC,$host_os in
14358 yes,cygwin* | yes,mingw* | yes,pw32*)
14359 library_names_spec='$libname.dll.a'
14360 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14361 postinstall_cmds='base_file=`basename \${file}`;
14362 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
14363 dldir=$destdir/`dirname \$dlpath`;
14364 test -d \$dldir || mkdir -p \$dldir;
14365 $install_prog $dir/$dlname \$dldir/$dlname'
14366 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
14367 dlpath=$dir/\$dldll;
14369 shlibpath_overrides_runpath=yes
14373 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14374 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14375 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14378 # MinGW DLLs use traditional 'lib' prefix
14379 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14380 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14381 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14382 # It is most probably a Windows format PATH printed by
14383 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14384 # path with ; separators, and with drive letters. We can handle the
14385 # drive letters (cygwin fileutils understands them), so leave them,
14386 # especially as we might pass files found there to a mingw objdump,
14387 # which wouldn't understand a cygwinified path. Ahh.
14388 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14390 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14394 # pw32 DLLs use 'pw' prefix rather than 'lib'
14395 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14401 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14404 dynamic_linker='Win32 ld.exe'
14405 # FIXME: first we should search . and the directory the executable is in
14409 darwin* | rhapsody*)
14410 dynamic_linker="$host_os dyld"
14411 version_type=darwin
14414 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14415 soname_spec='${libname}${release}${major}$shared_ext'
14416 shlibpath_overrides_runpath=yes
14417 shlibpath_var=DYLD_LIBRARY_PATH
14418 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14419 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14420 if test "$GCC" = yes; then
14421 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"`
14423 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14425 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14433 soname_spec='${libname}${release}${shared_ext}$major'
14434 shlibpath_var=LD_LIBRARY_PATH
14445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14446 soname_spec='${libname}${release}${shared_ext}$major'
14447 shlibpath_var=LD_LIBRARY_PATH
14448 shlibpath_overrides_runpath=no
14449 hardcode_into_libs=yes
14450 dynamic_linker='GNU ld.so'
14454 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14455 version_type=freebsd-$objformat
14456 case $version_type in
14458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14463 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14467 shlibpath_var=LD_LIBRARY_PATH
14470 shlibpath_overrides_runpath=yes
14472 freebsd3.01* | freebsdelf3.01*)
14473 shlibpath_overrides_runpath=yes
14474 hardcode_into_libs=yes
14477 shlibpath_overrides_runpath=no
14478 hardcode_into_libs=yes
14487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14488 soname_spec='${libname}${release}${shared_ext}$major'
14489 shlibpath_var=LD_LIBRARY_PATH
14490 hardcode_into_libs=yes
14493 hpux9* | hpux10* | hpux11*)
14494 # Give a soname corresponding to the major version so that dld.sl refuses to
14495 # link against other versions.
14499 case "$host_cpu" in
14502 hardcode_into_libs=yes
14503 dynamic_linker="$host_os dld.so"
14504 shlibpath_var=LD_LIBRARY_PATH
14505 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14507 soname_spec='${libname}${release}${shared_ext}$major'
14508 if test "X$HPUX_IA64_MODE" = X32; then
14509 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14511 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14513 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14517 hardcode_into_libs=yes
14518 dynamic_linker="$host_os dld.sl"
14519 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14520 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14522 soname_spec='${libname}${release}${shared_ext}$major'
14523 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14524 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14528 dynamic_linker="$host_os dld.sl"
14529 shlibpath_var=SHLIB_PATH
14530 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14532 soname_spec='${libname}${release}${shared_ext}$major'
14535 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14536 postinstall_cmds='chmod 555 $lib'
14539 irix5* | irix6* | nonstopux*)
14541 nonstopux*) version_type=nonstopux ;;
14543 if test "$lt_cv_prog_gnu_ld" = yes; then
14551 soname_spec='${libname}${release}${shared_ext}$major'
14552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14554 irix5* | nonstopux*)
14555 libsuff= shlibsuff=
14558 case $LD in # libtool.m4 will add one of these switches to LD
14559 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14560 libsuff= shlibsuff= libmagic=32-bit;;
14561 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14562 libsuff=32 shlibsuff=N32 libmagic=N32;;
14563 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14564 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14565 *) libsuff= shlibsuff= libmagic=never-match;;
14569 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14570 shlibpath_overrides_runpath=no
14571 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14572 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14573 hardcode_into_libs=yes
14576 # No shared lib support for Linux oldld, aout, or coff.
14577 linux*oldld* | linux*aout* | linux*coff*)
14581 # This must be Linux ELF.
14586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14587 soname_spec='${libname}${release}${shared_ext}$major'
14588 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14589 shlibpath_var=LD_LIBRARY_PATH
14590 shlibpath_overrides_runpath=no
14591 # This implies no fast_install, which is unacceptable.
14592 # Some rework will be needed to allow for fast_install
14593 # before this can be enabled.
14594 hardcode_into_libs=yes
14596 # Append ld.so.conf contents to the search path
14597 if test -f /etc/ld.so.conf; then
14598 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14599 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14602 # We used to test for /lib/ld.so.1 and disable shared libraries on
14603 # powerpc, because MkLinux only supported shared libraries with the
14604 # GNU dynamic linker. Since this was broken with cross compilers,
14605 # most powerpc-linux boxes support dynamic linking these days and
14606 # people can always --disable-shared, the test was removed, and we
14607 # assume the GNU/Linux dynamic linker is in use.
14608 dynamic_linker='GNU/Linux ld.so'
14615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14616 soname_spec='${libname}${release}${shared_ext}$major'
14617 shlibpath_var=LD_LIBRARY_PATH
14618 shlibpath_overrides_runpath=no
14619 hardcode_into_libs=yes
14620 dynamic_linker='GNU ld.so'
14627 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14629 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14630 dynamic_linker='NetBSD (a.out) ld.so'
14632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14633 soname_spec='${libname}${release}${shared_ext}$major'
14634 dynamic_linker='NetBSD ld.elf_so'
14636 shlibpath_var=LD_LIBRARY_PATH
14637 shlibpath_overrides_runpath=yes
14638 hardcode_into_libs=yes
14643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14644 shlibpath_var=LD_LIBRARY_PATH
14645 shlibpath_overrides_runpath=yes
14652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14653 soname_spec='${libname}${release}${shared_ext}$major'
14654 shlibpath_var=LD_LIBRARY_PATH
14655 shlibpath_overrides_runpath=yes
14662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14663 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14664 shlibpath_var=LD_LIBRARY_PATH
14665 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14667 openbsd2.[89] | openbsd2.[89].*)
14668 shlibpath_overrides_runpath=no
14671 shlibpath_overrides_runpath=yes
14675 shlibpath_overrides_runpath=yes
14680 libname_spec='$name'
14683 library_names_spec='$libname${shared_ext} $libname.a'
14684 dynamic_linker='OS/2 ld.exe'
14685 shlibpath_var=LIBPATH
14688 osf3* | osf4* | osf5*)
14692 soname_spec='${libname}${release}${shared_ext}$major'
14693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14694 shlibpath_var=LD_LIBRARY_PATH
14695 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14696 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14701 soname_spec='${libname}${release}${shared_ext}$major'
14702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14703 shlibpath_var=LD_LIBRARY_PATH
14710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14711 soname_spec='${libname}${release}${shared_ext}$major'
14712 shlibpath_var=LD_LIBRARY_PATH
14713 shlibpath_overrides_runpath=yes
14714 hardcode_into_libs=yes
14715 # ldd complains unless libraries are executable
14716 postinstall_cmds='chmod +x $lib'
14721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14722 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14723 shlibpath_var=LD_LIBRARY_PATH
14724 shlibpath_overrides_runpath=yes
14725 if test "$with_gnu_ld" = yes; then
14731 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14734 soname_spec='${libname}${release}${shared_ext}$major'
14735 shlibpath_var=LD_LIBRARY_PATH
14736 case $host_vendor in
14738 shlibpath_overrides_runpath=no
14740 export_dynamic_flag_spec='${wl}-Blargedynsym'
14741 runpath_var=LD_RUN_PATH
14749 shlibpath_overrides_runpath=no
14750 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14756 if test -d /usr/nec ;then
14758 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14759 soname_spec='$libname${shared_ext}.$major'
14760 shlibpath_var=LD_LIBRARY_PATH
14766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14767 soname_spec='${libname}${release}${shared_ext}$major'
14768 shlibpath_var=LD_LIBRARY_PATH
14775 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14776 echo "${ECHO_T}$dynamic_linker" >&6
14777 test "$dynamic_linker" = no && can_build_shared=no
14779 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14780 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14781 hardcode_action_F77=
14782 if test -n "$hardcode_libdir_flag_spec_F77" || \
14783 test -n "$runpath_var_F77" || \
14784 test "X$hardcode_automatic_F77" = "Xyes" ; then
14786 # We can hardcode non-existant directories.
14787 if test "$hardcode_direct_F77" != no &&
14788 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14789 # have to relink, otherwise we might link with an installed library
14790 # when we should be linking with a yet-to-be-installed one
14791 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14792 test "$hardcode_minus_L_F77" != no; then
14793 # Linking always hardcodes the temporary library directory.
14794 hardcode_action_F77=relink
14796 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14797 hardcode_action_F77=immediate
14800 # We cannot hardcode anything, or else we can only hardcode existing
14802 hardcode_action_F77=unsupported
14804 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14805 echo "${ECHO_T}$hardcode_action_F77" >&6
14807 if test "$hardcode_action_F77" = relink; then
14808 # Fast installation is not supported
14809 enable_fast_install=no
14810 elif test "$shlibpath_overrides_runpath" = yes ||
14811 test "$enable_shared" = no; then
14812 # Fast installation is not necessary
14813 enable_fast_install=needless
14818 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14819 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14820 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14821 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14822 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14823 echo "$as_me:$LINENO: result: yes" >&5
14824 echo "${ECHO_T}yes" >&6
14826 # FIXME - insert some real tests, host_os isn't really good enough
14829 if test -n "$STRIP" ; then
14830 striplib="$STRIP -x"
14831 echo "$as_me:$LINENO: result: yes" >&5
14832 echo "${ECHO_T}yes" >&6
14834 echo "$as_me:$LINENO: result: no" >&5
14835 echo "${ECHO_T}no" >&6
14839 echo "$as_me:$LINENO: result: no" >&5
14840 echo "${ECHO_T}no" >&6
14847 # The else clause should only fire when bootstrapping the
14848 # libtool distribution, otherwise you forgot to ship ltmain.sh
14849 # with your package, and you will get complaints that there are
14850 # no rules to generate ltmain.sh.
14851 if test -f "$ltmain"; then
14852 # See if we are running on zsh, and set the options which allow our commands through
14853 # without removal of \ escapes.
14854 if test -n "${ZSH_VERSION+set}" ; then
14855 setopt NO_GLOB_SUBST
14857 # Now quote all the things that may contain metacharacters while being
14858 # careful not to overquote the AC_SUBSTed values. We take copies of the
14859 # variables and quote the copies for generation of the libtool script.
14860 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14862 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14863 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14864 deplibs_check_method reload_flag reload_cmds need_locks \
14865 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14866 lt_cv_sys_global_symbol_to_c_name_address \
14867 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14868 old_postinstall_cmds old_postuninstall_cmds \
14872 lt_prog_compiler_wl_F77 \
14873 lt_prog_compiler_pic_F77 \
14874 lt_prog_compiler_static_F77 \
14875 lt_prog_compiler_no_builtin_flag_F77 \
14876 export_dynamic_flag_spec_F77 \
14877 thread_safe_flag_spec_F77 \
14878 whole_archive_flag_spec_F77 \
14879 enable_shared_with_static_runtimes_F77 \
14880 old_archive_cmds_F77 \
14881 old_archive_from_new_cmds_F77 \
14882 predep_objects_F77 \
14883 postdep_objects_F77 \
14886 compiler_lib_search_path_F77 \
14888 archive_expsym_cmds_F77 \
14889 postinstall_cmds_F77 \
14890 postuninstall_cmds_F77 \
14891 old_archive_from_expsyms_cmds_F77 \
14892 allow_undefined_flag_F77 \
14893 no_undefined_flag_F77 \
14894 export_symbols_cmds_F77 \
14895 hardcode_libdir_flag_spec_F77 \
14896 hardcode_libdir_flag_spec_ld_F77 \
14897 hardcode_libdir_separator_F77 \
14898 hardcode_automatic_F77 \
14900 module_expsym_cmds_F77 \
14901 lt_cv_prog_compiler_c_o_F77 \
14902 exclude_expsyms_F77 \
14903 include_expsyms_F77; do
14906 old_archive_cmds_F77 | \
14907 old_archive_from_new_cmds_F77 | \
14908 archive_cmds_F77 | \
14909 archive_expsym_cmds_F77 | \
14910 module_cmds_F77 | \
14911 module_expsym_cmds_F77 | \
14912 old_archive_from_expsyms_cmds_F77 | \
14913 export_symbols_cmds_F77 | \
14914 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14915 postinstall_cmds | postuninstall_cmds | \
14916 old_postinstall_cmds | old_postuninstall_cmds | \
14917 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14918 # Double-quote double-evaled strings.
14919 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14922 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14928 *'\$0 --fallback-echo"')
14929 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14935 cat <<__EOF__ >> "$cfgfile"
14936 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14938 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14940 # Shell to use when invoking shell scripts.
14943 # Whether or not to build shared libraries.
14944 build_libtool_libs=$enable_shared
14946 # Whether or not to build static libraries.
14947 build_old_libs=$enable_static
14949 # Whether or not to add -lc for building shared libraries.
14950 build_libtool_need_lc=$archive_cmds_need_lc_F77
14952 # Whether or not to disallow shared libs when runtime libs are static
14953 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14955 # Whether or not to optimize for fast installation.
14956 fast_install=$enable_fast_install
14959 host_alias=$host_alias
14962 # An echo program that does not interpret backslashes.
14967 AR_FLAGS=$lt_AR_FLAGS
14972 # A language-specific compiler.
14973 CC=$lt_compiler_F77
14975 # Is the compiler the GNU C compiler?
14981 # The linker used to build libraries.
14984 # Whether we need hard or soft links.
14987 # A BSD-compatible nm program.
14990 # A symbol stripping program
14993 # Used to examine libraries when file_magic_cmd begins "file"
14994 MAGIC_CMD=$MAGIC_CMD
14996 # Used on cygwin: DLL creation program.
14999 # Used on cygwin: object dumper.
15002 # Used on cygwin: assembler.
15005 # The name of the directory that contains temporary libtool files.
15008 # How to create reloadable object files.
15009 reload_flag=$lt_reload_flag
15010 reload_cmds=$lt_reload_cmds
15012 # How to pass a linker flag through the compiler.
15013 wl=$lt_lt_prog_compiler_wl_F77
15015 # Object file suffix (normally "o").
15016 objext="$ac_objext"
15018 # Old archive suffix (normally "a").
15021 # Shared library suffix (normally ".so").
15022 shrext_cmds='$shrext_cmds'
15024 # Executable file suffix (normally "").
15027 # Additional compiler flags for building library objects.
15028 pic_flag=$lt_lt_prog_compiler_pic_F77
15031 # What is the maximum length of a command?
15032 max_cmd_len=$lt_cv_sys_max_cmd_len
15034 # Does compiler simultaneously support -c and -o options?
15035 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15037 # Must we lock files when doing compilation ?
15038 need_locks=$lt_need_locks
15040 # Do we need the lib prefix for modules?
15041 need_lib_prefix=$need_lib_prefix
15043 # Do we need a version for libraries?
15044 need_version=$need_version
15046 # Whether dlopen is supported.
15047 dlopen_support=$enable_dlopen
15049 # Whether dlopen of programs is supported.
15050 dlopen_self=$enable_dlopen_self
15052 # Whether dlopen of statically linked programs is supported.
15053 dlopen_self_static=$enable_dlopen_self_static
15055 # Compiler flag to prevent dynamic linking.
15056 link_static_flag=$lt_lt_prog_compiler_static_F77
15058 # Compiler flag to turn off builtin functions.
15059 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15061 # Compiler flag to allow reflexive dlopens.
15062 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15064 # Compiler flag to generate shared objects directly from archives.
15065 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15067 # Compiler flag to generate thread-safe objects.
15068 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15070 # Library versioning type.
15071 version_type=$version_type
15073 # Format of library name prefix.
15074 libname_spec=$lt_libname_spec
15076 # List of archive names. First name is the real one, the rest are links.
15077 # The last name is the one that the linker finds with -lNAME.
15078 library_names_spec=$lt_library_names_spec
15080 # The coded name of the library, if different from the real name.
15081 soname_spec=$lt_soname_spec
15083 # Commands used to build and install an old-style archive.
15085 old_archive_cmds=$lt_old_archive_cmds_F77
15086 old_postinstall_cmds=$lt_old_postinstall_cmds
15087 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15089 # Create an old-style archive from a shared archive.
15090 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15092 # Create a temporary old-style archive to link instead of a shared archive.
15093 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15095 # Commands used to build and install a shared archive.
15096 archive_cmds=$lt_archive_cmds_F77
15097 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15098 postinstall_cmds=$lt_postinstall_cmds
15099 postuninstall_cmds=$lt_postuninstall_cmds
15101 # Commands used to build a loadable module (assumed same as above if empty)
15102 module_cmds=$lt_module_cmds_F77
15103 module_expsym_cmds=$lt_module_expsym_cmds_F77
15105 # Commands to strip libraries.
15106 old_striplib=$lt_old_striplib
15107 striplib=$lt_striplib
15109 # Dependencies to place before the objects being linked to create a
15111 predep_objects=$lt_predep_objects_F77
15113 # Dependencies to place after the objects being linked to create a
15115 postdep_objects=$lt_postdep_objects_F77
15117 # Dependencies to place before the objects being linked to create a
15119 predeps=$lt_predeps_F77
15121 # Dependencies to place after the objects being linked to create a
15123 postdeps=$lt_postdeps_F77
15125 # The library search path used internally by the compiler when linking
15126 # a shared library.
15127 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15129 # Method to check whether dependent libraries are shared objects.
15130 deplibs_check_method=$lt_deplibs_check_method
15132 # Command to use when deplibs_check_method == file_magic.
15133 file_magic_cmd=$lt_file_magic_cmd
15135 # Flag that allows shared libraries with undefined symbols to be built.
15136 allow_undefined_flag=$lt_allow_undefined_flag_F77
15138 # Flag that forces no undefined symbols.
15139 no_undefined_flag=$lt_no_undefined_flag_F77
15141 # Commands used to finish a libtool library installation in a directory.
15142 finish_cmds=$lt_finish_cmds
15144 # Same as above, but a single script fragment to be evaled but not shown.
15145 finish_eval=$lt_finish_eval
15147 # Take the output of nm and produce a listing of raw symbols and C names.
15148 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15150 # Transform the output of nm in a proper C declaration
15151 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15153 # Transform the output of nm in a C name address pair
15154 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15156 # This is the shared library runtime path variable.
15157 runpath_var=$runpath_var
15159 # This is the shared library path variable.
15160 shlibpath_var=$shlibpath_var
15162 # Is shlibpath searched before the hard-coded library search path?
15163 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15165 # How to hardcode a shared library path into an executable.
15166 hardcode_action=$hardcode_action_F77
15168 # Whether we should hardcode library paths into libraries.
15169 hardcode_into_libs=$hardcode_into_libs
15171 # Flag to hardcode \$libdir into a binary during linking.
15172 # This must work even if \$libdir does not exist.
15173 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15175 # If ld is used when linking, flag to hardcode \$libdir into
15176 # a binary during linking. This must work even if \$libdir does
15178 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15180 # Whether we need a single -rpath flag with a separated argument.
15181 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15183 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15184 # resulting binary.
15185 hardcode_direct=$hardcode_direct_F77
15187 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15188 # resulting binary.
15189 hardcode_minus_L=$hardcode_minus_L_F77
15191 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15192 # the resulting binary.
15193 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15195 # Set to yes if building a shared library automatically hardcodes DIR into the library
15196 # and all subsequent libraries and executables linked against it.
15197 hardcode_automatic=$hardcode_automatic_F77
15199 # Variables whose values should be saved in libtool wrapper scripts and
15200 # restored at relink time.
15201 variables_saved_for_relink="$variables_saved_for_relink"
15203 # Whether libtool must link a program against all its dependency libraries.
15204 link_all_deplibs=$link_all_deplibs_F77
15206 # Compile-time system search path for libraries
15207 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15209 # Run-time system search path for libraries
15210 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15212 # Fix the shell variable \$srcfile for the compiler.
15213 fix_srcfile_path="$fix_srcfile_path_F77"
15215 # Set to yes if exported symbols are required.
15216 always_export_symbols=$always_export_symbols_F77
15218 # The commands to list exported symbols.
15219 export_symbols_cmds=$lt_export_symbols_cmds_F77
15221 # The commands to extract the exported symbol list from a shared archive.
15222 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15224 # Symbols that should not be listed in the preloaded symbols.
15225 exclude_expsyms=$lt_exclude_expsyms_F77
15227 # Symbols that must always be exported.
15228 include_expsyms=$lt_include_expsyms_F77
15230 # ### END LIBTOOL TAG CONFIG: $tagname
15236 # If there is no Makefile yet, we rely on a make rule to execute
15237 # `config.status --recheck' to rerun these tests and create the
15238 # libtool script then.
15239 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15240 if test -f "$ltmain_in"; then
15241 test -f Makefile && make "$ltmain"
15247 ac_cpp='$CPP $CPPFLAGS'
15248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15260 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15262 ac_cpp='$CPP $CPPFLAGS'
15263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15268 # Source file extension for Java test sources.
15271 # Object file extension for compiled Java test sources.
15275 # Code to be used in simple compile tests
15276 lt_simple_compile_test_code="class foo {}\n"
15278 # Code to be used in simple link tests
15279 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15281 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15283 # If no C compiler was specified, use CC.
15286 # Allow CC to be a program name with arguments.
15290 # Allow CC to be a program name with arguments.
15296 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15297 archive_cmds_need_lc_GCJ=no
15300 lt_prog_compiler_no_builtin_flag_GCJ=
15302 if test "$GCC" = yes; then
15303 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15306 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15307 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15308 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15309 echo $ECHO_N "(cached) $ECHO_C" >&6
15311 lt_cv_prog_compiler_rtti_exceptions=no
15312 ac_outfile=conftest.$ac_objext
15313 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15314 lt_compiler_flag="-fno-rtti -fno-exceptions"
15315 # Insert the option either (1) after the last *FLAGS variable, or
15316 # (2) before a word containing "conftest.", or (3) at the end.
15317 # Note that $ac_compile itself does not contain backslashes and begins
15318 # with a dollar sign (not a hyphen), so the echo should work correctly.
15319 # The option is referenced via a variable to avoid confusing sed.
15320 lt_compile=`echo "$ac_compile" | $SED \
15321 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15322 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15323 -e 's:$: $lt_compiler_flag:'`
15324 (eval echo "\"\$as_me:15324: $lt_compile\"" >&5)
15325 (eval "$lt_compile" 2>conftest.err)
15327 cat conftest.err >&5
15328 echo "$as_me:15328: \$? = $ac_status" >&5
15329 if (exit $ac_status) && test -s "$ac_outfile"; then
15330 # The compiler can only warn and ignore the option if not recognized
15331 # So say no if there are warnings
15332 if test ! -s conftest.err; then
15333 lt_cv_prog_compiler_rtti_exceptions=yes
15339 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15340 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15342 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15343 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15350 lt_prog_compiler_wl_GCJ=
15351 lt_prog_compiler_pic_GCJ=
15352 lt_prog_compiler_static_GCJ=
15354 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15355 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15357 if test "$GCC" = yes; then
15358 lt_prog_compiler_wl_GCJ='-Wl,'
15359 lt_prog_compiler_static_GCJ='-static'
15363 # All AIX code is PIC.
15364 if test "$host_cpu" = ia64; then
15365 # AIX 5 now supports IA64 processor
15366 lt_prog_compiler_static_GCJ='-Bstatic'
15371 # FIXME: we need at least 68020 code to build shared libraries, but
15372 # adding the `-m68020' flag to GCC prevents building anything better,
15374 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15377 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15378 # PIC is the default for these OSes.
15381 mingw* | pw32* | os2*)
15382 # This hack is so that the source file can tell whether it is being
15383 # built for inclusion in a dll (and should export symbols for example).
15384 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15387 darwin* | rhapsody*)
15388 # PIC is the default on this platform
15389 # Common symbols not allowed in MH_DYLIB files
15390 lt_prog_compiler_pic_GCJ='-fno-common'
15394 # Just because we use GCC doesn't mean we suddenly get shared libraries
15395 # on systems that don't support them.
15396 lt_prog_compiler_can_build_shared_GCJ=no
15401 if test -d /usr/nec; then
15402 lt_prog_compiler_pic_GCJ=-Kconform_pic
15407 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15408 # not for PA HP-UX.
15409 case "$host_cpu" in
15414 lt_prog_compiler_pic_GCJ='-fPIC'
15420 lt_prog_compiler_pic_GCJ='-fPIC'
15424 # PORTME Check for flag to pass linker flags through the system compiler.
15427 lt_prog_compiler_wl_GCJ='-Wl,'
15428 if test "$host_cpu" = ia64; then
15429 # AIX 5 now supports IA64 processor
15430 lt_prog_compiler_static_GCJ='-Bstatic'
15432 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15436 # PIC is the default on this platform
15437 # Common symbols not allowed in MH_DYLIB files
15438 case "$cc_basename" in
15440 lt_prog_compiler_pic_GCJ='-qnocommon'
15441 lt_prog_compiler_wl_GCJ='-Wl,'
15446 mingw* | pw32* | os2*)
15447 # This hack is so that the source file can tell whether it is being
15448 # built for inclusion in a dll (and should export symbols for example).
15449 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15452 hpux9* | hpux10* | hpux11*)
15453 lt_prog_compiler_wl_GCJ='-Wl,'
15454 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15455 # not for PA HP-UX.
15456 case "$host_cpu" in
15461 lt_prog_compiler_pic_GCJ='+Z'
15464 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15465 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15468 irix5* | irix6* | nonstopux*)
15469 lt_prog_compiler_wl_GCJ='-Wl,'
15470 # PIC (with -KPIC) is the default.
15471 lt_prog_compiler_static_GCJ='-non_shared'
15475 lt_prog_compiler_pic_GCJ='-KPIC'
15476 lt_prog_compiler_static_GCJ='-Bstatic'
15482 lt_prog_compiler_wl_GCJ='-Wl,'
15483 lt_prog_compiler_pic_GCJ='-KPIC'
15484 lt_prog_compiler_static_GCJ='-static'
15487 lt_prog_compiler_wl_GCJ='-Wl,'
15488 # All Alpha code is PIC.
15489 lt_prog_compiler_static_GCJ='-non_shared'
15494 osf3* | osf4* | osf5*)
15495 lt_prog_compiler_wl_GCJ='-Wl,'
15496 # All OSF/1 code is PIC.
15497 lt_prog_compiler_static_GCJ='-non_shared'
15501 lt_prog_compiler_pic_GCJ='-Kpic'
15502 lt_prog_compiler_static_GCJ='-dn'
15506 lt_prog_compiler_wl_GCJ='-Wl,'
15507 lt_prog_compiler_pic_GCJ='-KPIC'
15508 lt_prog_compiler_static_GCJ='-Bstatic'
15512 lt_prog_compiler_wl_GCJ='-Qoption ld '
15513 lt_prog_compiler_pic_GCJ='-PIC'
15514 lt_prog_compiler_static_GCJ='-Bstatic'
15517 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15518 lt_prog_compiler_wl_GCJ='-Wl,'
15519 lt_prog_compiler_pic_GCJ='-KPIC'
15520 lt_prog_compiler_static_GCJ='-Bstatic'
15524 if test -d /usr/nec ;then
15525 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15526 lt_prog_compiler_static_GCJ='-Bstatic'
15531 lt_prog_compiler_pic_GCJ='-pic'
15532 lt_prog_compiler_static_GCJ='-Bstatic'
15536 lt_prog_compiler_can_build_shared_GCJ=no
15541 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15542 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15545 # Check to make sure the PIC flag actually works.
15547 if test -n "$lt_prog_compiler_pic_GCJ"; then
15549 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15550 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15551 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15552 echo $ECHO_N "(cached) $ECHO_C" >&6
15554 lt_prog_compiler_pic_works_GCJ=no
15555 ac_outfile=conftest.$ac_objext
15556 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15557 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15558 # Insert the option either (1) after the last *FLAGS variable, or
15559 # (2) before a word containing "conftest.", or (3) at the end.
15560 # Note that $ac_compile itself does not contain backslashes and begins
15561 # with a dollar sign (not a hyphen), so the echo should work correctly.
15562 # The option is referenced via a variable to avoid confusing sed.
15563 lt_compile=`echo "$ac_compile" | $SED \
15564 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15566 -e 's:$: $lt_compiler_flag:'`
15567 (eval echo "\"\$as_me:15567: $lt_compile\"" >&5)
15568 (eval "$lt_compile" 2>conftest.err)
15570 cat conftest.err >&5
15571 echo "$as_me:15571: \$? = $ac_status" >&5
15572 if (exit $ac_status) && test -s "$ac_outfile"; then
15573 # The compiler can only warn and ignore the option if not recognized
15574 # So say no if there are warnings
15575 if test ! -s conftest.err; then
15576 lt_prog_compiler_pic_works_GCJ=yes
15582 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15583 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15585 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15586 case $lt_prog_compiler_pic_GCJ in
15588 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15591 lt_prog_compiler_pic_GCJ=
15592 lt_prog_compiler_can_build_shared_GCJ=no
15597 # For platforms which do not support PIC, -DPIC is meaningless:
15599 lt_prog_compiler_pic_GCJ=
15602 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15606 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15607 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15608 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15609 echo $ECHO_N "(cached) $ECHO_C" >&6
15611 lt_cv_prog_compiler_c_o_GCJ=no
15612 $rm -r conftest 2>/dev/null
15616 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15618 lt_compiler_flag="-o out/conftest2.$ac_objext"
15619 # Insert the option either (1) after the last *FLAGS variable, or
15620 # (2) before a word containing "conftest.", or (3) at the end.
15621 # Note that $ac_compile itself does not contain backslashes and begins
15622 # with a dollar sign (not a hyphen), so the echo should work correctly.
15623 lt_compile=`echo "$ac_compile" | $SED \
15624 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15625 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15626 -e 's:$: $lt_compiler_flag:'`
15627 (eval echo "\"\$as_me:15627: $lt_compile\"" >&5)
15628 (eval "$lt_compile" 2>out/conftest.err)
15630 cat out/conftest.err >&5
15631 echo "$as_me:15631: \$? = $ac_status" >&5
15632 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15634 # The compiler can only warn and ignore the option if not recognized
15635 # So say no if there are warnings
15636 if test ! -s out/conftest.err; then
15637 lt_cv_prog_compiler_c_o_GCJ=yes
15642 # SGI C++ compiler will create directory out/ii_files/ for
15643 # template instantiation
15644 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15645 $rm out/* && rmdir out
15651 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15652 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15655 hard_links="nottested"
15656 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15657 # do not overwrite the value of need_locks provided by the user
15658 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15659 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15662 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15664 ln conftest.a conftest.b 2>&5 || hard_links=no
15665 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15666 echo "$as_me:$LINENO: result: $hard_links" >&5
15667 echo "${ECHO_T}$hard_links" >&6
15668 if test "$hard_links" = no; then
15669 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15670 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15677 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15678 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15681 allow_undefined_flag_GCJ=
15682 enable_shared_with_static_runtimes_GCJ=no
15684 archive_expsym_cmds_GCJ=
15685 old_archive_From_new_cmds_GCJ=
15686 old_archive_from_expsyms_cmds_GCJ=
15687 export_dynamic_flag_spec_GCJ=
15688 whole_archive_flag_spec_GCJ=
15689 thread_safe_flag_spec_GCJ=
15690 hardcode_libdir_flag_spec_GCJ=
15691 hardcode_libdir_flag_spec_ld_GCJ=
15692 hardcode_libdir_separator_GCJ=
15693 hardcode_direct_GCJ=no
15694 hardcode_minus_L_GCJ=no
15695 hardcode_shlibpath_var_GCJ=unsupported
15696 link_all_deplibs_GCJ=unknown
15697 hardcode_automatic_GCJ=no
15699 module_expsym_cmds_GCJ=
15700 always_export_symbols_GCJ=no
15701 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15702 # include_expsyms should be a list of space-separated symbols to be *always*
15703 # included in the symbol list
15704 include_expsyms_GCJ=
15705 # exclude_expsyms can be an extended regexp of symbols to exclude
15706 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15707 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15708 # as well as any symbol that contains `d'.
15709 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15710 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15711 # platforms (ab)use it in PIC code, but their linkers get confused if
15712 # the symbol is explicitly referenced. Since portable code cannot
15713 # rely on this symbol name, it's probably fine to never include it in
15714 # preloaded symbol tables.
15715 extract_expsyms_cmds=
15718 cygwin* | mingw* | pw32*)
15719 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15720 # When not using gcc, we currently assume that we are using
15721 # Microsoft Visual C++.
15722 if test "$GCC" != yes; then
15732 if test "$with_gnu_ld" = yes; then
15733 # If archive_cmds runs LD, not CC, wlarc should be empty
15736 # See if GNU ld supports shared libraries.
15738 aix3* | aix4* | aix5*)
15739 # On AIX/PPC, the GNU linker is very broken
15740 if test "$host_cpu" != ia64; then
15744 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15745 *** to be unable to reliably create shared libraries on AIX.
15746 *** Therefore, libtool is disabling shared libraries support. If you
15747 *** really care for shared libraries, you may want to modify your PATH
15748 *** so that a non-GNU linker is found, and then restart.
15755 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)'
15756 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15757 hardcode_minus_L_GCJ=yes
15759 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15760 # that the semantics of dynamic libraries on AmigaOS, at least up
15761 # to version 4, is to share data among multiple programs linked
15762 # with the same dynamic library. Since this doesn't match the
15763 # behavior of shared libraries on other platforms, we can't use
15769 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15770 allow_undefined_flag_GCJ=unsupported
15771 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15772 # support --undefined. This deserves some investigation. FIXME
15773 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15779 cygwin* | mingw* | pw32*)
15780 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15781 # as there is no search path for DLLs.
15782 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15783 allow_undefined_flag_GCJ=unsupported
15784 always_export_symbols_GCJ=no
15785 enable_shared_with_static_runtimes_GCJ=yes
15786 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15788 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15789 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15790 # If the export-symbols file already is a .def file (1st line
15791 # is EXPORTS), use it as is; otherwise, prepend...
15792 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15793 cp $export_symbols $output_objdir/$soname.def;
15795 echo EXPORTS > $output_objdir/$soname.def;
15796 cat $export_symbols >> $output_objdir/$soname.def;
15797 fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15804 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15805 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15808 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15809 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15814 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15818 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15819 *** create shared libraries on Solaris systems. Therefore, libtool
15820 *** is disabling shared libraries support. We urge you to upgrade GNU
15821 *** binutils to release 2.9.1 or newer. Another option is to modify
15822 *** your PATH or compiler configuration so that the native linker is
15823 *** used, and then restart.
15826 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15827 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15828 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15835 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15837 hardcode_direct_GCJ=yes
15838 hardcode_shlibpath_var_GCJ=no
15842 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15843 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15844 archive_cmds_GCJ="$tmp_archive_cmds"
15845 supports_anon_versioning=no
15846 case `$LD -v 2>/dev/null` in
15847 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15848 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15849 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15850 *\ 2.11.*) ;; # other 2.11 versions
15851 *) supports_anon_versioning=yes ;;
15853 if test $supports_anon_versioning = yes; then
15854 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;
15855 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15857 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15865 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15866 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15867 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15874 if test "$ld_shlibs_GCJ" = yes; then
15875 runpath_var=LD_RUN_PATH
15876 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15877 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15878 # ancient GNU ld didn't support --whole-archive et. al.
15879 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15880 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15882 whole_archive_flag_spec_GCJ=
15886 # PORTME fill in a description of your system's linker (not GNU ld)
15889 allow_undefined_flag_GCJ=unsupported
15890 always_export_symbols_GCJ=yes
15891 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'
15892 # Note: this linker hardcodes the directories in LIBPATH if there
15893 # are no directories specified by -L.
15894 hardcode_minus_L_GCJ=yes
15895 if test "$GCC" = yes && test -z "$link_static_flag"; then
15896 # Neither direct hardcoding nor static linking is supported with a
15898 hardcode_direct_GCJ=unsupported
15903 if test "$host_cpu" = ia64; then
15904 # On IA64, the linker does run time linking by default, so we don't
15905 # have to do anything special.
15906 aix_use_runtimelinking=no
15907 exp_sym_flag='-Bexport'
15910 # If we're using GNU nm, then we don't want the "-C" option.
15911 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15912 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15913 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'
15915 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'
15917 aix_use_runtimelinking=no
15919 # Test if we are trying to use run time linking or normal
15920 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15921 # need to do runtime linking.
15922 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15923 for ld_flag in $LDFLAGS; do
15924 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15925 aix_use_runtimelinking=yes
15931 exp_sym_flag='-bexport'
15932 no_entry_flag='-bnoentry'
15935 # When large executables or shared objects are built, AIX ld can
15936 # have problems creating the table of contents. If linking a library
15937 # or program results in "error TOC overflow" add -mminimal-toc to
15938 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15939 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15941 archive_cmds_GCJ=''
15942 hardcode_direct_GCJ=yes
15943 hardcode_libdir_separator_GCJ=':'
15944 link_all_deplibs_GCJ=yes
15946 if test "$GCC" = yes; then
15947 case $host_os in aix4.012|aix4.012.*)
15948 # We only want to do this on AIX 4.2 and lower, the check
15949 # below for broken collect2 doesn't work under 4.3+
15950 collect2name=`${CC} -print-prog-name=collect2`
15951 if test -f "$collect2name" && \
15952 strings "$collect2name" | grep resolve_lib_name >/dev/null
15954 # We have reworked collect2
15955 hardcode_direct_GCJ=yes
15957 # We have old collect2
15958 hardcode_direct_GCJ=unsupported
15959 # It fails to find uninstalled libraries when the uninstalled
15960 # path is not listed in the libpath. Setting hardcode_minus_L
15961 # to unsupported forces relinking
15962 hardcode_minus_L_GCJ=yes
15963 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15964 hardcode_libdir_separator_GCJ=
15967 shared_flag='-shared'
15970 if test "$host_cpu" = ia64; then
15971 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15972 # chokes on -Wl,-G. The following line is correct:
15975 if test "$aix_use_runtimelinking" = yes; then
15976 shared_flag='${wl}-G'
15978 shared_flag='${wl}-bM:SRE'
15983 # It seems that -bexpall does not export symbols beginning with
15984 # underscore (_), so it is better to generate a list of symbols to export.
15985 always_export_symbols_GCJ=yes
15986 if test "$aix_use_runtimelinking" = yes; then
15987 # Warning - without using the other runtime loading flags (-brtl),
15988 # -berok will link without error, but may produce a broken library.
15989 allow_undefined_flag_GCJ='-berok'
15990 # Determine the default libpath from the value encoded in an empty executable.
15991 cat >conftest.$ac_ext <<_ACEOF
15994 cat confdefs.h >>conftest.$ac_ext
15995 cat >>conftest.$ac_ext <<_ACEOF
15996 /* end confdefs.h. */
16006 rm -f conftest.$ac_objext conftest$ac_exeext
16007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16008 (eval $ac_link) 2>conftest.er1
16010 grep -v '^ *+' conftest.er1 >conftest.err
16012 cat conftest.err >&5
16013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); } &&
16015 { ac_try='test -z "$ac_c_werror_flag"
16016 || test ! -s conftest.err'
16017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16018 (eval $ac_try) 2>&5
16020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021 (exit $ac_status); }; } &&
16022 { ac_try='test -s conftest$ac_exeext'
16023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16024 (eval $ac_try) 2>&5
16026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027 (exit $ac_status); }; }; then
16029 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16031 # Check for a 64-bit object if we didn't find anything.
16032 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; }
16035 echo "$as_me: failed program was:" >&5
16036 sed 's/^/| /' conftest.$ac_ext >&5
16039 rm -f conftest.err conftest.$ac_objext \
16040 conftest$ac_exeext conftest.$ac_ext
16041 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16043 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16044 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"
16046 if test "$host_cpu" = ia64; then
16047 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16048 allow_undefined_flag_GCJ="-z nodefs"
16049 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"
16051 # Determine the default libpath from the value encoded in an empty executable.
16052 cat >conftest.$ac_ext <<_ACEOF
16055 cat confdefs.h >>conftest.$ac_ext
16056 cat >>conftest.$ac_ext <<_ACEOF
16057 /* end confdefs.h. */
16067 rm -f conftest.$ac_objext conftest$ac_exeext
16068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16069 (eval $ac_link) 2>conftest.er1
16071 grep -v '^ *+' conftest.er1 >conftest.err
16073 cat conftest.err >&5
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); } &&
16076 { ac_try='test -z "$ac_c_werror_flag"
16077 || test ! -s conftest.err'
16078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16079 (eval $ac_try) 2>&5
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); }; } &&
16083 { ac_try='test -s conftest$ac_exeext'
16084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16085 (eval $ac_try) 2>&5
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; }; then
16090 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16092 # Check for a 64-bit object if we didn't find anything.
16093 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; }
16096 echo "$as_me: failed program was:" >&5
16097 sed 's/^/| /' conftest.$ac_ext >&5
16100 rm -f conftest.err conftest.$ac_objext \
16101 conftest$ac_exeext conftest.$ac_ext
16102 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16104 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16105 # Warning - without using the other run time loading flags,
16106 # -berok will link without error, but may produce a broken library.
16107 no_undefined_flag_GCJ=' ${wl}-bernotok'
16108 allow_undefined_flag_GCJ=' ${wl}-berok'
16109 # -bexpall does not export symbols beginning with underscore (_)
16110 always_export_symbols_GCJ=yes
16111 # Exported symbols can be pulled into shared objects from archives
16112 whole_archive_flag_spec_GCJ=' '
16113 archive_cmds_need_lc_GCJ=yes
16114 # This is similar to how AIX traditionally builds it's shared libraries.
16115 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'
16121 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)'
16122 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16123 hardcode_minus_L_GCJ=yes
16124 # see comment about different semantics on the GNU ld section
16129 export_dynamic_flag_spec_GCJ=-rdynamic
16132 cygwin* | mingw* | pw32*)
16133 # When not using gcc, we currently assume that we are using
16134 # Microsoft Visual C++.
16135 # hardcode_libdir_flag_spec is actually meaningless, as there is
16136 # no search path for DLLs.
16137 hardcode_libdir_flag_spec_GCJ=' '
16138 allow_undefined_flag_GCJ=unsupported
16139 # Tell ltmain to make .lib files, not .a files.
16141 # Tell ltmain to make .dll files, not .so files.
16143 # FIXME: Setting linknames here is a bad hack.
16144 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames='
16145 # The linker will automatically build a .lib file if we build a DLL.
16146 old_archive_From_new_cmds_GCJ='true'
16147 # FIXME: Should let the user specify the lib program.
16148 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16149 fix_srcfile_path='`cygpath -w "$srcfile"`'
16150 enable_shared_with_static_runtimes_GCJ=yes
16153 darwin* | rhapsody*)
16155 rhapsody* | darwin1.[012])
16156 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16159 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16160 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16162 case ${MACOSX_DEPLOYMENT_TARGET} in
16164 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16167 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16173 archive_cmds_need_lc_GCJ=no
16174 hardcode_direct_GCJ=no
16175 hardcode_automatic_GCJ=yes
16176 hardcode_shlibpath_var_GCJ=unsupported
16177 whole_archive_flag_spec_GCJ=''
16178 link_all_deplibs_GCJ=yes
16179 if test "$GCC" = yes ; then
16180 output_verbose_link_cmd='echo'
16181 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16182 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16183 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16184 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}'
16185 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}'
16187 case "$cc_basename" in
16189 output_verbose_link_cmd='echo'
16190 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16191 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16192 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16193 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}'
16194 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}'
16204 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16205 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16206 hardcode_shlibpath_var_GCJ=no
16213 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16214 # support. Future versions do this automatically, but an explicit c++rt0.o
16215 # does not break anything, and helps significantly (at the cost of a little
16218 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16219 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16220 hardcode_direct_GCJ=yes
16221 hardcode_shlibpath_var_GCJ=no
16224 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16226 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16227 hardcode_direct_GCJ=yes
16228 hardcode_minus_L_GCJ=yes
16229 hardcode_shlibpath_var_GCJ=no
16232 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16233 freebsd* | kfreebsd*-gnu)
16234 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16235 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16236 hardcode_direct_GCJ=yes
16237 hardcode_shlibpath_var_GCJ=no
16241 if test "$GCC" = yes; then
16242 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'
16244 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'
16246 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16247 hardcode_libdir_separator_GCJ=:
16248 hardcode_direct_GCJ=yes
16250 # hardcode_minus_L: Not really in the search PATH,
16251 # but as the default location of the library.
16252 hardcode_minus_L_GCJ=yes
16253 export_dynamic_flag_spec_GCJ='${wl}-E'
16257 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16258 case "$host_cpu" in
16260 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16263 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16267 case "$host_cpu" in
16269 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16272 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16276 if test "$with_gnu_ld" = no; then
16277 case "$host_cpu" in
16279 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16280 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16281 hardcode_libdir_separator_GCJ=:
16282 hardcode_direct_GCJ=no
16283 hardcode_shlibpath_var_GCJ=no
16286 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16287 hardcode_direct_GCJ=no
16288 hardcode_shlibpath_var_GCJ=no
16290 # hardcode_minus_L: Not really in the search PATH,
16291 # but as the default location of the library.
16292 hardcode_minus_L_GCJ=yes
16295 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16296 hardcode_libdir_separator_GCJ=:
16297 hardcode_direct_GCJ=yes
16298 export_dynamic_flag_spec_GCJ='${wl}-E'
16300 # hardcode_minus_L: Not really in the search PATH,
16301 # but as the default location of the library.
16302 hardcode_minus_L_GCJ=yes
16308 irix5* | irix6* | nonstopux*)
16309 if test "$GCC" = yes; then
16310 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'
16312 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'
16313 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16315 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16316 hardcode_libdir_separator_GCJ=:
16317 link_all_deplibs_GCJ=yes
16321 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16322 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16324 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16326 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16327 hardcode_direct_GCJ=yes
16328 hardcode_shlibpath_var_GCJ=no
16332 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16333 hardcode_direct_GCJ=yes
16334 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16335 hardcode_libdir_separator_GCJ=:
16336 hardcode_shlibpath_var_GCJ=no
16340 hardcode_direct_GCJ=yes
16341 hardcode_shlibpath_var_GCJ=no
16342 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16343 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16344 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16345 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16346 export_dynamic_flag_spec_GCJ='${wl}-E'
16349 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16350 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16351 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16354 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16355 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16362 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16363 hardcode_minus_L_GCJ=yes
16364 allow_undefined_flag_GCJ=unsupported
16365 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'
16366 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16370 if test "$GCC" = yes; then
16371 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16372 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'
16374 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16375 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'
16377 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16378 hardcode_libdir_separator_GCJ=:
16381 osf4* | osf5*) # as osf3* with the addition of -msym flag
16382 if test "$GCC" = yes; then
16383 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16384 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'
16385 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16387 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16388 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'
16389 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'
16390 # Both c and cxx compiler support -rpath directly
16391 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16393 hardcode_libdir_separator_GCJ=:
16397 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16398 hardcode_shlibpath_var_GCJ=no
16399 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16400 runpath_var=LD_RUN_PATH
16401 hardcode_runpath_var=yes
16405 no_undefined_flag_GCJ=' -z text'
16406 if test "$GCC" = yes; then
16407 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16408 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'
16410 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16411 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'
16413 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16414 hardcode_shlibpath_var_GCJ=no
16416 solaris2.[0-5] | solaris2.[0-5].*) ;;
16417 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16418 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16420 link_all_deplibs_GCJ=yes
16424 if test "x$host_vendor" = xsequent; then
16425 # Use $CC to link under sequent, because it throws in some extra .o
16426 # files that make .init and .fini sections work.
16427 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16429 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16431 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16432 hardcode_direct_GCJ=yes
16433 hardcode_minus_L_GCJ=yes
16434 hardcode_shlibpath_var_GCJ=no
16438 case $host_vendor in
16440 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16441 hardcode_direct_GCJ=yes # is this really true???
16444 ## LD is ld it makes a PLAMLIB
16445 ## CC just makes a GrossModule.
16446 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16447 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16448 hardcode_direct_GCJ=no
16451 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16452 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16455 runpath_var='LD_RUN_PATH'
16456 hardcode_shlibpath_var_GCJ=no
16460 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16461 hardcode_shlibpath_var_GCJ=no
16462 export_dynamic_flag_spec_GCJ='-Bexport'
16466 if test -d /usr/nec; then
16467 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16468 hardcode_shlibpath_var_GCJ=no
16469 runpath_var=LD_RUN_PATH
16470 hardcode_runpath_var=yes
16476 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16477 hardcode_direct_GCJ=yes
16478 hardcode_minus_L_GCJ=no
16479 hardcode_shlibpath_var_GCJ=no
16480 hardcode_runpath_var=yes
16481 runpath_var=LD_RUN_PATH
16484 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16485 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16486 if test "$GCC" = yes; then
16487 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16489 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16491 runpath_var='LD_RUN_PATH'
16492 hardcode_shlibpath_var_GCJ=no
16496 no_undefined_flag_GCJ=' -z text'
16497 # $CC -shared without GNU ld will not create a library from C++
16498 # object files and a static libstdc++, better avoid it by now
16499 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16500 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'
16501 hardcode_libdir_flag_spec_GCJ=
16502 hardcode_shlibpath_var_GCJ=no
16503 runpath_var='LD_RUN_PATH'
16507 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16508 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16509 hardcode_shlibpath_var_GCJ=no
16518 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16519 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16520 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16522 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16523 if test "$GCC" = yes; then
16524 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16528 # Do we need to explicitly link libc?
16530 case "x$archive_cmds_need_lc_GCJ" in
16532 # Assume -lc should be added
16533 archive_cmds_need_lc_GCJ=yes
16535 if test "$enable_shared" = yes && test "$GCC" = yes; then
16536 case $archive_cmds_GCJ in
16538 # FIXME: we may have to deal with multi-command sequences.
16541 # Test whether the compiler implicitly links with -lc since on some
16542 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16543 # to ld, don't add -lc before -lgcc.
16544 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16545 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16547 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16550 (eval $ac_compile) 2>&5
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); } 2>conftest.err; then
16556 libobjs=conftest.$ac_objext
16558 wl=$lt_prog_compiler_wl_GCJ
16564 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16565 allow_undefined_flag_GCJ=
16566 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16567 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); }
16572 archive_cmds_need_lc_GCJ=no
16574 archive_cmds_need_lc_GCJ=yes
16576 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16578 cat conftest.err 1>&5
16581 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16582 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16589 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16590 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16591 library_names_spec=
16592 libname_spec='lib$name'
16596 postuninstall_cmds=
16600 shlibpath_overrides_runpath=unknown
16602 dynamic_linker="$host_os ld.so"
16603 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16604 if test "$GCC" = yes; then
16605 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16606 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16607 # if the path contains ";" then we assume it to be the separator
16608 # otherwise default to the standard path separator (i.e. ":") - it is
16609 # assumed that no part of a normal pathname contains ";" but that should
16610 # okay in the real world where ";" in dirpaths is itself problematic.
16611 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16613 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16616 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16618 need_lib_prefix=unknown
16619 hardcode_into_libs=no
16621 # when you set need_version to no, make sure it does not cause -set_version
16622 # flags to be left without arguments
16623 need_version=unknown
16628 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16629 shlibpath_var=LIBPATH
16631 # AIX 3 has no versioning support, so we append a major version to the name.
16632 soname_spec='${libname}${release}${shared_ext}$major'
16639 hardcode_into_libs=yes
16640 if test "$host_cpu" = ia64; then
16641 # AIX 5 supports IA64
16642 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16643 shlibpath_var=LD_LIBRARY_PATH
16645 # With GCC up to 2.95.x, collect2 would create an import file
16646 # for dependence libraries. The import file would start with
16647 # the line `#! .'. This would cause the generated library to
16648 # depend on `.', always an invalid library. This was fixed in
16649 # development snapshots of GCC prior to 3.0.
16651 aix4 | aix4.[01] | aix4.[01].*)
16652 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16654 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16657 can_build_shared=no
16661 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16662 # soname into executable. Probably we can add versioning support to
16663 # collect2, so additional links can be useful in future.
16664 if test "$aix_use_runtimelinking" = yes; then
16665 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16666 # instead of lib<name>.a to let people know that these are not
16667 # typical AIX shared libraries.
16668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16670 # We preserve .a as extension for shared libraries through AIX4.2
16671 # and later when we are not doing run time linking.
16672 library_names_spec='${libname}${release}.a $libname.a'
16673 soname_spec='${libname}${release}${shared_ext}$major'
16675 shlibpath_var=LIBPATH
16680 library_names_spec='$libname.ixlibrary $libname.a'
16681 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16682 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'
16686 library_names_spec='${libname}${shared_ext}'
16687 dynamic_linker="$host_os ld.so"
16688 shlibpath_var=LIBRARY_PATH
16694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16695 soname_spec='${libname}${release}${shared_ext}$major'
16696 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16697 shlibpath_var=LD_LIBRARY_PATH
16698 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16699 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16700 # the default ld.so.conf also contains /usr/contrib/lib and
16701 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16702 # libtool to hard-code these into programs
16705 cygwin* | mingw* | pw32*)
16706 version_type=windows
16711 case $GCC,$host_os in
16712 yes,cygwin* | yes,mingw* | yes,pw32*)
16713 library_names_spec='$libname.dll.a'
16714 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16715 postinstall_cmds='base_file=`basename \${file}`;
16716 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
16717 dldir=$destdir/`dirname \$dlpath`;
16718 test -d \$dldir || mkdir -p \$dldir;
16719 $install_prog $dir/$dlname \$dldir/$dlname'
16720 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
16721 dlpath=$dir/\$dldll;
16723 shlibpath_overrides_runpath=yes
16727 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16728 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16729 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16732 # MinGW DLLs use traditional 'lib' prefix
16733 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16734 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16735 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16736 # It is most probably a Windows format PATH printed by
16737 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16738 # path with ; separators, and with drive letters. We can handle the
16739 # drive letters (cygwin fileutils understands them), so leave them,
16740 # especially as we might pass files found there to a mingw objdump,
16741 # which wouldn't understand a cygwinified path. Ahh.
16742 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16744 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16748 # pw32 DLLs use 'pw' prefix rather than 'lib'
16749 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16755 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16758 dynamic_linker='Win32 ld.exe'
16759 # FIXME: first we should search . and the directory the executable is in
16763 darwin* | rhapsody*)
16764 dynamic_linker="$host_os dyld"
16765 version_type=darwin
16768 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16769 soname_spec='${libname}${release}${major}$shared_ext'
16770 shlibpath_overrides_runpath=yes
16771 shlibpath_var=DYLD_LIBRARY_PATH
16772 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16773 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16774 if test "$GCC" = yes; then
16775 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"`
16777 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16779 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16787 soname_spec='${libname}${release}${shared_ext}$major'
16788 shlibpath_var=LD_LIBRARY_PATH
16799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16800 soname_spec='${libname}${release}${shared_ext}$major'
16801 shlibpath_var=LD_LIBRARY_PATH
16802 shlibpath_overrides_runpath=no
16803 hardcode_into_libs=yes
16804 dynamic_linker='GNU ld.so'
16808 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16809 version_type=freebsd-$objformat
16810 case $version_type in
16812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16817 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16821 shlibpath_var=LD_LIBRARY_PATH
16824 shlibpath_overrides_runpath=yes
16826 freebsd3.01* | freebsdelf3.01*)
16827 shlibpath_overrides_runpath=yes
16828 hardcode_into_libs=yes
16831 shlibpath_overrides_runpath=no
16832 hardcode_into_libs=yes
16841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16842 soname_spec='${libname}${release}${shared_ext}$major'
16843 shlibpath_var=LD_LIBRARY_PATH
16844 hardcode_into_libs=yes
16847 hpux9* | hpux10* | hpux11*)
16848 # Give a soname corresponding to the major version so that dld.sl refuses to
16849 # link against other versions.
16853 case "$host_cpu" in
16856 hardcode_into_libs=yes
16857 dynamic_linker="$host_os dld.so"
16858 shlibpath_var=LD_LIBRARY_PATH
16859 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16861 soname_spec='${libname}${release}${shared_ext}$major'
16862 if test "X$HPUX_IA64_MODE" = X32; then
16863 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16865 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16867 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16871 hardcode_into_libs=yes
16872 dynamic_linker="$host_os dld.sl"
16873 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16874 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16876 soname_spec='${libname}${release}${shared_ext}$major'
16877 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16878 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16882 dynamic_linker="$host_os dld.sl"
16883 shlibpath_var=SHLIB_PATH
16884 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16886 soname_spec='${libname}${release}${shared_ext}$major'
16889 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16890 postinstall_cmds='chmod 555 $lib'
16893 irix5* | irix6* | nonstopux*)
16895 nonstopux*) version_type=nonstopux ;;
16897 if test "$lt_cv_prog_gnu_ld" = yes; then
16905 soname_spec='${libname}${release}${shared_ext}$major'
16906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16908 irix5* | nonstopux*)
16909 libsuff= shlibsuff=
16912 case $LD in # libtool.m4 will add one of these switches to LD
16913 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16914 libsuff= shlibsuff= libmagic=32-bit;;
16915 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16916 libsuff=32 shlibsuff=N32 libmagic=N32;;
16917 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16918 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16919 *) libsuff= shlibsuff= libmagic=never-match;;
16923 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16924 shlibpath_overrides_runpath=no
16925 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16926 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16927 hardcode_into_libs=yes
16930 # No shared lib support for Linux oldld, aout, or coff.
16931 linux*oldld* | linux*aout* | linux*coff*)
16935 # This must be Linux ELF.
16940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16941 soname_spec='${libname}${release}${shared_ext}$major'
16942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16943 shlibpath_var=LD_LIBRARY_PATH
16944 shlibpath_overrides_runpath=no
16945 # This implies no fast_install, which is unacceptable.
16946 # Some rework will be needed to allow for fast_install
16947 # before this can be enabled.
16948 hardcode_into_libs=yes
16950 # Append ld.so.conf contents to the search path
16951 if test -f /etc/ld.so.conf; then
16952 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16953 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16956 # We used to test for /lib/ld.so.1 and disable shared libraries on
16957 # powerpc, because MkLinux only supported shared libraries with the
16958 # GNU dynamic linker. Since this was broken with cross compilers,
16959 # most powerpc-linux boxes support dynamic linking these days and
16960 # people can always --disable-shared, the test was removed, and we
16961 # assume the GNU/Linux dynamic linker is in use.
16962 dynamic_linker='GNU/Linux ld.so'
16969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16970 soname_spec='${libname}${release}${shared_ext}$major'
16971 shlibpath_var=LD_LIBRARY_PATH
16972 shlibpath_overrides_runpath=no
16973 hardcode_into_libs=yes
16974 dynamic_linker='GNU ld.so'
16981 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16983 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16984 dynamic_linker='NetBSD (a.out) ld.so'
16986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16987 soname_spec='${libname}${release}${shared_ext}$major'
16988 dynamic_linker='NetBSD ld.elf_so'
16990 shlibpath_var=LD_LIBRARY_PATH
16991 shlibpath_overrides_runpath=yes
16992 hardcode_into_libs=yes
16997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16998 shlibpath_var=LD_LIBRARY_PATH
16999 shlibpath_overrides_runpath=yes
17006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17007 soname_spec='${libname}${release}${shared_ext}$major'
17008 shlibpath_var=LD_LIBRARY_PATH
17009 shlibpath_overrides_runpath=yes
17016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17017 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17018 shlibpath_var=LD_LIBRARY_PATH
17019 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17021 openbsd2.[89] | openbsd2.[89].*)
17022 shlibpath_overrides_runpath=no
17025 shlibpath_overrides_runpath=yes
17029 shlibpath_overrides_runpath=yes
17034 libname_spec='$name'
17037 library_names_spec='$libname${shared_ext} $libname.a'
17038 dynamic_linker='OS/2 ld.exe'
17039 shlibpath_var=LIBPATH
17042 osf3* | osf4* | osf5*)
17046 soname_spec='${libname}${release}${shared_ext}$major'
17047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17048 shlibpath_var=LD_LIBRARY_PATH
17049 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17050 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17055 soname_spec='${libname}${release}${shared_ext}$major'
17056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17057 shlibpath_var=LD_LIBRARY_PATH
17064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17065 soname_spec='${libname}${release}${shared_ext}$major'
17066 shlibpath_var=LD_LIBRARY_PATH
17067 shlibpath_overrides_runpath=yes
17068 hardcode_into_libs=yes
17069 # ldd complains unless libraries are executable
17070 postinstall_cmds='chmod +x $lib'
17075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17076 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17077 shlibpath_var=LD_LIBRARY_PATH
17078 shlibpath_overrides_runpath=yes
17079 if test "$with_gnu_ld" = yes; then
17085 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17088 soname_spec='${libname}${release}${shared_ext}$major'
17089 shlibpath_var=LD_LIBRARY_PATH
17090 case $host_vendor in
17092 shlibpath_overrides_runpath=no
17094 export_dynamic_flag_spec='${wl}-Blargedynsym'
17095 runpath_var=LD_RUN_PATH
17103 shlibpath_overrides_runpath=no
17104 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17110 if test -d /usr/nec ;then
17112 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17113 soname_spec='$libname${shared_ext}.$major'
17114 shlibpath_var=LD_LIBRARY_PATH
17120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17121 soname_spec='${libname}${release}${shared_ext}$major'
17122 shlibpath_var=LD_LIBRARY_PATH
17129 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17130 echo "${ECHO_T}$dynamic_linker" >&6
17131 test "$dynamic_linker" = no && can_build_shared=no
17133 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17134 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17135 hardcode_action_GCJ=
17136 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17137 test -n "$runpath_var_GCJ" || \
17138 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17140 # We can hardcode non-existant directories.
17141 if test "$hardcode_direct_GCJ" != no &&
17142 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17143 # have to relink, otherwise we might link with an installed library
17144 # when we should be linking with a yet-to-be-installed one
17145 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17146 test "$hardcode_minus_L_GCJ" != no; then
17147 # Linking always hardcodes the temporary library directory.
17148 hardcode_action_GCJ=relink
17150 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17151 hardcode_action_GCJ=immediate
17154 # We cannot hardcode anything, or else we can only hardcode existing
17156 hardcode_action_GCJ=unsupported
17158 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17159 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17161 if test "$hardcode_action_GCJ" = relink; then
17162 # Fast installation is not supported
17163 enable_fast_install=no
17164 elif test "$shlibpath_overrides_runpath" = yes ||
17165 test "$enable_shared" = no; then
17166 # Fast installation is not necessary
17167 enable_fast_install=needless
17172 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17173 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17174 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17175 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17176 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17177 echo "$as_me:$LINENO: result: yes" >&5
17178 echo "${ECHO_T}yes" >&6
17180 # FIXME - insert some real tests, host_os isn't really good enough
17183 if test -n "$STRIP" ; then
17184 striplib="$STRIP -x"
17185 echo "$as_me:$LINENO: result: yes" >&5
17186 echo "${ECHO_T}yes" >&6
17188 echo "$as_me:$LINENO: result: no" >&5
17189 echo "${ECHO_T}no" >&6
17193 echo "$as_me:$LINENO: result: no" >&5
17194 echo "${ECHO_T}no" >&6
17199 if test "x$enable_dlopen" != xyes; then
17200 enable_dlopen=unknown
17201 enable_dlopen_self=unknown
17202 enable_dlopen_self_static=unknown
17209 lt_cv_dlopen="load_add_on"
17211 lt_cv_dlopen_self=yes
17215 lt_cv_dlopen="LoadLibrary"
17220 lt_cv_dlopen="dlopen"
17225 # if libdl is installed we need to link against it
17226 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17227 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17228 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17229 echo $ECHO_N "(cached) $ECHO_C" >&6
17231 ac_check_lib_save_LIBS=$LIBS
17233 cat >conftest.$ac_ext <<_ACEOF
17236 cat confdefs.h >>conftest.$ac_ext
17237 cat >>conftest.$ac_ext <<_ACEOF
17238 /* end confdefs.h. */
17240 /* Override any gcc2 internal prototype to avoid an error. */
17244 /* We use char because int might match the return type of a gcc2
17245 builtin and then its argument prototype would still apply. */
17255 rm -f conftest.$ac_objext conftest$ac_exeext
17256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17257 (eval $ac_link) 2>conftest.er1
17259 grep -v '^ *+' conftest.er1 >conftest.err
17261 cat conftest.err >&5
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); } &&
17264 { ac_try='test -z "$ac_c_werror_flag"
17265 || test ! -s conftest.err'
17266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17267 (eval $ac_try) 2>&5
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); }; } &&
17271 { ac_try='test -s conftest$ac_exeext'
17272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17273 (eval $ac_try) 2>&5
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); }; }; then
17277 ac_cv_lib_dl_dlopen=yes
17279 echo "$as_me: failed program was:" >&5
17280 sed 's/^/| /' conftest.$ac_ext >&5
17282 ac_cv_lib_dl_dlopen=no
17284 rm -f conftest.err conftest.$ac_objext \
17285 conftest$ac_exeext conftest.$ac_ext
17286 LIBS=$ac_check_lib_save_LIBS
17288 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17289 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17290 if test $ac_cv_lib_dl_dlopen = yes; then
17291 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17294 lt_cv_dlopen="dyld"
17296 lt_cv_dlopen_self=yes
17303 echo "$as_me:$LINENO: checking for shl_load" >&5
17304 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17305 if test "${ac_cv_func_shl_load+set}" = set; then
17306 echo $ECHO_N "(cached) $ECHO_C" >&6
17308 cat >conftest.$ac_ext <<_ACEOF
17311 cat confdefs.h >>conftest.$ac_ext
17312 cat >>conftest.$ac_ext <<_ACEOF
17313 /* end confdefs.h. */
17314 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17316 #define shl_load innocuous_shl_load
17318 /* System header to define __stub macros and hopefully few prototypes,
17319 which can conflict with char shl_load (); below.
17320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17321 <limits.h> exists even on freestanding compilers. */
17324 # include <limits.h>
17326 # include <assert.h>
17331 /* Override any gcc2 internal prototype to avoid an error. */
17336 /* We use char because int might match the return type of a gcc2
17337 builtin and then its argument prototype would still apply. */
17339 /* The GNU C library defines this for functions which it implements
17340 to always fail with ENOSYS. Some functions are actually named
17341 something starting with __ and the normal name is an alias. */
17342 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17345 char (*f) () = shl_load;
17354 return f != shl_load;
17359 rm -f conftest.$ac_objext conftest$ac_exeext
17360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17361 (eval $ac_link) 2>conftest.er1
17363 grep -v '^ *+' conftest.er1 >conftest.err
17365 cat conftest.err >&5
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); } &&
17368 { ac_try='test -z "$ac_c_werror_flag"
17369 || test ! -s conftest.err'
17370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17371 (eval $ac_try) 2>&5
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); }; } &&
17375 { ac_try='test -s conftest$ac_exeext'
17376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17377 (eval $ac_try) 2>&5
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); }; }; then
17381 ac_cv_func_shl_load=yes
17383 echo "$as_me: failed program was:" >&5
17384 sed 's/^/| /' conftest.$ac_ext >&5
17386 ac_cv_func_shl_load=no
17388 rm -f conftest.err conftest.$ac_objext \
17389 conftest$ac_exeext conftest.$ac_ext
17391 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17392 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17393 if test $ac_cv_func_shl_load = yes; then
17394 lt_cv_dlopen="shl_load"
17396 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17397 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17398 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17399 echo $ECHO_N "(cached) $ECHO_C" >&6
17401 ac_check_lib_save_LIBS=$LIBS
17403 cat >conftest.$ac_ext <<_ACEOF
17406 cat confdefs.h >>conftest.$ac_ext
17407 cat >>conftest.$ac_ext <<_ACEOF
17408 /* end confdefs.h. */
17410 /* Override any gcc2 internal prototype to avoid an error. */
17414 /* We use char because int might match the return type of a gcc2
17415 builtin and then its argument prototype would still apply. */
17425 rm -f conftest.$ac_objext conftest$ac_exeext
17426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17427 (eval $ac_link) 2>conftest.er1
17429 grep -v '^ *+' conftest.er1 >conftest.err
17431 cat conftest.err >&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); } &&
17434 { ac_try='test -z "$ac_c_werror_flag"
17435 || test ! -s conftest.err'
17436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17437 (eval $ac_try) 2>&5
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); }; } &&
17441 { ac_try='test -s conftest$ac_exeext'
17442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17443 (eval $ac_try) 2>&5
17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446 (exit $ac_status); }; }; then
17447 ac_cv_lib_dld_shl_load=yes
17449 echo "$as_me: failed program was:" >&5
17450 sed 's/^/| /' conftest.$ac_ext >&5
17452 ac_cv_lib_dld_shl_load=no
17454 rm -f conftest.err conftest.$ac_objext \
17455 conftest$ac_exeext conftest.$ac_ext
17456 LIBS=$ac_check_lib_save_LIBS
17458 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17459 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17460 if test $ac_cv_lib_dld_shl_load = yes; then
17461 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17463 echo "$as_me:$LINENO: checking for dlopen" >&5
17464 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17465 if test "${ac_cv_func_dlopen+set}" = set; then
17466 echo $ECHO_N "(cached) $ECHO_C" >&6
17468 cat >conftest.$ac_ext <<_ACEOF
17471 cat confdefs.h >>conftest.$ac_ext
17472 cat >>conftest.$ac_ext <<_ACEOF
17473 /* end confdefs.h. */
17474 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17476 #define dlopen innocuous_dlopen
17478 /* System header to define __stub macros and hopefully few prototypes,
17479 which can conflict with char dlopen (); below.
17480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17481 <limits.h> exists even on freestanding compilers. */
17484 # include <limits.h>
17486 # include <assert.h>
17491 /* Override any gcc2 internal prototype to avoid an error. */
17496 /* We use char because int might match the return type of a gcc2
17497 builtin and then its argument prototype would still apply. */
17499 /* The GNU C library defines this for functions which it implements
17500 to always fail with ENOSYS. Some functions are actually named
17501 something starting with __ and the normal name is an alias. */
17502 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17505 char (*f) () = dlopen;
17514 return f != dlopen;
17519 rm -f conftest.$ac_objext conftest$ac_exeext
17520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17521 (eval $ac_link) 2>conftest.er1
17523 grep -v '^ *+' conftest.er1 >conftest.err
17525 cat conftest.err >&5
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); } &&
17528 { ac_try='test -z "$ac_c_werror_flag"
17529 || test ! -s conftest.err'
17530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17531 (eval $ac_try) 2>&5
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); }; } &&
17535 { ac_try='test -s conftest$ac_exeext'
17536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17537 (eval $ac_try) 2>&5
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); }; }; then
17541 ac_cv_func_dlopen=yes
17543 echo "$as_me: failed program was:" >&5
17544 sed 's/^/| /' conftest.$ac_ext >&5
17546 ac_cv_func_dlopen=no
17548 rm -f conftest.err conftest.$ac_objext \
17549 conftest$ac_exeext conftest.$ac_ext
17551 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17552 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17553 if test $ac_cv_func_dlopen = yes; then
17554 lt_cv_dlopen="dlopen"
17556 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17557 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17558 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17559 echo $ECHO_N "(cached) $ECHO_C" >&6
17561 ac_check_lib_save_LIBS=$LIBS
17563 cat >conftest.$ac_ext <<_ACEOF
17566 cat confdefs.h >>conftest.$ac_ext
17567 cat >>conftest.$ac_ext <<_ACEOF
17568 /* end confdefs.h. */
17570 /* Override any gcc2 internal prototype to avoid an error. */
17574 /* We use char because int might match the return type of a gcc2
17575 builtin and then its argument prototype would still apply. */
17585 rm -f conftest.$ac_objext conftest$ac_exeext
17586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17587 (eval $ac_link) 2>conftest.er1
17589 grep -v '^ *+' conftest.er1 >conftest.err
17591 cat conftest.err >&5
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); } &&
17594 { ac_try='test -z "$ac_c_werror_flag"
17595 || test ! -s conftest.err'
17596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17597 (eval $ac_try) 2>&5
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); }; } &&
17601 { ac_try='test -s conftest$ac_exeext'
17602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17603 (eval $ac_try) 2>&5
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); }; }; then
17607 ac_cv_lib_dl_dlopen=yes
17609 echo "$as_me: failed program was:" >&5
17610 sed 's/^/| /' conftest.$ac_ext >&5
17612 ac_cv_lib_dl_dlopen=no
17614 rm -f conftest.err conftest.$ac_objext \
17615 conftest$ac_exeext conftest.$ac_ext
17616 LIBS=$ac_check_lib_save_LIBS
17618 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17619 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17620 if test $ac_cv_lib_dl_dlopen = yes; then
17621 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17623 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17624 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17625 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17626 echo $ECHO_N "(cached) $ECHO_C" >&6
17628 ac_check_lib_save_LIBS=$LIBS
17629 LIBS="-lsvld $LIBS"
17630 cat >conftest.$ac_ext <<_ACEOF
17633 cat confdefs.h >>conftest.$ac_ext
17634 cat >>conftest.$ac_ext <<_ACEOF
17635 /* end confdefs.h. */
17637 /* Override any gcc2 internal prototype to avoid an error. */
17641 /* We use char because int might match the return type of a gcc2
17642 builtin and then its argument prototype would still apply. */
17652 rm -f conftest.$ac_objext conftest$ac_exeext
17653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17654 (eval $ac_link) 2>conftest.er1
17656 grep -v '^ *+' conftest.er1 >conftest.err
17658 cat conftest.err >&5
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); } &&
17661 { ac_try='test -z "$ac_c_werror_flag"
17662 || test ! -s conftest.err'
17663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17664 (eval $ac_try) 2>&5
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); }; } &&
17668 { ac_try='test -s conftest$ac_exeext'
17669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17670 (eval $ac_try) 2>&5
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); }; }; then
17674 ac_cv_lib_svld_dlopen=yes
17676 echo "$as_me: failed program was:" >&5
17677 sed 's/^/| /' conftest.$ac_ext >&5
17679 ac_cv_lib_svld_dlopen=no
17681 rm -f conftest.err conftest.$ac_objext \
17682 conftest$ac_exeext conftest.$ac_ext
17683 LIBS=$ac_check_lib_save_LIBS
17685 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17686 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17687 if test $ac_cv_lib_svld_dlopen = yes; then
17688 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17690 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17691 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17692 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17693 echo $ECHO_N "(cached) $ECHO_C" >&6
17695 ac_check_lib_save_LIBS=$LIBS
17697 cat >conftest.$ac_ext <<_ACEOF
17700 cat confdefs.h >>conftest.$ac_ext
17701 cat >>conftest.$ac_ext <<_ACEOF
17702 /* end confdefs.h. */
17704 /* Override any gcc2 internal prototype to avoid an error. */
17708 /* We use char because int might match the return type of a gcc2
17709 builtin and then its argument prototype would still apply. */
17719 rm -f conftest.$ac_objext conftest$ac_exeext
17720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17721 (eval $ac_link) 2>conftest.er1
17723 grep -v '^ *+' conftest.er1 >conftest.err
17725 cat conftest.err >&5
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); } &&
17728 { ac_try='test -z "$ac_c_werror_flag"
17729 || test ! -s conftest.err'
17730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17731 (eval $ac_try) 2>&5
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); }; } &&
17735 { ac_try='test -s conftest$ac_exeext'
17736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17737 (eval $ac_try) 2>&5
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); }; }; then
17741 ac_cv_lib_dld_dld_link=yes
17743 echo "$as_me: failed program was:" >&5
17744 sed 's/^/| /' conftest.$ac_ext >&5
17746 ac_cv_lib_dld_dld_link=no
17748 rm -f conftest.err conftest.$ac_objext \
17749 conftest$ac_exeext conftest.$ac_ext
17750 LIBS=$ac_check_lib_save_LIBS
17752 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17753 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17754 if test $ac_cv_lib_dld_dld_link = yes; then
17755 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17776 if test "x$lt_cv_dlopen" != xno; then
17782 case $lt_cv_dlopen in
17784 save_CPPFLAGS="$CPPFLAGS"
17785 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17787 save_LDFLAGS="$LDFLAGS"
17788 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17791 LIBS="$lt_cv_dlopen_libs $LIBS"
17793 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17794 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17795 if test "${lt_cv_dlopen_self+set}" = set; then
17796 echo $ECHO_N "(cached) $ECHO_C" >&6
17798 if test "$cross_compiling" = yes; then :
17799 lt_cv_dlopen_self=cross
17801 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17802 lt_status=$lt_dlunknown
17803 cat > conftest.$ac_ext <<EOF
17804 #line 17804 "configure"
17805 #include "confdefs.h"
17814 # define LT_DLGLOBAL RTLD_GLOBAL
17817 # define LT_DLGLOBAL DL_GLOBAL
17819 # define LT_DLGLOBAL 0
17823 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17824 find out it does not work in some platform. */
17825 #ifndef LT_DLLAZY_OR_NOW
17827 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17830 # define LT_DLLAZY_OR_NOW DL_LAZY
17833 # define LT_DLLAZY_OR_NOW RTLD_NOW
17836 # define LT_DLLAZY_OR_NOW DL_NOW
17838 # define LT_DLLAZY_OR_NOW 0
17846 extern "C" void exit (int);
17849 void fnord() { int i=42;}
17852 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17853 int status = $lt_dlunknown;
17857 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17858 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17859 /* dlclose (self); */
17865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17866 (eval $ac_link) 2>&5
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17870 (./conftest; exit; ) 2>/dev/null
17872 case x$lt_status in
17873 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17874 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17875 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17878 # compilation failed
17879 lt_cv_dlopen_self=no
17886 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17887 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17889 if test "x$lt_cv_dlopen_self" = xyes; then
17890 LDFLAGS="$LDFLAGS $link_static_flag"
17891 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17892 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17893 if test "${lt_cv_dlopen_self_static+set}" = set; then
17894 echo $ECHO_N "(cached) $ECHO_C" >&6
17896 if test "$cross_compiling" = yes; then :
17897 lt_cv_dlopen_self_static=cross
17899 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17900 lt_status=$lt_dlunknown
17901 cat > conftest.$ac_ext <<EOF
17902 #line 17902 "configure"
17903 #include "confdefs.h"
17912 # define LT_DLGLOBAL RTLD_GLOBAL
17915 # define LT_DLGLOBAL DL_GLOBAL
17917 # define LT_DLGLOBAL 0
17921 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17922 find out it does not work in some platform. */
17923 #ifndef LT_DLLAZY_OR_NOW
17925 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17928 # define LT_DLLAZY_OR_NOW DL_LAZY
17931 # define LT_DLLAZY_OR_NOW RTLD_NOW
17934 # define LT_DLLAZY_OR_NOW DL_NOW
17936 # define LT_DLLAZY_OR_NOW 0
17944 extern "C" void exit (int);
17947 void fnord() { int i=42;}
17950 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17951 int status = $lt_dlunknown;
17955 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17956 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17957 /* dlclose (self); */
17963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17964 (eval $ac_link) 2>&5
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17968 (./conftest; exit; ) 2>/dev/null
17970 case x$lt_status in
17971 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17972 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17973 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17976 # compilation failed
17977 lt_cv_dlopen_self_static=no
17984 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17985 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17988 CPPFLAGS="$save_CPPFLAGS"
17989 LDFLAGS="$save_LDFLAGS"
17994 case $lt_cv_dlopen_self in
17995 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17996 *) enable_dlopen_self=unknown ;;
17999 case $lt_cv_dlopen_self_static in
18000 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18001 *) enable_dlopen_self_static=unknown ;;
18006 # The else clause should only fire when bootstrapping the
18007 # libtool distribution, otherwise you forgot to ship ltmain.sh
18008 # with your package, and you will get complaints that there are
18009 # no rules to generate ltmain.sh.
18010 if test -f "$ltmain"; then
18011 # See if we are running on zsh, and set the options which allow our commands through
18012 # without removal of \ escapes.
18013 if test -n "${ZSH_VERSION+set}" ; then
18014 setopt NO_GLOB_SUBST
18016 # Now quote all the things that may contain metacharacters while being
18017 # careful not to overquote the AC_SUBSTed values. We take copies of the
18018 # variables and quote the copies for generation of the libtool script.
18019 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18021 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18022 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18023 deplibs_check_method reload_flag reload_cmds need_locks \
18024 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18025 lt_cv_sys_global_symbol_to_c_name_address \
18026 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18027 old_postinstall_cmds old_postuninstall_cmds \
18031 lt_prog_compiler_wl_GCJ \
18032 lt_prog_compiler_pic_GCJ \
18033 lt_prog_compiler_static_GCJ \
18034 lt_prog_compiler_no_builtin_flag_GCJ \
18035 export_dynamic_flag_spec_GCJ \
18036 thread_safe_flag_spec_GCJ \
18037 whole_archive_flag_spec_GCJ \
18038 enable_shared_with_static_runtimes_GCJ \
18039 old_archive_cmds_GCJ \
18040 old_archive_from_new_cmds_GCJ \
18041 predep_objects_GCJ \
18042 postdep_objects_GCJ \
18045 compiler_lib_search_path_GCJ \
18047 archive_expsym_cmds_GCJ \
18048 postinstall_cmds_GCJ \
18049 postuninstall_cmds_GCJ \
18050 old_archive_from_expsyms_cmds_GCJ \
18051 allow_undefined_flag_GCJ \
18052 no_undefined_flag_GCJ \
18053 export_symbols_cmds_GCJ \
18054 hardcode_libdir_flag_spec_GCJ \
18055 hardcode_libdir_flag_spec_ld_GCJ \
18056 hardcode_libdir_separator_GCJ \
18057 hardcode_automatic_GCJ \
18059 module_expsym_cmds_GCJ \
18060 lt_cv_prog_compiler_c_o_GCJ \
18061 exclude_expsyms_GCJ \
18062 include_expsyms_GCJ; do
18065 old_archive_cmds_GCJ | \
18066 old_archive_from_new_cmds_GCJ | \
18067 archive_cmds_GCJ | \
18068 archive_expsym_cmds_GCJ | \
18069 module_cmds_GCJ | \
18070 module_expsym_cmds_GCJ | \
18071 old_archive_from_expsyms_cmds_GCJ | \
18072 export_symbols_cmds_GCJ | \
18073 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18074 postinstall_cmds | postuninstall_cmds | \
18075 old_postinstall_cmds | old_postuninstall_cmds | \
18076 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18077 # Double-quote double-evaled strings.
18078 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18081 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18087 *'\$0 --fallback-echo"')
18088 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18094 cat <<__EOF__ >> "$cfgfile"
18095 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18097 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18099 # Shell to use when invoking shell scripts.
18102 # Whether or not to build shared libraries.
18103 build_libtool_libs=$enable_shared
18105 # Whether or not to build static libraries.
18106 build_old_libs=$enable_static
18108 # Whether or not to add -lc for building shared libraries.
18109 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18111 # Whether or not to disallow shared libs when runtime libs are static
18112 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18114 # Whether or not to optimize for fast installation.
18115 fast_install=$enable_fast_install
18118 host_alias=$host_alias
18121 # An echo program that does not interpret backslashes.
18126 AR_FLAGS=$lt_AR_FLAGS
18131 # A language-specific compiler.
18132 CC=$lt_compiler_GCJ
18134 # Is the compiler the GNU C compiler?
18140 # The linker used to build libraries.
18143 # Whether we need hard or soft links.
18146 # A BSD-compatible nm program.
18149 # A symbol stripping program
18152 # Used to examine libraries when file_magic_cmd begins "file"
18153 MAGIC_CMD=$MAGIC_CMD
18155 # Used on cygwin: DLL creation program.
18158 # Used on cygwin: object dumper.
18161 # Used on cygwin: assembler.
18164 # The name of the directory that contains temporary libtool files.
18167 # How to create reloadable object files.
18168 reload_flag=$lt_reload_flag
18169 reload_cmds=$lt_reload_cmds
18171 # How to pass a linker flag through the compiler.
18172 wl=$lt_lt_prog_compiler_wl_GCJ
18174 # Object file suffix (normally "o").
18175 objext="$ac_objext"
18177 # Old archive suffix (normally "a").
18180 # Shared library suffix (normally ".so").
18181 shrext_cmds='$shrext_cmds'
18183 # Executable file suffix (normally "").
18186 # Additional compiler flags for building library objects.
18187 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18190 # What is the maximum length of a command?
18191 max_cmd_len=$lt_cv_sys_max_cmd_len
18193 # Does compiler simultaneously support -c and -o options?
18194 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18196 # Must we lock files when doing compilation ?
18197 need_locks=$lt_need_locks
18199 # Do we need the lib prefix for modules?
18200 need_lib_prefix=$need_lib_prefix
18202 # Do we need a version for libraries?
18203 need_version=$need_version
18205 # Whether dlopen is supported.
18206 dlopen_support=$enable_dlopen
18208 # Whether dlopen of programs is supported.
18209 dlopen_self=$enable_dlopen_self
18211 # Whether dlopen of statically linked programs is supported.
18212 dlopen_self_static=$enable_dlopen_self_static
18214 # Compiler flag to prevent dynamic linking.
18215 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18217 # Compiler flag to turn off builtin functions.
18218 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18220 # Compiler flag to allow reflexive dlopens.
18221 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18223 # Compiler flag to generate shared objects directly from archives.
18224 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18226 # Compiler flag to generate thread-safe objects.
18227 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18229 # Library versioning type.
18230 version_type=$version_type
18232 # Format of library name prefix.
18233 libname_spec=$lt_libname_spec
18235 # List of archive names. First name is the real one, the rest are links.
18236 # The last name is the one that the linker finds with -lNAME.
18237 library_names_spec=$lt_library_names_spec
18239 # The coded name of the library, if different from the real name.
18240 soname_spec=$lt_soname_spec
18242 # Commands used to build and install an old-style archive.
18244 old_archive_cmds=$lt_old_archive_cmds_GCJ
18245 old_postinstall_cmds=$lt_old_postinstall_cmds
18246 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18248 # Create an old-style archive from a shared archive.
18249 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18251 # Create a temporary old-style archive to link instead of a shared archive.
18252 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18254 # Commands used to build and install a shared archive.
18255 archive_cmds=$lt_archive_cmds_GCJ
18256 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18257 postinstall_cmds=$lt_postinstall_cmds
18258 postuninstall_cmds=$lt_postuninstall_cmds
18260 # Commands used to build a loadable module (assumed same as above if empty)
18261 module_cmds=$lt_module_cmds_GCJ
18262 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18264 # Commands to strip libraries.
18265 old_striplib=$lt_old_striplib
18266 striplib=$lt_striplib
18268 # Dependencies to place before the objects being linked to create a
18270 predep_objects=$lt_predep_objects_GCJ
18272 # Dependencies to place after the objects being linked to create a
18274 postdep_objects=$lt_postdep_objects_GCJ
18276 # Dependencies to place before the objects being linked to create a
18278 predeps=$lt_predeps_GCJ
18280 # Dependencies to place after the objects being linked to create a
18282 postdeps=$lt_postdeps_GCJ
18284 # The library search path used internally by the compiler when linking
18285 # a shared library.
18286 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18288 # Method to check whether dependent libraries are shared objects.
18289 deplibs_check_method=$lt_deplibs_check_method
18291 # Command to use when deplibs_check_method == file_magic.
18292 file_magic_cmd=$lt_file_magic_cmd
18294 # Flag that allows shared libraries with undefined symbols to be built.
18295 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18297 # Flag that forces no undefined symbols.
18298 no_undefined_flag=$lt_no_undefined_flag_GCJ
18300 # Commands used to finish a libtool library installation in a directory.
18301 finish_cmds=$lt_finish_cmds
18303 # Same as above, but a single script fragment to be evaled but not shown.
18304 finish_eval=$lt_finish_eval
18306 # Take the output of nm and produce a listing of raw symbols and C names.
18307 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18309 # Transform the output of nm in a proper C declaration
18310 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18312 # Transform the output of nm in a C name address pair
18313 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18315 # This is the shared library runtime path variable.
18316 runpath_var=$runpath_var
18318 # This is the shared library path variable.
18319 shlibpath_var=$shlibpath_var
18321 # Is shlibpath searched before the hard-coded library search path?
18322 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18324 # How to hardcode a shared library path into an executable.
18325 hardcode_action=$hardcode_action_GCJ
18327 # Whether we should hardcode library paths into libraries.
18328 hardcode_into_libs=$hardcode_into_libs
18330 # Flag to hardcode \$libdir into a binary during linking.
18331 # This must work even if \$libdir does not exist.
18332 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18334 # If ld is used when linking, flag to hardcode \$libdir into
18335 # a binary during linking. This must work even if \$libdir does
18337 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18339 # Whether we need a single -rpath flag with a separated argument.
18340 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18342 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18343 # resulting binary.
18344 hardcode_direct=$hardcode_direct_GCJ
18346 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18347 # resulting binary.
18348 hardcode_minus_L=$hardcode_minus_L_GCJ
18350 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18351 # the resulting binary.
18352 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18354 # Set to yes if building a shared library automatically hardcodes DIR into the library
18355 # and all subsequent libraries and executables linked against it.
18356 hardcode_automatic=$hardcode_automatic_GCJ
18358 # Variables whose values should be saved in libtool wrapper scripts and
18359 # restored at relink time.
18360 variables_saved_for_relink="$variables_saved_for_relink"
18362 # Whether libtool must link a program against all its dependency libraries.
18363 link_all_deplibs=$link_all_deplibs_GCJ
18365 # Compile-time system search path for libraries
18366 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18368 # Run-time system search path for libraries
18369 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18371 # Fix the shell variable \$srcfile for the compiler.
18372 fix_srcfile_path="$fix_srcfile_path_GCJ"
18374 # Set to yes if exported symbols are required.
18375 always_export_symbols=$always_export_symbols_GCJ
18377 # The commands to list exported symbols.
18378 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18380 # The commands to extract the exported symbol list from a shared archive.
18381 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18383 # Symbols that should not be listed in the preloaded symbols.
18384 exclude_expsyms=$lt_exclude_expsyms_GCJ
18386 # Symbols that must always be exported.
18387 include_expsyms=$lt_include_expsyms_GCJ
18389 # ### END LIBTOOL TAG CONFIG: $tagname
18395 # If there is no Makefile yet, we rely on a make rule to execute
18396 # `config.status --recheck' to rerun these tests and create the
18397 # libtool script then.
18398 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18399 if test -f "$ltmain_in"; then
18400 test -f Makefile && make "$ltmain"
18406 ac_cpp='$CPP $CPPFLAGS'
18407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18420 ac_cpp='$CPP $CPPFLAGS'
18421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18426 # Source file extension for RC test sources.
18429 # Object file extension for compiled RC test sources.
18433 # Code to be used in simple compile tests
18434 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18436 # Code to be used in simple link tests
18437 lt_simple_link_test_code="$lt_simple_compile_test_code"
18439 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18441 # If no C compiler was specified, use CC.
18444 # Allow CC to be a program name with arguments.
18448 # Allow CC to be a program name with arguments.
18453 lt_cv_prog_compiler_c_o_RC=yes
18455 # The else clause should only fire when bootstrapping the
18456 # libtool distribution, otherwise you forgot to ship ltmain.sh
18457 # with your package, and you will get complaints that there are
18458 # no rules to generate ltmain.sh.
18459 if test -f "$ltmain"; then
18460 # See if we are running on zsh, and set the options which allow our commands through
18461 # without removal of \ escapes.
18462 if test -n "${ZSH_VERSION+set}" ; then
18463 setopt NO_GLOB_SUBST
18465 # Now quote all the things that may contain metacharacters while being
18466 # careful not to overquote the AC_SUBSTed values. We take copies of the
18467 # variables and quote the copies for generation of the libtool script.
18468 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18470 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18471 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18472 deplibs_check_method reload_flag reload_cmds need_locks \
18473 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18474 lt_cv_sys_global_symbol_to_c_name_address \
18475 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18476 old_postinstall_cmds old_postuninstall_cmds \
18480 lt_prog_compiler_wl_RC \
18481 lt_prog_compiler_pic_RC \
18482 lt_prog_compiler_static_RC \
18483 lt_prog_compiler_no_builtin_flag_RC \
18484 export_dynamic_flag_spec_RC \
18485 thread_safe_flag_spec_RC \
18486 whole_archive_flag_spec_RC \
18487 enable_shared_with_static_runtimes_RC \
18488 old_archive_cmds_RC \
18489 old_archive_from_new_cmds_RC \
18490 predep_objects_RC \
18491 postdep_objects_RC \
18494 compiler_lib_search_path_RC \
18496 archive_expsym_cmds_RC \
18497 postinstall_cmds_RC \
18498 postuninstall_cmds_RC \
18499 old_archive_from_expsyms_cmds_RC \
18500 allow_undefined_flag_RC \
18501 no_undefined_flag_RC \
18502 export_symbols_cmds_RC \
18503 hardcode_libdir_flag_spec_RC \
18504 hardcode_libdir_flag_spec_ld_RC \
18505 hardcode_libdir_separator_RC \
18506 hardcode_automatic_RC \
18508 module_expsym_cmds_RC \
18509 lt_cv_prog_compiler_c_o_RC \
18510 exclude_expsyms_RC \
18511 include_expsyms_RC; do
18514 old_archive_cmds_RC | \
18515 old_archive_from_new_cmds_RC | \
18516 archive_cmds_RC | \
18517 archive_expsym_cmds_RC | \
18519 module_expsym_cmds_RC | \
18520 old_archive_from_expsyms_cmds_RC | \
18521 export_symbols_cmds_RC | \
18522 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18523 postinstall_cmds | postuninstall_cmds | \
18524 old_postinstall_cmds | old_postuninstall_cmds | \
18525 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18526 # Double-quote double-evaled strings.
18527 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18530 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18536 *'\$0 --fallback-echo"')
18537 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18543 cat <<__EOF__ >> "$cfgfile"
18544 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18546 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18548 # Shell to use when invoking shell scripts.
18551 # Whether or not to build shared libraries.
18552 build_libtool_libs=$enable_shared
18554 # Whether or not to build static libraries.
18555 build_old_libs=$enable_static
18557 # Whether or not to add -lc for building shared libraries.
18558 build_libtool_need_lc=$archive_cmds_need_lc_RC
18560 # Whether or not to disallow shared libs when runtime libs are static
18561 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18563 # Whether or not to optimize for fast installation.
18564 fast_install=$enable_fast_install
18567 host_alias=$host_alias
18570 # An echo program that does not interpret backslashes.
18575 AR_FLAGS=$lt_AR_FLAGS
18580 # A language-specific compiler.
18583 # Is the compiler the GNU C compiler?
18589 # The linker used to build libraries.
18592 # Whether we need hard or soft links.
18595 # A BSD-compatible nm program.
18598 # A symbol stripping program
18601 # Used to examine libraries when file_magic_cmd begins "file"
18602 MAGIC_CMD=$MAGIC_CMD
18604 # Used on cygwin: DLL creation program.
18607 # Used on cygwin: object dumper.
18610 # Used on cygwin: assembler.
18613 # The name of the directory that contains temporary libtool files.
18616 # How to create reloadable object files.
18617 reload_flag=$lt_reload_flag
18618 reload_cmds=$lt_reload_cmds
18620 # How to pass a linker flag through the compiler.
18621 wl=$lt_lt_prog_compiler_wl_RC
18623 # Object file suffix (normally "o").
18624 objext="$ac_objext"
18626 # Old archive suffix (normally "a").
18629 # Shared library suffix (normally ".so").
18630 shrext_cmds='$shrext_cmds'
18632 # Executable file suffix (normally "").
18635 # Additional compiler flags for building library objects.
18636 pic_flag=$lt_lt_prog_compiler_pic_RC
18639 # What is the maximum length of a command?
18640 max_cmd_len=$lt_cv_sys_max_cmd_len
18642 # Does compiler simultaneously support -c and -o options?
18643 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18645 # Must we lock files when doing compilation ?
18646 need_locks=$lt_need_locks
18648 # Do we need the lib prefix for modules?
18649 need_lib_prefix=$need_lib_prefix
18651 # Do we need a version for libraries?
18652 need_version=$need_version
18654 # Whether dlopen is supported.
18655 dlopen_support=$enable_dlopen
18657 # Whether dlopen of programs is supported.
18658 dlopen_self=$enable_dlopen_self
18660 # Whether dlopen of statically linked programs is supported.
18661 dlopen_self_static=$enable_dlopen_self_static
18663 # Compiler flag to prevent dynamic linking.
18664 link_static_flag=$lt_lt_prog_compiler_static_RC
18666 # Compiler flag to turn off builtin functions.
18667 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18669 # Compiler flag to allow reflexive dlopens.
18670 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18672 # Compiler flag to generate shared objects directly from archives.
18673 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18675 # Compiler flag to generate thread-safe objects.
18676 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18678 # Library versioning type.
18679 version_type=$version_type
18681 # Format of library name prefix.
18682 libname_spec=$lt_libname_spec
18684 # List of archive names. First name is the real one, the rest are links.
18685 # The last name is the one that the linker finds with -lNAME.
18686 library_names_spec=$lt_library_names_spec
18688 # The coded name of the library, if different from the real name.
18689 soname_spec=$lt_soname_spec
18691 # Commands used to build and install an old-style archive.
18693 old_archive_cmds=$lt_old_archive_cmds_RC
18694 old_postinstall_cmds=$lt_old_postinstall_cmds
18695 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18697 # Create an old-style archive from a shared archive.
18698 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18700 # Create a temporary old-style archive to link instead of a shared archive.
18701 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18703 # Commands used to build and install a shared archive.
18704 archive_cmds=$lt_archive_cmds_RC
18705 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18706 postinstall_cmds=$lt_postinstall_cmds
18707 postuninstall_cmds=$lt_postuninstall_cmds
18709 # Commands used to build a loadable module (assumed same as above if empty)
18710 module_cmds=$lt_module_cmds_RC
18711 module_expsym_cmds=$lt_module_expsym_cmds_RC
18713 # Commands to strip libraries.
18714 old_striplib=$lt_old_striplib
18715 striplib=$lt_striplib
18717 # Dependencies to place before the objects being linked to create a
18719 predep_objects=$lt_predep_objects_RC
18721 # Dependencies to place after the objects being linked to create a
18723 postdep_objects=$lt_postdep_objects_RC
18725 # Dependencies to place before the objects being linked to create a
18727 predeps=$lt_predeps_RC
18729 # Dependencies to place after the objects being linked to create a
18731 postdeps=$lt_postdeps_RC
18733 # The library search path used internally by the compiler when linking
18734 # a shared library.
18735 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18737 # Method to check whether dependent libraries are shared objects.
18738 deplibs_check_method=$lt_deplibs_check_method
18740 # Command to use when deplibs_check_method == file_magic.
18741 file_magic_cmd=$lt_file_magic_cmd
18743 # Flag that allows shared libraries with undefined symbols to be built.
18744 allow_undefined_flag=$lt_allow_undefined_flag_RC
18746 # Flag that forces no undefined symbols.
18747 no_undefined_flag=$lt_no_undefined_flag_RC
18749 # Commands used to finish a libtool library installation in a directory.
18750 finish_cmds=$lt_finish_cmds
18752 # Same as above, but a single script fragment to be evaled but not shown.
18753 finish_eval=$lt_finish_eval
18755 # Take the output of nm and produce a listing of raw symbols and C names.
18756 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18758 # Transform the output of nm in a proper C declaration
18759 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18761 # Transform the output of nm in a C name address pair
18762 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18764 # This is the shared library runtime path variable.
18765 runpath_var=$runpath_var
18767 # This is the shared library path variable.
18768 shlibpath_var=$shlibpath_var
18770 # Is shlibpath searched before the hard-coded library search path?
18771 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18773 # How to hardcode a shared library path into an executable.
18774 hardcode_action=$hardcode_action_RC
18776 # Whether we should hardcode library paths into libraries.
18777 hardcode_into_libs=$hardcode_into_libs
18779 # Flag to hardcode \$libdir into a binary during linking.
18780 # This must work even if \$libdir does not exist.
18781 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18783 # If ld is used when linking, flag to hardcode \$libdir into
18784 # a binary during linking. This must work even if \$libdir does
18786 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18788 # Whether we need a single -rpath flag with a separated argument.
18789 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18791 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18792 # resulting binary.
18793 hardcode_direct=$hardcode_direct_RC
18795 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18796 # resulting binary.
18797 hardcode_minus_L=$hardcode_minus_L_RC
18799 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18800 # the resulting binary.
18801 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18803 # Set to yes if building a shared library automatically hardcodes DIR into the library
18804 # and all subsequent libraries and executables linked against it.
18805 hardcode_automatic=$hardcode_automatic_RC
18807 # Variables whose values should be saved in libtool wrapper scripts and
18808 # restored at relink time.
18809 variables_saved_for_relink="$variables_saved_for_relink"
18811 # Whether libtool must link a program against all its dependency libraries.
18812 link_all_deplibs=$link_all_deplibs_RC
18814 # Compile-time system search path for libraries
18815 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18817 # Run-time system search path for libraries
18818 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18820 # Fix the shell variable \$srcfile for the compiler.
18821 fix_srcfile_path="$fix_srcfile_path_RC"
18823 # Set to yes if exported symbols are required.
18824 always_export_symbols=$always_export_symbols_RC
18826 # The commands to list exported symbols.
18827 export_symbols_cmds=$lt_export_symbols_cmds_RC
18829 # The commands to extract the exported symbol list from a shared archive.
18830 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18832 # Symbols that should not be listed in the preloaded symbols.
18833 exclude_expsyms=$lt_exclude_expsyms_RC
18835 # Symbols that must always be exported.
18836 include_expsyms=$lt_include_expsyms_RC
18838 # ### END LIBTOOL TAG CONFIG: $tagname
18844 # If there is no Makefile yet, we rely on a make rule to execute
18845 # `config.status --recheck' to rerun these tests and create the
18846 # libtool script then.
18847 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18848 if test -f "$ltmain_in"; then
18849 test -f Makefile && make "$ltmain"
18855 ac_cpp='$CPP $CPPFLAGS'
18856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18865 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18866 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18867 { (exit 1); exit 1; }; }
18871 # Append the new tag name to the list of available tags.
18872 if test -n "$tagname" ; then
18873 available_tags="$available_tags $tagname"
18879 # Now substitute the updated list of available tags.
18880 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18881 mv "${ofile}T" "$ofile"
18885 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18886 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18887 { (exit 1); exit 1; }; }
18893 # This can be used to rebuild libtool when needed
18894 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18896 # Always use our own libtool.
18897 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18899 # Prevent multiple expansion
18921 # Extract the first word of "dot", so it can be a program name with args.
18922 set dummy dot; ac_word=$2
18923 echo "$as_me:$LINENO: checking for $ac_word" >&5
18924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18925 if test "${ac_cv_path_DOT+set}" = set; then
18926 echo $ECHO_N "(cached) $ECHO_C" >&6
18930 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18934 for as_dir in $PATH
18937 test -z "$as_dir" && as_dir=.
18938 for ac_exec_ext in '' $ac_executable_extensions; do
18939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18940 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18947 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18951 DOT=$ac_cv_path_DOT
18953 if test -n "$DOT"; then
18954 echo "$as_me:$LINENO: result: $DOT" >&5
18955 echo "${ECHO_T}$DOT" >&6
18957 echo "$as_me:$LINENO: result: no" >&5
18958 echo "${ECHO_T}no" >&6
18961 # Extract the first word of "etags", so it can be a program name with args.
18962 set dummy etags; ac_word=$2
18963 echo "$as_me:$LINENO: checking for $ac_word" >&5
18964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18965 if test "${ac_cv_path_ETAGS+set}" = set; then
18966 echo $ECHO_N "(cached) $ECHO_C" >&6
18970 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18974 for as_dir in $PATH
18977 test -z "$as_dir" && as_dir=.
18978 for ac_exec_ext in '' $ac_executable_extensions; do
18979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18980 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18987 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18991 ETAGS=$ac_cv_path_ETAGS
18993 if test -n "$ETAGS"; then
18994 echo "$as_me:$LINENO: result: $ETAGS" >&5
18995 echo "${ECHO_T}$ETAGS" >&6
18997 echo "$as_me:$LINENO: result: no" >&5
18998 echo "${ECHO_T}no" >&6
19001 etags_version=`$ETAGS --version 2>&1`
19002 case "$etags_version" in
19003 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
19004 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
19005 *) ETAGSFLAGS="" ;;
19007 ETAGSFLAGS=$ETAGSFLAGS
19009 # Extract the first word of "python", so it can be a program name with args.
19010 set dummy python; ac_word=$2
19011 echo "$as_me:$LINENO: checking for $ac_word" >&5
19012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19013 if test "${ac_cv_path_PYTHON+set}" = set; then
19014 echo $ECHO_N "(cached) $ECHO_C" >&6
19018 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19022 for as_dir in $PATH
19025 test -z "$as_dir" && as_dir=.
19026 for ac_exec_ext in '' $ac_executable_extensions; do
19027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19028 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19035 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
19039 PYTHON=$ac_cv_path_PYTHON
19041 if test -n "$PYTHON"; then
19042 echo "$as_me:$LINENO: result: $PYTHON" >&5
19043 echo "${ECHO_T}$PYTHON" >&6
19045 echo "$as_me:$LINENO: result: no" >&5
19046 echo "${ECHO_T}no" >&6
19049 if test "$PYTHON" = "false"
19051 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
19052 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
19054 # Extract the first word of "qmtest", so it can be a program name with args.
19055 set dummy qmtest; ac_word=$2
19056 echo "$as_me:$LINENO: checking for $ac_word" >&5
19057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19058 if test "${ac_cv_path_QMTEST+set}" = set; then
19059 echo $ECHO_N "(cached) $ECHO_C" >&6
19063 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19067 for as_dir in $PATH
19070 test -z "$as_dir" && as_dir=.
19071 for ac_exec_ext in '' $ac_executable_extensions; do
19072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19073 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19080 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
19084 QMTEST=$ac_cv_path_QMTEST
19086 if test -n "$QMTEST"; then
19087 echo "$as_me:$LINENO: result: $QMTEST" >&5
19088 echo "${ECHO_T}$QMTEST" >&6
19090 echo "$as_me:$LINENO: result: no" >&5
19091 echo "${ECHO_T}no" >&6
19094 if test "$QMTEST" = "false"
19096 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
19097 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
19100 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
19101 pymajor=`echo $pyversion | cut -d. -f1`
19102 pyminor=`echo $pyversion | cut -d. -f2`
19104 if test "$pymajor" -ge "2"
19106 if test "$pymajor" -eq "2"
19108 if test "$pyminor" -lt "2"
19110 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19111 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
19115 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19116 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
19120 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19121 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19122 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19123 echo $ECHO_N "(cached) $ECHO_C" >&6
19125 ac_check_lib_save_LIBS=$LIBS
19127 cat >conftest.$ac_ext <<_ACEOF
19130 cat confdefs.h >>conftest.$ac_ext
19131 cat >>conftest.$ac_ext <<_ACEOF
19132 /* end confdefs.h. */
19134 /* Override any gcc2 internal prototype to avoid an error. */
19138 /* We use char because int might match the return type of a gcc2
19139 builtin and then its argument prototype would still apply. */
19149 rm -f conftest.$ac_objext conftest$ac_exeext
19150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19151 (eval $ac_link) 2>conftest.er1
19153 grep -v '^ *+' conftest.er1 >conftest.err
19155 cat conftest.err >&5
19156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); } &&
19158 { ac_try='test -z "$ac_c_werror_flag"
19159 || test ! -s conftest.err'
19160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19161 (eval $ac_try) 2>&5
19163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164 (exit $ac_status); }; } &&
19165 { ac_try='test -s conftest$ac_exeext'
19166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19167 (eval $ac_try) 2>&5
19169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170 (exit $ac_status); }; }; then
19171 ac_cv_lib_elf_elf_begin=yes
19173 echo "$as_me: failed program was:" >&5
19174 sed 's/^/| /' conftest.$ac_ext >&5
19176 ac_cv_lib_elf_elf_begin=no
19178 rm -f conftest.err conftest.$ac_objext \
19179 conftest$ac_exeext conftest.$ac_ext
19180 LIBS=$ac_check_lib_save_LIBS
19182 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19183 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19184 if test $ac_cv_lib_elf_elf_begin = yes; then
19185 cat >>confdefs.h <<_ACEOF
19186 #define HAVE_LIBELF 1
19194 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19195 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19196 if test "${ac_cv_search_dlopen+set}" = set; then
19197 echo $ECHO_N "(cached) $ECHO_C" >&6
19199 ac_func_search_save_LIBS=$LIBS
19200 ac_cv_search_dlopen=no
19201 cat >conftest.$ac_ext <<_ACEOF
19204 cat confdefs.h >>conftest.$ac_ext
19205 cat >>conftest.$ac_ext <<_ACEOF
19206 /* end confdefs.h. */
19208 /* Override any gcc2 internal prototype to avoid an error. */
19212 /* We use char because int might match the return type of a gcc2
19213 builtin and then its argument prototype would still apply. */
19223 rm -f conftest.$ac_objext conftest$ac_exeext
19224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19225 (eval $ac_link) 2>conftest.er1
19227 grep -v '^ *+' conftest.er1 >conftest.err
19229 cat conftest.err >&5
19230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231 (exit $ac_status); } &&
19232 { ac_try='test -z "$ac_c_werror_flag"
19233 || test ! -s conftest.err'
19234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19235 (eval $ac_try) 2>&5
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); }; } &&
19239 { ac_try='test -s conftest$ac_exeext'
19240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19241 (eval $ac_try) 2>&5
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); }; }; then
19245 ac_cv_search_dlopen="none required"
19247 echo "$as_me: failed program was:" >&5
19248 sed 's/^/| /' conftest.$ac_ext >&5
19251 rm -f conftest.err conftest.$ac_objext \
19252 conftest$ac_exeext conftest.$ac_ext
19253 if test "$ac_cv_search_dlopen" = no; then
19254 for ac_lib in dl; do
19255 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19256 cat >conftest.$ac_ext <<_ACEOF
19259 cat confdefs.h >>conftest.$ac_ext
19260 cat >>conftest.$ac_ext <<_ACEOF
19261 /* end confdefs.h. */
19263 /* Override any gcc2 internal prototype to avoid an error. */
19267 /* We use char because int might match the return type of a gcc2
19268 builtin and then its argument prototype would still apply. */
19278 rm -f conftest.$ac_objext conftest$ac_exeext
19279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19280 (eval $ac_link) 2>conftest.er1
19282 grep -v '^ *+' conftest.er1 >conftest.err
19284 cat conftest.err >&5
19285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); } &&
19287 { ac_try='test -z "$ac_c_werror_flag"
19288 || test ! -s conftest.err'
19289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19290 (eval $ac_try) 2>&5
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); }; } &&
19294 { ac_try='test -s conftest$ac_exeext'
19295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19296 (eval $ac_try) 2>&5
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); }; }; then
19300 ac_cv_search_dlopen="-l$ac_lib"
19303 echo "$as_me: failed program was:" >&5
19304 sed 's/^/| /' conftest.$ac_ext >&5
19307 rm -f conftest.err conftest.$ac_objext \
19308 conftest$ac_exeext conftest.$ac_ext
19311 LIBS=$ac_func_search_save_LIBS
19313 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19314 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19315 if test "$ac_cv_search_dlopen" != no; then
19316 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19318 cat >>confdefs.h <<\_ACEOF
19319 #define HAVE_DLOPEN 1
19323 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19324 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19328 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19329 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19330 if test "${ac_cv_search_mallinfo+set}" = set; then
19331 echo $ECHO_N "(cached) $ECHO_C" >&6
19333 ac_func_search_save_LIBS=$LIBS
19334 ac_cv_search_mallinfo=no
19335 cat >conftest.$ac_ext <<_ACEOF
19338 cat confdefs.h >>conftest.$ac_ext
19339 cat >>conftest.$ac_ext <<_ACEOF
19340 /* end confdefs.h. */
19342 /* Override any gcc2 internal prototype to avoid an error. */
19346 /* We use char because int might match the return type of a gcc2
19347 builtin and then its argument prototype would still apply. */
19357 rm -f conftest.$ac_objext conftest$ac_exeext
19358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19359 (eval $ac_link) 2>conftest.er1
19361 grep -v '^ *+' conftest.er1 >conftest.err
19363 cat conftest.err >&5
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); } &&
19366 { ac_try='test -z "$ac_c_werror_flag"
19367 || test ! -s conftest.err'
19368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19369 (eval $ac_try) 2>&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); }; } &&
19373 { ac_try='test -s conftest$ac_exeext'
19374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375 (eval $ac_try) 2>&5
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; }; then
19379 ac_cv_search_mallinfo="none required"
19381 echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19385 rm -f conftest.err conftest.$ac_objext \
19386 conftest$ac_exeext conftest.$ac_ext
19387 if test "$ac_cv_search_mallinfo" = no; then
19388 for ac_lib in malloc; do
19389 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19390 cat >conftest.$ac_ext <<_ACEOF
19393 cat confdefs.h >>conftest.$ac_ext
19394 cat >>conftest.$ac_ext <<_ACEOF
19395 /* end confdefs.h. */
19397 /* Override any gcc2 internal prototype to avoid an error. */
19401 /* We use char because int might match the return type of a gcc2
19402 builtin and then its argument prototype would still apply. */
19412 rm -f conftest.$ac_objext conftest$ac_exeext
19413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19414 (eval $ac_link) 2>conftest.er1
19416 grep -v '^ *+' conftest.er1 >conftest.err
19418 cat conftest.err >&5
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); } &&
19421 { ac_try='test -z "$ac_c_werror_flag"
19422 || test ! -s conftest.err'
19423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19424 (eval $ac_try) 2>&5
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); }; } &&
19428 { ac_try='test -s conftest$ac_exeext'
19429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19430 (eval $ac_try) 2>&5
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); }; }; then
19434 ac_cv_search_mallinfo="-l$ac_lib"
19437 echo "$as_me: failed program was:" >&5
19438 sed 's/^/| /' conftest.$ac_ext >&5
19441 rm -f conftest.err conftest.$ac_objext \
19442 conftest$ac_exeext conftest.$ac_ext
19445 LIBS=$ac_func_search_save_LIBS
19447 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19448 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19449 if test "$ac_cv_search_mallinfo" != no; then
19450 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19452 cat >>confdefs.h <<\_ACEOF
19453 #define HAVE_MALLINFO 1
19459 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19460 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19461 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19462 echo $ECHO_N "(cached) $ECHO_C" >&6
19464 ac_func_search_save_LIBS=$LIBS
19465 ac_cv_search_pthread_mutex_lock=no
19466 cat >conftest.$ac_ext <<_ACEOF
19469 cat confdefs.h >>conftest.$ac_ext
19470 cat >>conftest.$ac_ext <<_ACEOF
19471 /* end confdefs.h. */
19473 /* Override any gcc2 internal prototype to avoid an error. */
19477 /* We use char because int might match the return type of a gcc2
19478 builtin and then its argument prototype would still apply. */
19479 char pthread_mutex_lock ();
19483 pthread_mutex_lock ();
19488 rm -f conftest.$ac_objext conftest$ac_exeext
19489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19490 (eval $ac_link) 2>conftest.er1
19492 grep -v '^ *+' conftest.er1 >conftest.err
19494 cat conftest.err >&5
19495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); } &&
19497 { ac_try='test -z "$ac_c_werror_flag"
19498 || test ! -s conftest.err'
19499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19500 (eval $ac_try) 2>&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); }; } &&
19504 { ac_try='test -s conftest$ac_exeext'
19505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19506 (eval $ac_try) 2>&5
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); }; }; then
19510 ac_cv_search_pthread_mutex_lock="none required"
19512 echo "$as_me: failed program was:" >&5
19513 sed 's/^/| /' conftest.$ac_ext >&5
19516 rm -f conftest.err conftest.$ac_objext \
19517 conftest$ac_exeext conftest.$ac_ext
19518 if test "$ac_cv_search_pthread_mutex_lock" = no; then
19519 for ac_lib in pthread; do
19520 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19521 cat >conftest.$ac_ext <<_ACEOF
19524 cat confdefs.h >>conftest.$ac_ext
19525 cat >>conftest.$ac_ext <<_ACEOF
19526 /* end confdefs.h. */
19528 /* Override any gcc2 internal prototype to avoid an error. */
19532 /* We use char because int might match the return type of a gcc2
19533 builtin and then its argument prototype would still apply. */
19534 char pthread_mutex_lock ();
19538 pthread_mutex_lock ();
19543 rm -f conftest.$ac_objext conftest$ac_exeext
19544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19545 (eval $ac_link) 2>conftest.er1
19547 grep -v '^ *+' conftest.er1 >conftest.err
19549 cat conftest.err >&5
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); } &&
19552 { ac_try='test -z "$ac_c_werror_flag"
19553 || test ! -s conftest.err'
19554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19555 (eval $ac_try) 2>&5
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); }; } &&
19559 { ac_try='test -s conftest$ac_exeext'
19560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19561 (eval $ac_try) 2>&5
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); }; }; then
19565 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
19568 echo "$as_me: failed program was:" >&5
19569 sed 's/^/| /' conftest.$ac_ext >&5
19572 rm -f conftest.err conftest.$ac_objext \
19573 conftest$ac_exeext conftest.$ac_ext
19576 LIBS=$ac_func_search_save_LIBS
19578 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
19579 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
19580 if test "$ac_cv_search_pthread_mutex_lock" != no; then
19581 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
19582 HAVE_PTHREAD_MUTEX_LOCK=1
19584 HAVE_PTHREAD_MUTEX_LOCK=0
19589 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19590 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19591 if test "${ac_cv_header_stdc+set}" = set; then
19592 echo $ECHO_N "(cached) $ECHO_C" >&6
19594 cat >conftest.$ac_ext <<_ACEOF
19597 cat confdefs.h >>conftest.$ac_ext
19598 cat >>conftest.$ac_ext <<_ACEOF
19599 /* end confdefs.h. */
19600 #include <stdlib.h>
19601 #include <stdarg.h>
19602 #include <string.h>
19613 rm -f conftest.$ac_objext
19614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19615 (eval $ac_compile) 2>conftest.er1
19617 grep -v '^ *+' conftest.er1 >conftest.err
19619 cat conftest.err >&5
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); } &&
19622 { ac_try='test -z "$ac_c_werror_flag"
19623 || test ! -s conftest.err'
19624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19625 (eval $ac_try) 2>&5
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); }; } &&
19629 { ac_try='test -s conftest.$ac_objext'
19630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19631 (eval $ac_try) 2>&5
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); }; }; then
19635 ac_cv_header_stdc=yes
19637 echo "$as_me: failed program was:" >&5
19638 sed 's/^/| /' conftest.$ac_ext >&5
19640 ac_cv_header_stdc=no
19642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19644 if test $ac_cv_header_stdc = yes; then
19645 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19646 cat >conftest.$ac_ext <<_ACEOF
19649 cat confdefs.h >>conftest.$ac_ext
19650 cat >>conftest.$ac_ext <<_ACEOF
19651 /* end confdefs.h. */
19652 #include <string.h>
19655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19656 $EGREP "memchr" >/dev/null 2>&1; then
19659 ac_cv_header_stdc=no
19665 if test $ac_cv_header_stdc = yes; then
19666 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19667 cat >conftest.$ac_ext <<_ACEOF
19670 cat confdefs.h >>conftest.$ac_ext
19671 cat >>conftest.$ac_ext <<_ACEOF
19672 /* end confdefs.h. */
19673 #include <stdlib.h>
19676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19677 $EGREP "free" >/dev/null 2>&1; then
19680 ac_cv_header_stdc=no
19686 if test $ac_cv_header_stdc = yes; then
19687 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19688 if test "$cross_compiling" = yes; then
19691 cat >conftest.$ac_ext <<_ACEOF
19694 cat confdefs.h >>conftest.$ac_ext
19695 cat >>conftest.$ac_ext <<_ACEOF
19696 /* end confdefs.h. */
19698 #if ((' ' & 0x0FF) == 0x020)
19699 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19700 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19702 # define ISLOWER(c) \
19703 (('a' <= (c) && (c) <= 'i') \
19704 || ('j' <= (c) && (c) <= 'r') \
19705 || ('s' <= (c) && (c) <= 'z'))
19706 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19709 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19714 for (i = 0; i < 256; i++)
19715 if (XOR (islower (i), ISLOWER (i))
19716 || toupper (i) != TOUPPER (i))
19721 rm -f conftest$ac_exeext
19722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19723 (eval $ac_link) 2>&5
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728 (eval $ac_try) 2>&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); }; }; then
19734 echo "$as_me: program exited with status $ac_status" >&5
19735 echo "$as_me: failed program was:" >&5
19736 sed 's/^/| /' conftest.$ac_ext >&5
19738 ( exit $ac_status )
19739 ac_cv_header_stdc=no
19741 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19745 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19746 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19747 if test $ac_cv_header_stdc = yes; then
19749 cat >>confdefs.h <<\_ACEOF
19750 #define STDC_HEADERS 1
19755 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19756 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19757 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19758 echo $ECHO_N "(cached) $ECHO_C" >&6
19760 cat >conftest.$ac_ext <<_ACEOF
19763 cat confdefs.h >>conftest.$ac_ext
19764 cat >>conftest.$ac_ext <<_ACEOF
19765 /* end confdefs.h. */
19766 #include <sys/types.h>
19767 #include <sys/wait.h>
19768 #ifndef WEXITSTATUS
19769 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19772 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19780 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19785 rm -f conftest.$ac_objext
19786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19787 (eval $ac_compile) 2>conftest.er1
19789 grep -v '^ *+' conftest.er1 >conftest.err
19791 cat conftest.err >&5
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); } &&
19794 { ac_try='test -z "$ac_c_werror_flag"
19795 || test ! -s conftest.err'
19796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19797 (eval $ac_try) 2>&5
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); }; } &&
19801 { ac_try='test -s conftest.$ac_objext'
19802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19803 (eval $ac_try) 2>&5
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); }; }; then
19807 ac_cv_header_sys_wait_h=yes
19809 echo "$as_me: failed program was:" >&5
19810 sed 's/^/| /' conftest.$ac_ext >&5
19812 ac_cv_header_sys_wait_h=no
19814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19816 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19817 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19818 if test $ac_cv_header_sys_wait_h = yes; then
19820 cat >>confdefs.h <<\_ACEOF
19821 #define HAVE_SYS_WAIT_H 1
19838 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
19840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19842 echo "$as_me:$LINENO: checking for $ac_header" >&5
19843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19845 echo $ECHO_N "(cached) $ECHO_C" >&6
19847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19850 # Is the header compilable?
19851 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19853 cat >conftest.$ac_ext <<_ACEOF
19856 cat confdefs.h >>conftest.$ac_ext
19857 cat >>conftest.$ac_ext <<_ACEOF
19858 /* end confdefs.h. */
19859 $ac_includes_default
19860 #include <$ac_header>
19862 rm -f conftest.$ac_objext
19863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19864 (eval $ac_compile) 2>conftest.er1
19866 grep -v '^ *+' conftest.er1 >conftest.err
19868 cat conftest.err >&5
19869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); } &&
19871 { ac_try='test -z "$ac_c_werror_flag"
19872 || test ! -s conftest.err'
19873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19874 (eval $ac_try) 2>&5
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); }; } &&
19878 { ac_try='test -s conftest.$ac_objext'
19879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19880 (eval $ac_try) 2>&5
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); }; }; then
19884 ac_header_compiler=yes
19886 echo "$as_me: failed program was:" >&5
19887 sed 's/^/| /' conftest.$ac_ext >&5
19889 ac_header_compiler=no
19891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19892 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19893 echo "${ECHO_T}$ac_header_compiler" >&6
19895 # Is the header present?
19896 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19898 cat >conftest.$ac_ext <<_ACEOF
19901 cat confdefs.h >>conftest.$ac_ext
19902 cat >>conftest.$ac_ext <<_ACEOF
19903 /* end confdefs.h. */
19904 #include <$ac_header>
19906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19909 grep -v '^ *+' conftest.er1 >conftest.err
19911 cat conftest.err >&5
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); } >/dev/null; then
19914 if test -s conftest.err; then
19915 ac_cpp_err=$ac_c_preproc_warn_flag
19916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19923 if test -z "$ac_cpp_err"; then
19924 ac_header_preproc=yes
19926 echo "$as_me: failed program was:" >&5
19927 sed 's/^/| /' conftest.$ac_ext >&5
19929 ac_header_preproc=no
19931 rm -f conftest.err conftest.$ac_ext
19932 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19933 echo "${ECHO_T}$ac_header_preproc" >&6
19935 # So? What about this header?
19936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19938 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19939 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19941 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19942 ac_header_preproc=yes
19945 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19946 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19947 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19948 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19949 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19950 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19951 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19952 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19954 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19955 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19956 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19959 ## ----------------------------------- ##
19960 ## Report this to llvmbugs@cs.uiuc.edu ##
19961 ## ----------------------------------- ##
19964 sed "s/^/$as_me: WARNING: /" >&2
19967 echo "$as_me:$LINENO: checking for $ac_header" >&5
19968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19970 echo $ECHO_N "(cached) $ECHO_C" >&6
19972 eval "$as_ac_Header=\$ac_header_preproc"
19974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19979 cat >>confdefs.h <<_ACEOF
19980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19988 if test "${ac_cv_header_sys_types_h+set}" = set; then
19989 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19990 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19991 if test "${ac_cv_header_sys_types_h+set}" = set; then
19992 echo $ECHO_N "(cached) $ECHO_C" >&6
19994 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19995 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19997 # Is the header compilable?
19998 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19999 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
20000 cat >conftest.$ac_ext <<_ACEOF
20003 cat confdefs.h >>conftest.$ac_ext
20004 cat >>conftest.$ac_ext <<_ACEOF
20005 /* end confdefs.h. */
20006 $ac_includes_default
20007 #include <sys/types.h>
20009 rm -f conftest.$ac_objext
20010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20011 (eval $ac_compile) 2>conftest.er1
20013 grep -v '^ *+' conftest.er1 >conftest.err
20015 cat conftest.err >&5
20016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017 (exit $ac_status); } &&
20018 { ac_try='test -z "$ac_c_werror_flag"
20019 || test ! -s conftest.err'
20020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20021 (eval $ac_try) 2>&5
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); }; } &&
20025 { ac_try='test -s conftest.$ac_objext'
20026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20027 (eval $ac_try) 2>&5
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); }; }; then
20031 ac_header_compiler=yes
20033 echo "$as_me: failed program was:" >&5
20034 sed 's/^/| /' conftest.$ac_ext >&5
20036 ac_header_compiler=no
20038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20039 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20040 echo "${ECHO_T}$ac_header_compiler" >&6
20042 # Is the header present?
20043 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
20044 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
20045 cat >conftest.$ac_ext <<_ACEOF
20048 cat confdefs.h >>conftest.$ac_ext
20049 cat >>conftest.$ac_ext <<_ACEOF
20050 /* end confdefs.h. */
20051 #include <sys/types.h>
20053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20056 grep -v '^ *+' conftest.er1 >conftest.err
20058 cat conftest.err >&5
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); } >/dev/null; then
20061 if test -s conftest.err; then
20062 ac_cpp_err=$ac_c_preproc_warn_flag
20063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20070 if test -z "$ac_cpp_err"; then
20071 ac_header_preproc=yes
20073 echo "$as_me: failed program was:" >&5
20074 sed 's/^/| /' conftest.$ac_ext >&5
20076 ac_header_preproc=no
20078 rm -f conftest.err conftest.$ac_ext
20079 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20080 echo "${ECHO_T}$ac_header_preproc" >&6
20082 # So? What about this header?
20083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20085 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
20086 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20087 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
20088 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
20089 ac_header_preproc=yes
20092 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
20093 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
20094 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
20095 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
20096 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
20097 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
20098 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
20099 echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
20100 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
20101 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
20102 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
20103 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
20106 ## ----------------------------------- ##
20107 ## Report this to llvmbugs@cs.uiuc.edu ##
20108 ## ----------------------------------- ##
20111 sed "s/^/$as_me: WARNING: /" >&2
20114 echo "$as_me:$LINENO: checking for sys/types.h" >&5
20115 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
20116 if test "${ac_cv_header_sys_types_h+set}" = set; then
20117 echo $ECHO_N "(cached) $ECHO_C" >&6
20119 ac_cv_header_sys_types_h=$ac_header_preproc
20121 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20122 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20127 if test "${ac_cv_header_inttypes_h+set}" = set; then
20128 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20129 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20130 if test "${ac_cv_header_inttypes_h+set}" = set; then
20131 echo $ECHO_N "(cached) $ECHO_C" >&6
20133 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20134 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20136 # Is the header compilable?
20137 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
20138 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
20139 cat >conftest.$ac_ext <<_ACEOF
20142 cat confdefs.h >>conftest.$ac_ext
20143 cat >>conftest.$ac_ext <<_ACEOF
20144 /* end confdefs.h. */
20145 $ac_includes_default
20146 #include <inttypes.h>
20148 rm -f conftest.$ac_objext
20149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20150 (eval $ac_compile) 2>conftest.er1
20152 grep -v '^ *+' conftest.er1 >conftest.err
20154 cat conftest.err >&5
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); } &&
20157 { ac_try='test -z "$ac_c_werror_flag"
20158 || test ! -s conftest.err'
20159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20160 (eval $ac_try) 2>&5
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); }; } &&
20164 { ac_try='test -s conftest.$ac_objext'
20165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20166 (eval $ac_try) 2>&5
20168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169 (exit $ac_status); }; }; then
20170 ac_header_compiler=yes
20172 echo "$as_me: failed program was:" >&5
20173 sed 's/^/| /' conftest.$ac_ext >&5
20175 ac_header_compiler=no
20177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20178 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20179 echo "${ECHO_T}$ac_header_compiler" >&6
20181 # Is the header present?
20182 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
20183 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
20184 cat >conftest.$ac_ext <<_ACEOF
20187 cat confdefs.h >>conftest.$ac_ext
20188 cat >>conftest.$ac_ext <<_ACEOF
20189 /* end confdefs.h. */
20190 #include <inttypes.h>
20192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20195 grep -v '^ *+' conftest.er1 >conftest.err
20197 cat conftest.err >&5
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); } >/dev/null; then
20200 if test -s conftest.err; then
20201 ac_cpp_err=$ac_c_preproc_warn_flag
20202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20209 if test -z "$ac_cpp_err"; then
20210 ac_header_preproc=yes
20212 echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20215 ac_header_preproc=no
20217 rm -f conftest.err conftest.$ac_ext
20218 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20219 echo "${ECHO_T}$ac_header_preproc" >&6
20221 # So? What about this header?
20222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20224 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20225 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20226 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20227 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20228 ac_header_preproc=yes
20231 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20232 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
20233 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
20234 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
20235 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20236 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20237 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
20238 echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
20239 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20240 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20241 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20242 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20245 ## ----------------------------------- ##
20246 ## Report this to llvmbugs@cs.uiuc.edu ##
20247 ## ----------------------------------- ##
20250 sed "s/^/$as_me: WARNING: /" >&2
20253 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20254 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20255 if test "${ac_cv_header_inttypes_h+set}" = set; then
20256 echo $ECHO_N "(cached) $ECHO_C" >&6
20258 ac_cv_header_inttypes_h=$ac_header_preproc
20260 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20261 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20266 if test "${ac_cv_header_stdint_h+set}" = set; then
20267 echo "$as_me:$LINENO: checking for stdint.h" >&5
20268 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20269 if test "${ac_cv_header_stdint_h+set}" = set; then
20270 echo $ECHO_N "(cached) $ECHO_C" >&6
20272 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20273 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20275 # Is the header compilable?
20276 echo "$as_me:$LINENO: checking stdint.h usability" >&5
20277 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20278 cat >conftest.$ac_ext <<_ACEOF
20281 cat confdefs.h >>conftest.$ac_ext
20282 cat >>conftest.$ac_ext <<_ACEOF
20283 /* end confdefs.h. */
20284 $ac_includes_default
20285 #include <stdint.h>
20287 rm -f conftest.$ac_objext
20288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20289 (eval $ac_compile) 2>conftest.er1
20291 grep -v '^ *+' conftest.er1 >conftest.err
20293 cat conftest.err >&5
20294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295 (exit $ac_status); } &&
20296 { ac_try='test -z "$ac_c_werror_flag"
20297 || test ! -s conftest.err'
20298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20299 (eval $ac_try) 2>&5
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); }; } &&
20303 { ac_try='test -s conftest.$ac_objext'
20304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305 (eval $ac_try) 2>&5
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); }; }; then
20309 ac_header_compiler=yes
20311 echo "$as_me: failed program was:" >&5
20312 sed 's/^/| /' conftest.$ac_ext >&5
20314 ac_header_compiler=no
20316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20317 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20318 echo "${ECHO_T}$ac_header_compiler" >&6
20320 # Is the header present?
20321 echo "$as_me:$LINENO: checking stdint.h presence" >&5
20322 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20323 cat >conftest.$ac_ext <<_ACEOF
20326 cat confdefs.h >>conftest.$ac_ext
20327 cat >>conftest.$ac_ext <<_ACEOF
20328 /* end confdefs.h. */
20329 #include <stdint.h>
20331 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20332 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20334 grep -v '^ *+' conftest.er1 >conftest.err
20336 cat conftest.err >&5
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); } >/dev/null; then
20339 if test -s conftest.err; then
20340 ac_cpp_err=$ac_c_preproc_warn_flag
20341 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20348 if test -z "$ac_cpp_err"; then
20349 ac_header_preproc=yes
20351 echo "$as_me: failed program was:" >&5
20352 sed 's/^/| /' conftest.$ac_ext >&5
20354 ac_header_preproc=no
20356 rm -f conftest.err conftest.$ac_ext
20357 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20358 echo "${ECHO_T}$ac_header_preproc" >&6
20360 # So? What about this header?
20361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20363 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20364 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20365 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20366 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20367 ac_header_preproc=yes
20370 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20371 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20372 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
20373 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
20374 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20375 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20376 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
20377 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
20378 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20379 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20380 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20381 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20384 ## ----------------------------------- ##
20385 ## Report this to llvmbugs@cs.uiuc.edu ##
20386 ## ----------------------------------- ##
20389 sed "s/^/$as_me: WARNING: /" >&2
20392 echo "$as_me:$LINENO: checking for stdint.h" >&5
20393 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20394 if test "${ac_cv_header_stdint_h+set}" = set; then
20395 echo $ECHO_N "(cached) $ECHO_C" >&6
20397 ac_cv_header_stdint_h=$ac_header_preproc
20399 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20400 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20406 echo "$as_me:$LINENO: checking for pid_t" >&5
20407 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20408 if test "${ac_cv_type_pid_t+set}" = set; then
20409 echo $ECHO_N "(cached) $ECHO_C" >&6
20411 cat >conftest.$ac_ext <<_ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h. */
20417 $ac_includes_default
20423 if (sizeof (pid_t))
20429 rm -f conftest.$ac_objext
20430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20431 (eval $ac_compile) 2>conftest.er1
20433 grep -v '^ *+' conftest.er1 >conftest.err
20435 cat conftest.err >&5
20436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437 (exit $ac_status); } &&
20438 { ac_try='test -z "$ac_c_werror_flag"
20439 || test ! -s conftest.err'
20440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20441 (eval $ac_try) 2>&5
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); }; } &&
20445 { ac_try='test -s conftest.$ac_objext'
20446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20447 (eval $ac_try) 2>&5
20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); }; }; then
20451 ac_cv_type_pid_t=yes
20453 echo "$as_me: failed program was:" >&5
20454 sed 's/^/| /' conftest.$ac_ext >&5
20456 ac_cv_type_pid_t=no
20458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20460 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20461 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20462 if test $ac_cv_type_pid_t = yes; then
20466 cat >>confdefs.h <<_ACEOF
20472 echo "$as_me:$LINENO: checking for size_t" >&5
20473 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20474 if test "${ac_cv_type_size_t+set}" = set; then
20475 echo $ECHO_N "(cached) $ECHO_C" >&6
20477 cat >conftest.$ac_ext <<_ACEOF
20480 cat confdefs.h >>conftest.$ac_ext
20481 cat >>conftest.$ac_ext <<_ACEOF
20482 /* end confdefs.h. */
20483 $ac_includes_default
20489 if (sizeof (size_t))
20495 rm -f conftest.$ac_objext
20496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20497 (eval $ac_compile) 2>conftest.er1
20499 grep -v '^ *+' conftest.er1 >conftest.err
20501 cat conftest.err >&5
20502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503 (exit $ac_status); } &&
20504 { ac_try='test -z "$ac_c_werror_flag"
20505 || test ! -s conftest.err'
20506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20507 (eval $ac_try) 2>&5
20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); }; } &&
20511 { ac_try='test -s conftest.$ac_objext'
20512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20513 (eval $ac_try) 2>&5
20515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516 (exit $ac_status); }; }; then
20517 ac_cv_type_size_t=yes
20519 echo "$as_me: failed program was:" >&5
20520 sed 's/^/| /' conftest.$ac_ext >&5
20522 ac_cv_type_size_t=no
20524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20526 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20527 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20528 if test $ac_cv_type_size_t = yes; then
20532 cat >>confdefs.h <<_ACEOF
20533 #define size_t unsigned
20538 echo "$as_me:$LINENO: checking for int64_t" >&5
20539 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20540 if test "${ac_cv_type_int64_t+set}" = set; then
20541 echo $ECHO_N "(cached) $ECHO_C" >&6
20543 cat >conftest.$ac_ext <<_ACEOF
20546 cat confdefs.h >>conftest.$ac_ext
20547 cat >>conftest.$ac_ext <<_ACEOF
20548 /* end confdefs.h. */
20549 $ac_includes_default
20555 if (sizeof (int64_t))
20561 rm -f conftest.$ac_objext
20562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20563 (eval $ac_compile) 2>conftest.er1
20565 grep -v '^ *+' conftest.er1 >conftest.err
20567 cat conftest.err >&5
20568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 (exit $ac_status); } &&
20570 { ac_try='test -z "$ac_c_werror_flag"
20571 || test ! -s conftest.err'
20572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20573 (eval $ac_try) 2>&5
20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); }; } &&
20577 { ac_try='test -s conftest.$ac_objext'
20578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20579 (eval $ac_try) 2>&5
20581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582 (exit $ac_status); }; }; then
20583 ac_cv_type_int64_t=yes
20585 echo "$as_me: failed program was:" >&5
20586 sed 's/^/| /' conftest.$ac_ext >&5
20588 ac_cv_type_int64_t=no
20590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20592 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20593 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20594 if test $ac_cv_type_int64_t = yes; then
20596 cat >>confdefs.h <<_ACEOF
20597 #define HAVE_INT64_T 1
20602 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20603 echo "$as_me: error: Type int64_t required but not found" >&2;}
20604 { (exit 1); exit 1; }; }
20607 echo "$as_me:$LINENO: checking for uint64_t" >&5
20608 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20609 if test "${ac_cv_type_uint64_t+set}" = set; then
20610 echo $ECHO_N "(cached) $ECHO_C" >&6
20612 cat >conftest.$ac_ext <<_ACEOF
20615 cat confdefs.h >>conftest.$ac_ext
20616 cat >>conftest.$ac_ext <<_ACEOF
20617 /* end confdefs.h. */
20618 $ac_includes_default
20622 if ((uint64_t *) 0)
20624 if (sizeof (uint64_t))
20630 rm -f conftest.$ac_objext
20631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20632 (eval $ac_compile) 2>conftest.er1
20634 grep -v '^ *+' conftest.er1 >conftest.err
20636 cat conftest.err >&5
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); } &&
20639 { ac_try='test -z "$ac_c_werror_flag"
20640 || test ! -s conftest.err'
20641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20642 (eval $ac_try) 2>&5
20644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645 (exit $ac_status); }; } &&
20646 { ac_try='test -s conftest.$ac_objext'
20647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20648 (eval $ac_try) 2>&5
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); }; }; then
20652 ac_cv_type_uint64_t=yes
20654 echo "$as_me: failed program was:" >&5
20655 sed 's/^/| /' conftest.$ac_ext >&5
20657 ac_cv_type_uint64_t=no
20659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20661 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20662 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20663 if test $ac_cv_type_uint64_t = yes; then
20665 cat >>confdefs.h <<_ACEOF
20666 #define HAVE_UINT64_T 1
20671 echo "$as_me:$LINENO: checking for u_int64_t" >&5
20672 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
20673 if test "${ac_cv_type_u_int64_t+set}" = set; then
20674 echo $ECHO_N "(cached) $ECHO_C" >&6
20676 cat >conftest.$ac_ext <<_ACEOF
20679 cat confdefs.h >>conftest.$ac_ext
20680 cat >>conftest.$ac_ext <<_ACEOF
20681 /* end confdefs.h. */
20682 $ac_includes_default
20686 if ((u_int64_t *) 0)
20688 if (sizeof (u_int64_t))
20694 rm -f conftest.$ac_objext
20695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20696 (eval $ac_compile) 2>conftest.er1
20698 grep -v '^ *+' conftest.er1 >conftest.err
20700 cat conftest.err >&5
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); } &&
20703 { ac_try='test -z "$ac_c_werror_flag"
20704 || test ! -s conftest.err'
20705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20706 (eval $ac_try) 2>&5
20708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709 (exit $ac_status); }; } &&
20710 { ac_try='test -s conftest.$ac_objext'
20711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20712 (eval $ac_try) 2>&5
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); }; }; then
20716 ac_cv_type_u_int64_t=yes
20718 echo "$as_me: failed program was:" >&5
20719 sed 's/^/| /' conftest.$ac_ext >&5
20721 ac_cv_type_u_int64_t=no
20723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20725 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
20726 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
20727 if test $ac_cv_type_u_int64_t = yes; then
20729 cat >>confdefs.h <<_ACEOF
20730 #define HAVE_U_INT64_T 1
20735 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
20736 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
20737 { (exit 1); exit 1; }; }
20742 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20743 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20744 if test "${ac_cv_header_time+set}" = set; then
20745 echo $ECHO_N "(cached) $ECHO_C" >&6
20747 cat >conftest.$ac_ext <<_ACEOF
20750 cat confdefs.h >>conftest.$ac_ext
20751 cat >>conftest.$ac_ext <<_ACEOF
20752 /* end confdefs.h. */
20753 #include <sys/types.h>
20754 #include <sys/time.h>
20760 if ((struct tm *) 0)
20766 rm -f conftest.$ac_objext
20767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20768 (eval $ac_compile) 2>conftest.er1
20770 grep -v '^ *+' conftest.er1 >conftest.err
20772 cat conftest.err >&5
20773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774 (exit $ac_status); } &&
20775 { ac_try='test -z "$ac_c_werror_flag"
20776 || test ! -s conftest.err'
20777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20778 (eval $ac_try) 2>&5
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); }; } &&
20782 { ac_try='test -s conftest.$ac_objext'
20783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20784 (eval $ac_try) 2>&5
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); }; }; then
20788 ac_cv_header_time=yes
20790 echo "$as_me: failed program was:" >&5
20791 sed 's/^/| /' conftest.$ac_ext >&5
20793 ac_cv_header_time=no
20795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20797 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20798 echo "${ECHO_T}$ac_cv_header_time" >&6
20799 if test $ac_cv_header_time = yes; then
20801 cat >>confdefs.h <<\_ACEOF
20802 #define TIME_WITH_SYS_TIME 1
20807 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20808 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20809 if test "${ac_cv_struct_tm+set}" = set; then
20810 echo $ECHO_N "(cached) $ECHO_C" >&6
20812 cat >conftest.$ac_ext <<_ACEOF
20815 cat confdefs.h >>conftest.$ac_ext
20816 cat >>conftest.$ac_ext <<_ACEOF
20817 /* end confdefs.h. */
20818 #include <sys/types.h>
20824 struct tm *tp; tp->tm_sec;
20829 rm -f conftest.$ac_objext
20830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20831 (eval $ac_compile) 2>conftest.er1
20833 grep -v '^ *+' conftest.er1 >conftest.err
20835 cat conftest.err >&5
20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 (exit $ac_status); } &&
20838 { ac_try='test -z "$ac_c_werror_flag"
20839 || test ! -s conftest.err'
20840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20841 (eval $ac_try) 2>&5
20843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844 (exit $ac_status); }; } &&
20845 { ac_try='test -s conftest.$ac_objext'
20846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20847 (eval $ac_try) 2>&5
20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 (exit $ac_status); }; }; then
20851 ac_cv_struct_tm=time.h
20853 echo "$as_me: failed program was:" >&5
20854 sed 's/^/| /' conftest.$ac_ext >&5
20856 ac_cv_struct_tm=sys/time.h
20858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20860 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20861 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20862 if test $ac_cv_struct_tm = sys/time.h; then
20864 cat >>confdefs.h <<\_ACEOF
20865 #define TM_IN_SYS_TIME 1
20872 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
20873 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
20875 ac_cpp='$CPP $CPPFLAGS'
20876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20880 if test "$cross_compiling" = yes; then
20883 cat >conftest.$ac_ext <<_ACEOF
20887 cat confdefs.h >>conftest.$ac_ext
20888 cat >>conftest.$ac_ext <<_ACEOF
20889 /* end confdefs.h. */
20892 #include <stdlib.h>
20898 volatile double A, B;
20902 sprintf(Buffer, "%a", A);
20906 if (A != 0x1.999999999999ap-4)
20913 rm -f conftest$ac_exeext
20914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20915 (eval $ac_link) 2>&5
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20920 (eval $ac_try) 2>&5
20922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923 (exit $ac_status); }; }; then
20926 echo "$as_me: program exited with status $ac_status" >&5
20927 echo "$as_me: failed program was:" >&5
20928 sed 's/^/| /' conftest.$ac_ext >&5
20930 ( exit $ac_status )
20933 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20936 ac_cpp='$CPP $CPPFLAGS'
20937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20941 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
20942 echo "${ECHO_T}$ac_c_printf_a" >&6
20943 if test "$ac_c_printf_a" = "yes"; then
20945 cat >>confdefs.h <<\_ACEOF
20946 #define HAVE_PRINTF_A 1
20952 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20953 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20954 if test "${ac_cv_c_bigendian+set}" = set; then
20955 echo $ECHO_N "(cached) $ECHO_C" >&6
20957 # See if sys/param.h defines the BYTE_ORDER macro.
20958 cat >conftest.$ac_ext <<_ACEOF
20961 cat confdefs.h >>conftest.$ac_ext
20962 cat >>conftest.$ac_ext <<_ACEOF
20963 /* end confdefs.h. */
20964 #include <sys/types.h>
20965 #include <sys/param.h>
20970 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20971 bogus endian macros
20978 rm -f conftest.$ac_objext
20979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20980 (eval $ac_compile) 2>conftest.er1
20982 grep -v '^ *+' conftest.er1 >conftest.err
20984 cat conftest.err >&5
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); } &&
20987 { ac_try='test -z "$ac_c_werror_flag"
20988 || test ! -s conftest.err'
20989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20990 (eval $ac_try) 2>&5
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); }; } &&
20994 { ac_try='test -s conftest.$ac_objext'
20995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20996 (eval $ac_try) 2>&5
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); }; }; then
21000 # It does; now see whether it defined to BIG_ENDIAN or not.
21001 cat >conftest.$ac_ext <<_ACEOF
21004 cat confdefs.h >>conftest.$ac_ext
21005 cat >>conftest.$ac_ext <<_ACEOF
21006 /* end confdefs.h. */
21007 #include <sys/types.h>
21008 #include <sys/param.h>
21013 #if BYTE_ORDER != BIG_ENDIAN
21021 rm -f conftest.$ac_objext
21022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21023 (eval $ac_compile) 2>conftest.er1
21025 grep -v '^ *+' conftest.er1 >conftest.err
21027 cat conftest.err >&5
21028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029 (exit $ac_status); } &&
21030 { ac_try='test -z "$ac_c_werror_flag"
21031 || test ! -s conftest.err'
21032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21033 (eval $ac_try) 2>&5
21035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036 (exit $ac_status); }; } &&
21037 { ac_try='test -s conftest.$ac_objext'
21038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21039 (eval $ac_try) 2>&5
21041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042 (exit $ac_status); }; }; then
21043 ac_cv_c_bigendian=yes
21045 echo "$as_me: failed program was:" >&5
21046 sed 's/^/| /' conftest.$ac_ext >&5
21048 ac_cv_c_bigendian=no
21050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21052 echo "$as_me: failed program was:" >&5
21053 sed 's/^/| /' conftest.$ac_ext >&5
21055 # It does not; compile a test program.
21056 if test "$cross_compiling" = yes; then
21057 # try to guess the endianness by grepping values into an object file
21058 ac_cv_c_bigendian=unknown
21059 cat >conftest.$ac_ext <<_ACEOF
21062 cat confdefs.h >>conftest.$ac_ext
21063 cat >>conftest.$ac_ext <<_ACEOF
21064 /* end confdefs.h. */
21065 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21066 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21067 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21068 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21069 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21070 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21074 _ascii (); _ebcdic ();
21079 rm -f conftest.$ac_objext
21080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21081 (eval $ac_compile) 2>conftest.er1
21083 grep -v '^ *+' conftest.er1 >conftest.err
21085 cat conftest.err >&5
21086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087 (exit $ac_status); } &&
21088 { ac_try='test -z "$ac_c_werror_flag"
21089 || test ! -s conftest.err'
21090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21091 (eval $ac_try) 2>&5
21093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094 (exit $ac_status); }; } &&
21095 { ac_try='test -s conftest.$ac_objext'
21096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21097 (eval $ac_try) 2>&5
21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100 (exit $ac_status); }; }; then
21101 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21102 ac_cv_c_bigendian=yes
21104 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21105 if test "$ac_cv_c_bigendian" = unknown; then
21106 ac_cv_c_bigendian=no
21108 # finding both strings is unlikely to happen, but who knows?
21109 ac_cv_c_bigendian=unknown
21113 echo "$as_me: failed program was:" >&5
21114 sed 's/^/| /' conftest.$ac_ext >&5
21117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21119 cat >conftest.$ac_ext <<_ACEOF
21122 cat confdefs.h >>conftest.$ac_ext
21123 cat >>conftest.$ac_ext <<_ACEOF
21124 /* end confdefs.h. */
21128 /* Are we little or big endian? From Harbison&Steele. */
21132 char c[sizeof (long)];
21135 exit (u.c[sizeof (long) - 1] == 1);
21138 rm -f conftest$ac_exeext
21139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21140 (eval $ac_link) 2>&5
21142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21145 (eval $ac_try) 2>&5
21147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148 (exit $ac_status); }; }; then
21149 ac_cv_c_bigendian=no
21151 echo "$as_me: program exited with status $ac_status" >&5
21152 echo "$as_me: failed program was:" >&5
21153 sed 's/^/| /' conftest.$ac_ext >&5
21155 ( exit $ac_status )
21156 ac_cv_c_bigendian=yes
21158 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21163 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21164 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21165 case $ac_cv_c_bigendian in
21173 { { echo "$as_me:$LINENO: error: unknown endianness
21174 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21175 echo "$as_me: error: unknown endianness
21176 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21177 { (exit 1); exit 1; }; } ;;
21181 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
21182 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
21183 if test "${ac_cv_cxx_namespaces+set}" = set; then
21184 echo $ECHO_N "(cached) $ECHO_C" >&6
21187 ac_cpp='$CXXCPP $CPPFLAGS'
21188 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21189 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21190 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21192 cat >conftest.$ac_ext <<_ACEOF
21195 cat confdefs.h >>conftest.$ac_ext
21196 cat >>conftest.$ac_ext <<_ACEOF
21197 /* end confdefs.h. */
21198 namespace Outer { namespace Inner { int i = 0; }}
21202 using namespace Outer::Inner; return i;
21207 rm -f conftest.$ac_objext
21208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21209 (eval $ac_compile) 2>conftest.er1
21211 grep -v '^ *+' conftest.er1 >conftest.err
21213 cat conftest.err >&5
21214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215 (exit $ac_status); } &&
21216 { ac_try='test -z "$ac_cxx_werror_flag"
21217 || test ! -s conftest.err'
21218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21219 (eval $ac_try) 2>&5
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); }; } &&
21223 { ac_try='test -s conftest.$ac_objext'
21224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21225 (eval $ac_try) 2>&5
21227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228 (exit $ac_status); }; }; then
21229 ac_cv_cxx_namespaces=yes
21231 echo "$as_me: failed program was:" >&5
21232 sed 's/^/| /' conftest.$ac_ext >&5
21234 ac_cv_cxx_namespaces=no
21236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21238 ac_cpp='$CPP $CPPFLAGS'
21239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21245 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
21246 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
21247 if test "$ac_cv_cxx_namespaces" = yes; then
21249 cat >>confdefs.h <<\_ACEOF
21250 #define HAVE_NAMESPACES
21255 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
21256 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
21257 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
21258 echo $ECHO_N "(cached) $ECHO_C" >&6
21262 ac_cpp='$CXXCPP $CPPFLAGS'
21263 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21264 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21265 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21267 cat >conftest.$ac_ext <<_ACEOF
21270 cat confdefs.h >>conftest.$ac_ext
21271 cat >>conftest.$ac_ext <<_ACEOF
21272 /* end confdefs.h. */
21273 #include <ext/hash_map>
21274 #ifdef HAVE_NAMESPACES
21275 using namespace std;
21280 hash_map<int, int> t;
21285 rm -f conftest.$ac_objext
21286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21287 (eval $ac_compile) 2>conftest.er1
21289 grep -v '^ *+' conftest.er1 >conftest.err
21291 cat conftest.err >&5
21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); } &&
21294 { ac_try='test -z "$ac_cxx_werror_flag"
21295 || test ! -s conftest.err'
21296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21297 (eval $ac_try) 2>&5
21299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300 (exit $ac_status); }; } &&
21301 { ac_try='test -s conftest.$ac_objext'
21302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21303 (eval $ac_try) 2>&5
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306 (exit $ac_status); }; }; then
21307 ac_cv_cxx_have_std_ext_hash_map=yes
21309 echo "$as_me: failed program was:" >&5
21310 sed 's/^/| /' conftest.$ac_ext >&5
21312 ac_cv_cxx_have_std_ext_hash_map=no
21314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21316 ac_cpp='$CPP $CPPFLAGS'
21317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21322 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21323 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
21324 HAVE_STD_EXT_HASH_MAP=0
21325 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21327 HAVE_STD_EXT_HASH_MAP=1
21330 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21331 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21332 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21333 echo $ECHO_N "(cached) $ECHO_C" >&6
21337 ac_cpp='$CXXCPP $CPPFLAGS'
21338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21342 cat >conftest.$ac_ext <<_ACEOF
21345 cat confdefs.h >>conftest.$ac_ext
21346 cat >>conftest.$ac_ext <<_ACEOF
21347 /* end confdefs.h. */
21348 #include <ext/hash_map>
21349 #ifdef HAVE_NAMESPACES
21350 using namespace __gnu_cxx;
21355 hash_map<int,int> t;
21360 rm -f conftest.$ac_objext
21361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21362 (eval $ac_compile) 2>conftest.er1
21364 grep -v '^ *+' conftest.er1 >conftest.err
21366 cat conftest.err >&5
21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); } &&
21369 { ac_try='test -z "$ac_cxx_werror_flag"
21370 || test ! -s conftest.err'
21371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21372 (eval $ac_try) 2>&5
21374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 (exit $ac_status); }; } &&
21376 { ac_try='test -s conftest.$ac_objext'
21377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21378 (eval $ac_try) 2>&5
21380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381 (exit $ac_status); }; }; then
21382 ac_cv_cxx_have_gnu_ext_hash_map=yes
21384 echo "$as_me: failed program was:" >&5
21385 sed 's/^/| /' conftest.$ac_ext >&5
21387 ac_cv_cxx_have_gnu_ext_hash_map=no
21389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21391 ac_cpp='$CPP $CPPFLAGS'
21392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21397 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21398 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
21399 HAVE_GNU_EXT_HASH_MAP=0
21400 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21402 HAVE_GNU_EXT_HASH_MAP=1
21405 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21406 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21407 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21408 echo $ECHO_N "(cached) $ECHO_C" >&6
21412 ac_cpp='$CXXCPP $CPPFLAGS'
21413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21417 cat >conftest.$ac_ext <<_ACEOF
21420 cat confdefs.h >>conftest.$ac_ext
21421 cat >>conftest.$ac_ext <<_ACEOF
21422 /* end confdefs.h. */
21423 #include <hash_map>
21427 hash_map<int,int> t;
21432 rm -f conftest.$ac_objext
21433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21434 (eval $ac_compile) 2>conftest.er1
21436 grep -v '^ *+' conftest.er1 >conftest.err
21438 cat conftest.err >&5
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); } &&
21441 { ac_try='test -z "$ac_cxx_werror_flag"
21442 || test ! -s conftest.err'
21443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21444 (eval $ac_try) 2>&5
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); }; } &&
21448 { ac_try='test -s conftest.$ac_objext'
21449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21450 (eval $ac_try) 2>&5
21452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); }; }; then
21454 ac_cv_cxx_have_global_hash_map=yes
21456 echo "$as_me: failed program was:" >&5
21457 sed 's/^/| /' conftest.$ac_ext >&5
21459 ac_cv_cxx_have_global_hash_map=no
21461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21463 ac_cpp='$CPP $CPPFLAGS'
21464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21469 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21470 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
21471 HAVE_GLOBAL_HASH_MAP=0
21472 if test "$ac_cv_cxx_have_global_hash_map" = yes
21474 HAVE_GLOBAL_HASH_MAP=1
21477 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21478 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21479 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
21480 echo $ECHO_N "(cached) $ECHO_C" >&6
21484 ac_cpp='$CXXCPP $CPPFLAGS'
21485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21489 cat >conftest.$ac_ext <<_ACEOF
21492 cat confdefs.h >>conftest.$ac_ext
21493 cat >>conftest.$ac_ext <<_ACEOF
21494 /* end confdefs.h. */
21495 #include <ext/hash_set>
21496 #ifdef HAVE_NAMESPACES
21497 using namespace std;
21507 rm -f conftest.$ac_objext
21508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21509 (eval $ac_compile) 2>conftest.er1
21511 grep -v '^ *+' conftest.er1 >conftest.err
21513 cat conftest.err >&5
21514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515 (exit $ac_status); } &&
21516 { ac_try='test -z "$ac_cxx_werror_flag"
21517 || test ! -s conftest.err'
21518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21519 (eval $ac_try) 2>&5
21521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522 (exit $ac_status); }; } &&
21523 { ac_try='test -s conftest.$ac_objext'
21524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21525 (eval $ac_try) 2>&5
21527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528 (exit $ac_status); }; }; then
21529 ac_cv_cxx_have_std_ext_hash_set=yes
21531 echo "$as_me: failed program was:" >&5
21532 sed 's/^/| /' conftest.$ac_ext >&5
21534 ac_cv_cxx_have_std_ext_hash_set=no
21536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21538 ac_cpp='$CPP $CPPFLAGS'
21539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21544 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21545 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
21546 HAVE_STD_EXT_HASH_SET=0
21547 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
21549 HAVE_STD_EXT_HASH_SET=1
21552 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21553 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21554 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21555 echo $ECHO_N "(cached) $ECHO_C" >&6
21559 ac_cpp='$CXXCPP $CPPFLAGS'
21560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21564 cat >conftest.$ac_ext <<_ACEOF
21567 cat confdefs.h >>conftest.$ac_ext
21568 cat >>conftest.$ac_ext <<_ACEOF
21569 /* end confdefs.h. */
21570 #include <ext/hash_set>
21571 #ifdef HAVE_NAMESPACES
21572 using namespace __gnu_cxx;
21582 rm -f conftest.$ac_objext
21583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21584 (eval $ac_compile) 2>conftest.er1
21586 grep -v '^ *+' conftest.er1 >conftest.err
21588 cat conftest.err >&5
21589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); } &&
21591 { ac_try='test -z "$ac_cxx_werror_flag"
21592 || test ! -s conftest.err'
21593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21594 (eval $ac_try) 2>&5
21596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597 (exit $ac_status); }; } &&
21598 { ac_try='test -s conftest.$ac_objext'
21599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21600 (eval $ac_try) 2>&5
21602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603 (exit $ac_status); }; }; then
21604 ac_cv_cxx_have_gnu_ext_hash_set=yes
21606 echo "$as_me: failed program was:" >&5
21607 sed 's/^/| /' conftest.$ac_ext >&5
21609 ac_cv_cxx_have_gnu_ext_hash_set=no
21611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21613 ac_cpp='$CPP $CPPFLAGS'
21614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21619 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21620 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
21621 HAVE_GNU_EXT_HASH_SET=0
21622 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
21624 HAVE_GNU_EXT_HASH_SET=1
21627 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21628 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21629 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21630 echo $ECHO_N "(cached) $ECHO_C" >&6
21634 ac_cpp='$CXXCPP $CPPFLAGS'
21635 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21636 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21637 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21639 cat >conftest.$ac_ext <<_ACEOF
21642 cat confdefs.h >>conftest.$ac_ext
21643 cat >>conftest.$ac_ext <<_ACEOF
21644 /* end confdefs.h. */
21645 #include <hash_set>
21649 hash_set<int> t; return 0;
21654 rm -f conftest.$ac_objext
21655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21656 (eval $ac_compile) 2>conftest.er1
21658 grep -v '^ *+' conftest.er1 >conftest.err
21660 cat conftest.err >&5
21661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); } &&
21663 { ac_try='test -z "$ac_cxx_werror_flag"
21664 || test ! -s conftest.err'
21665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21666 (eval $ac_try) 2>&5
21668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669 (exit $ac_status); }; } &&
21670 { ac_try='test -s conftest.$ac_objext'
21671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21672 (eval $ac_try) 2>&5
21674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675 (exit $ac_status); }; }; then
21676 ac_cv_cxx_have_global_hash_set=yes
21678 echo "$as_me: failed program was:" >&5
21679 sed 's/^/| /' conftest.$ac_ext >&5
21681 ac_cv_cxx_have_global_hash_set=no
21683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21685 ac_cpp='$CPP $CPPFLAGS'
21686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21691 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21692 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
21693 HAVE_GLOBAL_HASH_SET=0
21694 if test "$ac_cv_cxx_have_global_hash_set" = yes
21696 HAVE_GLOBAL_HASH_SET=1
21699 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21700 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21701 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21702 echo $ECHO_N "(cached) $ECHO_C" >&6
21706 ac_cpp='$CXXCPP $CPPFLAGS'
21707 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21708 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21709 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21711 cat >conftest.$ac_ext <<_ACEOF
21714 cat confdefs.h >>conftest.$ac_ext
21715 cat >>conftest.$ac_ext <<_ACEOF
21716 /* end confdefs.h. */
21717 #include <iterator>
21718 #ifdef HAVE_NAMESPACES
21719 using namespace std;
21724 iterator<int,int,int> t; return 0;
21729 rm -f conftest.$ac_objext
21730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21731 (eval $ac_compile) 2>conftest.er1
21733 grep -v '^ *+' conftest.er1 >conftest.err
21735 cat conftest.err >&5
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); } &&
21738 { ac_try='test -z "$ac_cxx_werror_flag"
21739 || test ! -s conftest.err'
21740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21741 (eval $ac_try) 2>&5
21743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); }; } &&
21745 { ac_try='test -s conftest.$ac_objext'
21746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21747 (eval $ac_try) 2>&5
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); }; }; then
21751 ac_cv_cxx_have_std_iterator=yes
21753 echo "$as_me: failed program was:" >&5
21754 sed 's/^/| /' conftest.$ac_ext >&5
21756 ac_cv_cxx_have_std_iterator=no
21758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21760 ac_cpp='$CPP $CPPFLAGS'
21761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21767 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21768 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21769 HAVE_STD_ITERATOR=0
21770 if test "$ac_cv_cxx_have_std_iterator" = yes
21772 HAVE_STD_ITERATOR=1
21775 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21776 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21777 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21778 echo $ECHO_N "(cached) $ECHO_C" >&6
21782 ac_cpp='$CXXCPP $CPPFLAGS'
21783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21787 cat >conftest.$ac_ext <<_ACEOF
21790 cat confdefs.h >>conftest.$ac_ext
21791 cat >>conftest.$ac_ext <<_ACEOF
21792 /* end confdefs.h. */
21793 #include <iterator>
21794 #ifdef HAVE_NAMESPACES
21795 using namespace std;
21800 bidirectional_iterator<int,int> t; return 0;
21805 rm -f conftest.$ac_objext
21806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21807 (eval $ac_compile) 2>conftest.er1
21809 grep -v '^ *+' conftest.er1 >conftest.err
21811 cat conftest.err >&5
21812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813 (exit $ac_status); } &&
21814 { ac_try='test -z "$ac_cxx_werror_flag"
21815 || test ! -s conftest.err'
21816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21817 (eval $ac_try) 2>&5
21819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820 (exit $ac_status); }; } &&
21821 { ac_try='test -s conftest.$ac_objext'
21822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21823 (eval $ac_try) 2>&5
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); }; }; then
21827 ac_cv_cxx_have_bi_iterator=yes
21829 echo "$as_me: failed program was:" >&5
21830 sed 's/^/| /' conftest.$ac_ext >&5
21832 ac_cv_cxx_have_bi_iterator=no
21834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21836 ac_cpp='$CPP $CPPFLAGS'
21837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21843 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21844 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21846 if test "$ac_cv_cxx_have_bi_iterator" = yes
21851 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21852 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21853 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21854 echo $ECHO_N "(cached) $ECHO_C" >&6
21858 ac_cpp='$CXXCPP $CPPFLAGS'
21859 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21860 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21861 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21863 cat >conftest.$ac_ext <<_ACEOF
21866 cat confdefs.h >>conftest.$ac_ext
21867 cat >>conftest.$ac_ext <<_ACEOF
21868 /* end confdefs.h. */
21869 #include <iterator>
21870 #ifdef HAVE_NAMESPACES
21871 using namespace std;
21876 forward_iterator<int,int> t; return 0;
21881 rm -f conftest.$ac_objext
21882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21883 (eval $ac_compile) 2>conftest.er1
21885 grep -v '^ *+' conftest.er1 >conftest.err
21887 cat conftest.err >&5
21888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889 (exit $ac_status); } &&
21890 { ac_try='test -z "$ac_cxx_werror_flag"
21891 || test ! -s conftest.err'
21892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21893 (eval $ac_try) 2>&5
21895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896 (exit $ac_status); }; } &&
21897 { ac_try='test -s conftest.$ac_objext'
21898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21899 (eval $ac_try) 2>&5
21901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902 (exit $ac_status); }; }; then
21903 ac_cv_cxx_have_fwd_iterator=yes
21905 echo "$as_me: failed program was:" >&5
21906 sed 's/^/| /' conftest.$ac_ext >&5
21908 ac_cv_cxx_have_fwd_iterator=no
21910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21912 ac_cpp='$CPP $CPPFLAGS'
21913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21919 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21920 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21921 HAVE_FWD_ITERATOR=0
21922 if test "$ac_cv_cxx_have_fwd_iterator" = yes
21924 HAVE_FWD_ITERATOR=1
21929 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
21930 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
21931 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
21932 echo $ECHO_N "(cached) $ECHO_C" >&6
21935 ac_cpp='$CXXCPP $CPPFLAGS'
21936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21940 cat >conftest.$ac_ext <<_ACEOF
21943 cat confdefs.h >>conftest.$ac_ext
21944 cat >>conftest.$ac_ext <<_ACEOF
21945 /* end confdefs.h. */
21947 int foo(float f) {return isnan(f);}
21949 rm -f conftest.$ac_objext
21950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21951 (eval $ac_compile) 2>conftest.er1
21953 grep -v '^ *+' conftest.er1 >conftest.err
21955 cat conftest.err >&5
21956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957 (exit $ac_status); } &&
21958 { ac_try='test -z "$ac_cxx_werror_flag"
21959 || test ! -s conftest.err'
21960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21961 (eval $ac_try) 2>&5
21963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964 (exit $ac_status); }; } &&
21965 { ac_try='test -s conftest.$ac_objext'
21966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21967 (eval $ac_try) 2>&5
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); }; }; then
21971 ac_cv_func_isnan_in_math_h=yes
21973 echo "$as_me: failed program was:" >&5
21974 sed 's/^/| /' conftest.$ac_ext >&5
21976 ac_cv_func_isnan_in_math_h=no
21978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21980 ac_cpp='$CPP $CPPFLAGS'
21981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21986 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
21987 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
21988 if test "$ac_cv_func_isnan_in_math_h" = "yes"
21991 cat >>confdefs.h <<\_ACEOF
21992 #define HAVE_ISNAN_IN_MATH_H 1
21996 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
21997 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
21998 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
21999 echo $ECHO_N "(cached) $ECHO_C" >&6
22002 ac_cpp='$CXXCPP $CPPFLAGS'
22003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22007 cat >conftest.$ac_ext <<_ACEOF
22010 cat confdefs.h >>conftest.$ac_ext
22011 cat >>conftest.$ac_ext <<_ACEOF
22012 /* end confdefs.h. */
22014 int foo(float f) {return isnan(f);}
22016 rm -f conftest.$ac_objext
22017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22018 (eval $ac_compile) 2>conftest.er1
22020 grep -v '^ *+' conftest.er1 >conftest.err
22022 cat conftest.err >&5
22023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024 (exit $ac_status); } &&
22025 { ac_try='test -z "$ac_cxx_werror_flag"
22026 || test ! -s conftest.err'
22027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22028 (eval $ac_try) 2>&5
22030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031 (exit $ac_status); }; } &&
22032 { ac_try='test -s conftest.$ac_objext'
22033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22034 (eval $ac_try) 2>&5
22036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22037 (exit $ac_status); }; }; then
22038 ac_cv_func_isnan_in_cmath=yes
22040 echo "$as_me: failed program was:" >&5
22041 sed 's/^/| /' conftest.$ac_ext >&5
22043 ac_cv_func_isnan_in_cmath=no
22045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22047 ac_cpp='$CPP $CPPFLAGS'
22048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22053 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
22054 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
22055 if test "$ac_cv_func_isnan_in_cmath" = "yes"
22058 cat >>confdefs.h <<\_ACEOF
22059 #define HAVE_ISNAN_IN_CMATH 1
22063 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
22064 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
22065 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
22066 echo $ECHO_N "(cached) $ECHO_C" >&6
22069 ac_cpp='$CXXCPP $CPPFLAGS'
22070 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22071 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22072 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22074 cat >conftest.$ac_ext <<_ACEOF
22077 cat confdefs.h >>conftest.$ac_ext
22078 cat >>conftest.$ac_ext <<_ACEOF
22079 /* end confdefs.h. */
22081 using std::isnan; int foo(float f) {return isnan(f);}
22083 rm -f conftest.$ac_objext
22084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22085 (eval $ac_compile) 2>conftest.er1
22087 grep -v '^ *+' conftest.er1 >conftest.err
22089 cat conftest.err >&5
22090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); } &&
22092 { ac_try='test -z "$ac_cxx_werror_flag"
22093 || test ! -s conftest.err'
22094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22095 (eval $ac_try) 2>&5
22097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098 (exit $ac_status); }; } &&
22099 { ac_try='test -s conftest.$ac_objext'
22100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22101 (eval $ac_try) 2>&5
22103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104 (exit $ac_status); }; }; then
22105 ac_cv_func_std_isnan_in_cmath=yes
22107 echo "$as_me: failed program was:" >&5
22108 sed 's/^/| /' conftest.$ac_ext >&5
22110 ac_cv_func_std_isnan_in_cmath=no
22112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22114 ac_cpp='$CPP $CPPFLAGS'
22115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22120 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
22121 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
22122 if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
22125 cat >>confdefs.h <<\_ACEOF
22126 #define HAVE_STD_ISNAN_IN_CMATH 1
22132 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
22133 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
22134 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
22135 echo $ECHO_N "(cached) $ECHO_C" >&6
22138 ac_cpp='$CXXCPP $CPPFLAGS'
22139 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22140 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22141 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22143 cat >conftest.$ac_ext <<_ACEOF
22146 cat confdefs.h >>conftest.$ac_ext
22147 cat >>conftest.$ac_ext <<_ACEOF
22148 /* end confdefs.h. */
22150 int foo(float f) {return isinf(f);}
22152 rm -f conftest.$ac_objext
22153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22154 (eval $ac_compile) 2>conftest.er1
22156 grep -v '^ *+' conftest.er1 >conftest.err
22158 cat conftest.err >&5
22159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160 (exit $ac_status); } &&
22161 { ac_try='test -z "$ac_cxx_werror_flag"
22162 || test ! -s conftest.err'
22163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22164 (eval $ac_try) 2>&5
22166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167 (exit $ac_status); }; } &&
22168 { ac_try='test -s conftest.$ac_objext'
22169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22170 (eval $ac_try) 2>&5
22172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173 (exit $ac_status); }; }; then
22174 ac_cv_func_isinf_in_math_h=yes
22176 echo "$as_me: failed program was:" >&5
22177 sed 's/^/| /' conftest.$ac_ext >&5
22179 ac_cv_func_isinf_in_math_h=no
22181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22183 ac_cpp='$CPP $CPPFLAGS'
22184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22189 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
22190 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
22191 if test "$ac_cv_func_isinf_in_math_h" = "yes"
22194 cat >>confdefs.h <<\_ACEOF
22195 #define HAVE_ISINF_IN_MATH_H 1
22199 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
22200 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
22201 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
22202 echo $ECHO_N "(cached) $ECHO_C" >&6
22205 ac_cpp='$CXXCPP $CPPFLAGS'
22206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22210 cat >conftest.$ac_ext <<_ACEOF
22213 cat confdefs.h >>conftest.$ac_ext
22214 cat >>conftest.$ac_ext <<_ACEOF
22215 /* end confdefs.h. */
22217 int foo(float f) {return isinf(f);}
22219 rm -f conftest.$ac_objext
22220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22221 (eval $ac_compile) 2>conftest.er1
22223 grep -v '^ *+' conftest.er1 >conftest.err
22225 cat conftest.err >&5
22226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227 (exit $ac_status); } &&
22228 { ac_try='test -z "$ac_cxx_werror_flag"
22229 || test ! -s conftest.err'
22230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22231 (eval $ac_try) 2>&5
22233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234 (exit $ac_status); }; } &&
22235 { ac_try='test -s conftest.$ac_objext'
22236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22237 (eval $ac_try) 2>&5
22239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22240 (exit $ac_status); }; }; then
22241 ac_cv_func_isinf_in_cmath=yes
22243 echo "$as_me: failed program was:" >&5
22244 sed 's/^/| /' conftest.$ac_ext >&5
22246 ac_cv_func_isinf_in_cmath=no
22248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22250 ac_cpp='$CPP $CPPFLAGS'
22251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22256 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
22257 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
22258 if test "$ac_cv_func_isinf_in_cmath" = "yes"
22261 cat >>confdefs.h <<\_ACEOF
22262 #define HAVE_ISINF_IN_CMATH 1
22266 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
22267 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
22268 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
22269 echo $ECHO_N "(cached) $ECHO_C" >&6
22272 ac_cpp='$CXXCPP $CPPFLAGS'
22273 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22274 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22275 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22277 cat >conftest.$ac_ext <<_ACEOF
22280 cat confdefs.h >>conftest.$ac_ext
22281 cat >>conftest.$ac_ext <<_ACEOF
22282 /* end confdefs.h. */
22284 using std::isinf; int foo(float f) {return isinf(f);}
22286 rm -f conftest.$ac_objext
22287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22288 (eval $ac_compile) 2>conftest.er1
22290 grep -v '^ *+' conftest.er1 >conftest.err
22292 cat conftest.err >&5
22293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22294 (exit $ac_status); } &&
22295 { ac_try='test -z "$ac_cxx_werror_flag"
22296 || test ! -s conftest.err'
22297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22298 (eval $ac_try) 2>&5
22300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 (exit $ac_status); }; } &&
22302 { ac_try='test -s conftest.$ac_objext'
22303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22304 (eval $ac_try) 2>&5
22306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307 (exit $ac_status); }; }; then
22308 ac_cv_func_std_isinf_in_cmath=yes
22310 echo "$as_me: failed program was:" >&5
22311 sed 's/^/| /' conftest.$ac_ext >&5
22313 ac_cv_func_std_isinf_in_cmath=no
22315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22317 ac_cpp='$CPP $CPPFLAGS'
22318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22323 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22324 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22325 if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
22328 cat >>confdefs.h <<\_ACEOF
22329 #define HAVE_STD_ISINF_IN_CMATH 1
22333 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22334 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22335 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22336 echo $ECHO_N "(cached) $ECHO_C" >&6
22339 ac_cpp='$CXXCPP $CPPFLAGS'
22340 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22341 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22342 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22344 cat >conftest.$ac_ext <<_ACEOF
22347 cat confdefs.h >>conftest.$ac_ext
22348 cat >>conftest.$ac_ext <<_ACEOF
22349 /* end confdefs.h. */
22350 #include <ieeefp.h>
22351 int foo(float f) {return finite(f);}
22353 rm -f conftest.$ac_objext
22354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22355 (eval $ac_compile) 2>conftest.er1
22357 grep -v '^ *+' conftest.er1 >conftest.err
22359 cat conftest.err >&5
22360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361 (exit $ac_status); } &&
22362 { ac_try='test -z "$ac_cxx_werror_flag"
22363 || test ! -s conftest.err'
22364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22365 (eval $ac_try) 2>&5
22367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368 (exit $ac_status); }; } &&
22369 { ac_try='test -s conftest.$ac_objext'
22370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22371 (eval $ac_try) 2>&5
22373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374 (exit $ac_status); }; }; then
22375 ac_cv_func_finite_in_ieeefp_h=yes
22377 echo "$as_me: failed program was:" >&5
22378 sed 's/^/| /' conftest.$ac_ext >&5
22380 ac_cv_func_finite_in_ieeefp_h=no
22382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22384 ac_cpp='$CPP $CPPFLAGS'
22385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22390 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22391 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22392 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
22395 cat >>confdefs.h <<\_ACEOF
22396 #define HAVE_FINITE_IN_IEEEFP_H 1
22402 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22403 # for constant arguments. Useless!
22404 echo "$as_me:$LINENO: checking for working alloca.h" >&5
22405 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22406 if test "${ac_cv_working_alloca_h+set}" = set; then
22407 echo $ECHO_N "(cached) $ECHO_C" >&6
22409 cat >conftest.$ac_ext <<_ACEOF
22412 cat confdefs.h >>conftest.$ac_ext
22413 cat >>conftest.$ac_ext <<_ACEOF
22414 /* end confdefs.h. */
22415 #include <alloca.h>
22419 char *p = (char *) alloca (2 * sizeof (int));
22424 rm -f conftest.$ac_objext conftest$ac_exeext
22425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22426 (eval $ac_link) 2>conftest.er1
22428 grep -v '^ *+' conftest.er1 >conftest.err
22430 cat conftest.err >&5
22431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432 (exit $ac_status); } &&
22433 { ac_try='test -z "$ac_c_werror_flag"
22434 || test ! -s conftest.err'
22435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22436 (eval $ac_try) 2>&5
22438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439 (exit $ac_status); }; } &&
22440 { ac_try='test -s conftest$ac_exeext'
22441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22442 (eval $ac_try) 2>&5
22444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22445 (exit $ac_status); }; }; then
22446 ac_cv_working_alloca_h=yes
22448 echo "$as_me: failed program was:" >&5
22449 sed 's/^/| /' conftest.$ac_ext >&5
22451 ac_cv_working_alloca_h=no
22453 rm -f conftest.err conftest.$ac_objext \
22454 conftest$ac_exeext conftest.$ac_ext
22456 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22457 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22458 if test $ac_cv_working_alloca_h = yes; then
22460 cat >>confdefs.h <<\_ACEOF
22461 #define HAVE_ALLOCA_H 1
22466 echo "$as_me:$LINENO: checking for alloca" >&5
22467 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22468 if test "${ac_cv_func_alloca_works+set}" = set; then
22469 echo $ECHO_N "(cached) $ECHO_C" >&6
22471 cat >conftest.$ac_ext <<_ACEOF
22474 cat confdefs.h >>conftest.$ac_ext
22475 cat >>conftest.$ac_ext <<_ACEOF
22476 /* end confdefs.h. */
22478 # define alloca __builtin_alloca
22481 # include <malloc.h>
22482 # define alloca _alloca
22485 # include <alloca.h>
22490 # ifndef alloca /* predefined by HP cc +Olibcalls */
22501 char *p = (char *) alloca (1);
22506 rm -f conftest.$ac_objext conftest$ac_exeext
22507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22508 (eval $ac_link) 2>conftest.er1
22510 grep -v '^ *+' conftest.er1 >conftest.err
22512 cat conftest.err >&5
22513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514 (exit $ac_status); } &&
22515 { ac_try='test -z "$ac_c_werror_flag"
22516 || test ! -s conftest.err'
22517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22518 (eval $ac_try) 2>&5
22520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521 (exit $ac_status); }; } &&
22522 { ac_try='test -s conftest$ac_exeext'
22523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22524 (eval $ac_try) 2>&5
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); }; }; then
22528 ac_cv_func_alloca_works=yes
22530 echo "$as_me: failed program was:" >&5
22531 sed 's/^/| /' conftest.$ac_ext >&5
22533 ac_cv_func_alloca_works=no
22535 rm -f conftest.err conftest.$ac_objext \
22536 conftest$ac_exeext conftest.$ac_ext
22538 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22539 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22541 if test $ac_cv_func_alloca_works = yes; then
22543 cat >>confdefs.h <<\_ACEOF
22544 #define HAVE_ALLOCA 1
22548 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22549 # that cause trouble. Some versions do not even contain alloca or
22550 # contain a buggy version. If you still want to use their alloca,
22551 # use ar to extract alloca.o from them instead of compiling alloca.c.
22553 ALLOCA=alloca.$ac_objext
22555 cat >>confdefs.h <<\_ACEOF
22560 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22561 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22562 if test "${ac_cv_os_cray+set}" = set; then
22563 echo $ECHO_N "(cached) $ECHO_C" >&6
22565 cat >conftest.$ac_ext <<_ACEOF
22568 cat confdefs.h >>conftest.$ac_ext
22569 cat >>conftest.$ac_ext <<_ACEOF
22570 /* end confdefs.h. */
22571 #if defined(CRAY) && ! defined(CRAY2)
22578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22579 $EGREP "webecray" >/dev/null 2>&1; then
22587 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22588 echo "${ECHO_T}$ac_cv_os_cray" >&6
22589 if test $ac_cv_os_cray = yes; then
22590 for ac_func in _getb67 GETB67 getb67; do
22591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22592 echo "$as_me:$LINENO: checking for $ac_func" >&5
22593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22594 if eval "test \"\${$as_ac_var+set}\" = set"; then
22595 echo $ECHO_N "(cached) $ECHO_C" >&6
22597 cat >conftest.$ac_ext <<_ACEOF
22600 cat confdefs.h >>conftest.$ac_ext
22601 cat >>conftest.$ac_ext <<_ACEOF
22602 /* end confdefs.h. */
22603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22605 #define $ac_func innocuous_$ac_func
22607 /* System header to define __stub macros and hopefully few prototypes,
22608 which can conflict with char $ac_func (); below.
22609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22610 <limits.h> exists even on freestanding compilers. */
22613 # include <limits.h>
22615 # include <assert.h>
22620 /* Override any gcc2 internal prototype to avoid an error. */
22625 /* We use char because int might match the return type of a gcc2
22626 builtin and then its argument prototype would still apply. */
22628 /* The GNU C library defines this for functions which it implements
22629 to always fail with ENOSYS. Some functions are actually named
22630 something starting with __ and the normal name is an alias. */
22631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22634 char (*f) () = $ac_func;
22643 return f != $ac_func;
22648 rm -f conftest.$ac_objext conftest$ac_exeext
22649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22650 (eval $ac_link) 2>conftest.er1
22652 grep -v '^ *+' conftest.er1 >conftest.err
22654 cat conftest.err >&5
22655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22656 (exit $ac_status); } &&
22657 { ac_try='test -z "$ac_c_werror_flag"
22658 || test ! -s conftest.err'
22659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22660 (eval $ac_try) 2>&5
22662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663 (exit $ac_status); }; } &&
22664 { ac_try='test -s conftest$ac_exeext'
22665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22666 (eval $ac_try) 2>&5
22668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669 (exit $ac_status); }; }; then
22670 eval "$as_ac_var=yes"
22672 echo "$as_me: failed program was:" >&5
22673 sed 's/^/| /' conftest.$ac_ext >&5
22675 eval "$as_ac_var=no"
22677 rm -f conftest.err conftest.$ac_objext \
22678 conftest$ac_exeext conftest.$ac_ext
22680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22681 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22682 if test `eval echo '${'$as_ac_var'}'` = yes; then
22684 cat >>confdefs.h <<_ACEOF
22685 #define CRAY_STACKSEG_END $ac_func
22694 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22695 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22696 if test "${ac_cv_c_stack_direction+set}" = set; then
22697 echo $ECHO_N "(cached) $ECHO_C" >&6
22699 if test "$cross_compiling" = yes; then
22700 ac_cv_c_stack_direction=0
22702 cat >conftest.$ac_ext <<_ACEOF
22705 cat confdefs.h >>conftest.$ac_ext
22706 cat >>conftest.$ac_ext <<_ACEOF
22707 /* end confdefs.h. */
22709 find_stack_direction ()
22711 static char *addr = 0;
22716 return find_stack_direction ();
22719 return (&dummy > addr) ? 1 : -1;
22725 exit (find_stack_direction () < 0);
22728 rm -f conftest$ac_exeext
22729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22730 (eval $ac_link) 2>&5
22732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22735 (eval $ac_try) 2>&5
22737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738 (exit $ac_status); }; }; then
22739 ac_cv_c_stack_direction=1
22741 echo "$as_me: program exited with status $ac_status" >&5
22742 echo "$as_me: failed program was:" >&5
22743 sed 's/^/| /' conftest.$ac_ext >&5
22745 ( exit $ac_status )
22746 ac_cv_c_stack_direction=-1
22748 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22751 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22752 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22754 cat >>confdefs.h <<_ACEOF
22755 #define STACK_DIRECTION $ac_cv_c_stack_direction
22763 for ac_header in stdlib.h unistd.h
22765 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22767 echo "$as_me:$LINENO: checking for $ac_header" >&5
22768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22770 echo $ECHO_N "(cached) $ECHO_C" >&6
22772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22775 # Is the header compilable?
22776 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22778 cat >conftest.$ac_ext <<_ACEOF
22781 cat confdefs.h >>conftest.$ac_ext
22782 cat >>conftest.$ac_ext <<_ACEOF
22783 /* end confdefs.h. */
22784 $ac_includes_default
22785 #include <$ac_header>
22787 rm -f conftest.$ac_objext
22788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22789 (eval $ac_compile) 2>conftest.er1
22791 grep -v '^ *+' conftest.er1 >conftest.err
22793 cat conftest.err >&5
22794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22795 (exit $ac_status); } &&
22796 { ac_try='test -z "$ac_c_werror_flag"
22797 || test ! -s conftest.err'
22798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22799 (eval $ac_try) 2>&5
22801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802 (exit $ac_status); }; } &&
22803 { ac_try='test -s conftest.$ac_objext'
22804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22805 (eval $ac_try) 2>&5
22807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22808 (exit $ac_status); }; }; then
22809 ac_header_compiler=yes
22811 echo "$as_me: failed program was:" >&5
22812 sed 's/^/| /' conftest.$ac_ext >&5
22814 ac_header_compiler=no
22816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22817 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22818 echo "${ECHO_T}$ac_header_compiler" >&6
22820 # Is the header present?
22821 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22822 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22823 cat >conftest.$ac_ext <<_ACEOF
22826 cat confdefs.h >>conftest.$ac_ext
22827 cat >>conftest.$ac_ext <<_ACEOF
22828 /* end confdefs.h. */
22829 #include <$ac_header>
22831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22834 grep -v '^ *+' conftest.er1 >conftest.err
22836 cat conftest.err >&5
22837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838 (exit $ac_status); } >/dev/null; then
22839 if test -s conftest.err; then
22840 ac_cpp_err=$ac_c_preproc_warn_flag
22841 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22848 if test -z "$ac_cpp_err"; then
22849 ac_header_preproc=yes
22851 echo "$as_me: failed program was:" >&5
22852 sed 's/^/| /' conftest.$ac_ext >&5
22854 ac_header_preproc=no
22856 rm -f conftest.err conftest.$ac_ext
22857 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22858 echo "${ECHO_T}$ac_header_preproc" >&6
22860 # So? What about this header?
22861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22863 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22864 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22866 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22867 ac_header_preproc=yes
22870 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22871 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22872 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22873 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22874 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22875 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22876 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22877 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22880 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22881 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22884 ## ----------------------------------- ##
22885 ## Report this to llvmbugs@cs.uiuc.edu ##
22886 ## ----------------------------------- ##
22889 sed "s/^/$as_me: WARNING: /" >&2
22892 echo "$as_me:$LINENO: checking for $ac_header" >&5
22893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22895 echo $ECHO_N "(cached) $ECHO_C" >&6
22897 eval "$as_ac_Header=\$ac_header_preproc"
22899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22900 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22904 cat >>confdefs.h <<_ACEOF
22905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22913 for ac_func in getpagesize
22915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22916 echo "$as_me:$LINENO: checking for $ac_func" >&5
22917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22918 if eval "test \"\${$as_ac_var+set}\" = set"; then
22919 echo $ECHO_N "(cached) $ECHO_C" >&6
22921 cat >conftest.$ac_ext <<_ACEOF
22924 cat confdefs.h >>conftest.$ac_ext
22925 cat >>conftest.$ac_ext <<_ACEOF
22926 /* end confdefs.h. */
22927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22929 #define $ac_func innocuous_$ac_func
22931 /* System header to define __stub macros and hopefully few prototypes,
22932 which can conflict with char $ac_func (); below.
22933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22934 <limits.h> exists even on freestanding compilers. */
22937 # include <limits.h>
22939 # include <assert.h>
22944 /* Override any gcc2 internal prototype to avoid an error. */
22949 /* We use char because int might match the return type of a gcc2
22950 builtin and then its argument prototype would still apply. */
22952 /* The GNU C library defines this for functions which it implements
22953 to always fail with ENOSYS. Some functions are actually named
22954 something starting with __ and the normal name is an alias. */
22955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22958 char (*f) () = $ac_func;
22967 return f != $ac_func;
22972 rm -f conftest.$ac_objext conftest$ac_exeext
22973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22974 (eval $ac_link) 2>conftest.er1
22976 grep -v '^ *+' conftest.er1 >conftest.err
22978 cat conftest.err >&5
22979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22980 (exit $ac_status); } &&
22981 { ac_try='test -z "$ac_c_werror_flag"
22982 || test ! -s conftest.err'
22983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22984 (eval $ac_try) 2>&5
22986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22987 (exit $ac_status); }; } &&
22988 { ac_try='test -s conftest$ac_exeext'
22989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22990 (eval $ac_try) 2>&5
22992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993 (exit $ac_status); }; }; then
22994 eval "$as_ac_var=yes"
22996 echo "$as_me: failed program was:" >&5
22997 sed 's/^/| /' conftest.$ac_ext >&5
22999 eval "$as_ac_var=no"
23001 rm -f conftest.err conftest.$ac_objext \
23002 conftest$ac_exeext conftest.$ac_ext
23004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23005 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23006 if test `eval echo '${'$as_ac_var'}'` = yes; then
23007 cat >>confdefs.h <<_ACEOF
23008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23014 echo "$as_me:$LINENO: checking for working mmap" >&5
23015 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
23016 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
23017 echo $ECHO_N "(cached) $ECHO_C" >&6
23019 if test "$cross_compiling" = yes; then
23020 ac_cv_func_mmap_fixed_mapped=no
23022 cat >conftest.$ac_ext <<_ACEOF
23025 cat confdefs.h >>conftest.$ac_ext
23026 cat >>conftest.$ac_ext <<_ACEOF
23027 /* end confdefs.h. */
23028 $ac_includes_default
23029 /* malloc might have been renamed as rpl_malloc. */
23032 /* Thanks to Mike Haertel and Jim Avera for this test.
23033 Here is a matrix of mmap possibilities:
23034 mmap private not fixed
23035 mmap private fixed at somewhere currently unmapped
23036 mmap private fixed at somewhere already mapped
23037 mmap shared not fixed
23038 mmap shared fixed at somewhere currently unmapped
23039 mmap shared fixed at somewhere already mapped
23040 For private mappings, we should verify that changes cannot be read()
23041 back from the file, nor mmap's back from the file at a different
23042 address. (There have been systems where private was not correctly
23043 implemented like the infamous i386 svr4.0, and systems where the
23044 VM page cache was not coherent with the file system buffer cache
23045 like early versions of FreeBSD and possibly contemporary NetBSD.)
23046 For shared mappings, we should conversely verify that changes get
23047 propagated back to all the places they're supposed to be.
23049 Grep wants private fixed already mapped.
23050 The main things grep needs to know about mmap are:
23051 * does it exist and is it safe to write into the mmap'd area
23052 * how to use it (BSD variants) */
23055 #include <sys/mman.h>
23057 #if !STDC_HEADERS && !HAVE_STDLIB_H
23061 /* This mess was copied from the GNU getpagesize.h. */
23062 #if !HAVE_GETPAGESIZE
23063 /* Assume that all systems that can run configure have sys/param.h. */
23064 # if !HAVE_SYS_PARAM_H
23065 # define HAVE_SYS_PARAM_H 1
23068 # ifdef _SC_PAGESIZE
23069 # define getpagesize() sysconf(_SC_PAGESIZE)
23070 # else /* no _SC_PAGESIZE */
23071 # if HAVE_SYS_PARAM_H
23072 # include <sys/param.h>
23073 # ifdef EXEC_PAGESIZE
23074 # define getpagesize() EXEC_PAGESIZE
23075 # else /* no EXEC_PAGESIZE */
23077 # define getpagesize() NBPG * CLSIZE
23080 # endif /* no CLSIZE */
23081 # else /* no NBPG */
23083 # define getpagesize() NBPC
23084 # else /* no NBPC */
23086 # define getpagesize() PAGESIZE
23087 # endif /* PAGESIZE */
23088 # endif /* no NBPC */
23089 # endif /* no NBPG */
23090 # endif /* no EXEC_PAGESIZE */
23091 # else /* no HAVE_SYS_PARAM_H */
23092 # define getpagesize() 8192 /* punt totally */
23093 # endif /* no HAVE_SYS_PARAM_H */
23094 # endif /* no _SC_PAGESIZE */
23096 #endif /* no HAVE_GETPAGESIZE */
23101 char *data, *data2, *data3;
23105 pagesize = getpagesize ();
23107 /* First, make a file with some known garbage in it. */
23108 data = (char *) malloc (pagesize);
23111 for (i = 0; i < pagesize; ++i)
23112 *(data + i) = rand ();
23114 fd = creat ("conftest.mmap", 0600);
23117 if (write (fd, data, pagesize) != pagesize)
23121 /* Next, try to mmap the file at a fixed address which already has
23122 something else allocated at it. If we can, also make sure that
23123 we see the same garbage. */
23124 fd = open ("conftest.mmap", O_RDWR);
23127 data2 = (char *) malloc (2 * pagesize);
23130 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
23131 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23132 MAP_PRIVATE | MAP_FIXED, fd, 0L))
23134 for (i = 0; i < pagesize; ++i)
23135 if (*(data + i) != *(data2 + i))
23138 /* Finally, make sure that changes to the mapped area do not
23139 percolate back to the file as seen by read(). (This is a bug on
23140 some variants of i386 svr4.0.) */
23141 for (i = 0; i < pagesize; ++i)
23142 *(data2 + i) = *(data2 + i) + 1;
23143 data3 = (char *) malloc (pagesize);
23146 if (read (fd, data3, pagesize) != pagesize)
23148 for (i = 0; i < pagesize; ++i)
23149 if (*(data + i) != *(data3 + i))
23155 rm -f conftest$ac_exeext
23156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23157 (eval $ac_link) 2>&5
23159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23162 (eval $ac_try) 2>&5
23164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23165 (exit $ac_status); }; }; then
23166 ac_cv_func_mmap_fixed_mapped=yes
23168 echo "$as_me: program exited with status $ac_status" >&5
23169 echo "$as_me: failed program was:" >&5
23170 sed 's/^/| /' conftest.$ac_ext >&5
23172 ( exit $ac_status )
23173 ac_cv_func_mmap_fixed_mapped=no
23175 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23178 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
23179 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
23180 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23182 cat >>confdefs.h <<\_ACEOF
23183 #define HAVE_MMAP 1
23187 rm -f conftest.mmap
23189 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
23191 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
23192 echo "$as_me: WARNING: mmap() required but not found" >&2;}
23194 echo "$as_me:$LINENO: checking for mmap of files" >&5
23195 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
23196 if test "${ac_cv_func_mmap_file+set}" = set; then
23197 echo $ECHO_N "(cached) $ECHO_C" >&6
23200 ac_cpp='$CPP $CPPFLAGS'
23201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23205 if test "$cross_compiling" = yes; then
23206 ac_cv_func_mmap_file=no
23208 cat >conftest.$ac_ext <<_ACEOF
23212 cat confdefs.h >>conftest.$ac_ext
23213 cat >>conftest.$ac_ext <<_ACEOF
23214 /* end confdefs.h. */
23216 #include <sys/types.h>
23217 #include <sys/mman.h>
23225 fd = creat ("foo",0777);
23226 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
23228 return (fd != (int) MAP_FAILED);
23233 rm -f conftest$ac_exeext
23234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23235 (eval $ac_link) 2>&5
23237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23240 (eval $ac_try) 2>&5
23242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23243 (exit $ac_status); }; }; then
23244 ac_cv_func_mmap_file=yes
23246 echo "$as_me: program exited with status $ac_status" >&5
23247 echo "$as_me: failed program was:" >&5
23248 sed 's/^/| /' conftest.$ac_ext >&5
23250 ( exit $ac_status )
23251 ac_cv_func_mmap_file=no
23253 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23256 ac_cpp='$CPP $CPPFLAGS'
23257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23263 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
23264 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
23265 if test "$ac_cv_func_mmap_file" = yes; then
23267 cat >>confdefs.h <<\_ACEOF
23268 #define HAVE_MMAP_FILE
23275 if test "$ac_cv_func_mmap_file" = "no"
23277 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23278 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
23280 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23281 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23282 if test "${ac_cv_header_mmap_anon+set}" = set; then
23283 echo $ECHO_N "(cached) $ECHO_C" >&6
23286 ac_cpp='$CPP $CPPFLAGS'
23287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23291 cat >conftest.$ac_ext <<_ACEOF
23294 cat confdefs.h >>conftest.$ac_ext
23295 cat >>conftest.$ac_ext <<_ACEOF
23296 /* end confdefs.h. */
23297 #include <sys/mman.h>
23298 #include <unistd.h>
23303 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23308 rm -f conftest.$ac_objext
23309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23310 (eval $ac_compile) 2>conftest.er1
23312 grep -v '^ *+' conftest.er1 >conftest.err
23314 cat conftest.err >&5
23315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23316 (exit $ac_status); } &&
23317 { ac_try='test -z "$ac_c_werror_flag"
23318 || test ! -s conftest.err'
23319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23320 (eval $ac_try) 2>&5
23322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23323 (exit $ac_status); }; } &&
23324 { ac_try='test -s conftest.$ac_objext'
23325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23326 (eval $ac_try) 2>&5
23328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329 (exit $ac_status); }; }; then
23330 ac_cv_header_mmap_anon=yes
23332 echo "$as_me: failed program was:" >&5
23333 sed 's/^/| /' conftest.$ac_ext >&5
23335 ac_cv_header_mmap_anon=no
23337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23339 ac_cpp='$CPP $CPPFLAGS'
23340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23346 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23347 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23348 if test "$ac_cv_header_mmap_anon" = yes; then
23350 cat >>confdefs.h <<\_ACEOF
23351 #define HAVE_MMAP_ANONYMOUS
23356 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23357 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23358 if test "${ac_cv_type_signal+set}" = set; then
23359 echo $ECHO_N "(cached) $ECHO_C" >&6
23361 cat >conftest.$ac_ext <<_ACEOF
23364 cat confdefs.h >>conftest.$ac_ext
23365 cat >>conftest.$ac_ext <<_ACEOF
23366 /* end confdefs.h. */
23367 #include <sys/types.h>
23368 #include <signal.h>
23373 extern "C" void (*signal (int, void (*)(int)))(int);
23375 void (*signal ()) ();
23386 rm -f conftest.$ac_objext
23387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23388 (eval $ac_compile) 2>conftest.er1
23390 grep -v '^ *+' conftest.er1 >conftest.err
23392 cat conftest.err >&5
23393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394 (exit $ac_status); } &&
23395 { ac_try='test -z "$ac_c_werror_flag"
23396 || test ! -s conftest.err'
23397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23398 (eval $ac_try) 2>&5
23400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401 (exit $ac_status); }; } &&
23402 { ac_try='test -s conftest.$ac_objext'
23403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23404 (eval $ac_try) 2>&5
23406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23407 (exit $ac_status); }; }; then
23408 ac_cv_type_signal=void
23410 echo "$as_me: failed program was:" >&5
23411 sed 's/^/| /' conftest.$ac_ext >&5
23413 ac_cv_type_signal=int
23415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23417 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23418 echo "${ECHO_T}$ac_cv_type_signal" >&6
23420 cat >>confdefs.h <<_ACEOF
23421 #define RETSIGTYPE $ac_cv_type_signal
23434 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
23436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23437 echo "$as_me:$LINENO: checking for $ac_func" >&5
23438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23439 if eval "test \"\${$as_ac_var+set}\" = set"; then
23440 echo $ECHO_N "(cached) $ECHO_C" >&6
23442 cat >conftest.$ac_ext <<_ACEOF
23445 cat confdefs.h >>conftest.$ac_ext
23446 cat >>conftest.$ac_ext <<_ACEOF
23447 /* end confdefs.h. */
23448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23450 #define $ac_func innocuous_$ac_func
23452 /* System header to define __stub macros and hopefully few prototypes,
23453 which can conflict with char $ac_func (); below.
23454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23455 <limits.h> exists even on freestanding compilers. */
23458 # include <limits.h>
23460 # include <assert.h>
23465 /* Override any gcc2 internal prototype to avoid an error. */
23470 /* We use char because int might match the return type of a gcc2
23471 builtin and then its argument prototype would still apply. */
23473 /* The GNU C library defines this for functions which it implements
23474 to always fail with ENOSYS. Some functions are actually named
23475 something starting with __ and the normal name is an alias. */
23476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23479 char (*f) () = $ac_func;
23488 return f != $ac_func;
23493 rm -f conftest.$ac_objext conftest$ac_exeext
23494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23495 (eval $ac_link) 2>conftest.er1
23497 grep -v '^ *+' conftest.er1 >conftest.err
23499 cat conftest.err >&5
23500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23501 (exit $ac_status); } &&
23502 { ac_try='test -z "$ac_c_werror_flag"
23503 || test ! -s conftest.err'
23504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23505 (eval $ac_try) 2>&5
23507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23508 (exit $ac_status); }; } &&
23509 { ac_try='test -s conftest$ac_exeext'
23510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23511 (eval $ac_try) 2>&5
23513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514 (exit $ac_status); }; }; then
23515 eval "$as_ac_var=yes"
23517 echo "$as_me: failed program was:" >&5
23518 sed 's/^/| /' conftest.$ac_ext >&5
23520 eval "$as_ac_var=no"
23522 rm -f conftest.err conftest.$ac_objext \
23523 conftest$ac_exeext conftest.$ac_ext
23525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23526 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23527 if test `eval echo '${'$as_ac_var'}'` = yes; then
23528 cat >>confdefs.h <<_ACEOF
23529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23535 echo "$as_me:$LINENO: checking for mprotect" >&5
23536 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
23537 if test "${ac_cv_func_mprotect+set}" = set; then
23538 echo $ECHO_N "(cached) $ECHO_C" >&6
23540 cat >conftest.$ac_ext <<_ACEOF
23543 cat confdefs.h >>conftest.$ac_ext
23544 cat >>conftest.$ac_ext <<_ACEOF
23545 /* end confdefs.h. */
23546 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
23547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23548 #define mprotect innocuous_mprotect
23550 /* System header to define __stub macros and hopefully few prototypes,
23551 which can conflict with char mprotect (); below.
23552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23553 <limits.h> exists even on freestanding compilers. */
23556 # include <limits.h>
23558 # include <assert.h>
23563 /* Override any gcc2 internal prototype to avoid an error. */
23568 /* We use char because int might match the return type of a gcc2
23569 builtin and then its argument prototype would still apply. */
23571 /* The GNU C library defines this for functions which it implements
23572 to always fail with ENOSYS. Some functions are actually named
23573 something starting with __ and the normal name is an alias. */
23574 #if defined (__stub_mprotect) || defined (__stub___mprotect)
23577 char (*f) () = mprotect;
23586 return f != mprotect;
23591 rm -f conftest.$ac_objext conftest$ac_exeext
23592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23593 (eval $ac_link) 2>conftest.er1
23595 grep -v '^ *+' conftest.er1 >conftest.err
23597 cat conftest.err >&5
23598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599 (exit $ac_status); } &&
23600 { ac_try='test -z "$ac_c_werror_flag"
23601 || test ! -s conftest.err'
23602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23603 (eval $ac_try) 2>&5
23605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606 (exit $ac_status); }; } &&
23607 { ac_try='test -s conftest$ac_exeext'
23608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23609 (eval $ac_try) 2>&5
23611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23612 (exit $ac_status); }; }; then
23613 ac_cv_func_mprotect=yes
23615 echo "$as_me: failed program was:" >&5
23616 sed 's/^/| /' conftest.$ac_ext >&5
23618 ac_cv_func_mprotect=no
23620 rm -f conftest.err conftest.$ac_objext \
23621 conftest$ac_exeext conftest.$ac_ext
23623 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
23624 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
23625 if test $ac_cv_func_mprotect = yes; then
23628 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
23629 echo "$as_me: error: Function mprotect() required but not found" >&2;}
23630 { (exit 1); exit 1; }; }
23635 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
23636 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
23638 ac_cpp='$CPP $CPPFLAGS'
23639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23643 oldcflags="$CFLAGS"
23644 CFLAGS="$CFLAGS -Wl,-R."
23645 cat >conftest.$ac_ext <<_ACEOF
23648 cat confdefs.h >>conftest.$ac_ext
23649 cat >>conftest.$ac_ext <<_ACEOF
23650 /* end confdefs.h. */
23655 int main() { return 0; }
23660 rm -f conftest.$ac_objext conftest$ac_exeext
23661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23662 (eval $ac_link) 2>conftest.er1
23664 grep -v '^ *+' conftest.er1 >conftest.err
23666 cat conftest.err >&5
23667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23668 (exit $ac_status); } &&
23669 { ac_try='test -z "$ac_c_werror_flag"
23670 || test ! -s conftest.err'
23671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23672 (eval $ac_try) 2>&5
23674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675 (exit $ac_status); }; } &&
23676 { ac_try='test -s conftest$ac_exeext'
23677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23678 (eval $ac_try) 2>&5
23680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23681 (exit $ac_status); }; }; then
23682 ac_cv_link_use_r=yes
23684 echo "$as_me: failed program was:" >&5
23685 sed 's/^/| /' conftest.$ac_ext >&5
23687 ac_cv_link_use_r=no
23689 rm -f conftest.err conftest.$ac_objext \
23690 conftest$ac_exeext conftest.$ac_ext
23691 CFLAGS="$oldcflags"
23693 ac_cpp='$CPP $CPPFLAGS'
23694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23698 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
23699 echo "${ECHO_T}$ac_cv_link_use_r" >&6
23700 if test "$ac_cv_link_use_r" = yes
23703 cat >>confdefs.h <<\_ACEOF
23704 #define HAVE_LINK_R 1
23710 # Check whether --enable-optimized or --disable-optimized was given.
23711 if test "${enable_optimized+set}" = set; then
23712 enableval="$enable_optimized"
23717 if test ${enableval} = "no"
23722 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
23726 # Check whether --enable-jit or --disable-jit was given.
23727 if test "${enable_jit+set}" = set; then
23728 enableval="$enable_jit"
23733 if test ${enableval} = "no"
23740 JIT=TARGET_HAS_JIT=1
23744 JIT=TARGET_HAS_JIT=1
23755 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
23756 if test "${with_llvmgccdir+set}" = set; then
23757 withval="$with_llvmgccdir"
23758 LLVMGCCDIR=$withval
23761 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
23762 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
23764 if test -d "$LLVMGCCDIR"
23766 if test -x "$LLVMGCCDIR/bin/gcc"
23768 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
23772 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
23773 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
23774 if test "$LLVM_GCC_CHECK" = "no"
23778 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
23779 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
23781 if test -x "$LLVM_GCC_CHECK"
23783 cp /dev/null conftest.c
23784 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
23790 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
23791 LLVMCC1=$llvmcc1path
23793 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
23794 LLVMCC1PLUS=$llvmcc1pluspath
23797 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
23798 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
23799 if test "$LLVM_GCC_SANE" = "no"
23804 echo "$as_me:$LINENO: checking for shared library suffix" >&5
23805 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
23806 eval "SHLIBEXT=$shrext_cmds"
23807 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
23808 echo "${ECHO_T}$SHLIBEXT" >&6
23812 cat >>confdefs.h <<_ACEOF
23813 #define SHLIBEXT "$SHLIBEXT"
23817 # Translate the various configuration directories and other basic
23818 # information into substitutions that will end up in config.h.in so
23819 # that these configured values can be hard-wired into a program.
23820 eval LLVM_PREFIX="${prefix}";
23821 eval LLVM_BINDIR="${prefix}/bin";
23822 eval LLVM_LIBDIR="${prefix}/lib";
23823 eval LLVM_DATADIR="${prefix}/data";
23824 eval LLVM_DOCSDIR="${prefix}/docs";
23825 eval LLVM_ETCDIR="${prefix}/etc";
23826 eval LLVM_INCLUDEDIR="${prefix}/include";
23827 eval LLVM_INFODIR="${prefix}/info";
23828 eval LLVM_MANDIR="${prefix}/man";
23829 LLVM_CONFIGTIME=`date`
23841 cat >>confdefs.h <<_ACEOF
23842 #define LLVM_PREFIX "$LLVM_PREFIX"
23846 cat >>confdefs.h <<_ACEOF
23847 #define LLVM_BINDIR "$LLVM_BINDIR"
23851 cat >>confdefs.h <<_ACEOF
23852 #define LLVM_LIBDIR "$LLVM_LIBDIR"
23856 cat >>confdefs.h <<_ACEOF
23857 #define LLVM_DATADIR "$LLVM_DATADIR"
23861 cat >>confdefs.h <<_ACEOF
23862 #define LLVM_DATADIR "$LLVM_DOCSDIR"
23866 cat >>confdefs.h <<_ACEOF
23867 #define LLVM_ETCDIR "$LLVM_ETCDIR"
23871 cat >>confdefs.h <<_ACEOF
23872 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
23876 cat >>confdefs.h <<_ACEOF
23877 #define LLVM_INFODIR "$LLVM_INFODIR"
23881 cat >>confdefs.h <<_ACEOF
23882 #define LLVM_MANDIR "$LLVM_MANDIR"
23886 cat >>confdefs.h <<_ACEOF
23887 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
23891 cat >confcache <<\_ACEOF
23892 # This file is a shell script that caches the results of configure
23893 # tests run on this system so they can be shared between configure
23894 # scripts and configure runs, see configure's option --config-cache.
23895 # It is not useful on other systems. If it contains results you don't
23896 # want to keep, you may remove or edit it.
23898 # config.status only pays attention to the cache file if you give it
23899 # the --recheck option to rerun configure.
23901 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23902 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23903 # following values.
23907 # The following way of writing the cache mishandles newlines in values,
23908 # but we know of no workaround that is simple, portable, and efficient.
23909 # So, don't put newlines in cache variables' values.
23910 # Ultrix sh set writes to stderr and can't be redirected directly,
23911 # and sets the high bit in the cache file unless we assign to the vars.
23914 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23916 # `set' does not quote correctly, so add quotes (double-quote
23917 # substitution turns \\\\ into \\, and sed turns \\ into \).
23920 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23923 # `set' quotes correctly as required by POSIX, so do not add quotes.
23925 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23932 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23934 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23936 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23937 if test -w $cache_file; then
23938 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23939 cat confcache >$cache_file
23941 echo "not updating unwritable cache $cache_file"
23946 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23947 # Let make expand exec_prefix.
23948 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23950 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23951 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23952 # trailing colons and then remove the whole line if VPATH becomes empty
23953 # (actually we leave an empty line to preserve line numbers).
23954 if test "x$srcdir" = x.; then
23955 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23956 s/:*\$(srcdir):*/:/;
23957 s/:*\${srcdir}:*/:/;
23959 s/^\([^=]*=[ ]*\):*/\1/;
23965 DEFS=-DHAVE_CONFIG_H
23969 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23970 # 1. Remove the extension, and $U if already installed.
23971 ac_i=`echo "$ac_i" |
23972 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23974 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23975 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23977 LIBOBJS=$ac_libobjs
23979 LTLIBOBJS=$ac_ltlibobjs
23983 : ${CONFIG_STATUS=./config.status}
23984 ac_clean_files_save=$ac_clean_files
23985 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23986 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23987 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23988 cat >$CONFIG_STATUS <<_ACEOF
23990 # Generated by $as_me.
23991 # Run this file to recreate the current configuration.
23992 # Compiler output produced by configure, useful for debugging
23993 # configure, is in config.log if it exists.
23996 ac_cs_recheck=false
23998 SHELL=\${CONFIG_SHELL-$SHELL}
24001 cat >>$CONFIG_STATUS <<\_ACEOF
24002 ## --------------------- ##
24003 ## M4sh Initialization. ##
24004 ## --------------------- ##
24006 # Be Bourne compatible
24007 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24010 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24011 # is contrary to our usage. Disable this feature.
24012 alias -g '${1+"$@"}'='"$@"'
24013 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24016 DUALCASE=1; export DUALCASE # for MKS sh
24018 # Support unset when possible.
24019 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24026 # Work around bugs in pre-3.0 UWIN ksh.
24027 $as_unset ENV MAIL MAILPATH
24034 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24035 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24036 LC_TELEPHONE LC_TIME
24038 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24039 eval $as_var=C; export $as_var
24045 # Required to use basename.
24046 if expr a : '\(a\)' >/dev/null 2>&1; then
24052 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24053 as_basename=basename
24059 # Name of the executable.
24060 as_me=`$as_basename "$0" ||
24061 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24062 X"$0" : 'X\(//\)$' \| \
24063 X"$0" : 'X\(/\)$' \| \
24064 . : '\(.\)' 2>/dev/null ||
24066 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24067 /^X\/\(\/\/\)$/{ s//\1/; q; }
24068 /^X\/\(\/\).*/{ s//\1/; q; }
24072 # PATH needs CR, and LINENO needs CR and PATH.
24073 # Avoid depending upon Character Ranges.
24074 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24075 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24076 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24077 as_cr_digits='0123456789'
24078 as_cr_alnum=$as_cr_Letters$as_cr_digits
24080 # The user is always right.
24081 if test "${PATH_SEPARATOR+set}" != set; then
24082 echo "#! /bin/sh" >conf$$.sh
24083 echo "exit 0" >>conf$$.sh
24085 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24094 as_lineno_1=$LINENO
24095 as_lineno_2=$LINENO
24096 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24097 test "x$as_lineno_1" != "x$as_lineno_2" &&
24098 test "x$as_lineno_3" = "x$as_lineno_2" || {
24099 # Find who we are. Look in the path if we contain no path at all
24102 *[\\/]* ) as_myself=$0 ;;
24103 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24104 for as_dir in $PATH
24107 test -z "$as_dir" && as_dir=.
24108 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24113 # We did not find ourselves, most probably we were run as `sh COMMAND'
24114 # in which case we are not to be found in the path.
24115 if test "x$as_myself" = x; then
24118 if test ! -f "$as_myself"; then
24119 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24120 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24121 { (exit 1); exit 1; }; }
24123 case $CONFIG_SHELL in
24125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24126 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24129 test -z "$as_dir" && as_dir=.
24130 for as_base in sh bash ksh sh5; do
24133 if ("$as_dir/$as_base" -c '
24134 as_lineno_1=$LINENO
24135 as_lineno_2=$LINENO
24136 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24137 test "x$as_lineno_1" != "x$as_lineno_2" &&
24138 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24139 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24140 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24141 CONFIG_SHELL=$as_dir/$as_base
24142 export CONFIG_SHELL
24143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24152 # uniformly replaced by the line number. The first 'sed' inserts a
24153 # line-number line before each line; the second 'sed' does the real
24154 # work. The second script uses 'N' to pair each line-number line
24155 # with the numbered line, and appends trailing '-' during
24156 # substitution so that $LINENO is not a special case at line end.
24157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24159 sed '=' <$as_myself |
24164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24167 s,^['$as_cr_digits']*\n,,
24168 ' >$as_me.lineno &&
24169 chmod +x $as_me.lineno ||
24170 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24171 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24172 { (exit 1); exit 1; }; }
24174 # Don't try to exec as it changes $[0], causing all sort of problems
24175 # (the dirname of $[0] is not the place where we might find the
24176 # original and so on. Autoconf is especially sensible to this).
24178 # Exit status is that of the last command.
24183 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24184 *c*,-n*) ECHO_N= ECHO_C='
24186 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24187 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24190 if expr a : '\(a\)' >/dev/null 2>&1; then
24196 rm -f conf$$ conf$$.exe conf$$.file
24198 if ln -s conf$$.file conf$$ 2>/dev/null; then
24199 # We could just check for DJGPP; but this test a) works b) is more generic
24200 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24201 if test -f conf$$.exe; then
24202 # Don't use ln at all; we don't have any links
24207 elif ln conf$$.file conf$$ 2>/dev/null; then
24212 rm -f conf$$ conf$$.exe conf$$.file
24214 if mkdir -p . 2>/dev/null; then
24217 test -d ./-p && rmdir ./-p
24221 as_executable_p="test -f"
24223 # Sed expression to map a string onto a valid CPP name.
24224 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24226 # Sed expression to map a string onto a valid variable name.
24227 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24231 # We need space, tab and new line, in precisely that order.
24241 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24242 # report actual input values of CONFIG_FILES etc. instead of their
24243 # values after options handling. Logging --version etc. is OK.
24247 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24248 ## Running $as_me. ##
24253 This file was extended by LLVM $as_me 1.4, which was
24254 generated by GNU Autoconf 2.59. Invocation command line was
24256 CONFIG_FILES = $CONFIG_FILES
24257 CONFIG_HEADERS = $CONFIG_HEADERS
24258 CONFIG_LINKS = $CONFIG_LINKS
24259 CONFIG_COMMANDS = $CONFIG_COMMANDS
24263 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24267 # Files that config.status was made for.
24268 if test -n "$ac_config_files"; then
24269 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24272 if test -n "$ac_config_headers"; then
24273 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24276 if test -n "$ac_config_links"; then
24277 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24280 if test -n "$ac_config_commands"; then
24281 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24284 cat >>$CONFIG_STATUS <<\_ACEOF
24287 \`$as_me' instantiates files from templates according to the
24288 current configuration.
24290 Usage: $0 [OPTIONS] [FILE]...
24292 -h, --help print this help, then exit
24293 -V, --version print version number, then exit
24294 -q, --quiet do not print progress messages
24295 -d, --debug don't remove temporary files
24296 --recheck update $as_me by reconfiguring in the same conditions
24297 --file=FILE[:TEMPLATE]
24298 instantiate the configuration file FILE
24299 --header=FILE[:TEMPLATE]
24300 instantiate the configuration header FILE
24302 Configuration files:
24305 Configuration headers:
24308 Configuration links:
24311 Configuration commands:
24314 Report bugs to <bug-autoconf@gnu.org>."
24317 cat >>$CONFIG_STATUS <<_ACEOF
24319 LLVM config.status 1.4
24320 configured by $0, generated by GNU Autoconf 2.59,
24321 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24323 Copyright (C) 2003 Free Software Foundation, Inc.
24324 This config.status script is free software; the Free Software Foundation
24325 gives unlimited permission to copy, distribute and modify it."
24330 cat >>$CONFIG_STATUS <<\_ACEOF
24331 # If no file are specified by the user, then we need to provide default
24332 # value. By we need to know if files were specified by the user.
24338 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24339 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24347 *) # This is not an option, so the user has probably given explicit
24350 ac_need_defaults=false;;
24354 # Handling of the options.
24356 cat >>$CONFIG_STATUS <<\_ACEOF
24357 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24359 --version | --vers* | -V )
24360 echo "$ac_cs_version"; exit 0 ;;
24362 # Conflict between --help and --header
24363 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24364 Try \`$0 --help' for more information." >&5
24365 echo "$as_me: error: ambiguous option: $1
24366 Try \`$0 --help' for more information." >&2;}
24367 { (exit 1); exit 1; }; };;
24368 --help | --hel | -h )
24369 echo "$ac_cs_usage"; exit 0 ;;
24370 --debug | --d* | -d )
24372 --file | --fil | --fi | --f )
24374 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24375 ac_need_defaults=false;;
24376 --header | --heade | --head | --hea )
24378 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24379 ac_need_defaults=false;;
24380 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24381 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24384 # This is an error.
24385 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24386 Try \`$0 --help' for more information." >&5
24387 echo "$as_me: error: unrecognized option: $1
24388 Try \`$0 --help' for more information." >&2;}
24389 { (exit 1); exit 1; }; } ;;
24391 *) ac_config_targets="$ac_config_targets $1" ;;
24397 ac_configure_extra_args=
24399 if $ac_cs_silent; then
24401 ac_configure_extra_args="$ac_configure_extra_args --silent"
24405 cat >>$CONFIG_STATUS <<_ACEOF
24406 if \$ac_cs_recheck; then
24407 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24408 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24413 cat >>$CONFIG_STATUS <<_ACEOF
24415 # INIT-COMMANDS section.
24418 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
24419 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
24420 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
24421 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
24422 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
24423 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
24424 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24425 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
24426 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
24427 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
24428 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
24429 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
24435 cat >>$CONFIG_STATUS <<\_ACEOF
24436 for ac_config_target in $ac_config_targets
24438 case "$ac_config_target" in
24439 # Handling of arguments.
24440 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
24441 "include/llvm/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/ThreadSupport.h" ;;
24442 "include/llvm/ADT/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_map" ;;
24443 "include/llvm/ADT/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_set" ;;
24444 "include/llvm/ADT/iterator" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/iterator" ;;
24445 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
24446 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
24447 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
24448 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
24449 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
24450 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
24451 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
24452 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
24453 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
24454 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
24455 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
24456 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
24457 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
24458 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
24459 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
24460 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24461 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24462 { (exit 1); exit 1; }; };;
24466 # If the user did not use the arguments to specify the items to instantiate,
24467 # then the envvar interface is used. Set only those that are not.
24468 # We use the long form for the default assignment because of an extremely
24469 # bizarre bug on SunOS 4.1.3.
24470 if $ac_need_defaults; then
24471 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24472 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24473 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
24474 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24477 # Have a temporary directory for convenience. Make it in the build tree
24478 # simply because there is no reason to put it here, and in addition,
24479 # creating and moving files from /tmp can sometimes cause problems.
24480 # Create a temporary directory, and hook for its removal unless debugging.
24483 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24484 trap '{ (exit 1); exit 1; }' 1 2 13 15
24487 # Create a (secure) tmp directory for tmp files.
24490 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24491 test -n "$tmp" && test -d "$tmp"
24494 tmp=./confstat$$-$RANDOM
24495 (umask 077 && mkdir $tmp)
24498 echo "$me: cannot create a temporary directory in ." >&2
24499 { (exit 1); exit 1; }
24504 cat >>$CONFIG_STATUS <<_ACEOF
24507 # CONFIG_FILES section.
24510 # No need to generate the scripts if there are no CONFIG_FILES.
24511 # This happens for instance when ./config.status config.h
24512 if test -n "\$CONFIG_FILES"; then
24513 # Protect against being on the right side of a sed subst in config.status.
24514 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24515 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24516 s,@SHELL@,$SHELL,;t t
24517 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24518 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24519 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24520 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24521 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24522 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24523 s,@exec_prefix@,$exec_prefix,;t t
24524 s,@prefix@,$prefix,;t t
24525 s,@program_transform_name@,$program_transform_name,;t t
24526 s,@bindir@,$bindir,;t t
24527 s,@sbindir@,$sbindir,;t t
24528 s,@libexecdir@,$libexecdir,;t t
24529 s,@datadir@,$datadir,;t t
24530 s,@sysconfdir@,$sysconfdir,;t t
24531 s,@sharedstatedir@,$sharedstatedir,;t t
24532 s,@localstatedir@,$localstatedir,;t t
24533 s,@libdir@,$libdir,;t t
24534 s,@includedir@,$includedir,;t t
24535 s,@oldincludedir@,$oldincludedir,;t t
24536 s,@infodir@,$infodir,;t t
24537 s,@mandir@,$mandir,;t t
24538 s,@build_alias@,$build_alias,;t t
24539 s,@host_alias@,$host_alias,;t t
24540 s,@target_alias@,$target_alias,;t t
24541 s,@DEFS@,$DEFS,;t t
24542 s,@ECHO_C@,$ECHO_C,;t t
24543 s,@ECHO_N@,$ECHO_N,;t t
24544 s,@ECHO_T@,$ECHO_T,;t t
24545 s,@LIBS@,$LIBS,;t t
24546 s,@subdirs@,$subdirs,;t t
24547 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24548 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24549 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24550 s,@build@,$build,;t t
24551 s,@build_cpu@,$build_cpu,;t t
24552 s,@build_vendor@,$build_vendor,;t t
24553 s,@build_os@,$build_os,;t t
24554 s,@host@,$host,;t t
24555 s,@host_cpu@,$host_cpu,;t t
24556 s,@host_vendor@,$host_vendor,;t t
24557 s,@host_os@,$host_os,;t t
24558 s,@target@,$target,;t t
24559 s,@target_cpu@,$target_cpu,;t t
24560 s,@target_vendor@,$target_vendor,;t t
24561 s,@target_os@,$target_os,;t t
24563 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
24564 s,@ARCH@,$ARCH,;t t
24566 s,@CXXFLAGS@,$CXXFLAGS,;t t
24567 s,@LDFLAGS@,$LDFLAGS,;t t
24568 s,@CPPFLAGS@,$CPPFLAGS,;t t
24569 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24570 s,@EXEEXT@,$EXEEXT,;t t
24571 s,@OBJEXT@,$OBJEXT,;t t
24573 s,@CFLAGS@,$CFLAGS,;t t
24574 s,@ac_ct_CC@,$ac_ct_CC,;t t
24576 s,@ifGNUmake@,$ifGNUmake,;t t
24578 s,@LEXLIB@,$LEXLIB,;t t
24579 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
24580 s,@FLEX@,$FLEX,;t t
24581 s,@YACC@,$YACC,;t t
24582 s,@BISON@,$BISON,;t t
24583 s,@EGREP@,$EGREP,;t t
24584 s,@LN_S@,$LN_S,;t t
24585 s,@ECHO@,$ECHO,;t t
24587 s,@ac_ct_AR@,$ac_ct_AR,;t t
24588 s,@RANLIB@,$RANLIB,;t t
24589 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24590 s,@STRIP@,$STRIP,;t t
24591 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24592 s,@CXXCPP@,$CXXCPP,;t t
24594 s,@FFLAGS@,$FFLAGS,;t t
24595 s,@ac_ct_F77@,$ac_ct_F77,;t t
24596 s,@LIBTOOL@,$LIBTOOL,;t t
24598 s,@ETAGS@,$ETAGS,;t t
24599 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
24600 s,@PYTHON@,$PYTHON,;t t
24601 s,@QMTEST@,$QMTEST,;t t
24602 s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
24603 s,@ENDIAN@,$ENDIAN,;t t
24604 s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
24605 s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
24606 s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
24607 s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
24608 s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
24609 s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
24610 s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
24611 s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
24612 s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
24613 s,@ALLOCA@,$ALLOCA,;t t
24614 s,@MMAP_FILE@,$MMAP_FILE,;t t
24615 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
24617 s,@LLVMCC1@,$LLVMCC1,;t t
24618 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
24619 s,@SHLIBEXT@,$SHLIBEXT,;t t
24620 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
24621 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
24622 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
24623 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
24624 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
24625 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
24626 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
24627 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
24628 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
24629 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
24630 s,@LIBOBJS@,$LIBOBJS,;t t
24631 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24636 cat >>$CONFIG_STATUS <<\_ACEOF
24637 # Split the substitutions into bite-sized pieces for seds with
24638 # small command number limits, like on Digital OSF/1 and HP-UX.
24639 ac_max_sed_lines=48
24640 ac_sed_frag=1 # Number of current file.
24641 ac_beg=1 # First line for current file.
24642 ac_end=$ac_max_sed_lines # Line after last line for current file.
24645 while $ac_more_lines; do
24646 if test $ac_beg -gt 1; then
24647 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24649 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24651 if test ! -s $tmp/subs.frag; then
24652 ac_more_lines=false
24654 # The purpose of the label and of the branching condition is to
24655 # speed up the sed processing (if there are no `@' at all, there
24656 # is no need to browse any of the substitutions).
24657 # These are the two extra sed commands mentioned above.
24659 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24660 if test -z "$ac_sed_cmds"; then
24661 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24663 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24665 ac_sed_frag=`expr $ac_sed_frag + 1`
24667 ac_end=`expr $ac_end + $ac_max_sed_lines`
24670 if test -z "$ac_sed_cmds"; then
24673 fi # test -n "$CONFIG_FILES"
24676 cat >>$CONFIG_STATUS <<\_ACEOF
24677 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24678 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24680 - | *:- | *:-:* ) # input from stdin
24682 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24683 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24684 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24685 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24686 * ) ac_file_in=$ac_file.in ;;
24689 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24690 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24691 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24692 X"$ac_file" : 'X\(//\)[^/]' \| \
24693 X"$ac_file" : 'X\(//\)$' \| \
24694 X"$ac_file" : 'X\(/\)' \| \
24695 . : '\(.\)' 2>/dev/null ||
24697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24698 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24699 /^X\(\/\/\)$/{ s//\1/; q; }
24700 /^X\(\/\).*/{ s//\1/; q; }
24702 { if $as_mkdir_p; then
24707 while test ! -d "$as_dir"; do
24708 as_dirs="$as_dir $as_dirs"
24709 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24710 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24711 X"$as_dir" : 'X\(//\)[^/]' \| \
24712 X"$as_dir" : 'X\(//\)$' \| \
24713 X"$as_dir" : 'X\(/\)' \| \
24714 . : '\(.\)' 2>/dev/null ||
24716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24718 /^X\(\/\/\)$/{ s//\1/; q; }
24719 /^X\(\/\).*/{ s//\1/; q; }
24722 test ! -n "$as_dirs" || mkdir $as_dirs
24723 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24724 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24725 { (exit 1); exit 1; }; }; }
24729 if test "$ac_dir" != .; then
24730 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24731 # A "../" for each directory in $ac_dir_suffix.
24732 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24734 ac_dir_suffix= ac_top_builddir=
24738 .) # No --srcdir option. We are building in place.
24740 if test -z "$ac_top_builddir"; then
24743 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24745 [\\/]* | ?:[\\/]* ) # Absolute path.
24746 ac_srcdir=$srcdir$ac_dir_suffix;
24747 ac_top_srcdir=$srcdir ;;
24748 *) # Relative path.
24749 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24750 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24753 # Do not use `cd foo && pwd` to compute absolute paths, because
24754 # the directories may not exist.
24756 .) ac_abs_builddir="$ac_dir";;
24759 .) ac_abs_builddir=`pwd`;;
24760 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24761 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24764 case $ac_abs_builddir in
24765 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24767 case ${ac_top_builddir}. in
24768 .) ac_abs_top_builddir=$ac_abs_builddir;;
24769 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24770 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24773 case $ac_abs_builddir in
24774 .) ac_abs_srcdir=$ac_srcdir;;
24777 .) ac_abs_srcdir=$ac_abs_builddir;;
24778 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24779 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24782 case $ac_abs_builddir in
24783 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24785 case $ac_top_srcdir in
24786 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24787 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24788 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24794 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24795 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24798 if test x"$ac_file" != x-; then
24799 { echo "$as_me:$LINENO: creating $ac_file" >&5
24800 echo "$as_me: creating $ac_file" >&6;}
24803 # Let's still pretend it is `configure' which instantiates (i.e., don't
24804 # use $as_me), people would be surprised to read:
24805 # /* config.h. Generated by config.status. */
24806 if test x"$ac_file" = x-; then
24809 configure_input="$ac_file. "
24811 configure_input=$configure_input"Generated from `echo $ac_file_in |
24812 sed 's,.*/,,'` by configure."
24814 # First look for the input files in the build tree, otherwise in the
24816 ac_file_inputs=`IFS=:
24817 for f in $ac_file_in; do
24819 -) echo $tmp/stdin ;;
24821 # Absolute (can't be DOS-style, as IFS=:)
24822 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24823 echo "$as_me: error: cannot find input file: $f" >&2;}
24824 { (exit 1); exit 1; }; }
24827 if test -f "$f"; then
24830 elif test -f "$srcdir/$f"; then
24835 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24836 echo "$as_me: error: cannot find input file: $f" >&2;}
24837 { (exit 1); exit 1; }; }
24840 done` || { (exit 1); exit 1; }
24842 cat >>$CONFIG_STATUS <<_ACEOF
24846 cat >>$CONFIG_STATUS <<\_ACEOF
24848 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24849 s,@configure_input@,$configure_input,;t t
24850 s,@srcdir@,$ac_srcdir,;t t
24851 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24852 s,@top_srcdir@,$ac_top_srcdir,;t t
24853 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24854 s,@builddir@,$ac_builddir,;t t
24855 s,@abs_builddir@,$ac_abs_builddir,;t t
24856 s,@top_builddir@,$ac_top_builddir,;t t
24857 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24858 s,@INSTALL@,$ac_INSTALL,;t t
24859 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24861 if test x"$ac_file" != x-; then
24862 mv $tmp/out $ac_file
24870 cat >>$CONFIG_STATUS <<\_ACEOF
24873 # CONFIG_HEADER section.
24876 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24877 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24879 # ac_d sets the value in "#define NAME VALUE" lines.
24880 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24881 ac_dB='[ ].*$,\1#\2'
24884 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24885 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24886 ac_uB='$,\1#\2define\3'
24890 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24891 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24893 - | *:- | *:-:* ) # input from stdin
24895 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24896 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24897 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24898 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24899 * ) ac_file_in=$ac_file.in ;;
24902 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24903 echo "$as_me: creating $ac_file" >&6;}
24905 # First look for the input files in the build tree, otherwise in the
24907 ac_file_inputs=`IFS=:
24908 for f in $ac_file_in; do
24910 -) echo $tmp/stdin ;;
24912 # Absolute (can't be DOS-style, as IFS=:)
24913 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24914 echo "$as_me: error: cannot find input file: $f" >&2;}
24915 { (exit 1); exit 1; }; }
24916 # Do quote $f, to prevent DOS paths from being IFS'd.
24919 if test -f "$f"; then
24922 elif test -f "$srcdir/$f"; then
24927 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24928 echo "$as_me: error: cannot find input file: $f" >&2;}
24929 { (exit 1); exit 1; }; }
24932 done` || { (exit 1); exit 1; }
24933 # Remove the trailing spaces.
24934 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24938 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24939 # `conftest.undefs', that substitutes the proper values into
24940 # config.h.in to produce config.h. The first handles `#define'
24941 # templates, and the second `#undef' templates.
24942 # And first: Protect against being on the right side of a sed subst in
24943 # config.status. Protect against being in an unquoted here document
24944 # in config.status.
24945 rm -f conftest.defines conftest.undefs
24946 # Using a here document instead of a string reduces the quoting nightmare.
24947 # Putting comments in sed scripts is not portable.
24949 # `end' is used to avoid that the second main sed command (meant for
24950 # 0-ary CPP macros) applies to n-ary macro definitions.
24951 # See the Autoconf documentation for `clear'.
24952 cat >confdef2sed.sed <<\_ACEOF
24957 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24959 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24962 # If some macros were called several times there might be several times
24963 # the same #defines, which is useless. Nevertheless, we may not want to
24964 # sort them, since we want the *last* AC-DEFINE to be honored.
24965 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24966 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24967 rm -f confdef2sed.sed
24969 # This sed command replaces #undef with comments. This is necessary, for
24970 # example, in the case of _POSIX_SOURCE, which is predefined and required
24971 # on some systems where configure will not decide to define it.
24972 cat >>conftest.undefs <<\_ACEOF
24973 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24976 # Break up conftest.defines because some shells have a limit on the size
24977 # of here documents, and old seds have small limits too (100 cmds).
24978 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24979 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24980 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24981 echo ' :' >>$CONFIG_STATUS
24982 rm -f conftest.tail
24983 while grep . conftest.defines >/dev/null
24985 # Write a limited-size here document to $tmp/defines.sed.
24986 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24987 # Speed up: don't consider the non `#define' lines.
24988 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24989 # Work around the forget-to-reset-the-flag bug.
24990 echo 't clr' >>$CONFIG_STATUS
24991 echo ': clr' >>$CONFIG_STATUS
24992 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24994 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24996 mv $tmp/out $tmp/in
24998 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24999 rm -f conftest.defines
25000 mv conftest.tail conftest.defines
25002 rm -f conftest.defines
25003 echo ' fi # grep' >>$CONFIG_STATUS
25004 echo >>$CONFIG_STATUS
25006 # Break up conftest.undefs because some shells have a limit on the size
25007 # of here documents, and old seds have small limits too (100 cmds).
25008 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25009 rm -f conftest.tail
25010 while grep . conftest.undefs >/dev/null
25012 # Write a limited-size here document to $tmp/undefs.sed.
25013 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25014 # Speed up: don't consider the non `#undef'
25015 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25016 # Work around the forget-to-reset-the-flag bug.
25017 echo 't clr' >>$CONFIG_STATUS
25018 echo ': clr' >>$CONFIG_STATUS
25019 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25021 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25023 mv $tmp/out $tmp/in
25025 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25026 rm -f conftest.undefs
25027 mv conftest.tail conftest.undefs
25029 rm -f conftest.undefs
25031 cat >>$CONFIG_STATUS <<\_ACEOF
25032 # Let's still pretend it is `configure' which instantiates (i.e., don't
25033 # use $as_me), people would be surprised to read:
25034 # /* config.h. Generated by config.status. */
25035 if test x"$ac_file" = x-; then
25036 echo "/* Generated by configure. */" >$tmp/config.h
25038 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25040 cat $tmp/in >>$tmp/config.h
25042 if test x"$ac_file" != x-; then
25043 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25044 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25045 echo "$as_me: $ac_file is unchanged" >&6;}
25047 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25048 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25049 X"$ac_file" : 'X\(//\)[^/]' \| \
25050 X"$ac_file" : 'X\(//\)$' \| \
25051 X"$ac_file" : 'X\(/\)' \| \
25052 . : '\(.\)' 2>/dev/null ||
25054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25055 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25056 /^X\(\/\/\)$/{ s//\1/; q; }
25057 /^X\(\/\).*/{ s//\1/; q; }
25059 { if $as_mkdir_p; then
25064 while test ! -d "$as_dir"; do
25065 as_dirs="$as_dir $as_dirs"
25066 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25067 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25068 X"$as_dir" : 'X\(//\)[^/]' \| \
25069 X"$as_dir" : 'X\(//\)$' \| \
25070 X"$as_dir" : 'X\(/\)' \| \
25071 . : '\(.\)' 2>/dev/null ||
25073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25074 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25075 /^X\(\/\/\)$/{ s//\1/; q; }
25076 /^X\(\/\).*/{ s//\1/; q; }
25079 test ! -n "$as_dirs" || mkdir $as_dirs
25080 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25081 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25082 { (exit 1); exit 1; }; }; }
25085 mv $tmp/config.h $ac_file
25089 rm -f $tmp/config.h
25093 cat >>$CONFIG_STATUS <<\_ACEOF
25096 # CONFIG_LINKS section.
25099 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25100 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25101 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25103 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25104 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25106 if test ! -r $srcdir/$ac_source; then
25107 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25108 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25109 { (exit 1); exit 1; }; }
25113 # Make relative symlinks.
25114 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25115 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25116 X"$ac_dest" : 'X\(//\)[^/]' \| \
25117 X"$ac_dest" : 'X\(//\)$' \| \
25118 X"$ac_dest" : 'X\(/\)' \| \
25119 . : '\(.\)' 2>/dev/null ||
25121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25122 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25123 /^X\(\/\/\)$/{ s//\1/; q; }
25124 /^X\(\/\).*/{ s//\1/; q; }
25126 { if $as_mkdir_p; then
25127 mkdir -p "$ac_dest_dir"
25129 as_dir="$ac_dest_dir"
25131 while test ! -d "$as_dir"; do
25132 as_dirs="$as_dir $as_dirs"
25133 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25134 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25135 X"$as_dir" : 'X\(//\)[^/]' \| \
25136 X"$as_dir" : 'X\(//\)$' \| \
25137 X"$as_dir" : 'X\(/\)' \| \
25138 . : '\(.\)' 2>/dev/null ||
25140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25141 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25142 /^X\(\/\/\)$/{ s//\1/; q; }
25143 /^X\(\/\).*/{ s//\1/; q; }
25146 test ! -n "$as_dirs" || mkdir $as_dirs
25147 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25148 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25149 { (exit 1); exit 1; }; }; }
25153 if test "$ac_dest_dir" != .; then
25154 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25155 # A "../" for each directory in $ac_dir_suffix.
25156 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25158 ac_dir_suffix= ac_top_builddir=
25162 .) # No --srcdir option. We are building in place.
25164 if test -z "$ac_top_builddir"; then
25167 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25169 [\\/]* | ?:[\\/]* ) # Absolute path.
25170 ac_srcdir=$srcdir$ac_dir_suffix;
25171 ac_top_srcdir=$srcdir ;;
25172 *) # Relative path.
25173 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25174 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25177 # Do not use `cd foo && pwd` to compute absolute paths, because
25178 # the directories may not exist.
25180 .) ac_abs_builddir="$ac_dest_dir";;
25182 case "$ac_dest_dir" in
25183 .) ac_abs_builddir=`pwd`;;
25184 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25185 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25188 case $ac_abs_builddir in
25189 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25191 case ${ac_top_builddir}. in
25192 .) ac_abs_top_builddir=$ac_abs_builddir;;
25193 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25194 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25197 case $ac_abs_builddir in
25198 .) ac_abs_srcdir=$ac_srcdir;;
25201 .) ac_abs_srcdir=$ac_abs_builddir;;
25202 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25203 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25206 case $ac_abs_builddir in
25207 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25209 case $ac_top_srcdir in
25210 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25211 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25212 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25218 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25219 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25222 # Try a symlink, then a hard link, then a copy.
25223 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25224 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25225 cp -p $srcdir/$ac_source $ac_dest ||
25226 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25227 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25228 { (exit 1); exit 1; }; }
25231 cat >>$CONFIG_STATUS <<\_ACEOF
25234 # CONFIG_COMMANDS section.
25236 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25237 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25238 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25239 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25240 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25241 X"$ac_dest" : 'X\(//\)[^/]' \| \
25242 X"$ac_dest" : 'X\(//\)$' \| \
25243 X"$ac_dest" : 'X\(/\)' \| \
25244 . : '\(.\)' 2>/dev/null ||
25246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25247 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25248 /^X\(\/\/\)$/{ s//\1/; q; }
25249 /^X\(\/\).*/{ s//\1/; q; }
25251 { if $as_mkdir_p; then
25256 while test ! -d "$as_dir"; do
25257 as_dirs="$as_dir $as_dirs"
25258 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25259 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25260 X"$as_dir" : 'X\(//\)[^/]' \| \
25261 X"$as_dir" : 'X\(//\)$' \| \
25262 X"$as_dir" : 'X\(/\)' \| \
25263 . : '\(.\)' 2>/dev/null ||
25265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25266 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25267 /^X\(\/\/\)$/{ s//\1/; q; }
25268 /^X\(\/\).*/{ s//\1/; q; }
25271 test ! -n "$as_dirs" || mkdir $as_dirs
25272 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25273 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25274 { (exit 1); exit 1; }; }; }
25278 if test "$ac_dir" != .; then
25279 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25280 # A "../" for each directory in $ac_dir_suffix.
25281 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25283 ac_dir_suffix= ac_top_builddir=
25287 .) # No --srcdir option. We are building in place.
25289 if test -z "$ac_top_builddir"; then
25292 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25294 [\\/]* | ?:[\\/]* ) # Absolute path.
25295 ac_srcdir=$srcdir$ac_dir_suffix;
25296 ac_top_srcdir=$srcdir ;;
25297 *) # Relative path.
25298 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25299 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25302 # Do not use `cd foo && pwd` to compute absolute paths, because
25303 # the directories may not exist.
25305 .) ac_abs_builddir="$ac_dir";;
25308 .) ac_abs_builddir=`pwd`;;
25309 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25310 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25313 case $ac_abs_builddir in
25314 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25316 case ${ac_top_builddir}. in
25317 .) ac_abs_top_builddir=$ac_abs_builddir;;
25318 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25319 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25322 case $ac_abs_builddir in
25323 .) ac_abs_srcdir=$ac_srcdir;;
25326 .) ac_abs_srcdir=$ac_abs_builddir;;
25327 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25328 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25331 case $ac_abs_builddir in
25332 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25334 case $ac_top_srcdir in
25335 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25336 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25337 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25342 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25343 echo "$as_me: executing $ac_dest commands" >&6;}
25345 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25346 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
25347 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
25348 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
25349 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
25350 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25351 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
25352 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25353 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
25354 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
25355 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
25356 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
25361 cat >>$CONFIG_STATUS <<\_ACEOF
25363 { (exit 0); exit 0; }
25365 chmod +x $CONFIG_STATUS
25366 ac_clean_files=$ac_clean_files_save
25369 # configure is writing to config.log, and then calls config.status.
25370 # config.status does its own redirection, appending to config.log.
25371 # Unfortunately, on DOS this fails, as config.log is still kept open
25372 # by configure, so config.status won't be able to write to it; its
25373 # output is simply discarded. So we exec the FD to /dev/null,
25374 # effectively closing config.log, so it can be properly (re)opened and
25375 # appended to by config.status. When coming back to configure, we
25376 # need to make the FD available again.
25377 if test "$no_create" != yes; then
25379 ac_config_status_args=
25380 test "$silent" = yes &&
25381 ac_config_status_args="$ac_config_status_args --quiet"
25383 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25385 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25386 # would make configure fail if this is the last instruction.
25387 $ac_cs_success || { (exit 1); exit 1; }
25391 # CONFIG_SUBDIRS section.
25393 if test "$no_recursion" != yes; then
25395 # Remove --cache-file and --srcdir arguments so they do not pile up.
25396 ac_sub_configure_args=
25398 for ac_arg in $ac_configure_args; do
25399 if test -n "$ac_prev"; then
25404 -cache-file | --cache-file | --cache-fil | --cache-fi \
25405 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25406 ac_prev=cache_file ;;
25407 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25408 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25411 --config-cache | -C)
25413 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25415 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25417 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25419 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25421 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25425 # Always prepend --prefix to ensure using the same prefix
25426 # in subdir configurations.
25427 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25430 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25432 # Do not complain, so a configure script can configure whichever
25433 # parts of a large source tree are present.
25434 test -d $srcdir/$ac_dir || continue
25436 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25437 echo "$as_me: configuring in $ac_dir" >&6;}
25438 { if $as_mkdir_p; then
25443 while test ! -d "$as_dir"; do
25444 as_dirs="$as_dir $as_dirs"
25445 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25446 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25447 X"$as_dir" : 'X\(//\)[^/]' \| \
25448 X"$as_dir" : 'X\(//\)$' \| \
25449 X"$as_dir" : 'X\(/\)' \| \
25450 . : '\(.\)' 2>/dev/null ||
25452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25453 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25454 /^X\(\/\/\)$/{ s//\1/; q; }
25455 /^X\(\/\).*/{ s//\1/; q; }
25458 test ! -n "$as_dirs" || mkdir $as_dirs
25459 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25460 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25461 { (exit 1); exit 1; }; }; }
25465 if test "$ac_dir" != .; then
25466 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25467 # A "../" for each directory in $ac_dir_suffix.
25468 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25470 ac_dir_suffix= ac_top_builddir=
25474 .) # No --srcdir option. We are building in place.
25476 if test -z "$ac_top_builddir"; then
25479 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25481 [\\/]* | ?:[\\/]* ) # Absolute path.
25482 ac_srcdir=$srcdir$ac_dir_suffix;
25483 ac_top_srcdir=$srcdir ;;
25484 *) # Relative path.
25485 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25486 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25489 # Do not use `cd foo && pwd` to compute absolute paths, because
25490 # the directories may not exist.
25492 .) ac_abs_builddir="$ac_dir";;
25495 .) ac_abs_builddir=`pwd`;;
25496 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25497 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25500 case $ac_abs_builddir in
25501 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25503 case ${ac_top_builddir}. in
25504 .) ac_abs_top_builddir=$ac_abs_builddir;;
25505 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25506 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25509 case $ac_abs_builddir in
25510 .) ac_abs_srcdir=$ac_srcdir;;
25513 .) ac_abs_srcdir=$ac_abs_builddir;;
25514 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25515 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25518 case $ac_abs_builddir in
25519 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25521 case $ac_top_srcdir in
25522 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25523 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25524 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25531 # Check for guested configure; otherwise get Cygnus style configure.
25532 if test -f $ac_srcdir/configure.gnu; then
25533 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25534 elif test -f $ac_srcdir/configure; then
25535 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25536 elif test -f $ac_srcdir/configure.in; then
25537 ac_sub_configure=$ac_configure
25539 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25540 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25544 # The recursion is here.
25545 if test -n "$ac_sub_configure"; then
25546 # Make the cache file name correct relative to the subdirectory.
25547 case $cache_file in
25548 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25549 *) # Relative path.
25550 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25553 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25554 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25555 # The eval makes quoting arguments work.
25556 eval $ac_sub_configure $ac_sub_configure_args \
25557 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25558 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25559 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25560 { (exit 1); exit 1; }; }
25568 if test $llvmgccwarn = yes
25570 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
25571 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
25572 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
25573 echo "$as_me: WARNING: ***** appear to be working." >&2;}
25574 { echo "$as_me:$LINENO: WARNING: ***** " >&5
25575 echo "$as_me: WARNING: ***** " >&2;}
25576 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
25577 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
25578 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
25579 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
25580 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
25581 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}