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_ZLIB HAVE_BZIP2 ENDIAN 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 project (${i}) won't be configured automatically" >&5
1592 echo "$as_me: WARNING: Unknown project (${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"
1603 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
1605 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
1607 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
1609 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
1611 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
1614 ac_config_commands="$ac_config_commands Makefile"
1617 ac_config_commands="$ac_config_commands Makefile.common"
1620 ac_config_commands="$ac_config_commands examples/Makefile"
1623 ac_config_commands="$ac_config_commands lib/Makefile"
1626 ac_config_commands="$ac_config_commands runtime/Makefile"
1629 ac_config_commands="$ac_config_commands test/Makefile"
1632 ac_config_commands="$ac_config_commands test/Makefile.tests"
1635 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1638 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1641 ac_config_commands="$ac_config_commands tools/Makefile"
1644 ac_config_commands="$ac_config_commands tools/Makefile.JIT"
1647 ac_config_commands="$ac_config_commands utils/Makefile"
1650 ac_config_commands="$ac_config_commands projects/Makefile"
1654 # Find a good install program. We prefer a C program (faster),
1655 # so one script is as good as another. But avoid the broken or
1656 # incompatible versions:
1657 # SysV /etc/install, /usr/sbin/install
1658 # SunOS /usr/etc/install
1659 # IRIX /sbin/install
1661 # AmigaOS /C/install, which installs bootblocks on floppy discs
1662 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1663 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1664 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1665 # OS/2's system install, which has a completely different semantic
1666 # ./install, which can be erroneously created by make from ./install.sh.
1667 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1668 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1669 if test -z "$INSTALL"; then
1670 if test "${ac_cv_path_install+set}" = set; then
1671 echo $ECHO_N "(cached) $ECHO_C" >&6
1673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1677 test -z "$as_dir" && as_dir=.
1678 # Account for people who put trailing slashes in PATH elements.
1680 ./ | .// | /cC/* | \
1681 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1682 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1685 # OSF1 and SCO ODT 3.0 have their own names for install.
1686 # Don't use installbsd from OSF since it installs stuff as root
1688 for ac_prog in ginstall scoinst install; do
1689 for ac_exec_ext in '' $ac_executable_extensions; do
1690 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1691 if test $ac_prog = install &&
1692 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1693 # AIX install. It has an incompatible calling convention.
1695 elif test $ac_prog = install &&
1696 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1697 # program-specific install script used by HP pwplus--don't use.
1700 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1712 if test "${ac_cv_path_install+set}" = set; then
1713 INSTALL=$ac_cv_path_install
1715 # As a last resort, use the slow shell script. We don't cache a
1716 # path for INSTALL within a source directory, because that will
1717 # break other packages using the cache if that directory is
1718 # removed, or if the path is relative.
1719 INSTALL=$ac_install_sh
1722 echo "$as_me:$LINENO: result: $INSTALL" >&5
1723 echo "${ECHO_T}$INSTALL" >&6
1725 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1726 # It thinks the first close brace ends the variable substitution.
1727 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1729 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1731 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1734 # Make sure we can run config.sub.
1735 $ac_config_sub sun4 >/dev/null 2>&1 ||
1736 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1737 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1738 { (exit 1); exit 1; }; }
1740 echo "$as_me:$LINENO: checking build system type" >&5
1741 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1742 if test "${ac_cv_build+set}" = set; then
1743 echo $ECHO_N "(cached) $ECHO_C" >&6
1745 ac_cv_build_alias=$build_alias
1746 test -z "$ac_cv_build_alias" &&
1747 ac_cv_build_alias=`$ac_config_guess`
1748 test -z "$ac_cv_build_alias" &&
1749 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1750 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1751 { (exit 1); exit 1; }; }
1752 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1753 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1754 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1755 { (exit 1); exit 1; }; }
1758 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1759 echo "${ECHO_T}$ac_cv_build" >&6
1761 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1762 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1763 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1766 echo "$as_me:$LINENO: checking host system type" >&5
1767 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1768 if test "${ac_cv_host+set}" = set; then
1769 echo $ECHO_N "(cached) $ECHO_C" >&6
1771 ac_cv_host_alias=$host_alias
1772 test -z "$ac_cv_host_alias" &&
1773 ac_cv_host_alias=$ac_cv_build_alias
1774 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1775 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1776 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1777 { (exit 1); exit 1; }; }
1780 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1781 echo "${ECHO_T}$ac_cv_host" >&6
1783 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1784 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1785 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1788 echo "$as_me:$LINENO: checking target system type" >&5
1789 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1790 if test "${ac_cv_target+set}" = set; then
1791 echo $ECHO_N "(cached) $ECHO_C" >&6
1793 ac_cv_target_alias=$target_alias
1794 test "x$ac_cv_target_alias" = "x" &&
1795 ac_cv_target_alias=$ac_cv_host_alias
1796 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1797 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1798 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1799 { (exit 1); exit 1; }; }
1802 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1803 echo "${ECHO_T}$ac_cv_target" >&6
1804 target=$ac_cv_target
1805 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1806 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1807 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1810 # The aliases save the names the user supplied, while $host etc.
1811 # will get canonicalized.
1812 test -n "$target_alias" &&
1813 test "$program_prefix$program_suffix$program_transform_name" = \
1815 program_prefix=${target_alias}-
1818 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1819 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
1829 platform_type="Cygwin"
1834 platform_type="Darwin"
1839 platform_type="FreeBSD"
1844 platform_type="Interix"
1849 platform_type="Linux"
1850 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1852 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1859 platform_type="SunOS"
1860 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1862 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1869 platform_type="Win32"
1874 platform_type="Win32"
1879 platform_type="Unknown"
1883 if test "$platform_type" = "Unknown" ; then
1884 { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1885 echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1886 { (exit 1); exit 1; }; }
1889 ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1893 echo "$as_me:$LINENO: checking target architecture" >&5
1894 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1896 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1924 echo "$as_me:$LINENO: result: $ARCH" >&5
1925 echo "${ECHO_T}$ARCH" >&6
1928 ac_cpp='$CXXCPP $CPPFLAGS'
1929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1932 if test -n "$ac_tool_prefix"; then
1933 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1935 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1936 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1937 echo "$as_me:$LINENO: checking for $ac_word" >&5
1938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1939 if test "${ac_cv_prog_CXX+set}" = set; then
1940 echo $ECHO_N "(cached) $ECHO_C" >&6
1942 if test -n "$CXX"; then
1943 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1949 test -z "$as_dir" && as_dir=.
1950 for ac_exec_ext in '' $ac_executable_extensions; do
1951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1952 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962 if test -n "$CXX"; then
1963 echo "$as_me:$LINENO: result: $CXX" >&5
1964 echo "${ECHO_T}$CXX" >&6
1966 echo "$as_me:$LINENO: result: no" >&5
1967 echo "${ECHO_T}no" >&6
1970 test -n "$CXX" && break
1973 if test -z "$CXX"; then
1975 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1977 # Extract the first word of "$ac_prog", so it can be a program name with args.
1978 set dummy $ac_prog; ac_word=$2
1979 echo "$as_me:$LINENO: checking for $ac_word" >&5
1980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1981 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
1984 if test -n "$ac_ct_CXX"; then
1985 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991 test -z "$as_dir" && as_dir=.
1992 for ac_exec_ext in '' $ac_executable_extensions; do
1993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1994 ac_cv_prog_ac_ct_CXX="$ac_prog"
1995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2004 if test -n "$ac_ct_CXX"; then
2005 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2006 echo "${ECHO_T}$ac_ct_CXX" >&6
2008 echo "$as_me:$LINENO: result: no" >&5
2009 echo "${ECHO_T}no" >&6
2012 test -n "$ac_ct_CXX" && break
2014 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2020 # Provide some information about the compiler.
2021 echo "$as_me:$LINENO:" \
2022 "checking for C++ compiler version" >&5
2023 ac_compiler=`set X $ac_compile; echo $2`
2024 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2025 (eval $ac_compiler --version </dev/null >&5) 2>&5
2027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028 (exit $ac_status); }
2029 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2030 (eval $ac_compiler -v </dev/null >&5) 2>&5
2032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033 (exit $ac_status); }
2034 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2035 (eval $ac_compiler -V </dev/null >&5) 2>&5
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); }
2040 cat >conftest.$ac_ext <<_ACEOF
2043 cat confdefs.h >>conftest.$ac_ext
2044 cat >>conftest.$ac_ext <<_ACEOF
2045 /* end confdefs.h. */
2055 ac_clean_files_save=$ac_clean_files
2056 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2057 # Try to create an executable without -o first, disregard a.out.
2058 # It will help us diagnose broken compilers, and finding out an intuition
2060 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2061 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2062 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2063 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2064 (eval $ac_link_default) 2>&5
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); }; then
2068 # Find the output, starting from the most likely. This scheme is
2069 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2072 # Be careful to initialize this variable, since it used to be cached.
2073 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2075 # b.out is created by i960 compilers.
2076 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2078 test -f "$ac_file" || continue
2080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2083 # This is the source file.
2086 # We found the default executable, but exeext='' is most
2090 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2091 # FIXME: I believe we export ac_cv_exeext for Libtool,
2092 # but it would be cool to find out if it's true. Does anybody
2093 # maintain Libtool? --akim.
2101 echo "$as_me: failed program was:" >&5
2102 sed 's/^/| /' conftest.$ac_ext >&5
2104 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2105 See \`config.log' for more details." >&5
2106 echo "$as_me: error: C++ compiler cannot create executables
2107 See \`config.log' for more details." >&2;}
2108 { (exit 77); exit 77; }; }
2111 ac_exeext=$ac_cv_exeext
2112 echo "$as_me:$LINENO: result: $ac_file" >&5
2113 echo "${ECHO_T}$ac_file" >&6
2115 # Check the compiler produces executables we can run. If not, either
2116 # the compiler is broken, or we cross compile.
2117 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2118 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2119 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2120 # If not cross compiling, check that we can run a simple program.
2121 if test "$cross_compiling" != yes; then
2122 if { ac_try='./$ac_file'
2123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }; }; then
2130 if test "$cross_compiling" = maybe; then
2133 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2134 If you meant to cross compile, use \`--host'.
2135 See \`config.log' for more details." >&5
2136 echo "$as_me: error: cannot run C++ compiled programs.
2137 If you meant to cross compile, use \`--host'.
2138 See \`config.log' for more details." >&2;}
2139 { (exit 1); exit 1; }; }
2143 echo "$as_me:$LINENO: result: yes" >&5
2144 echo "${ECHO_T}yes" >&6
2146 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2147 ac_clean_files=$ac_clean_files_save
2148 # Check the compiler produces executables we can run. If not, either
2149 # the compiler is broken, or we cross compile.
2150 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2151 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2152 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2153 echo "${ECHO_T}$cross_compiling" >&6
2155 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2156 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2158 (eval $ac_link) 2>&5
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); }; then
2162 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2163 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2164 # work properly (i.e., refer to `conftest.exe'), while it won't with
2166 for ac_file in conftest.exe conftest conftest.*; do
2167 test -f "$ac_file" || continue
2169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2170 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2177 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2178 See \`config.log' for more details." >&5
2179 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2180 See \`config.log' for more details." >&2;}
2181 { (exit 1); exit 1; }; }
2184 rm -f conftest$ac_cv_exeext
2185 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2186 echo "${ECHO_T}$ac_cv_exeext" >&6
2188 rm -f conftest.$ac_ext
2189 EXEEXT=$ac_cv_exeext
2191 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2192 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2193 if test "${ac_cv_objext+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
2196 cat >conftest.$ac_ext <<_ACEOF
2199 cat confdefs.h >>conftest.$ac_ext
2200 cat >>conftest.$ac_ext <<_ACEOF
2201 /* end confdefs.h. */
2211 rm -f conftest.o conftest.obj
2212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2213 (eval $ac_compile) 2>&5
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; then
2217 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2220 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2225 echo "$as_me: failed program was:" >&5
2226 sed 's/^/| /' conftest.$ac_ext >&5
2228 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2229 See \`config.log' for more details." >&5
2230 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2231 See \`config.log' for more details." >&2;}
2232 { (exit 1); exit 1; }; }
2235 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2237 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2238 echo "${ECHO_T}$ac_cv_objext" >&6
2239 OBJEXT=$ac_cv_objext
2241 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2242 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2243 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2244 echo $ECHO_N "(cached) $ECHO_C" >&6
2246 cat >conftest.$ac_ext <<_ACEOF
2249 cat confdefs.h >>conftest.$ac_ext
2250 cat >>conftest.$ac_ext <<_ACEOF
2251 /* end confdefs.h. */
2264 rm -f conftest.$ac_objext
2265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2266 (eval $ac_compile) 2>conftest.er1
2268 grep -v '^ *+' conftest.er1 >conftest.err
2270 cat conftest.err >&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); } &&
2273 { ac_try='test -z "$ac_cxx_werror_flag"
2274 || test ! -s conftest.err'
2275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }; } &&
2280 { ac_try='test -s conftest.$ac_objext'
2281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }; }; then
2288 echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2294 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2297 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2298 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2299 GXX=`test $ac_compiler_gnu = yes && echo yes`
2300 ac_test_CXXFLAGS=${CXXFLAGS+set}
2301 ac_save_CXXFLAGS=$CXXFLAGS
2303 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2304 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2305 if test "${ac_cv_prog_cxx_g+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2308 cat >conftest.$ac_ext <<_ACEOF
2311 cat confdefs.h >>conftest.$ac_ext
2312 cat >>conftest.$ac_ext <<_ACEOF
2313 /* end confdefs.h. */
2323 rm -f conftest.$ac_objext
2324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2325 (eval $ac_compile) 2>conftest.er1
2327 grep -v '^ *+' conftest.er1 >conftest.err
2329 cat conftest.err >&5
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); } &&
2332 { ac_try='test -z "$ac_cxx_werror_flag"
2333 || test ! -s conftest.err'
2334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }; } &&
2339 { ac_try='test -s conftest.$ac_objext'
2340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }; }; then
2345 ac_cv_prog_cxx_g=yes
2347 echo "$as_me: failed program was:" >&5
2348 sed 's/^/| /' conftest.$ac_ext >&5
2352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2354 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2355 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2356 if test "$ac_test_CXXFLAGS" = set; then
2357 CXXFLAGS=$ac_save_CXXFLAGS
2358 elif test $ac_cv_prog_cxx_g = yes; then
2359 if test "$GXX" = yes; then
2365 if test "$GXX" = yes; then
2371 for ac_declaration in \
2373 'extern "C" void std::exit (int) throw (); using std::exit;' \
2374 'extern "C" void std::exit (int); using std::exit;' \
2375 'extern "C" void exit (int) throw ();' \
2376 'extern "C" void exit (int);' \
2379 cat >conftest.$ac_ext <<_ACEOF
2382 cat confdefs.h >>conftest.$ac_ext
2383 cat >>conftest.$ac_ext <<_ACEOF
2384 /* end confdefs.h. */
2395 rm -f conftest.$ac_objext
2396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2397 (eval $ac_compile) 2>conftest.er1
2399 grep -v '^ *+' conftest.er1 >conftest.err
2401 cat conftest.err >&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); } &&
2404 { ac_try='test -z "$ac_cxx_werror_flag"
2405 || test ! -s conftest.err'
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; } &&
2411 { ac_try='test -s conftest.$ac_objext'
2412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; }; then
2419 echo "$as_me: failed program was:" >&5
2420 sed 's/^/| /' conftest.$ac_ext >&5
2424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2425 cat >conftest.$ac_ext <<_ACEOF
2428 cat confdefs.h >>conftest.$ac_ext
2429 cat >>conftest.$ac_ext <<_ACEOF
2430 /* end confdefs.h. */
2440 rm -f conftest.$ac_objext
2441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2442 (eval $ac_compile) 2>conftest.er1
2444 grep -v '^ *+' conftest.er1 >conftest.err
2446 cat conftest.err >&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); } &&
2449 { ac_try='test -z "$ac_cxx_werror_flag"
2450 || test ! -s conftest.err'
2451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; } &&
2456 { ac_try='test -s conftest.$ac_objext'
2457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; }; then
2464 echo "$as_me: failed program was:" >&5
2465 sed 's/^/| /' conftest.$ac_ext >&5
2468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2471 if test -n "$ac_declaration"; then
2472 echo '#ifdef __cplusplus' >>confdefs.h
2473 echo $ac_declaration >>confdefs.h
2474 echo '#endif' >>confdefs.h
2478 ac_cpp='$CPP $CPPFLAGS'
2479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2484 ac_cpp='$CPP $CPPFLAGS'
2485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2488 if test -n "$ac_tool_prefix"; then
2491 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2492 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2493 echo "$as_me:$LINENO: checking for $ac_word" >&5
2494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2495 if test "${ac_cv_prog_CC+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2498 if test -n "$CC"; then
2499 ac_cv_prog_CC="$CC" # Let the user override the test.
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 test -z "$as_dir" && as_dir=.
2506 for ac_exec_ext in '' $ac_executable_extensions; do
2507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2508 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2518 if test -n "$CC"; then
2519 echo "$as_me:$LINENO: result: $CC" >&5
2520 echo "${ECHO_T}$CC" >&6
2522 echo "$as_me:$LINENO: result: no" >&5
2523 echo "${ECHO_T}no" >&6
2526 test -n "$CC" && break
2529 if test -z "$CC"; then
2533 # Extract the first word of "$ac_prog", so it can be a program name with args.
2534 set dummy $ac_prog; ac_word=$2
2535 echo "$as_me:$LINENO: checking for $ac_word" >&5
2536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2537 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2540 if test -n "$ac_ct_CC"; then
2541 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2550 ac_cv_prog_ac_ct_CC="$ac_prog"
2551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2559 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2560 if test -n "$ac_ct_CC"; then
2561 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2562 echo "${ECHO_T}$ac_ct_CC" >&6
2564 echo "$as_me:$LINENO: result: no" >&5
2565 echo "${ECHO_T}no" >&6
2568 test -n "$ac_ct_CC" && break
2575 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2576 See \`config.log' for more details." >&5
2577 echo "$as_me: error: no acceptable C compiler found in \$PATH
2578 See \`config.log' for more details." >&2;}
2579 { (exit 1); exit 1; }; }
2581 # Provide some information about the compiler.
2582 echo "$as_me:$LINENO:" \
2583 "checking for C compiler version" >&5
2584 ac_compiler=`set X $ac_compile; echo $2`
2585 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2586 (eval $ac_compiler --version </dev/null >&5) 2>&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }
2590 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2591 (eval $ac_compiler -v </dev/null >&5) 2>&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }
2595 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2596 (eval $ac_compiler -V </dev/null >&5) 2>&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }
2601 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2602 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2603 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2606 cat >conftest.$ac_ext <<_ACEOF
2609 cat confdefs.h >>conftest.$ac_ext
2610 cat >>conftest.$ac_ext <<_ACEOF
2611 /* end confdefs.h. */
2624 rm -f conftest.$ac_objext
2625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2626 (eval $ac_compile) 2>conftest.er1
2628 grep -v '^ *+' conftest.er1 >conftest.err
2630 cat conftest.err >&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); } &&
2633 { ac_try='test -z "$ac_c_werror_flag"
2634 || test ! -s conftest.err'
2635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); }; } &&
2640 { ac_try='test -s conftest.$ac_objext'
2641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); }; }; then
2648 echo "$as_me: failed program was:" >&5
2649 sed 's/^/| /' conftest.$ac_ext >&5
2653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2654 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2657 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2658 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2659 GCC=`test $ac_compiler_gnu = yes && echo yes`
2660 ac_test_CFLAGS=${CFLAGS+set}
2661 ac_save_CFLAGS=$CFLAGS
2663 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2664 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2665 if test "${ac_cv_prog_cc_g+set}" = set; then
2666 echo $ECHO_N "(cached) $ECHO_C" >&6
2668 cat >conftest.$ac_ext <<_ACEOF
2671 cat confdefs.h >>conftest.$ac_ext
2672 cat >>conftest.$ac_ext <<_ACEOF
2673 /* end confdefs.h. */
2683 rm -f conftest.$ac_objext
2684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2685 (eval $ac_compile) 2>conftest.er1
2687 grep -v '^ *+' conftest.er1 >conftest.err
2689 cat conftest.err >&5
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); } &&
2692 { ac_try='test -z "$ac_c_werror_flag"
2693 || test ! -s conftest.err'
2694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }; } &&
2699 { ac_try='test -s conftest.$ac_objext'
2700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }; }; then
2707 echo "$as_me: failed program was:" >&5
2708 sed 's/^/| /' conftest.$ac_ext >&5
2712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2714 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2715 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2716 if test "$ac_test_CFLAGS" = set; then
2717 CFLAGS=$ac_save_CFLAGS
2718 elif test $ac_cv_prog_cc_g = yes; then
2719 if test "$GCC" = yes; then
2725 if test "$GCC" = yes; then
2731 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2732 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2733 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2736 ac_cv_prog_cc_stdc=no
2738 cat >conftest.$ac_ext <<_ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h. */
2746 #include <sys/types.h>
2747 #include <sys/stat.h>
2748 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2749 struct buf { int x; };
2750 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2751 static char *e (p, i)
2757 static char *f (char * (*g) (char **, int), char **p, ...)
2762 s = g (p, va_arg (v,int));
2767 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2768 function prototypes and stuff, but not '\xHH' hex character constants.
2769 These don't provoke an error unfortunately, instead are silently treated
2770 as 'x'. The following induces an error, until -std1 is added to get
2771 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2772 array size at least. It's necessary to write '\x00'==0 to get something
2773 that's true only with -std1. */
2774 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2776 int test (int i, double x);
2777 struct s1 {int (*f) (int a);};
2778 struct s2 {int (*f) (double a);};
2779 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2785 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2790 # Don't try gcc -ansi; that turns off useful extensions and
2791 # breaks some systems' header files.
2792 # AIX -qlanglvl=ansi
2793 # Ultrix and OSF/1 -std1
2794 # HP-UX 10.20 and later -Ae
2795 # HP-UX older versions -Aa -D_HPUX_SOURCE
2796 # SVR4 -Xc -D__EXTENSIONS__
2797 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2799 CC="$ac_save_CC $ac_arg"
2800 rm -f conftest.$ac_objext
2801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2802 (eval $ac_compile) 2>conftest.er1
2804 grep -v '^ *+' conftest.er1 >conftest.err
2806 cat conftest.err >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); } &&
2809 { ac_try='test -z "$ac_c_werror_flag"
2810 || test ! -s conftest.err'
2811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); }; } &&
2816 { ac_try='test -s conftest.$ac_objext'
2817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); }; }; then
2822 ac_cv_prog_cc_stdc=$ac_arg
2825 echo "$as_me: failed program was:" >&5
2826 sed 's/^/| /' conftest.$ac_ext >&5
2829 rm -f conftest.err conftest.$ac_objext
2831 rm -f conftest.$ac_ext conftest.$ac_objext
2836 case "x$ac_cv_prog_cc_stdc" in
2838 echo "$as_me:$LINENO: result: none needed" >&5
2839 echo "${ECHO_T}none needed" >&6 ;;
2841 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2842 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2843 CC="$CC $ac_cv_prog_cc_stdc" ;;
2846 # Some people use a C++ compiler to compile C. Since we use `exit',
2847 # in C++ we need to declare it. In case someone uses the same compiler
2848 # for both compiling C and C++ we need to have the C++ compiler decide
2849 # the declaration of exit, since it's the most demanding environment.
2850 cat >conftest.$ac_ext <<_ACEOF
2855 rm -f conftest.$ac_objext
2856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2857 (eval $ac_compile) 2>conftest.er1
2859 grep -v '^ *+' conftest.er1 >conftest.err
2861 cat conftest.err >&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); } &&
2864 { ac_try='test -z "$ac_c_werror_flag"
2865 || test ! -s conftest.err'
2866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }; } &&
2871 { ac_try='test -s conftest.$ac_objext'
2872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }; }; then
2877 for ac_declaration in \
2879 'extern "C" void std::exit (int) throw (); using std::exit;' \
2880 'extern "C" void std::exit (int); using std::exit;' \
2881 'extern "C" void exit (int) throw ();' \
2882 'extern "C" void exit (int);' \
2885 cat >conftest.$ac_ext <<_ACEOF
2888 cat confdefs.h >>conftest.$ac_ext
2889 cat >>conftest.$ac_ext <<_ACEOF
2890 /* end confdefs.h. */
2901 rm -f conftest.$ac_objext
2902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2903 (eval $ac_compile) 2>conftest.er1
2905 grep -v '^ *+' conftest.er1 >conftest.err
2907 cat conftest.err >&5
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); } &&
2910 { ac_try='test -z "$ac_c_werror_flag"
2911 || test ! -s conftest.err'
2912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; } &&
2917 { ac_try='test -s conftest.$ac_objext'
2918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }; }; then
2925 echo "$as_me: failed program was:" >&5
2926 sed 's/^/| /' conftest.$ac_ext >&5
2930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2931 cat >conftest.$ac_ext <<_ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h. */
2946 rm -f conftest.$ac_objext
2947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2948 (eval $ac_compile) 2>conftest.er1
2950 grep -v '^ *+' conftest.er1 >conftest.err
2952 cat conftest.err >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); } &&
2955 { ac_try='test -z "$ac_c_werror_flag"
2956 || test ! -s conftest.err'
2957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }; } &&
2962 { ac_try='test -s conftest.$ac_objext'
2963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); }; }; then
2970 echo "$as_me: failed program was:" >&5
2971 sed 's/^/| /' conftest.$ac_ext >&5
2974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2977 if test -n "$ac_declaration"; then
2978 echo '#ifdef __cplusplus' >>confdefs.h
2979 echo $ac_declaration >>confdefs.h
2980 echo '#endif' >>confdefs.h
2984 echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2990 ac_cpp='$CPP $CPPFLAGS'
2991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2995 if test "$GCC" != "yes"
2997 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
2998 echo "$as_me: error: gcc required but not found" >&2;}
2999 { (exit 1); exit 1; }; }
3002 ac_cpp='$CPP $CPPFLAGS'
3003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3006 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3007 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3008 # On Suns, sometimes $CPP names a directory.
3009 if test -n "$CPP" && test -d "$CPP"; then
3012 if test -z "$CPP"; then
3013 if test "${ac_cv_prog_CPP+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3016 # Double quotes because CPP needs to be expanded
3017 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3020 for ac_c_preproc_warn_flag in '' yes
3022 # Use a header file that comes with gcc, so configuring glibc
3023 # with a fresh cross-compiler works.
3024 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3025 # <limits.h> exists even on freestanding compilers.
3026 # On the NeXT, cc -E runs the code through the compiler's parser,
3027 # not just through cpp. "Syntax error" is here to catch this case.
3028 cat >conftest.$ac_ext <<_ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h. */
3035 # include <limits.h>
3037 # include <assert.h>
3041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3044 grep -v '^ *+' conftest.er1 >conftest.err
3046 cat conftest.err >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); } >/dev/null; then
3049 if test -s conftest.err; then
3050 ac_cpp_err=$ac_c_preproc_warn_flag
3051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3058 if test -z "$ac_cpp_err"; then
3061 echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3064 # Broken: fails on valid input.
3067 rm -f conftest.err conftest.$ac_ext
3069 # OK, works on sane cases. Now check whether non-existent headers
3070 # can be detected and how.
3071 cat >conftest.$ac_ext <<_ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h. */
3077 #include <ac_nonexistent.h>
3079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3082 grep -v '^ *+' conftest.er1 >conftest.err
3084 cat conftest.err >&5
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); } >/dev/null; then
3087 if test -s conftest.err; then
3088 ac_cpp_err=$ac_c_preproc_warn_flag
3089 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3096 if test -z "$ac_cpp_err"; then
3097 # Broken: success on invalid input.
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3103 # Passes both tests.
3107 rm -f conftest.err conftest.$ac_ext
3110 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3111 rm -f conftest.err conftest.$ac_ext
3112 if $ac_preproc_ok; then
3124 echo "$as_me:$LINENO: result: $CPP" >&5
3125 echo "${ECHO_T}$CPP" >&6
3127 for ac_c_preproc_warn_flag in '' yes
3129 # Use a header file that comes with gcc, so configuring glibc
3130 # with a fresh cross-compiler works.
3131 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3132 # <limits.h> exists even on freestanding compilers.
3133 # On the NeXT, cc -E runs the code through the compiler's parser,
3134 # not just through cpp. "Syntax error" is here to catch this case.
3135 cat >conftest.$ac_ext <<_ACEOF
3138 cat confdefs.h >>conftest.$ac_ext
3139 cat >>conftest.$ac_ext <<_ACEOF
3140 /* end confdefs.h. */
3142 # include <limits.h>
3144 # include <assert.h>
3148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3151 grep -v '^ *+' conftest.er1 >conftest.err
3153 cat conftest.err >&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); } >/dev/null; then
3156 if test -s conftest.err; then
3157 ac_cpp_err=$ac_c_preproc_warn_flag
3158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3165 if test -z "$ac_cpp_err"; then
3168 echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3171 # Broken: fails on valid input.
3174 rm -f conftest.err conftest.$ac_ext
3176 # OK, works on sane cases. Now check whether non-existent headers
3177 # can be detected and how.
3178 cat >conftest.$ac_ext <<_ACEOF
3181 cat confdefs.h >>conftest.$ac_ext
3182 cat >>conftest.$ac_ext <<_ACEOF
3183 /* end confdefs.h. */
3184 #include <ac_nonexistent.h>
3186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3187 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3189 grep -v '^ *+' conftest.er1 >conftest.err
3191 cat conftest.err >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); } >/dev/null; then
3194 if test -s conftest.err; then
3195 ac_cpp_err=$ac_c_preproc_warn_flag
3196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3203 if test -z "$ac_cpp_err"; then
3204 # Broken: success on invalid input.
3207 echo "$as_me: failed program was:" >&5
3208 sed 's/^/| /' conftest.$ac_ext >&5
3210 # Passes both tests.
3214 rm -f conftest.err conftest.$ac_ext
3217 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3218 rm -f conftest.err conftest.$ac_ext
3219 if $ac_preproc_ok; then
3222 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3223 See \`config.log' for more details." >&5
3224 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3225 See \`config.log' for more details." >&2;}
3226 { (exit 1); exit 1; }; }
3230 ac_cpp='$CPP $CPPFLAGS'
3231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3235 if test "$GXX" != "yes"
3237 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3238 echo "$as_me: error: g++ required but not found" >&2;}
3239 { (exit 1); exit 1; }; }
3242 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3243 if test "$gccmajor" -lt "3"
3245 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3246 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3247 { (exit 1); exit 1; }; }
3250 echo "$as_me:$LINENO: checking for GNU make" >&5
3251 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3252 if test "${_cv_gnu_make_command+set}" = set; then
3253 echo $ECHO_N "(cached) $ECHO_C" >&6
3255 _cv_gnu_make_command='' ;
3256 for a in "$MAKE" make gmake gnumake ; do
3257 if test -z "$a" ; then continue ; fi ;
3258 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3259 _cv_gnu_make_command=$a ;
3265 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3266 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3267 if test "x$_cv_gnu_make_command" != "x" ; then
3271 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3272 echo "${ECHO_T}\"Not found\"" >&6;
3276 if test -z "$_cv_gnu_make_command"
3278 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3279 echo "$as_me: error: GNU Make required but not found" >&2;}
3280 { (exit 1); exit 1; }; }
3284 echo "$as_me:$LINENO: checking " >&5
3285 echo $ECHO_N "checking ... $ECHO_C" >&6
3286 if test "${ac_cv_has_flex+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3289 for ac_prog in flex lex
3291 # Extract the first word of "$ac_prog", so it can be a program name with args.
3292 set dummy $ac_prog; ac_word=$2
3293 echo "$as_me:$LINENO: checking for $ac_word" >&5
3294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3295 if test "${ac_cv_prog_LEX+set}" = set; then
3296 echo $ECHO_N "(cached) $ECHO_C" >&6
3298 if test -n "$LEX"; then
3299 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305 test -z "$as_dir" && as_dir=.
3306 for ac_exec_ext in '' $ac_executable_extensions; do
3307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3308 ac_cv_prog_LEX="$ac_prog"
3309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3318 if test -n "$LEX"; then
3319 echo "$as_me:$LINENO: result: $LEX" >&5
3320 echo "${ECHO_T}$LEX" >&6
3322 echo "$as_me:$LINENO: result: no" >&5
3323 echo "${ECHO_T}no" >&6
3326 test -n "$LEX" && break
3328 test -n "$LEX" || LEX=":"
3330 if test -z "$LEXLIB"
3332 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3333 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3334 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3335 echo $ECHO_N "(cached) $ECHO_C" >&6
3337 ac_check_lib_save_LIBS=$LIBS
3339 cat >conftest.$ac_ext <<_ACEOF
3342 cat confdefs.h >>conftest.$ac_ext
3343 cat >>conftest.$ac_ext <<_ACEOF
3344 /* end confdefs.h. */
3346 /* Override any gcc2 internal prototype to avoid an error. */
3350 /* We use char because int might match the return type of a gcc2
3351 builtin and then its argument prototype would still apply. */
3361 rm -f conftest.$ac_objext conftest$ac_exeext
3362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3363 (eval $ac_link) 2>conftest.er1
3365 grep -v '^ *+' conftest.er1 >conftest.err
3367 cat conftest.err >&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); } &&
3370 { ac_try='test -z "$ac_c_werror_flag"
3371 || test ! -s conftest.err'
3372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }; } &&
3377 { ac_try='test -s conftest$ac_exeext'
3378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }; }; then
3383 ac_cv_lib_fl_yywrap=yes
3385 echo "$as_me: failed program was:" >&5
3386 sed 's/^/| /' conftest.$ac_ext >&5
3388 ac_cv_lib_fl_yywrap=no
3390 rm -f conftest.err conftest.$ac_objext \
3391 conftest$ac_exeext conftest.$ac_ext
3392 LIBS=$ac_check_lib_save_LIBS
3394 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3395 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3396 if test $ac_cv_lib_fl_yywrap = yes; then
3399 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3400 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3401 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3402 echo $ECHO_N "(cached) $ECHO_C" >&6
3404 ac_check_lib_save_LIBS=$LIBS
3406 cat >conftest.$ac_ext <<_ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h. */
3413 /* Override any gcc2 internal prototype to avoid an error. */
3417 /* We use char because int might match the return type of a gcc2
3418 builtin and then its argument prototype would still apply. */
3428 rm -f conftest.$ac_objext conftest$ac_exeext
3429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3430 (eval $ac_link) 2>conftest.er1
3432 grep -v '^ *+' conftest.er1 >conftest.err
3434 cat conftest.err >&5
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); } &&
3437 { ac_try='test -z "$ac_c_werror_flag"
3438 || test ! -s conftest.err'
3439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); }; } &&
3444 { ac_try='test -s conftest$ac_exeext'
3445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); }; }; then
3450 ac_cv_lib_l_yywrap=yes
3452 echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3455 ac_cv_lib_l_yywrap=no
3457 rm -f conftest.err conftest.$ac_objext \
3458 conftest$ac_exeext conftest.$ac_ext
3459 LIBS=$ac_check_lib_save_LIBS
3461 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3462 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3463 if test $ac_cv_lib_l_yywrap = yes; then
3471 if test "x$LEX" != "x:"; then
3472 echo "$as_me:$LINENO: checking lex output file root" >&5
3473 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3474 if test "${ac_cv_prog_lex_root+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3477 # The minimal lex program is just a single line: %%. But some broken lexes
3478 # (Solaris, I think it was) want two %% lines, so accommodate them.
3479 cat >conftest.l <<_ACEOF
3483 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3484 (eval $LEX conftest.l) 2>&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); }
3488 if test -f lex.yy.c; then
3489 ac_cv_prog_lex_root=lex.yy
3490 elif test -f lexyy.c; then
3491 ac_cv_prog_lex_root=lexyy
3493 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3494 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3495 { (exit 1); exit 1; }; }
3498 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3499 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3501 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3503 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3504 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3505 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3506 echo $ECHO_N "(cached) $ECHO_C" >&6
3508 # POSIX says lex can declare yytext either as a pointer or an array; the
3509 # default is implementation-dependent. Figure out which it is, since
3510 # not all implementations provide the %pointer and %array declarations.
3511 ac_cv_prog_lex_yytext_pointer=no
3512 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3514 LIBS="$LIBS $LEXLIB"
3515 cat >conftest.$ac_ext <<_ACEOF
3516 `cat $LEX_OUTPUT_ROOT.c`
3518 rm -f conftest.$ac_objext conftest$ac_exeext
3519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3520 (eval $ac_link) 2>conftest.er1
3522 grep -v '^ *+' conftest.er1 >conftest.err
3524 cat conftest.err >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); } &&
3527 { ac_try='test -z "$ac_c_werror_flag"
3528 || test ! -s conftest.err'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; } &&
3534 { ac_try='test -s conftest$ac_exeext'
3535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); }; }; then
3540 ac_cv_prog_lex_yytext_pointer=yes
3542 echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.$ac_ext >&5
3546 rm -f conftest.err conftest.$ac_objext \
3547 conftest$ac_exeext conftest.$ac_ext
3549 rm -f "${LEX_OUTPUT_ROOT}.c"
3552 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3553 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3554 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3556 cat >>confdefs.h <<\_ACEOF
3557 #define YYTEXT_POINTER 1
3565 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3566 echo "${ECHO_T}$ac_cv_has_flex" >&6
3567 if test "$LEX" != "flex"; then
3568 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3569 echo "$as_me: error: flex not found but required" >&2;}
3570 { (exit 1); exit 1; }; }
3576 echo "$as_me:$LINENO: checking " >&5
3577 echo $ECHO_N "checking ... $ECHO_C" >&6
3578 if test "${ac_cv_has_bison+set}" = set; then
3579 echo $ECHO_N "(cached) $ECHO_C" >&6
3581 for ac_prog in 'bison -y' byacc
3583 # Extract the first word of "$ac_prog", so it can be a program name with args.
3584 set dummy $ac_prog; ac_word=$2
3585 echo "$as_me:$LINENO: checking for $ac_word" >&5
3586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3587 if test "${ac_cv_prog_YACC+set}" = set; then
3588 echo $ECHO_N "(cached) $ECHO_C" >&6
3590 if test -n "$YACC"; then
3591 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 test -z "$as_dir" && as_dir=.
3598 for ac_exec_ext in '' $ac_executable_extensions; do
3599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3600 ac_cv_prog_YACC="$ac_prog"
3601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3609 YACC=$ac_cv_prog_YACC
3610 if test -n "$YACC"; then
3611 echo "$as_me:$LINENO: result: $YACC" >&5
3612 echo "${ECHO_T}$YACC" >&6
3614 echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6
3618 test -n "$YACC" && break
3620 test -n "$YACC" || YACC="yacc"
3624 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3625 echo "${ECHO_T}$ac_cv_has_bison" >&6
3626 if test "$YACC" != "bison -y"; then
3627 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3628 echo "$as_me: error: bison not found but required" >&2;}
3629 { (exit 1); exit 1; }; }
3635 # Check whether --enable-shared or --disable-shared was given.
3636 if test "${enable_shared+set}" = set; then
3637 enableval="$enable_shared"
3638 p=${PACKAGE-default}
3640 yes) enable_shared=yes ;;
3641 no) enable_shared=no ;;
3644 # Look at the argument we got. We use all the common list separators.
3645 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3646 for pkg in $enableval; do
3648 if test "X$pkg" = "X$p"; then
3659 # Check whether --enable-static or --disable-static was given.
3660 if test "${enable_static+set}" = set; then
3661 enableval="$enable_static"
3662 p=${PACKAGE-default}
3664 yes) enable_static=yes ;;
3665 no) enable_static=no ;;
3668 # Look at the argument we got. We use all the common list separators.
3669 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3670 for pkg in $enableval; do
3672 if test "X$pkg" = "X$p"; then
3683 # Check whether --enable-fast-install or --disable-fast-install was given.
3684 if test "${enable_fast_install+set}" = set; then
3685 enableval="$enable_fast_install"
3686 p=${PACKAGE-default}
3688 yes) enable_fast_install=yes ;;
3689 no) enable_fast_install=no ;;
3691 enable_fast_install=no
3692 # Look at the argument we got. We use all the common list separators.
3693 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3694 for pkg in $enableval; do
3696 if test "X$pkg" = "X$p"; then
3697 enable_fast_install=yes
3704 enable_fast_install=yes
3707 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3708 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3709 if test "${lt_cv_path_SED+set}" = set; then
3710 echo $ECHO_N "(cached) $ECHO_C" >&6
3712 # Loop through the user's path and test for sed and gsed.
3713 # Then use that list of sed's as ones to test for truncation.
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718 test -z "$as_dir" && as_dir=.
3719 for lt_ac_prog in sed gsed; do
3720 for ac_exec_ext in '' $ac_executable_extensions; do
3721 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3722 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3729 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3730 # along with /bin/sed that truncates output.
3731 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3732 test ! -f $lt_ac_sed && break
3733 cat /dev/null > conftest.in
3735 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3736 # Check for GNU sed and select it if it is found.
3737 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3738 lt_cv_path_SED=$lt_ac_sed
3742 cat conftest.in conftest.in >conftest.tmp
3743 mv conftest.tmp conftest.in
3744 cp conftest.in conftest.nl
3746 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3747 cmp -s conftest.out conftest.nl || break
3748 # 10000 chars as input seems more than enough
3749 test $lt_ac_count -gt 10 && break
3750 lt_ac_count=`expr $lt_ac_count + 1`
3751 if test $lt_ac_count -gt $lt_ac_max; then
3752 lt_ac_max=$lt_ac_count
3753 lt_cv_path_SED=$lt_ac_sed
3761 echo "$as_me:$LINENO: result: $SED" >&5
3762 echo "${ECHO_T}$SED" >&6
3764 echo "$as_me:$LINENO: checking for egrep" >&5
3765 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3766 if test "${ac_cv_prog_egrep+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3769 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3770 then ac_cv_prog_egrep='grep -E'
3771 else ac_cv_prog_egrep='egrep'
3774 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3775 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3776 EGREP=$ac_cv_prog_egrep
3780 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3781 if test "${with_gnu_ld+set}" = set; then
3782 withval="$with_gnu_ld"
3783 test "$withval" = no || with_gnu_ld=yes
3788 if test "$GCC" = yes; then
3789 # Check if gcc -print-prog-name=ld gives a path.
3790 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3791 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3794 # gcc leaves a trailing carriage return which upsets mingw
3795 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3797 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3800 # Accept absolute paths.
3802 re_direlt='/[^/][^/]*/\.\./'
3803 # Canonicalize the pathname of ld
3804 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3805 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3806 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3808 test -z "$LD" && LD="$ac_prog"
3811 # If it fails, then pretend we aren't using GCC.
3815 # If it is relative, then search for the first ld in PATH.
3819 elif test "$with_gnu_ld" = yes; then
3820 echo "$as_me:$LINENO: checking for GNU ld" >&5
3821 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3823 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3824 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3826 if test "${lt_cv_path_LD+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3829 if test -z "$LD"; then
3830 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3831 for ac_dir in $PATH; do
3833 test -z "$ac_dir" && ac_dir=.
3834 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3835 lt_cv_path_LD="$ac_dir/$ac_prog"
3836 # Check to see if the program is GNU ld. I'd rather use --version,
3837 # but apparently some GNU ld's only accept -v.
3838 # Break only if it was the GNU/non-GNU ld that we prefer.
3839 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3840 *GNU* | *'with BFD'*)
3841 test "$with_gnu_ld" != no && break
3844 test "$with_gnu_ld" != yes && break
3851 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3856 if test -n "$LD"; then
3857 echo "$as_me:$LINENO: result: $LD" >&5
3858 echo "${ECHO_T}$LD" >&6
3860 echo "$as_me:$LINENO: result: no" >&5
3861 echo "${ECHO_T}no" >&6
3863 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3864 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3865 { (exit 1); exit 1; }; }
3866 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3867 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3868 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3871 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3872 case `$LD -v 2>&1 </dev/null` in
3873 *GNU* | *'with BFD'*)
3874 lt_cv_prog_gnu_ld=yes
3877 lt_cv_prog_gnu_ld=no
3881 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3882 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3883 with_gnu_ld=$lt_cv_prog_gnu_ld
3886 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3887 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3888 if test "${lt_cv_ld_reload_flag+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3891 lt_cv_ld_reload_flag='-r'
3893 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3894 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3895 reload_flag=$lt_cv_ld_reload_flag
3896 case $reload_flag in
3898 *) reload_flag=" $reload_flag" ;;
3900 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3903 if test "$GCC" = yes; then
3904 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3906 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3911 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3912 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3913 if test "${lt_cv_path_NM+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 if test -n "$NM"; then
3917 # Let the user override the test.
3920 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3921 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3923 test -z "$ac_dir" && ac_dir=.
3924 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3925 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3926 # Check to see if the nm accepts a BSD-compat flag.
3927 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3928 # nm: unknown option "B" ignored
3929 # Tru64's nm complains that /dev/null is an invalid object file
3930 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3931 */dev/null* | *'Invalid file or object type'*)
3932 lt_cv_path_NM="$tmp_nm -B"
3936 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3938 lt_cv_path_NM="$tmp_nm -p"
3942 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3943 continue # so that we can try to find one that supports BSD flags
3950 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3953 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3954 echo "${ECHO_T}$lt_cv_path_NM" >&6
3957 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3958 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3960 if test "$LN_S" = "ln -s"; then
3961 echo "$as_me:$LINENO: result: yes" >&5
3962 echo "${ECHO_T}yes" >&6
3964 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3965 echo "${ECHO_T}no, using $LN_S" >&6
3968 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3969 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3970 if test "${lt_cv_deplibs_check_method+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3973 lt_cv_file_magic_cmd='$MAGIC_CMD'
3974 lt_cv_file_magic_test_file=
3975 lt_cv_deplibs_check_method='unknown'
3976 # Need to set the preceding variable on all platforms that support
3977 # interlibrary dependencies.
3978 # 'none' -- dependencies not supported.
3979 # `unknown' -- same as none, but documents that we really don't know.
3980 # 'pass_all' -- all dependencies passed with no checks.
3981 # 'test_compile' -- check by making test program.
3982 # 'file_magic [[regex]]' -- check by looking for files in library path
3983 # which responds to the $file_magic_cmd with a given extended regex.
3984 # If you have `file' or equivalent on your system and you're not sure
3985 # whether `pass_all' will *always* work, you probably want this one.
3989 lt_cv_deplibs_check_method=pass_all
3993 lt_cv_deplibs_check_method=pass_all
3997 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3998 lt_cv_file_magic_cmd='/usr/bin/file -L'
3999 lt_cv_file_magic_test_file=/shlib/libc.so
4003 # func_win32_libid is a shell function defined in ltmain.sh
4004 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4005 lt_cv_file_magic_cmd='func_win32_libid'
4009 # Base MSYS/MinGW do not provide the 'file' command needed by
4010 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4011 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4012 lt_cv_file_magic_cmd='$OBJDUMP -f'
4015 darwin* | rhapsody*)
4016 lt_cv_deplibs_check_method=pass_all
4019 freebsd* | kfreebsd*-gnu)
4020 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4023 # Not sure whether the presence of OpenBSD here was a mistake.
4024 # Let's accept both of them until this is cleared up.
4025 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4026 lt_cv_file_magic_cmd=/usr/bin/file
4027 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4031 lt_cv_deplibs_check_method=pass_all
4036 lt_cv_deplibs_check_method=pass_all
4039 hpux10.20* | hpux11*)
4040 lt_cv_file_magic_cmd=/usr/bin/file
4043 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4044 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4047 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]'
4048 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4051 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4052 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4057 irix5* | irix6* | nonstopux*)
4059 *-32|*"-32 ") libmagic=32-bit;;
4060 *-n32|*"-n32 ") libmagic=N32;;
4061 *-64|*"-64 ") libmagic=64-bit;;
4062 *) libmagic=never-match;;
4064 lt_cv_deplibs_check_method=pass_all
4067 # This must be Linux ELF.
4069 lt_cv_deplibs_check_method=pass_all
4073 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4076 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4081 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4082 lt_cv_file_magic_cmd=/usr/bin/file
4083 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4087 lt_cv_deplibs_check_method=unknown
4091 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4092 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4094 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4098 osf3* | osf4* | osf5*)
4099 lt_cv_deplibs_check_method=pass_all
4103 lt_cv_deplibs_check_method=pass_all
4107 lt_cv_deplibs_check_method=pass_all
4110 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4111 case $host_vendor in
4113 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]'
4114 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4117 lt_cv_deplibs_check_method=pass_all
4120 lt_cv_file_magic_cmd='/bin/file'
4121 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4124 lt_cv_file_magic_cmd='/bin/file'
4125 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4126 lt_cv_file_magic_test_file=/lib/libc.so
4129 lt_cv_deplibs_check_method=pass_all
4134 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4135 lt_cv_deplibs_check_method=pass_all
4140 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4141 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4142 file_magic_cmd=$lt_cv_file_magic_cmd
4143 deplibs_check_method=$lt_cv_deplibs_check_method
4144 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4149 # If no C compiler was specified, use CC.
4152 # Allow CC to be a program name with arguments.
4155 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4156 if test "${enable_libtool_lock+set}" = set; then
4157 enableval="$enable_libtool_lock"
4160 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4162 # Some flags need to be propagated to the compiler or linker for good
4166 # Find out which ABI we are using.
4167 echo 'int i;' > conftest.$ac_ext
4168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4169 (eval $ac_compile) 2>&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; then
4173 case `/usr/bin/file conftest.$ac_objext` in
4185 # Find out which ABI we are using.
4186 echo '#line 4186 "configure"' > conftest.$ac_ext
4187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4188 (eval $ac_compile) 2>&5
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); }; then
4192 if test "$lt_cv_prog_gnu_ld" = yes; then
4193 case `/usr/bin/file conftest.$ac_objext` in
4195 LD="${LD-ld} -melf32bsmip"
4198 LD="${LD-ld} -melf32bmipn32"
4201 LD="${LD-ld} -melf64bmip"
4205 case `/usr/bin/file conftest.$ac_objext` in
4221 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4222 # Find out which ABI we are using.
4223 echo 'int i;' > conftest.$ac_ext
4224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4225 (eval $ac_compile) 2>&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); }; then
4229 case "`/usr/bin/file conftest.o`" in
4233 LD="${LD-ld} -m elf_i386"
4235 ppc64-*linux*|powerpc64-*linux*)
4236 LD="${LD-ld} -m elf32ppclinux"
4239 LD="${LD-ld} -m elf_s390"
4242 LD="${LD-ld} -m elf32_sparc"
4249 LD="${LD-ld} -m elf_x86_64"
4251 ppc*-*linux*|powerpc*-*linux*)
4252 LD="${LD-ld} -m elf64ppc"
4255 LD="${LD-ld} -m elf64_s390"
4258 LD="${LD-ld} -m elf64_sparc"
4268 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4269 SAVE_CFLAGS="$CFLAGS"
4270 CFLAGS="$CFLAGS -belf"
4271 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4272 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4273 if test "${lt_cv_cc_needs_belf+set}" = set; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4277 ac_cpp='$CPP $CPPFLAGS'
4278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4282 cat >conftest.$ac_ext <<_ACEOF
4285 cat confdefs.h >>conftest.$ac_ext
4286 cat >>conftest.$ac_ext <<_ACEOF
4287 /* end confdefs.h. */
4290 rm -f conftest.$ac_objext conftest$ac_exeext
4291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4292 (eval $ac_link) 2>conftest.er1
4294 grep -v '^ *+' conftest.er1 >conftest.err
4296 cat conftest.err >&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); } &&
4299 { ac_try='test -z "$ac_c_werror_flag"
4300 || test ! -s conftest.err'
4301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; } &&
4306 { ac_try='test -s conftest$ac_exeext'
4307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }; }; then
4312 lt_cv_cc_needs_belf=yes
4314 echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4317 lt_cv_cc_needs_belf=no
4319 rm -f conftest.err conftest.$ac_objext \
4320 conftest$ac_exeext conftest.$ac_ext
4322 ac_cpp='$CPP $CPPFLAGS'
4323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4328 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4329 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4330 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4331 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4332 CFLAGS="$SAVE_CFLAGS"
4338 need_locks="$enable_libtool_lock"
4342 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4343 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4344 if test "${ac_cv_header_stdc+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4347 cat >conftest.$ac_ext <<_ACEOF
4350 cat confdefs.h >>conftest.$ac_ext
4351 cat >>conftest.$ac_ext <<_ACEOF
4352 /* end confdefs.h. */
4366 rm -f conftest.$ac_objext
4367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4368 (eval $ac_compile) 2>conftest.er1
4370 grep -v '^ *+' conftest.er1 >conftest.err
4372 cat conftest.err >&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); } &&
4375 { ac_try='test -z "$ac_c_werror_flag"
4376 || test ! -s conftest.err'
4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; } &&
4382 { ac_try='test -s conftest.$ac_objext'
4383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; }; then
4388 ac_cv_header_stdc=yes
4390 echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4393 ac_cv_header_stdc=no
4395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4397 if test $ac_cv_header_stdc = yes; then
4398 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4399 cat >conftest.$ac_ext <<_ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h. */
4408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4409 $EGREP "memchr" >/dev/null 2>&1; then
4412 ac_cv_header_stdc=no
4418 if test $ac_cv_header_stdc = yes; then
4419 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4420 cat >conftest.$ac_ext <<_ACEOF
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h. */
4429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4430 $EGREP "free" >/dev/null 2>&1; then
4433 ac_cv_header_stdc=no
4439 if test $ac_cv_header_stdc = yes; then
4440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4441 if test "$cross_compiling" = yes; then
4444 cat >conftest.$ac_ext <<_ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h. */
4451 #if ((' ' & 0x0FF) == 0x020)
4452 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4453 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4455 # define ISLOWER(c) \
4456 (('a' <= (c) && (c) <= 'i') \
4457 || ('j' <= (c) && (c) <= 'r') \
4458 || ('s' <= (c) && (c) <= 'z'))
4459 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4462 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4467 for (i = 0; i < 256; i++)
4468 if (XOR (islower (i), ISLOWER (i))
4469 || toupper (i) != TOUPPER (i))
4474 rm -f conftest$ac_exeext
4475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4476 (eval $ac_link) 2>&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; }; then
4487 echo "$as_me: program exited with status $ac_status" >&5
4488 echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.$ac_ext >&5
4492 ac_cv_header_stdc=no
4494 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4498 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4499 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4500 if test $ac_cv_header_stdc = yes; then
4502 cat >>confdefs.h <<\_ACEOF
4503 #define STDC_HEADERS 1
4508 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4518 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4519 inttypes.h stdint.h unistd.h
4521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4522 echo "$as_me:$LINENO: checking for $ac_header" >&5
4523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4527 cat >conftest.$ac_ext <<_ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h. */
4533 $ac_includes_default
4535 #include <$ac_header>
4537 rm -f conftest.$ac_objext
4538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4539 (eval $ac_compile) 2>conftest.er1
4541 grep -v '^ *+' conftest.er1 >conftest.err
4543 cat conftest.err >&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } &&
4546 { ac_try='test -z "$ac_c_werror_flag"
4547 || test ! -s conftest.err'
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; } &&
4553 { ac_try='test -s conftest.$ac_objext'
4554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; }; then
4559 eval "$as_ac_Header=yes"
4561 echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.$ac_ext >&5
4564 eval "$as_ac_Header=no"
4566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4571 cat >>confdefs.h <<_ACEOF
4572 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4581 for ac_header in dlfcn.h
4583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4585 echo "$as_me:$LINENO: checking for $ac_header" >&5
4586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4593 # Is the header compilable?
4594 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4595 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4596 cat >conftest.$ac_ext <<_ACEOF
4599 cat confdefs.h >>conftest.$ac_ext
4600 cat >>conftest.$ac_ext <<_ACEOF
4601 /* end confdefs.h. */
4602 $ac_includes_default
4603 #include <$ac_header>
4605 rm -f conftest.$ac_objext
4606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4607 (eval $ac_compile) 2>conftest.er1
4609 grep -v '^ *+' conftest.er1 >conftest.err
4611 cat conftest.err >&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); } &&
4614 { ac_try='test -z "$ac_c_werror_flag"
4615 || test ! -s conftest.err'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; } &&
4621 { ac_try='test -s conftest.$ac_objext'
4622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }; }; then
4627 ac_header_compiler=yes
4629 echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4632 ac_header_compiler=no
4634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4635 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4636 echo "${ECHO_T}$ac_header_compiler" >&6
4638 # Is the header present?
4639 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4640 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4641 cat >conftest.$ac_ext <<_ACEOF
4644 cat confdefs.h >>conftest.$ac_ext
4645 cat >>conftest.$ac_ext <<_ACEOF
4646 /* end confdefs.h. */
4647 #include <$ac_header>
4649 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4650 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4652 grep -v '^ *+' conftest.er1 >conftest.err
4654 cat conftest.err >&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); } >/dev/null; then
4657 if test -s conftest.err; then
4658 ac_cpp_err=$ac_c_preproc_warn_flag
4659 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4666 if test -z "$ac_cpp_err"; then
4667 ac_header_preproc=yes
4669 echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.$ac_ext >&5
4672 ac_header_preproc=no
4674 rm -f conftest.err conftest.$ac_ext
4675 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4676 echo "${ECHO_T}$ac_header_preproc" >&6
4678 # So? What about this header?
4679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4681 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4682 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4684 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4685 ac_header_preproc=yes
4688 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4689 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4690 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4691 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4692 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4693 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4694 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4695 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4698 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4699 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4702 ## ----------------------------------- ##
4703 ## Report this to llvmbugs@cs.uiuc.edu ##
4704 ## ----------------------------------- ##
4707 sed "s/^/$as_me: WARNING: /" >&2
4710 echo "$as_me:$LINENO: checking for $ac_header" >&5
4711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4715 eval "$as_ac_Header=\$ac_header_preproc"
4717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4722 cat >>confdefs.h <<_ACEOF
4723 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4732 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4733 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4734 (test "X$CXX" != "Xg++"))) ; then
4736 ac_cpp='$CXXCPP $CPPFLAGS'
4737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4740 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4741 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4742 if test -z "$CXXCPP"; then
4743 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 # Double quotes because CXXCPP needs to be expanded
4747 for CXXCPP in "$CXX -E" "/lib/cpp"
4750 for ac_cxx_preproc_warn_flag in '' yes
4752 # Use a header file that comes with gcc, so configuring glibc
4753 # with a fresh cross-compiler works.
4754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4755 # <limits.h> exists even on freestanding compilers.
4756 # On the NeXT, cc -E runs the code through the compiler's parser,
4757 # not just through cpp. "Syntax error" is here to catch this case.
4758 cat >conftest.$ac_ext <<_ACEOF
4761 cat confdefs.h >>conftest.$ac_ext
4762 cat >>conftest.$ac_ext <<_ACEOF
4763 /* end confdefs.h. */
4765 # include <limits.h>
4767 # include <assert.h>
4771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4774 grep -v '^ *+' conftest.er1 >conftest.err
4776 cat conftest.err >&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); } >/dev/null; then
4779 if test -s conftest.err; then
4780 ac_cpp_err=$ac_cxx_preproc_warn_flag
4781 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4788 if test -z "$ac_cpp_err"; then
4791 echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.$ac_ext >&5
4794 # Broken: fails on valid input.
4797 rm -f conftest.err conftest.$ac_ext
4799 # OK, works on sane cases. Now check whether non-existent headers
4800 # can be detected and how.
4801 cat >conftest.$ac_ext <<_ACEOF
4804 cat confdefs.h >>conftest.$ac_ext
4805 cat >>conftest.$ac_ext <<_ACEOF
4806 /* end confdefs.h. */
4807 #include <ac_nonexistent.h>
4809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4812 grep -v '^ *+' conftest.er1 >conftest.err
4814 cat conftest.err >&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); } >/dev/null; then
4817 if test -s conftest.err; then
4818 ac_cpp_err=$ac_cxx_preproc_warn_flag
4819 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4826 if test -z "$ac_cpp_err"; then
4827 # Broken: success on invalid input.
4830 echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.$ac_ext >&5
4833 # Passes both tests.
4837 rm -f conftest.err conftest.$ac_ext
4840 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4841 rm -f conftest.err conftest.$ac_ext
4842 if $ac_preproc_ok; then
4847 ac_cv_prog_CXXCPP=$CXXCPP
4850 CXXCPP=$ac_cv_prog_CXXCPP
4852 ac_cv_prog_CXXCPP=$CXXCPP
4854 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4855 echo "${ECHO_T}$CXXCPP" >&6
4857 for ac_cxx_preproc_warn_flag in '' yes
4859 # Use a header file that comes with gcc, so configuring glibc
4860 # with a fresh cross-compiler works.
4861 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4862 # <limits.h> exists even on freestanding compilers.
4863 # On the NeXT, cc -E runs the code through the compiler's parser,
4864 # not just through cpp. "Syntax error" is here to catch this case.
4865 cat >conftest.$ac_ext <<_ACEOF
4868 cat confdefs.h >>conftest.$ac_ext
4869 cat >>conftest.$ac_ext <<_ACEOF
4870 /* end confdefs.h. */
4872 # include <limits.h>
4874 # include <assert.h>
4878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4881 grep -v '^ *+' conftest.er1 >conftest.err
4883 cat conftest.err >&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); } >/dev/null; then
4886 if test -s conftest.err; then
4887 ac_cpp_err=$ac_cxx_preproc_warn_flag
4888 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4895 if test -z "$ac_cpp_err"; then
4898 echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.$ac_ext >&5
4901 # Broken: fails on valid input.
4904 rm -f conftest.err conftest.$ac_ext
4906 # OK, works on sane cases. Now check whether non-existent headers
4907 # can be detected and how.
4908 cat >conftest.$ac_ext <<_ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h. */
4914 #include <ac_nonexistent.h>
4916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4919 grep -v '^ *+' conftest.er1 >conftest.err
4921 cat conftest.err >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } >/dev/null; then
4924 if test -s conftest.err; then
4925 ac_cpp_err=$ac_cxx_preproc_warn_flag
4926 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4933 if test -z "$ac_cpp_err"; then
4934 # Broken: success on invalid input.
4937 echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4940 # Passes both tests.
4944 rm -f conftest.err conftest.$ac_ext
4947 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4948 rm -f conftest.err conftest.$ac_ext
4949 if $ac_preproc_ok; then
4952 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4953 See \`config.log' for more details." >&5
4954 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4955 See \`config.log' for more details." >&2;}
4956 { (exit 1); exit 1; }; }
4960 ac_cpp='$CXXCPP $CPPFLAGS'
4961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4969 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4970 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4971 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4972 if test -n "$ac_tool_prefix"; then
4973 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4975 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4976 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4977 echo "$as_me:$LINENO: checking for $ac_word" >&5
4978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4979 if test "${ac_cv_prog_F77+set}" = set; then
4980 echo $ECHO_N "(cached) $ECHO_C" >&6
4982 if test -n "$F77"; then
4983 ac_cv_prog_F77="$F77" # Let the user override the test.
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 test -z "$as_dir" && as_dir=.
4990 for ac_exec_ext in '' $ac_executable_extensions; do
4991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4992 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5002 if test -n "$F77"; then
5003 echo "$as_me:$LINENO: result: $F77" >&5
5004 echo "${ECHO_T}$F77" >&6
5006 echo "$as_me:$LINENO: result: no" >&5
5007 echo "${ECHO_T}no" >&6
5010 test -n "$F77" && break
5013 if test -z "$F77"; then
5015 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5017 # Extract the first word of "$ac_prog", so it can be a program name with args.
5018 set dummy $ac_prog; ac_word=$2
5019 echo "$as_me:$LINENO: checking for $ac_word" >&5
5020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5021 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5024 if test -n "$ac_ct_F77"; then
5025 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 test -z "$as_dir" && as_dir=.
5032 for ac_exec_ext in '' $ac_executable_extensions; do
5033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5034 ac_cv_prog_ac_ct_F77="$ac_prog"
5035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5043 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5044 if test -n "$ac_ct_F77"; then
5045 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5046 echo "${ECHO_T}$ac_ct_F77" >&6
5048 echo "$as_me:$LINENO: result: no" >&5
5049 echo "${ECHO_T}no" >&6
5052 test -n "$ac_ct_F77" && break
5059 # Provide some information about the compiler.
5060 echo "$as_me:5060:" \
5061 "checking for Fortran 77 compiler version" >&5
5062 ac_compiler=`set X $ac_compile; echo $2`
5063 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5064 (eval $ac_compiler --version </dev/null >&5) 2>&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }
5068 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5069 (eval $ac_compiler -v </dev/null >&5) 2>&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }
5073 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5074 (eval $ac_compiler -V </dev/null >&5) 2>&5
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); }
5080 # If we don't use `.F' as extension, the preprocessor is not run on the
5081 # input file. (Note that this only needs to work for GNU compilers.)
5084 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5085 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5086 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5087 echo $ECHO_N "(cached) $ECHO_C" >&6
5089 cat >conftest.$ac_ext <<_ACEOF
5097 rm -f conftest.$ac_objext
5098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5099 (eval $ac_compile) 2>conftest.er1
5101 grep -v '^ *+' conftest.er1 >conftest.err
5103 cat conftest.err >&5
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } &&
5106 { ac_try='test -z "$ac_f77_werror_flag"
5107 || test ! -s conftest.err'
5108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; } &&
5113 { ac_try='test -s conftest.$ac_objext'
5114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); }; }; then
5121 echo "$as_me: failed program was:" >&5
5122 sed 's/^/| /' conftest.$ac_ext >&5
5126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5127 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5130 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5131 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5133 ac_test_FFLAGS=${FFLAGS+set}
5134 ac_save_FFLAGS=$FFLAGS
5136 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5137 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5138 if test "${ac_cv_prog_f77_g+set}" = set; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5142 cat >conftest.$ac_ext <<_ACEOF
5147 rm -f conftest.$ac_objext
5148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5149 (eval $ac_compile) 2>conftest.er1
5151 grep -v '^ *+' conftest.er1 >conftest.err
5153 cat conftest.err >&5
5154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155 (exit $ac_status); } &&
5156 { ac_try='test -z "$ac_f77_werror_flag"
5157 || test ! -s conftest.err'
5158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); }; } &&
5163 { ac_try='test -s conftest.$ac_objext'
5164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); }; }; then
5169 ac_cv_prog_f77_g=yes
5171 echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.$ac_ext >&5
5176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5179 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5180 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5181 if test "$ac_test_FFLAGS" = set; then
5182 FFLAGS=$ac_save_FFLAGS
5183 elif test $ac_cv_prog_f77_g = yes; then
5184 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5190 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5197 G77=`test $ac_compiler_gnu = yes && echo yes`
5199 ac_cpp='$CPP $CPPFLAGS'
5200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5206 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5208 # find the maximum length of command line arguments
5209 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5210 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5211 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5219 # On DJGPP, this test can blow up pretty badly due to problems in libc
5220 # (any single argument exceeding 2000 bytes causes a buffer overrun
5221 # during glob expansion). Even if it were fixed, the result of this
5222 # check would be larger than it should be.
5223 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5227 # Under GNU Hurd, this test is not required because there is
5228 # no limit to the length of command line arguments.
5229 # Libtool will interpret -1 as no limit whatsoever
5230 lt_cv_sys_max_cmd_len=-1;
5234 # On Win9x/ME, this test blows up -- it succeeds, but takes
5235 # about 5 minutes as the teststring grows exponentially.
5236 # Worse, since 9x/ME are not pre-emptively multitasking,
5237 # you end up with a "frozen" computer, even though with patience
5238 # the test eventually succeeds (with a max line length of 256k).
5239 # Instead, let's just punt: use the minimum linelength reported by
5240 # all of the supported platforms: 8192 (on NT/2K/XP).
5241 lt_cv_sys_max_cmd_len=8192;
5245 # On AmigaOS with pdksh, this test takes hours, literally.
5246 # So we just punt and use a minimum line length of 8192.
5247 lt_cv_sys_max_cmd_len=8192;
5250 netbsd* | freebsd* | openbsd* | darwin* )
5251 # This has been around since 386BSD, at least. Likely further.
5252 if test -x /sbin/sysctl; then
5253 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5254 elif test -x /usr/sbin/sysctl; then
5255 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5257 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5259 # And add a safety zone
5260 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5264 # If test is not a shell built-in, we'll probably end up computing a
5265 # maximum length that is only half of the actual maximum length, but
5267 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5268 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5269 = "XX$teststring") >/dev/null 2>&1 &&
5270 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5271 lt_cv_sys_max_cmd_len=$new_result &&
5272 test $i != 17 # 1/2 MB should be enough
5275 teststring=$teststring$teststring
5278 # Add a significant safety factor because C++ compilers can tack on massive
5279 # amounts of additional arguments before passing them to the linker.
5280 # It appears as though 1/2 is a usable value.
5281 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5287 if test -n $lt_cv_sys_max_cmd_len ; then
5288 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5289 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5291 echo "$as_me:$LINENO: result: none" >&5
5292 echo "${ECHO_T}none" >&6
5298 # Check for command to grab the raw symbol name followed by C symbol from nm.
5299 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5300 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5301 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5305 # These are sane defaults that work on at least a few old systems.
5306 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5308 # Character class describing NM global symbol codes.
5309 symcode='[BCDEGRST]'
5311 # Regexp to match symbols that can be accessed directly from C.
5312 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5314 # Transform the above into a raw symbol and a C symbol.
5315 symxfrm='\1 \2\3 \3'
5317 # Transform an extracted symbol line into a proper C declaration
5318 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5320 # Transform an extracted symbol line into symbol name and symbol address
5321 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'"
5323 # Define system-specific variables.
5328 cygwin* | mingw* | pw32*)
5329 symcode='[ABCDGISTW]'
5331 hpux*) # Its linker distinguishes data from code symbols
5332 if test "$host_cpu" = ia64; then
5333 symcode='[ABCDEGRST]'
5335 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5336 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5339 if test "$host_cpu" = ia64; then
5340 symcode='[ABCDGIRSTW]'
5341 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5342 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'"
5346 symcode='[BCDEGRST]'
5349 symcode='[BCDEGQRST]'
5359 # Handle CRLF in mingw tool chain
5363 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5367 # If we're using GNU nm, then use its standard symbol codes.
5368 case `$NM -V 2>&1` in
5369 *GNU* | *'with BFD'*)
5370 symcode='[ABCDGIRSTW]' ;;
5373 # Try without a prefix undercore, then with it.
5374 for ac_symprfx in "" "_"; do
5376 # Write the raw and C identifiers.
5377 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5379 # Check to see that the pipe works correctly.
5383 cat > conftest.$ac_ext <<EOF
5388 void nm_test_func(){}
5392 int main(){nm_test_var='a';nm_test_func();return(0);}
5395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5396 (eval $ac_compile) 2>&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); }; then
5400 # Now try to grab the symbols.
5402 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5403 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } && test -s "$nlist"; then
5407 # Try sorting and uniquifying the output.
5408 if sort "$nlist" | uniq > "$nlist"T; then
5409 mv -f "$nlist"T "$nlist"
5414 # Make sure that we snagged all the symbols we need.
5415 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5416 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5417 cat <<EOF > conftest.$ac_ext
5423 # Now generate the symbol file.
5424 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5426 cat <<EOF >> conftest.$ac_ext
5427 #if defined (__STDC__) && __STDC__
5428 # define lt_ptr_t void *
5430 # define lt_ptr_t char *
5434 /* The mapping between symbol names and symbols. */
5439 lt_preloaded_symbols[] =
5442 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5443 cat <<\EOF >> conftest.$ac_ext
5451 # Now try linking the two files.
5452 mv conftest.$ac_objext conftstm.$ac_objext
5453 lt_save_LIBS="$LIBS"
5454 lt_save_CFLAGS="$CFLAGS"
5455 LIBS="conftstm.$ac_objext"
5456 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5458 (eval $ac_link) 2>&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5464 LIBS="$lt_save_LIBS"
5465 CFLAGS="$lt_save_CFLAGS"
5467 echo "cannot find nm_test_func in $nlist" >&5
5470 echo "cannot find nm_test_var in $nlist" >&5
5473 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5476 echo "$progname: failed program was:" >&5
5477 cat conftest.$ac_ext >&5
5479 rm -f conftest* conftst*
5481 # Do not use the global_symbol_pipe unless it works.
5482 if test "$pipe_works" = yes; then
5485 lt_cv_sys_global_symbol_pipe=
5491 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5492 lt_cv_sys_global_symbol_to_cdecl=
5494 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5495 echo "$as_me:$LINENO: result: failed" >&5
5496 echo "${ECHO_T}failed" >&6
5498 echo "$as_me:$LINENO: result: ok" >&5
5499 echo "${ECHO_T}ok" >&6
5502 echo "$as_me:$LINENO: checking for objdir" >&5
5503 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5504 if test "${lt_cv_objdir+set}" = set; then
5505 echo $ECHO_N "(cached) $ECHO_C" >&6
5507 rm -f .libs 2>/dev/null
5508 mkdir .libs 2>/dev/null
5509 if test -d .libs; then
5512 # MS-DOS does not allow filenames that begin with a dot.
5515 rmdir .libs 2>/dev/null
5517 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5518 echo "${ECHO_T}$lt_cv_objdir" >&6
5519 objdir=$lt_cv_objdir
5527 # AIX sometimes has problems with the GCC collect2 program. For some
5528 # reason, if we set the COLLECT_NAMES environment variable, the problems
5529 # vanish in a puff of smoke.
5530 if test "X${COLLECT_NAMES+set}" != Xset; then
5532 export COLLECT_NAMES
5537 # Sed substitution that helps us do robust quoting. It backslashifies
5538 # metacharacters that are still active within double-quoted strings.
5539 Xsed='sed -e s/^X//'
5540 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5542 # Same as above, but do not quote variable references.
5543 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5545 # Sed substitution to delay expansion of an escaped shell variable in a
5546 # double_quote_subst'ed string.
5547 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5549 # Sed substitution to avoid accidental globbing in evaled expressions
5550 no_glob_subst='s/\*/\\\*/g'
5557 can_build_shared=yes
5559 # All known linkers require a `.a' archive for static linking (except M$VC,
5560 # which needs '.lib').
5562 ltmain="$ac_aux_dir/ltmain.sh"
5563 ofile="$default_ofile"
5564 with_gnu_ld="$lt_cv_prog_gnu_ld"
5566 if test -n "$ac_tool_prefix"; then
5567 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5568 set dummy ${ac_tool_prefix}ar; ac_word=$2
5569 echo "$as_me:$LINENO: checking for $ac_word" >&5
5570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5571 if test "${ac_cv_prog_AR+set}" = set; then
5572 echo $ECHO_N "(cached) $ECHO_C" >&6
5574 if test -n "$AR"; then
5575 ac_cv_prog_AR="$AR" # Let the user override the test.
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 test -z "$as_dir" && as_dir=.
5582 for ac_exec_ext in '' $ac_executable_extensions; do
5583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5584 ac_cv_prog_AR="${ac_tool_prefix}ar"
5585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5594 if test -n "$AR"; then
5595 echo "$as_me:$LINENO: result: $AR" >&5
5596 echo "${ECHO_T}$AR" >&6
5598 echo "$as_me:$LINENO: result: no" >&5
5599 echo "${ECHO_T}no" >&6
5603 if test -z "$ac_cv_prog_AR"; then
5605 # Extract the first word of "ar", so it can be a program name with args.
5606 set dummy ar; ac_word=$2
5607 echo "$as_me:$LINENO: checking for $ac_word" >&5
5608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5609 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5612 if test -n "$ac_ct_AR"; then
5613 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619 test -z "$as_dir" && as_dir=.
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5622 ac_cv_prog_ac_ct_AR="ar"
5623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5629 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5632 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5633 if test -n "$ac_ct_AR"; then
5634 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5635 echo "${ECHO_T}$ac_ct_AR" >&6
5637 echo "$as_me:$LINENO: result: no" >&5
5638 echo "${ECHO_T}no" >&6
5646 if test -n "$ac_tool_prefix"; then
5647 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5648 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5649 echo "$as_me:$LINENO: checking for $ac_word" >&5
5650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5651 if test "${ac_cv_prog_RANLIB+set}" = set; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5654 if test -n "$RANLIB"; then
5655 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661 test -z "$as_dir" && as_dir=.
5662 for ac_exec_ext in '' $ac_executable_extensions; do
5663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5664 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5673 RANLIB=$ac_cv_prog_RANLIB
5674 if test -n "$RANLIB"; then
5675 echo "$as_me:$LINENO: result: $RANLIB" >&5
5676 echo "${ECHO_T}$RANLIB" >&6
5678 echo "$as_me:$LINENO: result: no" >&5
5679 echo "${ECHO_T}no" >&6
5683 if test -z "$ac_cv_prog_RANLIB"; then
5684 ac_ct_RANLIB=$RANLIB
5685 # Extract the first word of "ranlib", so it can be a program name with args.
5686 set dummy ranlib; ac_word=$2
5687 echo "$as_me:$LINENO: checking for $ac_word" >&5
5688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5689 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5692 if test -n "$ac_ct_RANLIB"; then
5693 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699 test -z "$as_dir" && as_dir=.
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702 ac_cv_prog_ac_ct_RANLIB="ranlib"
5703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5709 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5712 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5713 if test -n "$ac_ct_RANLIB"; then
5714 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5715 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5717 echo "$as_me:$LINENO: result: no" >&5
5718 echo "${ECHO_T}no" >&6
5721 RANLIB=$ac_ct_RANLIB
5723 RANLIB="$ac_cv_prog_RANLIB"
5726 if test -n "$ac_tool_prefix"; then
5727 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5728 set dummy ${ac_tool_prefix}strip; ac_word=$2
5729 echo "$as_me:$LINENO: checking for $ac_word" >&5
5730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5731 if test "${ac_cv_prog_STRIP+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 if test -n "$STRIP"; then
5735 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 test -z "$as_dir" && as_dir=.
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5753 STRIP=$ac_cv_prog_STRIP
5754 if test -n "$STRIP"; then
5755 echo "$as_me:$LINENO: result: $STRIP" >&5
5756 echo "${ECHO_T}$STRIP" >&6
5758 echo "$as_me:$LINENO: result: no" >&5
5759 echo "${ECHO_T}no" >&6
5763 if test -z "$ac_cv_prog_STRIP"; then
5765 # Extract the first word of "strip", so it can be a program name with args.
5766 set dummy strip; ac_word=$2
5767 echo "$as_me:$LINENO: checking for $ac_word" >&5
5768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5769 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5772 if test -n "$ac_ct_STRIP"; then
5773 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 test -z "$as_dir" && as_dir=.
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782 ac_cv_prog_ac_ct_STRIP="strip"
5783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5789 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5792 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5793 if test -n "$ac_ct_STRIP"; then
5794 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5795 echo "${ECHO_T}$ac_ct_STRIP" >&6
5797 echo "$as_me:$LINENO: result: no" >&5
5798 echo "${ECHO_T}no" >&6
5803 STRIP="$ac_cv_prog_STRIP"
5808 old_CFLAGS="$CFLAGS"
5810 # Set sane defaults for various variables
5811 test -z "$AR" && AR=ar
5812 test -z "$AR_FLAGS" && AR_FLAGS=cru
5813 test -z "$AS" && AS=as
5814 test -z "$CC" && CC=cc
5815 test -z "$LTCC" && LTCC=$CC
5816 test -z "$DLLTOOL" && DLLTOOL=dlltool
5817 test -z "$LD" && LD=ld
5818 test -z "$LN_S" && LN_S="ln -s"
5819 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5820 test -z "$NM" && NM=nm
5821 test -z "$SED" && SED=sed
5822 test -z "$OBJDUMP" && OBJDUMP=objdump
5823 test -z "$RANLIB" && RANLIB=:
5824 test -z "$STRIP" && STRIP=:
5825 test -z "$ac_objext" && ac_objext=o
5827 # Determine commands to create old-style static archives.
5828 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5829 old_postinstall_cmds='chmod 644 $oldlib'
5830 old_postuninstall_cmds=
5832 if test -n "$RANLIB"; then
5835 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5838 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5841 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5844 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
5846 # Only perform the check for file, if the check method requires it
5847 case $deplibs_check_method in
5849 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5850 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5851 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5852 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5857 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5860 lt_save_MAGIC_CMD="$MAGIC_CMD"
5861 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5862 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5863 for ac_dir in $ac_dummy; do
5865 test -z "$ac_dir" && ac_dir=.
5866 if test -f $ac_dir/${ac_tool_prefix}file; then
5867 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5868 if test -n "$file_magic_test_file"; then
5869 case $deplibs_check_method in
5871 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5872 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5873 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5874 $EGREP "$file_magic_regex" > /dev/null; then
5879 *** Warning: the command libtool uses to detect shared libraries,
5880 *** $file_magic_cmd, produces output that libtool cannot recognize.
5881 *** The result is that libtool may fail to recognize shared libraries
5882 *** as such. This will affect the creation of libtool libraries that
5883 *** depend on shared libraries, but programs linked with such libtool
5884 *** libraries will work regardless of this problem. Nevertheless, you
5885 *** may want to report the problem to your system manager and/or to
5886 *** bug-libtool@gnu.org
5896 MAGIC_CMD="$lt_save_MAGIC_CMD"
5901 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5902 if test -n "$MAGIC_CMD"; then
5903 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5904 echo "${ECHO_T}$MAGIC_CMD" >&6
5906 echo "$as_me:$LINENO: result: no" >&5
5907 echo "${ECHO_T}no" >&6
5910 if test -z "$lt_cv_path_MAGIC_CMD"; then
5911 if test -n "$ac_tool_prefix"; then
5912 echo "$as_me:$LINENO: checking for file" >&5
5913 echo $ECHO_N "checking for file... $ECHO_C" >&6
5914 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5919 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5922 lt_save_MAGIC_CMD="$MAGIC_CMD"
5923 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5924 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5925 for ac_dir in $ac_dummy; do
5927 test -z "$ac_dir" && ac_dir=.
5928 if test -f $ac_dir/file; then
5929 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5930 if test -n "$file_magic_test_file"; then
5931 case $deplibs_check_method in
5933 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5934 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5935 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5936 $EGREP "$file_magic_regex" > /dev/null; then
5941 *** Warning: the command libtool uses to detect shared libraries,
5942 *** $file_magic_cmd, produces output that libtool cannot recognize.
5943 *** The result is that libtool may fail to recognize shared libraries
5944 *** as such. This will affect the creation of libtool libraries that
5945 *** depend on shared libraries, but programs linked with such libtool
5946 *** libraries will work regardless of this problem. Nevertheless, you
5947 *** may want to report the problem to your system manager and/or to
5948 *** bug-libtool@gnu.org
5958 MAGIC_CMD="$lt_save_MAGIC_CMD"
5963 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5964 if test -n "$MAGIC_CMD"; then
5965 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5966 echo "${ECHO_T}$MAGIC_CMD" >&6
5968 echo "$as_me:$LINENO: result: no" >&5
5969 echo "${ECHO_T}no" >&6
5984 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5985 if test "${enable_libtool_lock+set}" = set; then
5986 enableval="$enable_libtool_lock"
5989 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5992 # Check whether --with-pic or --without-pic was given.
5993 if test "${with_pic+set}" = set; then
5999 test -z "$pic_mode" && pic_mode=default
6001 # Use C for the default configuration in the libtool script
6005 ac_cpp='$CPP $CPPFLAGS'
6006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6011 # Source file extension for C test sources.
6014 # Object file extension for compiled C test sources.
6018 # Code to be used in simple compile tests
6019 lt_simple_compile_test_code="int some_variable = 0;\n"
6021 # Code to be used in simple link tests
6022 lt_simple_link_test_code='int main(){return(0);}\n'
6025 # If no C compiler was specified, use CC.
6028 # Allow CC to be a program name with arguments.
6033 # Check for any special shared library compilation flags.
6036 if test "$GCC" = no; then
6039 lt_prog_cc_shlib='-belf'
6043 if test -n "$lt_prog_cc_shlib"; then
6044 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6045 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6046 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6048 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6049 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6050 lt_cv_prog_cc_can_build_shared=no
6056 # Check to make sure the static flag actually works.
6058 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6059 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6060 if test "${lt_prog_compiler_static_works+set}" = set; then
6061 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 lt_prog_compiler_static_works=no
6064 save_LDFLAGS="$LDFLAGS"
6065 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6066 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6067 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6068 # The compiler can only warn and ignore the option if not recognized
6069 # So say no if there are warnings
6070 if test -s conftest.err; then
6071 # Append any errors to the config.log.
6072 cat conftest.err 1>&5
6074 lt_prog_compiler_static_works=yes
6078 LDFLAGS="$save_LDFLAGS"
6081 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6082 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6084 if test x"$lt_prog_compiler_static_works" = xyes; then
6087 lt_prog_compiler_static=
6093 lt_prog_compiler_no_builtin_flag=
6095 if test "$GCC" = yes; then
6096 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6099 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6100 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6101 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6104 lt_cv_prog_compiler_rtti_exceptions=no
6105 ac_outfile=conftest.$ac_objext
6106 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6107 lt_compiler_flag="-fno-rtti -fno-exceptions"
6108 # Insert the option either (1) after the last *FLAGS variable, or
6109 # (2) before a word containing "conftest.", or (3) at the end.
6110 # Note that $ac_compile itself does not contain backslashes and begins
6111 # with a dollar sign (not a hyphen), so the echo should work correctly.
6112 # The option is referenced via a variable to avoid confusing sed.
6113 lt_compile=`echo "$ac_compile" | $SED \
6114 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6115 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6116 -e 's:$: $lt_compiler_flag:'`
6117 (eval echo "\"\$as_me:6117: $lt_compile\"" >&5)
6118 (eval "$lt_compile" 2>conftest.err)
6120 cat conftest.err >&5
6121 echo "$as_me:6121: \$? = $ac_status" >&5
6122 if (exit $ac_status) && test -s "$ac_outfile"; then
6123 # The compiler can only warn and ignore the option if not recognized
6124 # So say no if there are warnings
6125 if test ! -s conftest.err; then
6126 lt_cv_prog_compiler_rtti_exceptions=yes
6132 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6133 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6135 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6136 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6143 lt_prog_compiler_wl=
6144 lt_prog_compiler_pic=
6145 lt_prog_compiler_static=
6147 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6148 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6150 if test "$GCC" = yes; then
6151 lt_prog_compiler_wl='-Wl,'
6152 lt_prog_compiler_static='-static'
6156 # All AIX code is PIC.
6157 if test "$host_cpu" = ia64; then
6158 # AIX 5 now supports IA64 processor
6159 lt_prog_compiler_static='-Bstatic'
6164 # FIXME: we need at least 68020 code to build shared libraries, but
6165 # adding the `-m68020' flag to GCC prevents building anything better,
6167 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6170 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6171 # PIC is the default for these OSes.
6174 mingw* | pw32* | os2*)
6175 # This hack is so that the source file can tell whether it is being
6176 # built for inclusion in a dll (and should export symbols for example).
6177 lt_prog_compiler_pic='-DDLL_EXPORT'
6180 darwin* | rhapsody*)
6181 # PIC is the default on this platform
6182 # Common symbols not allowed in MH_DYLIB files
6183 lt_prog_compiler_pic='-fno-common'
6187 # Just because we use GCC doesn't mean we suddenly get shared libraries
6188 # on systems that don't support them.
6189 lt_prog_compiler_can_build_shared=no
6194 if test -d /usr/nec; then
6195 lt_prog_compiler_pic=-Kconform_pic
6200 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6207 lt_prog_compiler_pic='-fPIC'
6213 lt_prog_compiler_pic='-fPIC'
6217 # PORTME Check for flag to pass linker flags through the system compiler.
6220 lt_prog_compiler_wl='-Wl,'
6221 if test "$host_cpu" = ia64; then
6222 # AIX 5 now supports IA64 processor
6223 lt_prog_compiler_static='-Bstatic'
6225 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6229 # PIC is the default on this platform
6230 # Common symbols not allowed in MH_DYLIB files
6231 case "$cc_basename" in
6233 lt_prog_compiler_pic='-qnocommon'
6234 lt_prog_compiler_wl='-Wl,'
6239 mingw* | pw32* | os2*)
6240 # This hack is so that the source file can tell whether it is being
6241 # built for inclusion in a dll (and should export symbols for example).
6242 lt_prog_compiler_pic='-DDLL_EXPORT'
6245 hpux9* | hpux10* | hpux11*)
6246 lt_prog_compiler_wl='-Wl,'
6247 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6254 lt_prog_compiler_pic='+Z'
6257 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6258 lt_prog_compiler_static='${wl}-a ${wl}archive'
6261 irix5* | irix6* | nonstopux*)
6262 lt_prog_compiler_wl='-Wl,'
6263 # PIC (with -KPIC) is the default.
6264 lt_prog_compiler_static='-non_shared'
6268 lt_prog_compiler_pic='-KPIC'
6269 lt_prog_compiler_static='-Bstatic'
6275 lt_prog_compiler_wl='-Wl,'
6276 lt_prog_compiler_pic='-KPIC'
6277 lt_prog_compiler_static='-static'
6280 lt_prog_compiler_wl='-Wl,'
6281 # All Alpha code is PIC.
6282 lt_prog_compiler_static='-non_shared'
6287 osf3* | osf4* | osf5*)
6288 lt_prog_compiler_wl='-Wl,'
6289 # All OSF/1 code is PIC.
6290 lt_prog_compiler_static='-non_shared'
6294 lt_prog_compiler_pic='-Kpic'
6295 lt_prog_compiler_static='-dn'
6299 lt_prog_compiler_wl='-Wl,'
6300 lt_prog_compiler_pic='-KPIC'
6301 lt_prog_compiler_static='-Bstatic'
6305 lt_prog_compiler_wl='-Qoption ld '
6306 lt_prog_compiler_pic='-PIC'
6307 lt_prog_compiler_static='-Bstatic'
6310 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6311 lt_prog_compiler_wl='-Wl,'
6312 lt_prog_compiler_pic='-KPIC'
6313 lt_prog_compiler_static='-Bstatic'
6317 if test -d /usr/nec ;then
6318 lt_prog_compiler_pic='-Kconform_pic'
6319 lt_prog_compiler_static='-Bstatic'
6324 lt_prog_compiler_pic='-pic'
6325 lt_prog_compiler_static='-Bstatic'
6329 lt_prog_compiler_can_build_shared=no
6334 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6335 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6338 # Check to make sure the PIC flag actually works.
6340 if test -n "$lt_prog_compiler_pic"; then
6342 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6343 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6344 if test "${lt_prog_compiler_pic_works+set}" = set; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
6347 lt_prog_compiler_pic_works=no
6348 ac_outfile=conftest.$ac_objext
6349 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6350 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6351 # Insert the option either (1) after the last *FLAGS variable, or
6352 # (2) before a word containing "conftest.", or (3) at the end.
6353 # Note that $ac_compile itself does not contain backslashes and begins
6354 # with a dollar sign (not a hyphen), so the echo should work correctly.
6355 # The option is referenced via a variable to avoid confusing sed.
6356 lt_compile=`echo "$ac_compile" | $SED \
6357 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6359 -e 's:$: $lt_compiler_flag:'`
6360 (eval echo "\"\$as_me:6360: $lt_compile\"" >&5)
6361 (eval "$lt_compile" 2>conftest.err)
6363 cat conftest.err >&5
6364 echo "$as_me:6364: \$? = $ac_status" >&5
6365 if (exit $ac_status) && test -s "$ac_outfile"; then
6366 # The compiler can only warn and ignore the option if not recognized
6367 # So say no if there are warnings
6368 if test ! -s conftest.err; then
6369 lt_prog_compiler_pic_works=yes
6375 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6376 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6378 if test x"$lt_prog_compiler_pic_works" = xyes; then
6379 case $lt_prog_compiler_pic in
6381 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6384 lt_prog_compiler_pic=
6385 lt_prog_compiler_can_build_shared=no
6390 # For platforms which do not support PIC, -DPIC is meaningless:
6392 lt_prog_compiler_pic=
6395 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6399 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6400 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6401 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
6404 lt_cv_prog_compiler_c_o=no
6405 $rm -r conftest 2>/dev/null
6409 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6411 lt_compiler_flag="-o out/conftest2.$ac_objext"
6412 # Insert the option either (1) after the last *FLAGS variable, or
6413 # (2) before a word containing "conftest.", or (3) at the end.
6414 # Note that $ac_compile itself does not contain backslashes and begins
6415 # with a dollar sign (not a hyphen), so the echo should work correctly.
6416 lt_compile=`echo "$ac_compile" | $SED \
6417 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6418 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6419 -e 's:$: $lt_compiler_flag:'`
6420 (eval echo "\"\$as_me:6420: $lt_compile\"" >&5)
6421 (eval "$lt_compile" 2>out/conftest.err)
6423 cat out/conftest.err >&5
6424 echo "$as_me:6424: \$? = $ac_status" >&5
6425 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6427 # The compiler can only warn and ignore the option if not recognized
6428 # So say no if there are warnings
6429 if test ! -s out/conftest.err; then
6430 lt_cv_prog_compiler_c_o=yes
6435 # SGI C++ compiler will create directory out/ii_files/ for
6436 # template instantiation
6437 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6438 $rm out/* && rmdir out
6444 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6445 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6448 hard_links="nottested"
6449 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6450 # do not overwrite the value of need_locks provided by the user
6451 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6452 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6455 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6457 ln conftest.a conftest.b 2>&5 || hard_links=no
6458 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6459 echo "$as_me:$LINENO: result: $hard_links" >&5
6460 echo "${ECHO_T}$hard_links" >&6
6461 if test "$hard_links" = no; then
6462 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6463 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6470 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6471 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6474 allow_undefined_flag=
6475 enable_shared_with_static_runtimes=no
6477 archive_expsym_cmds=
6478 old_archive_From_new_cmds=
6479 old_archive_from_expsyms_cmds=
6480 export_dynamic_flag_spec=
6481 whole_archive_flag_spec=
6482 thread_safe_flag_spec=
6483 hardcode_libdir_flag_spec=
6484 hardcode_libdir_flag_spec_ld=
6485 hardcode_libdir_separator=
6488 hardcode_shlibpath_var=unsupported
6489 link_all_deplibs=unknown
6490 hardcode_automatic=no
6493 always_export_symbols=no
6494 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6495 # include_expsyms should be a list of space-separated symbols to be *always*
6496 # included in the symbol list
6498 # exclude_expsyms can be an extended regexp of symbols to exclude
6499 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6500 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6501 # as well as any symbol that contains `d'.
6502 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6503 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6504 # platforms (ab)use it in PIC code, but their linkers get confused if
6505 # the symbol is explicitly referenced. Since portable code cannot
6506 # rely on this symbol name, it's probably fine to never include it in
6507 # preloaded symbol tables.
6508 extract_expsyms_cmds=
6511 cygwin* | mingw* | pw32*)
6512 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6513 # When not using gcc, we currently assume that we are using
6514 # Microsoft Visual C++.
6515 if test "$GCC" != yes; then
6525 if test "$with_gnu_ld" = yes; then
6526 # If archive_cmds runs LD, not CC, wlarc should be empty
6529 # See if GNU ld supports shared libraries.
6531 aix3* | aix4* | aix5*)
6532 # On AIX/PPC, the GNU linker is very broken
6533 if test "$host_cpu" != ia64; then
6537 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6538 *** to be unable to reliably create shared libraries on AIX.
6539 *** Therefore, libtool is disabling shared libraries support. If you
6540 *** really care for shared libraries, you may want to modify your PATH
6541 *** so that a non-GNU linker is found, and then restart.
6548 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)'
6549 hardcode_libdir_flag_spec='-L$libdir'
6550 hardcode_minus_L=yes
6552 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6553 # that the semantics of dynamic libraries on AmigaOS, at least up
6554 # to version 4, is to share data among multiple programs linked
6555 # with the same dynamic library. Since this doesn't match the
6556 # behavior of shared libraries on other platforms, we can't use
6562 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6563 allow_undefined_flag=unsupported
6564 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6565 # support --undefined. This deserves some investigation. FIXME
6566 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6572 cygwin* | mingw* | pw32*)
6573 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6574 # as there is no search path for DLLs.
6575 hardcode_libdir_flag_spec='-L$libdir'
6576 allow_undefined_flag=unsupported
6577 always_export_symbols=no
6578 enable_shared_with_static_runtimes=yes
6579 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6581 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6582 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6583 # If the export-symbols file already is a .def file (1st line
6584 # is EXPORTS), use it as is; otherwise, prepend...
6585 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6586 cp $export_symbols $output_objdir/$soname.def;
6588 echo EXPORTS > $output_objdir/$soname.def;
6589 cat $export_symbols >> $output_objdir/$soname.def;
6591 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6598 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6599 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6602 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6603 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6608 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6612 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6613 *** create shared libraries on Solaris systems. Therefore, libtool
6614 *** is disabling shared libraries support. We urge you to upgrade GNU
6615 *** binutils to release 2.9.1 or newer. Another option is to modify
6616 *** your PATH or compiler configuration so that the native linker is
6617 *** used, and then restart.
6620 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6621 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6622 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6629 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6632 hardcode_shlibpath_var=no
6636 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6637 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6638 archive_cmds="$tmp_archive_cmds"
6639 supports_anon_versioning=no
6640 case `$LD -v 2>/dev/null` in
6641 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6642 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6643 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6644 *\ 2.11.*) ;; # other 2.11 versions
6645 *) supports_anon_versioning=yes ;;
6647 if test $supports_anon_versioning = yes; then
6648 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6649 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6650 $echo "local: *; };" >> $output_objdir/$libname.ver~
6651 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6653 archive_expsym_cmds="$tmp_archive_cmds"
6661 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6663 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6670 if test "$ld_shlibs" = yes; then
6671 runpath_var=LD_RUN_PATH
6672 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6673 export_dynamic_flag_spec='${wl}--export-dynamic'
6674 # ancient GNU ld didn't support --whole-archive et. al.
6675 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6676 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6678 whole_archive_flag_spec=
6682 # PORTME fill in a description of your system's linker (not GNU ld)
6685 allow_undefined_flag=unsupported
6686 always_export_symbols=yes
6687 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'
6688 # Note: this linker hardcodes the directories in LIBPATH if there
6689 # are no directories specified by -L.
6690 hardcode_minus_L=yes
6691 if test "$GCC" = yes && test -z "$link_static_flag"; then
6692 # Neither direct hardcoding nor static linking is supported with a
6694 hardcode_direct=unsupported
6699 if test "$host_cpu" = ia64; then
6700 # On IA64, the linker does run time linking by default, so we don't
6701 # have to do anything special.
6702 aix_use_runtimelinking=no
6703 exp_sym_flag='-Bexport'
6706 # If we're using GNU nm, then we don't want the "-C" option.
6707 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6708 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6709 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'
6711 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'
6713 aix_use_runtimelinking=no
6715 # Test if we are trying to use run time linking or normal
6716 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6717 # need to do runtime linking.
6718 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6719 for ld_flag in $LDFLAGS; do
6720 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6721 aix_use_runtimelinking=yes
6727 exp_sym_flag='-bexport'
6728 no_entry_flag='-bnoentry'
6731 # When large executables or shared objects are built, AIX ld can
6732 # have problems creating the table of contents. If linking a library
6733 # or program results in "error TOC overflow" add -mminimal-toc to
6734 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6735 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6739 hardcode_libdir_separator=':'
6740 link_all_deplibs=yes
6742 if test "$GCC" = yes; then
6743 case $host_os in aix4.012|aix4.012.*)
6744 # We only want to do this on AIX 4.2 and lower, the check
6745 # below for broken collect2 doesn't work under 4.3+
6746 collect2name=`${CC} -print-prog-name=collect2`
6747 if test -f "$collect2name" && \
6748 strings "$collect2name" | grep resolve_lib_name >/dev/null
6750 # We have reworked collect2
6753 # We have old collect2
6754 hardcode_direct=unsupported
6755 # It fails to find uninstalled libraries when the uninstalled
6756 # path is not listed in the libpath. Setting hardcode_minus_L
6757 # to unsupported forces relinking
6758 hardcode_minus_L=yes
6759 hardcode_libdir_flag_spec='-L$libdir'
6760 hardcode_libdir_separator=
6763 shared_flag='-shared'
6766 if test "$host_cpu" = ia64; then
6767 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6768 # chokes on -Wl,-G. The following line is correct:
6771 if test "$aix_use_runtimelinking" = yes; then
6772 shared_flag='${wl}-G'
6774 shared_flag='${wl}-bM:SRE'
6779 # It seems that -bexpall does not export symbols beginning with
6780 # underscore (_), so it is better to generate a list of symbols to export.
6781 always_export_symbols=yes
6782 if test "$aix_use_runtimelinking" = yes; then
6783 # Warning - without using the other runtime loading flags (-brtl),
6784 # -berok will link without error, but may produce a broken library.
6785 allow_undefined_flag='-berok'
6786 # Determine the default libpath from the value encoded in an empty executable.
6787 cat >conftest.$ac_ext <<_ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h. */
6802 rm -f conftest.$ac_objext conftest$ac_exeext
6803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6804 (eval $ac_link) 2>conftest.er1
6806 grep -v '^ *+' conftest.er1 >conftest.err
6808 cat conftest.err >&5
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); } &&
6811 { ac_try='test -z "$ac_c_werror_flag"
6812 || test ! -s conftest.err'
6813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); }; } &&
6818 { ac_try='test -s conftest$ac_exeext'
6819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); }; }; then
6825 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6827 # Check for a 64-bit object if we didn't find anything.
6828 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; }
6831 echo "$as_me: failed program was:" >&5
6832 sed 's/^/| /' conftest.$ac_ext >&5
6835 rm -f conftest.err conftest.$ac_objext \
6836 conftest$ac_exeext conftest.$ac_ext
6837 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6839 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6840 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"
6842 if test "$host_cpu" = ia64; then
6843 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6844 allow_undefined_flag="-z nodefs"
6845 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"
6847 # Determine the default libpath from the value encoded in an empty executable.
6848 cat >conftest.$ac_ext <<_ACEOF
6851 cat confdefs.h >>conftest.$ac_ext
6852 cat >>conftest.$ac_ext <<_ACEOF
6853 /* end confdefs.h. */
6863 rm -f conftest.$ac_objext conftest$ac_exeext
6864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6865 (eval $ac_link) 2>conftest.er1
6867 grep -v '^ *+' conftest.er1 >conftest.err
6869 cat conftest.err >&5
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); } &&
6872 { ac_try='test -z "$ac_c_werror_flag"
6873 || test ! -s conftest.err'
6874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); }; } &&
6879 { ac_try='test -s conftest$ac_exeext'
6880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); }; }; then
6886 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6888 # Check for a 64-bit object if we didn't find anything.
6889 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; }
6892 echo "$as_me: failed program was:" >&5
6893 sed 's/^/| /' conftest.$ac_ext >&5
6896 rm -f conftest.err conftest.$ac_objext \
6897 conftest$ac_exeext conftest.$ac_ext
6898 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6900 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6901 # Warning - without using the other run time loading flags,
6902 # -berok will link without error, but may produce a broken library.
6903 no_undefined_flag=' ${wl}-bernotok'
6904 allow_undefined_flag=' ${wl}-berok'
6905 # -bexpall does not export symbols beginning with underscore (_)
6906 always_export_symbols=yes
6907 # Exported symbols can be pulled into shared objects from archives
6908 whole_archive_flag_spec=' '
6909 archive_cmds_need_lc=yes
6910 # This is similar to how AIX traditionally builds it's shared libraries.
6911 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'
6917 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)'
6918 hardcode_libdir_flag_spec='-L$libdir'
6919 hardcode_minus_L=yes
6920 # see comment about different semantics on the GNU ld section
6925 export_dynamic_flag_spec=-rdynamic
6928 cygwin* | mingw* | pw32*)
6929 # When not using gcc, we currently assume that we are using
6930 # Microsoft Visual C++.
6931 # hardcode_libdir_flag_spec is actually meaningless, as there is
6932 # no search path for DLLs.
6933 hardcode_libdir_flag_spec=' '
6934 allow_undefined_flag=unsupported
6935 # Tell ltmain to make .lib files, not .a files.
6937 # Tell ltmain to make .dll files, not .so files.
6939 # FIXME: Setting linknames here is a bad hack.
6940 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6941 # The linker will automatically build a .lib file if we build a DLL.
6942 old_archive_From_new_cmds='true'
6943 # FIXME: Should let the user specify the lib program.
6944 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6945 fix_srcfile_path='`cygpath -w "$srcfile"`'
6946 enable_shared_with_static_runtimes=yes
6949 darwin* | rhapsody*)
6951 rhapsody* | darwin1.[012])
6952 allow_undefined_flag='${wl}-undefined ${wl}suppress'
6955 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6956 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6958 case ${MACOSX_DEPLOYMENT_TARGET} in
6960 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6963 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6969 archive_cmds_need_lc=no
6971 hardcode_automatic=yes
6972 hardcode_shlibpath_var=unsupported
6973 whole_archive_flag_spec=''
6974 link_all_deplibs=yes
6975 if test "$GCC" = yes ; then
6976 output_verbose_link_cmd='echo'
6977 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6978 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6979 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6980 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6981 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6983 case "$cc_basename" in
6985 output_verbose_link_cmd='echo'
6986 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6987 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6988 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6989 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}'
6990 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}'
7000 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7001 hardcode_libdir_flag_spec='-L$libdir'
7002 hardcode_shlibpath_var=no
7009 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7010 # support. Future versions do this automatically, but an explicit c++rt0.o
7011 # does not break anything, and helps significantly (at the cost of a little
7014 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7015 hardcode_libdir_flag_spec='-R$libdir'
7017 hardcode_shlibpath_var=no
7020 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7022 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7024 hardcode_minus_L=yes
7025 hardcode_shlibpath_var=no
7028 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7029 freebsd* | kfreebsd*-gnu)
7030 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7031 hardcode_libdir_flag_spec='-R$libdir'
7033 hardcode_shlibpath_var=no
7037 if test "$GCC" = yes; then
7038 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'
7040 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'
7042 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7043 hardcode_libdir_separator=:
7046 # hardcode_minus_L: Not really in the search PATH,
7047 # but as the default location of the library.
7048 hardcode_minus_L=yes
7049 export_dynamic_flag_spec='${wl}-E'
7053 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7056 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7059 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7065 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7068 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7072 if test "$with_gnu_ld" = no; then
7075 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7076 hardcode_libdir_flag_spec_ld='+b $libdir'
7077 hardcode_libdir_separator=:
7079 hardcode_shlibpath_var=no
7082 hardcode_libdir_flag_spec='-L$libdir'
7084 hardcode_shlibpath_var=no
7086 # hardcode_minus_L: Not really in the search PATH,
7087 # but as the default location of the library.
7088 hardcode_minus_L=yes
7091 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7092 hardcode_libdir_separator=:
7094 export_dynamic_flag_spec='${wl}-E'
7096 # hardcode_minus_L: Not really in the search PATH,
7097 # but as the default location of the library.
7098 hardcode_minus_L=yes
7104 irix5* | irix6* | nonstopux*)
7105 if test "$GCC" = yes; then
7106 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'
7108 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'
7109 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7111 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7112 hardcode_libdir_separator=:
7113 link_all_deplibs=yes
7117 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7118 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7120 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7122 hardcode_libdir_flag_spec='-R$libdir'
7124 hardcode_shlibpath_var=no
7128 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7130 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7131 hardcode_libdir_separator=:
7132 hardcode_shlibpath_var=no
7137 hardcode_shlibpath_var=no
7138 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7139 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7140 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7141 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7142 export_dynamic_flag_spec='${wl}-E'
7145 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7146 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7147 hardcode_libdir_flag_spec='-R$libdir'
7150 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7151 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7158 hardcode_libdir_flag_spec='-L$libdir'
7159 hardcode_minus_L=yes
7160 allow_undefined_flag=unsupported
7161 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'
7162 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7166 if test "$GCC" = yes; then
7167 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7168 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'
7170 allow_undefined_flag=' -expect_unresolved \*'
7171 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'
7173 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7174 hardcode_libdir_separator=:
7177 osf4* | osf5*) # as osf3* with the addition of -msym flag
7178 if test "$GCC" = yes; then
7179 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7180 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'
7181 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7183 allow_undefined_flag=' -expect_unresolved \*'
7184 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'
7185 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7186 $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'
7188 # Both c and cxx compiler support -rpath directly
7189 hardcode_libdir_flag_spec='-rpath $libdir'
7191 hardcode_libdir_separator=:
7195 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7196 hardcode_shlibpath_var=no
7197 export_dynamic_flag_spec='${wl}-Bexport'
7198 runpath_var=LD_RUN_PATH
7199 hardcode_runpath_var=yes
7203 no_undefined_flag=' -z text'
7204 if test "$GCC" = yes; then
7205 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7206 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7207 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7209 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7210 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7211 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7213 hardcode_libdir_flag_spec='-R$libdir'
7214 hardcode_shlibpath_var=no
7216 solaris2.[0-5] | solaris2.[0-5].*) ;;
7217 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7218 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7220 link_all_deplibs=yes
7224 if test "x$host_vendor" = xsequent; then
7225 # Use $CC to link under sequent, because it throws in some extra .o
7226 # files that make .init and .fini sections work.
7227 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7229 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7231 hardcode_libdir_flag_spec='-L$libdir'
7233 hardcode_minus_L=yes
7234 hardcode_shlibpath_var=no
7238 case $host_vendor in
7240 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7241 hardcode_direct=yes # is this really true???
7244 ## LD is ld it makes a PLAMLIB
7245 ## CC just makes a GrossModule.
7246 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7247 reload_cmds='$CC -r -o $output$reload_objs'
7251 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7252 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7255 runpath_var='LD_RUN_PATH'
7256 hardcode_shlibpath_var=no
7260 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7261 hardcode_shlibpath_var=no
7262 export_dynamic_flag_spec='-Bexport'
7266 if test -d /usr/nec; then
7267 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7268 hardcode_shlibpath_var=no
7269 runpath_var=LD_RUN_PATH
7270 hardcode_runpath_var=yes
7276 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7279 hardcode_shlibpath_var=no
7280 hardcode_runpath_var=yes
7281 runpath_var=LD_RUN_PATH
7284 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7285 no_undefined_flag='${wl}-z ${wl}text'
7286 if test "$GCC" = yes; then
7287 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7289 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7291 runpath_var='LD_RUN_PATH'
7292 hardcode_shlibpath_var=no
7296 no_undefined_flag=' -z text'
7297 # $CC -shared without GNU ld will not create a library from C++
7298 # object files and a static libstdc++, better avoid it by now
7299 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7300 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7301 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7302 hardcode_libdir_flag_spec=
7303 hardcode_shlibpath_var=no
7304 runpath_var='LD_RUN_PATH'
7308 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7309 hardcode_libdir_flag_spec='-L$libdir'
7310 hardcode_shlibpath_var=no
7319 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7320 echo "${ECHO_T}$ld_shlibs" >&6
7321 test "$ld_shlibs" = no && can_build_shared=no
7323 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7324 if test "$GCC" = yes; then
7325 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7329 # Do we need to explicitly link libc?
7331 case "x$archive_cmds_need_lc" in
7333 # Assume -lc should be added
7334 archive_cmds_need_lc=yes
7336 if test "$enable_shared" = yes && test "$GCC" = yes; then
7337 case $archive_cmds in
7339 # FIXME: we may have to deal with multi-command sequences.
7342 # Test whether the compiler implicitly links with -lc since on some
7343 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7344 # to ld, don't add -lc before -lgcc.
7345 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7346 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7348 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7351 (eval $ac_compile) 2>&5
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); } 2>conftest.err; then
7357 libobjs=conftest.$ac_objext
7359 wl=$lt_prog_compiler_wl
7365 lt_save_allow_undefined_flag=$allow_undefined_flag
7366 allow_undefined_flag=
7367 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7368 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); }
7373 archive_cmds_need_lc=no
7375 archive_cmds_need_lc=yes
7377 allow_undefined_flag=$lt_save_allow_undefined_flag
7379 cat conftest.err 1>&5
7382 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7383 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7390 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7391 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7393 libname_spec='lib$name'
7401 shlibpath_overrides_runpath=unknown
7403 dynamic_linker="$host_os ld.so"
7404 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7405 if test "$GCC" = yes; then
7406 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7407 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7408 # if the path contains ";" then we assume it to be the separator
7409 # otherwise default to the standard path separator (i.e. ":") - it is
7410 # assumed that no part of a normal pathname contains ";" but that should
7411 # okay in the real world where ";" in dirpaths is itself problematic.
7412 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7414 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7417 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7419 need_lib_prefix=unknown
7420 hardcode_into_libs=no
7422 # when you set need_version to no, make sure it does not cause -set_version
7423 # flags to be left without arguments
7424 need_version=unknown
7429 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7430 shlibpath_var=LIBPATH
7432 # AIX 3 has no versioning support, so we append a major version to the name.
7433 soname_spec='${libname}${release}${shared_ext}$major'
7440 hardcode_into_libs=yes
7441 if test "$host_cpu" = ia64; then
7442 # AIX 5 supports IA64
7443 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7444 shlibpath_var=LD_LIBRARY_PATH
7446 # With GCC up to 2.95.x, collect2 would create an import file
7447 # for dependence libraries. The import file would start with
7448 # the line `#! .'. This would cause the generated library to
7449 # depend on `.', always an invalid library. This was fixed in
7450 # development snapshots of GCC prior to 3.0.
7452 aix4 | aix4.[01] | aix4.[01].*)
7453 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7455 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7462 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7463 # soname into executable. Probably we can add versioning support to
7464 # collect2, so additional links can be useful in future.
7465 if test "$aix_use_runtimelinking" = yes; then
7466 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7467 # instead of lib<name>.a to let people know that these are not
7468 # typical AIX shared libraries.
7469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7471 # We preserve .a as extension for shared libraries through AIX4.2
7472 # and later when we are not doing run time linking.
7473 library_names_spec='${libname}${release}.a $libname.a'
7474 soname_spec='${libname}${release}${shared_ext}$major'
7476 shlibpath_var=LIBPATH
7481 library_names_spec='$libname.ixlibrary $libname.a'
7482 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7483 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'
7487 library_names_spec='${libname}${shared_ext}'
7488 dynamic_linker="$host_os ld.so"
7489 shlibpath_var=LIBRARY_PATH
7495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7496 soname_spec='${libname}${release}${shared_ext}$major'
7497 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7498 shlibpath_var=LD_LIBRARY_PATH
7499 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7500 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7501 # the default ld.so.conf also contains /usr/contrib/lib and
7502 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7503 # libtool to hard-code these into programs
7506 cygwin* | mingw* | pw32*)
7507 version_type=windows
7512 case $GCC,$host_os in
7513 yes,cygwin* | yes,mingw* | yes,pw32*)
7514 library_names_spec='$libname.dll.a'
7515 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7516 postinstall_cmds='base_file=`basename \${file}`~
7517 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7518 dldir=$destdir/`dirname \$dlpath`~
7519 test -d \$dldir || mkdir -p \$dldir~
7520 $install_prog $dir/$dlname \$dldir/$dlname'
7521 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7522 dlpath=$dir/\$dldll~
7524 shlibpath_overrides_runpath=yes
7528 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7529 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7530 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7533 # MinGW DLLs use traditional 'lib' prefix
7534 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7535 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7536 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7537 # It is most probably a Windows format PATH printed by
7538 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7539 # path with ; separators, and with drive letters. We can handle the
7540 # drive letters (cygwin fileutils understands them), so leave them,
7541 # especially as we might pass files found there to a mingw objdump,
7542 # which wouldn't understand a cygwinified path. Ahh.
7543 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7545 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7549 # pw32 DLLs use 'pw' prefix rather than 'lib'
7550 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7556 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7559 dynamic_linker='Win32 ld.exe'
7560 # FIXME: first we should search . and the directory the executable is in
7564 darwin* | rhapsody*)
7565 dynamic_linker="$host_os dyld"
7569 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7570 soname_spec='${libname}${release}${major}$shared_ext'
7571 shlibpath_overrides_runpath=yes
7572 shlibpath_var=DYLD_LIBRARY_PATH
7573 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7574 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7575 if test "$GCC" = yes; then
7576 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"`
7578 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7580 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7588 soname_spec='${libname}${release}${shared_ext}$major'
7589 shlibpath_var=LD_LIBRARY_PATH
7600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7601 soname_spec='${libname}${release}${shared_ext}$major'
7602 shlibpath_var=LD_LIBRARY_PATH
7603 shlibpath_overrides_runpath=no
7604 hardcode_into_libs=yes
7605 dynamic_linker='GNU ld.so'
7609 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7610 version_type=freebsd-$objformat
7611 case $version_type in
7613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7618 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7622 shlibpath_var=LD_LIBRARY_PATH
7625 shlibpath_overrides_runpath=yes
7627 freebsd3.01* | freebsdelf3.01*)
7628 shlibpath_overrides_runpath=yes
7629 hardcode_into_libs=yes
7632 shlibpath_overrides_runpath=no
7633 hardcode_into_libs=yes
7642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7643 soname_spec='${libname}${release}${shared_ext}$major'
7644 shlibpath_var=LD_LIBRARY_PATH
7645 hardcode_into_libs=yes
7648 hpux9* | hpux10* | hpux11*)
7649 # Give a soname corresponding to the major version so that dld.sl refuses to
7650 # link against other versions.
7657 hardcode_into_libs=yes
7658 dynamic_linker="$host_os dld.so"
7659 shlibpath_var=LD_LIBRARY_PATH
7660 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7662 soname_spec='${libname}${release}${shared_ext}$major'
7663 if test "X$HPUX_IA64_MODE" = X32; then
7664 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7666 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7668 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7672 hardcode_into_libs=yes
7673 dynamic_linker="$host_os dld.sl"
7674 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7675 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7677 soname_spec='${libname}${release}${shared_ext}$major'
7678 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7679 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7683 dynamic_linker="$host_os dld.sl"
7684 shlibpath_var=SHLIB_PATH
7685 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7687 soname_spec='${libname}${release}${shared_ext}$major'
7690 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7691 postinstall_cmds='chmod 555 $lib'
7694 irix5* | irix6* | nonstopux*)
7696 nonstopux*) version_type=nonstopux ;;
7698 if test "$lt_cv_prog_gnu_ld" = yes; then
7706 soname_spec='${libname}${release}${shared_ext}$major'
7707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7709 irix5* | nonstopux*)
7713 case $LD in # libtool.m4 will add one of these switches to LD
7714 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7715 libsuff= shlibsuff= libmagic=32-bit;;
7716 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7717 libsuff=32 shlibsuff=N32 libmagic=N32;;
7718 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7719 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7720 *) libsuff= shlibsuff= libmagic=never-match;;
7724 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7725 shlibpath_overrides_runpath=no
7726 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7727 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7728 hardcode_into_libs=yes
7731 # No shared lib support for Linux oldld, aout, or coff.
7732 linux*oldld* | linux*aout* | linux*coff*)
7736 # This must be Linux ELF.
7741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7742 soname_spec='${libname}${release}${shared_ext}$major'
7743 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7744 shlibpath_var=LD_LIBRARY_PATH
7745 shlibpath_overrides_runpath=no
7746 # This implies no fast_install, which is unacceptable.
7747 # Some rework will be needed to allow for fast_install
7748 # before this can be enabled.
7749 hardcode_into_libs=yes
7751 # Append ld.so.conf contents to the search path
7752 if test -f /etc/ld.so.conf; then
7753 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7754 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7757 # We used to test for /lib/ld.so.1 and disable shared libraries on
7758 # powerpc, because MkLinux only supported shared libraries with the
7759 # GNU dynamic linker. Since this was broken with cross compilers,
7760 # most powerpc-linux boxes support dynamic linking these days and
7761 # people can always --disable-shared, the test was removed, and we
7762 # assume the GNU/Linux dynamic linker is in use.
7763 dynamic_linker='GNU/Linux ld.so'
7770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7771 soname_spec='${libname}${release}${shared_ext}$major'
7772 shlibpath_var=LD_LIBRARY_PATH
7773 shlibpath_overrides_runpath=no
7774 hardcode_into_libs=yes
7775 dynamic_linker='GNU ld.so'
7782 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7784 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7785 dynamic_linker='NetBSD (a.out) ld.so'
7787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7788 soname_spec='${libname}${release}${shared_ext}$major'
7789 dynamic_linker='NetBSD ld.elf_so'
7791 shlibpath_var=LD_LIBRARY_PATH
7792 shlibpath_overrides_runpath=yes
7793 hardcode_into_libs=yes
7798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7799 shlibpath_var=LD_LIBRARY_PATH
7800 shlibpath_overrides_runpath=yes
7807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7808 soname_spec='${libname}${release}${shared_ext}$major'
7809 shlibpath_var=LD_LIBRARY_PATH
7810 shlibpath_overrides_runpath=yes
7817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7818 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7819 shlibpath_var=LD_LIBRARY_PATH
7820 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7822 openbsd2.[89] | openbsd2.[89].*)
7823 shlibpath_overrides_runpath=no
7826 shlibpath_overrides_runpath=yes
7830 shlibpath_overrides_runpath=yes
7835 libname_spec='$name'
7838 library_names_spec='$libname${shared_ext} $libname.a'
7839 dynamic_linker='OS/2 ld.exe'
7840 shlibpath_var=LIBPATH
7843 osf3* | osf4* | osf5*)
7847 soname_spec='${libname}${release}${shared_ext}$major'
7848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7849 shlibpath_var=LD_LIBRARY_PATH
7850 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7851 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7856 soname_spec='${libname}${release}${shared_ext}$major'
7857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7858 shlibpath_var=LD_LIBRARY_PATH
7865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7866 soname_spec='${libname}${release}${shared_ext}$major'
7867 shlibpath_var=LD_LIBRARY_PATH
7868 shlibpath_overrides_runpath=yes
7869 hardcode_into_libs=yes
7870 # ldd complains unless libraries are executable
7871 postinstall_cmds='chmod +x $lib'
7876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7877 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7878 shlibpath_var=LD_LIBRARY_PATH
7879 shlibpath_overrides_runpath=yes
7880 if test "$with_gnu_ld" = yes; then
7886 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7889 soname_spec='${libname}${release}${shared_ext}$major'
7890 shlibpath_var=LD_LIBRARY_PATH
7891 case $host_vendor in
7893 shlibpath_overrides_runpath=no
7895 export_dynamic_flag_spec='${wl}-Blargedynsym'
7896 runpath_var=LD_RUN_PATH
7904 shlibpath_overrides_runpath=no
7905 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7911 if test -d /usr/nec ;then
7913 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7914 soname_spec='$libname${shared_ext}.$major'
7915 shlibpath_var=LD_LIBRARY_PATH
7921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7922 soname_spec='${libname}${release}${shared_ext}$major'
7923 shlibpath_var=LD_LIBRARY_PATH
7930 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7931 echo "${ECHO_T}$dynamic_linker" >&6
7932 test "$dynamic_linker" = no && can_build_shared=no
7934 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7935 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7937 if test -n "$hardcode_libdir_flag_spec" || \
7938 test -n "$runpath_var" || \
7939 test "X$hardcode_automatic" = "Xyes" ; then
7941 # We can hardcode non-existant directories.
7942 if test "$hardcode_direct" != no &&
7943 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7944 # have to relink, otherwise we might link with an installed library
7945 # when we should be linking with a yet-to-be-installed one
7946 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7947 test "$hardcode_minus_L" != no; then
7948 # Linking always hardcodes the temporary library directory.
7949 hardcode_action=relink
7951 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7952 hardcode_action=immediate
7955 # We cannot hardcode anything, or else we can only hardcode existing
7957 hardcode_action=unsupported
7959 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7960 echo "${ECHO_T}$hardcode_action" >&6
7962 if test "$hardcode_action" = relink; then
7963 # Fast installation is not supported
7964 enable_fast_install=no
7965 elif test "$shlibpath_overrides_runpath" = yes ||
7966 test "$enable_shared" = no; then
7967 # Fast installation is not necessary
7968 enable_fast_install=needless
7973 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7974 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7975 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7976 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7977 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7978 echo "$as_me:$LINENO: result: yes" >&5
7979 echo "${ECHO_T}yes" >&6
7981 # FIXME - insert some real tests, host_os isn't really good enough
7984 if test -n "$STRIP" ; then
7985 striplib="$STRIP -x"
7986 echo "$as_me:$LINENO: result: yes" >&5
7987 echo "${ECHO_T}yes" >&6
7989 echo "$as_me:$LINENO: result: no" >&5
7990 echo "${ECHO_T}no" >&6
7994 echo "$as_me:$LINENO: result: no" >&5
7995 echo "${ECHO_T}no" >&6
8000 if test "x$enable_dlopen" != xyes; then
8001 enable_dlopen=unknown
8002 enable_dlopen_self=unknown
8003 enable_dlopen_self_static=unknown
8010 lt_cv_dlopen="load_add_on"
8012 lt_cv_dlopen_self=yes
8016 lt_cv_dlopen="LoadLibrary"
8021 lt_cv_dlopen="dlopen"
8026 # if libdl is installed we need to link against it
8027 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8028 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8029 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8030 echo $ECHO_N "(cached) $ECHO_C" >&6
8032 ac_check_lib_save_LIBS=$LIBS
8034 cat >conftest.$ac_ext <<_ACEOF
8037 cat confdefs.h >>conftest.$ac_ext
8038 cat >>conftest.$ac_ext <<_ACEOF
8039 /* end confdefs.h. */
8041 /* Override any gcc2 internal prototype to avoid an error. */
8045 /* We use char because int might match the return type of a gcc2
8046 builtin and then its argument prototype would still apply. */
8056 rm -f conftest.$ac_objext conftest$ac_exeext
8057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8058 (eval $ac_link) 2>conftest.er1
8060 grep -v '^ *+' conftest.er1 >conftest.err
8062 cat conftest.err >&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); } &&
8065 { ac_try='test -z "$ac_c_werror_flag"
8066 || test ! -s conftest.err'
8067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; } &&
8072 { ac_try='test -s conftest$ac_exeext'
8073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); }; }; then
8078 ac_cv_lib_dl_dlopen=yes
8080 echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8083 ac_cv_lib_dl_dlopen=no
8085 rm -f conftest.err conftest.$ac_objext \
8086 conftest$ac_exeext conftest.$ac_ext
8087 LIBS=$ac_check_lib_save_LIBS
8089 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8090 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8091 if test $ac_cv_lib_dl_dlopen = yes; then
8092 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8097 lt_cv_dlopen_self=yes
8104 echo "$as_me:$LINENO: checking for shl_load" >&5
8105 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8106 if test "${ac_cv_func_shl_load+set}" = set; then
8107 echo $ECHO_N "(cached) $ECHO_C" >&6
8109 cat >conftest.$ac_ext <<_ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h. */
8115 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8117 #define shl_load innocuous_shl_load
8119 /* System header to define __stub macros and hopefully few prototypes,
8120 which can conflict with char shl_load (); below.
8121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8122 <limits.h> exists even on freestanding compilers. */
8125 # include <limits.h>
8127 # include <assert.h>
8132 /* Override any gcc2 internal prototype to avoid an error. */
8137 /* We use char because int might match the return type of a gcc2
8138 builtin and then its argument prototype would still apply. */
8140 /* The GNU C library defines this for functions which it implements
8141 to always fail with ENOSYS. Some functions are actually named
8142 something starting with __ and the normal name is an alias. */
8143 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8146 char (*f) () = shl_load;
8155 return f != shl_load;
8160 rm -f conftest.$ac_objext conftest$ac_exeext
8161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8162 (eval $ac_link) 2>conftest.er1
8164 grep -v '^ *+' conftest.er1 >conftest.err
8166 cat conftest.err >&5
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); } &&
8169 { ac_try='test -z "$ac_c_werror_flag"
8170 || test ! -s conftest.err'
8171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); }; } &&
8176 { ac_try='test -s conftest$ac_exeext'
8177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); }; }; then
8182 ac_cv_func_shl_load=yes
8184 echo "$as_me: failed program was:" >&5
8185 sed 's/^/| /' conftest.$ac_ext >&5
8187 ac_cv_func_shl_load=no
8189 rm -f conftest.err conftest.$ac_objext \
8190 conftest$ac_exeext conftest.$ac_ext
8192 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8193 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8194 if test $ac_cv_func_shl_load = yes; then
8195 lt_cv_dlopen="shl_load"
8197 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8198 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8199 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8200 echo $ECHO_N "(cached) $ECHO_C" >&6
8202 ac_check_lib_save_LIBS=$LIBS
8204 cat >conftest.$ac_ext <<_ACEOF
8207 cat confdefs.h >>conftest.$ac_ext
8208 cat >>conftest.$ac_ext <<_ACEOF
8209 /* end confdefs.h. */
8211 /* Override any gcc2 internal prototype to avoid an error. */
8215 /* We use char because int might match the return type of a gcc2
8216 builtin and then its argument prototype would still apply. */
8226 rm -f conftest.$ac_objext conftest$ac_exeext
8227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8228 (eval $ac_link) 2>conftest.er1
8230 grep -v '^ *+' conftest.er1 >conftest.err
8232 cat conftest.err >&5
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); } &&
8235 { ac_try='test -z "$ac_c_werror_flag"
8236 || test ! -s conftest.err'
8237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); }; } &&
8242 { ac_try='test -s conftest$ac_exeext'
8243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); }; }; then
8248 ac_cv_lib_dld_shl_load=yes
8250 echo "$as_me: failed program was:" >&5
8251 sed 's/^/| /' conftest.$ac_ext >&5
8253 ac_cv_lib_dld_shl_load=no
8255 rm -f conftest.err conftest.$ac_objext \
8256 conftest$ac_exeext conftest.$ac_ext
8257 LIBS=$ac_check_lib_save_LIBS
8259 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8260 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8261 if test $ac_cv_lib_dld_shl_load = yes; then
8262 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8264 echo "$as_me:$LINENO: checking for dlopen" >&5
8265 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8266 if test "${ac_cv_func_dlopen+set}" = set; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
8269 cat >conftest.$ac_ext <<_ACEOF
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h. */
8275 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8277 #define dlopen innocuous_dlopen
8279 /* System header to define __stub macros and hopefully few prototypes,
8280 which can conflict with char dlopen (); below.
8281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8282 <limits.h> exists even on freestanding compilers. */
8285 # include <limits.h>
8287 # include <assert.h>
8292 /* Override any gcc2 internal prototype to avoid an error. */
8297 /* We use char because int might match the return type of a gcc2
8298 builtin and then its argument prototype would still apply. */
8300 /* The GNU C library defines this for functions which it implements
8301 to always fail with ENOSYS. Some functions are actually named
8302 something starting with __ and the normal name is an alias. */
8303 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8306 char (*f) () = dlopen;
8320 rm -f conftest.$ac_objext conftest$ac_exeext
8321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8322 (eval $ac_link) 2>conftest.er1
8324 grep -v '^ *+' conftest.er1 >conftest.err
8326 cat conftest.err >&5
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); } &&
8329 { ac_try='test -z "$ac_c_werror_flag"
8330 || test ! -s conftest.err'
8331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); }; } &&
8336 { ac_try='test -s conftest$ac_exeext'
8337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); }; }; then
8342 ac_cv_func_dlopen=yes
8344 echo "$as_me: failed program was:" >&5
8345 sed 's/^/| /' conftest.$ac_ext >&5
8347 ac_cv_func_dlopen=no
8349 rm -f conftest.err conftest.$ac_objext \
8350 conftest$ac_exeext conftest.$ac_ext
8352 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8353 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8354 if test $ac_cv_func_dlopen = yes; then
8355 lt_cv_dlopen="dlopen"
8357 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8358 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8359 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8360 echo $ECHO_N "(cached) $ECHO_C" >&6
8362 ac_check_lib_save_LIBS=$LIBS
8364 cat >conftest.$ac_ext <<_ACEOF
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h. */
8371 /* Override any gcc2 internal prototype to avoid an error. */
8375 /* We use char because int might match the return type of a gcc2
8376 builtin and then its argument prototype would still apply. */
8386 rm -f conftest.$ac_objext conftest$ac_exeext
8387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8388 (eval $ac_link) 2>conftest.er1
8390 grep -v '^ *+' conftest.er1 >conftest.err
8392 cat conftest.err >&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); } &&
8395 { ac_try='test -z "$ac_c_werror_flag"
8396 || test ! -s conftest.err'
8397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); }; } &&
8402 { ac_try='test -s conftest$ac_exeext'
8403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); }; }; then
8408 ac_cv_lib_dl_dlopen=yes
8410 echo "$as_me: failed program was:" >&5
8411 sed 's/^/| /' conftest.$ac_ext >&5
8413 ac_cv_lib_dl_dlopen=no
8415 rm -f conftest.err conftest.$ac_objext \
8416 conftest$ac_exeext conftest.$ac_ext
8417 LIBS=$ac_check_lib_save_LIBS
8419 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8420 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8421 if test $ac_cv_lib_dl_dlopen = yes; then
8422 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8424 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8425 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8426 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8427 echo $ECHO_N "(cached) $ECHO_C" >&6
8429 ac_check_lib_save_LIBS=$LIBS
8431 cat >conftest.$ac_ext <<_ACEOF
8434 cat confdefs.h >>conftest.$ac_ext
8435 cat >>conftest.$ac_ext <<_ACEOF
8436 /* end confdefs.h. */
8438 /* Override any gcc2 internal prototype to avoid an error. */
8442 /* We use char because int might match the return type of a gcc2
8443 builtin and then its argument prototype would still apply. */
8453 rm -f conftest.$ac_objext conftest$ac_exeext
8454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8455 (eval $ac_link) 2>conftest.er1
8457 grep -v '^ *+' conftest.er1 >conftest.err
8459 cat conftest.err >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } &&
8462 { ac_try='test -z "$ac_c_werror_flag"
8463 || test ! -s conftest.err'
8464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); }; } &&
8469 { ac_try='test -s conftest$ac_exeext'
8470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); }; }; then
8475 ac_cv_lib_svld_dlopen=yes
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8480 ac_cv_lib_svld_dlopen=no
8482 rm -f conftest.err conftest.$ac_objext \
8483 conftest$ac_exeext conftest.$ac_ext
8484 LIBS=$ac_check_lib_save_LIBS
8486 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8487 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8488 if test $ac_cv_lib_svld_dlopen = yes; then
8489 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8491 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8492 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8493 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
8496 ac_check_lib_save_LIBS=$LIBS
8498 cat >conftest.$ac_ext <<_ACEOF
8501 cat confdefs.h >>conftest.$ac_ext
8502 cat >>conftest.$ac_ext <<_ACEOF
8503 /* end confdefs.h. */
8505 /* Override any gcc2 internal prototype to avoid an error. */
8509 /* We use char because int might match the return type of a gcc2
8510 builtin and then its argument prototype would still apply. */
8520 rm -f conftest.$ac_objext conftest$ac_exeext
8521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8522 (eval $ac_link) 2>conftest.er1
8524 grep -v '^ *+' conftest.er1 >conftest.err
8526 cat conftest.err >&5
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); } &&
8529 { ac_try='test -z "$ac_c_werror_flag"
8530 || test ! -s conftest.err'
8531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; } &&
8536 { ac_try='test -s conftest$ac_exeext'
8537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); }; }; then
8542 ac_cv_lib_dld_dld_link=yes
8544 echo "$as_me: failed program was:" >&5
8545 sed 's/^/| /' conftest.$ac_ext >&5
8547 ac_cv_lib_dld_dld_link=no
8549 rm -f conftest.err conftest.$ac_objext \
8550 conftest$ac_exeext conftest.$ac_ext
8551 LIBS=$ac_check_lib_save_LIBS
8553 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8554 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8555 if test $ac_cv_lib_dld_dld_link = yes; then
8556 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8577 if test "x$lt_cv_dlopen" != xno; then
8583 case $lt_cv_dlopen in
8585 save_CPPFLAGS="$CPPFLAGS"
8586 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8588 save_LDFLAGS="$LDFLAGS"
8589 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8592 LIBS="$lt_cv_dlopen_libs $LIBS"
8594 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8595 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8596 if test "${lt_cv_dlopen_self+set}" = set; then
8597 echo $ECHO_N "(cached) $ECHO_C" >&6
8599 if test "$cross_compiling" = yes; then :
8600 lt_cv_dlopen_self=cross
8602 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8603 lt_status=$lt_dlunknown
8604 cat > conftest.$ac_ext <<EOF
8605 #line 8605 "configure"
8606 #include "confdefs.h"
8615 # define LT_DLGLOBAL RTLD_GLOBAL
8618 # define LT_DLGLOBAL DL_GLOBAL
8620 # define LT_DLGLOBAL 0
8624 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8625 find out it does not work in some platform. */
8626 #ifndef LT_DLLAZY_OR_NOW
8628 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8631 # define LT_DLLAZY_OR_NOW DL_LAZY
8634 # define LT_DLLAZY_OR_NOW RTLD_NOW
8637 # define LT_DLLAZY_OR_NOW DL_NOW
8639 # define LT_DLLAZY_OR_NOW 0
8647 extern "C" void exit (int);
8650 void fnord() { int i=42;}
8653 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8654 int status = $lt_dlunknown;
8658 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8659 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8660 /* dlclose (self); */
8666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8667 (eval $ac_link) 2>&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8671 (./conftest; exit; ) 2>/dev/null
8674 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8675 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8676 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8679 # compilation failed
8680 lt_cv_dlopen_self=no
8687 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8688 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8690 if test "x$lt_cv_dlopen_self" = xyes; then
8691 LDFLAGS="$LDFLAGS $link_static_flag"
8692 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8693 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8694 if test "${lt_cv_dlopen_self_static+set}" = set; then
8695 echo $ECHO_N "(cached) $ECHO_C" >&6
8697 if test "$cross_compiling" = yes; then :
8698 lt_cv_dlopen_self_static=cross
8700 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8701 lt_status=$lt_dlunknown
8702 cat > conftest.$ac_ext <<EOF
8703 #line 8703 "configure"
8704 #include "confdefs.h"
8713 # define LT_DLGLOBAL RTLD_GLOBAL
8716 # define LT_DLGLOBAL DL_GLOBAL
8718 # define LT_DLGLOBAL 0
8722 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8723 find out it does not work in some platform. */
8724 #ifndef LT_DLLAZY_OR_NOW
8726 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8729 # define LT_DLLAZY_OR_NOW DL_LAZY
8732 # define LT_DLLAZY_OR_NOW RTLD_NOW
8735 # define LT_DLLAZY_OR_NOW DL_NOW
8737 # define LT_DLLAZY_OR_NOW 0
8745 extern "C" void exit (int);
8748 void fnord() { int i=42;}
8751 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8752 int status = $lt_dlunknown;
8756 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8757 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8758 /* dlclose (self); */
8764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8765 (eval $ac_link) 2>&5
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8769 (./conftest; exit; ) 2>/dev/null
8772 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8773 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8774 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8777 # compilation failed
8778 lt_cv_dlopen_self_static=no
8785 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8786 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8789 CPPFLAGS="$save_CPPFLAGS"
8790 LDFLAGS="$save_LDFLAGS"
8795 case $lt_cv_dlopen_self in
8796 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8797 *) enable_dlopen_self=unknown ;;
8800 case $lt_cv_dlopen_self_static in
8801 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8802 *) enable_dlopen_self_static=unknown ;;
8807 # Report which librarie types wil actually be built
8808 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8809 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8810 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8811 echo "${ECHO_T}$can_build_shared" >&6
8813 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8814 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8815 test "$can_build_shared" = "no" && enable_shared=no
8817 # On AIX, shared libraries and static libraries use the same namespace, and
8818 # are all built from PIC.
8821 test "$enable_shared" = yes && enable_static=no
8822 if test -n "$RANLIB"; then
8823 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8824 postinstall_cmds='$RANLIB $lib'
8829 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8830 test "$enable_shared" = yes && enable_static=no
8834 echo "$as_me:$LINENO: result: $enable_shared" >&5
8835 echo "${ECHO_T}$enable_shared" >&6
8837 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8838 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8839 # Make sure either enable_shared or enable_static is yes.
8840 test "$enable_shared" = yes || enable_static=yes
8841 echo "$as_me:$LINENO: result: $enable_static" >&5
8842 echo "${ECHO_T}$enable_static" >&6
8844 # The else clause should only fire when bootstrapping the
8845 # libtool distribution, otherwise you forgot to ship ltmain.sh
8846 # with your package, and you will get complaints that there are
8847 # no rules to generate ltmain.sh.
8848 if test -f "$ltmain"; then
8849 # See if we are running on zsh, and set the options which allow our commands through
8850 # without removal of \ escapes.
8851 if test -n "${ZSH_VERSION+set}" ; then
8852 setopt NO_GLOB_SUBST
8854 # Now quote all the things that may contain metacharacters while being
8855 # careful not to overquote the AC_SUBSTed values. We take copies of the
8856 # variables and quote the copies for generation of the libtool script.
8857 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8859 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8860 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8861 deplibs_check_method reload_flag reload_cmds need_locks \
8862 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8863 lt_cv_sys_global_symbol_to_c_name_address \
8864 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8865 old_postinstall_cmds old_postuninstall_cmds \
8869 lt_prog_compiler_wl \
8870 lt_prog_compiler_pic \
8871 lt_prog_compiler_static \
8872 lt_prog_compiler_no_builtin_flag \
8873 export_dynamic_flag_spec \
8874 thread_safe_flag_spec \
8875 whole_archive_flag_spec \
8876 enable_shared_with_static_runtimes \
8878 old_archive_from_new_cmds \
8883 compiler_lib_search_path \
8885 archive_expsym_cmds \
8887 postuninstall_cmds \
8888 old_archive_from_expsyms_cmds \
8889 allow_undefined_flag \
8891 export_symbols_cmds \
8892 hardcode_libdir_flag_spec \
8893 hardcode_libdir_flag_spec_ld \
8894 hardcode_libdir_separator \
8895 hardcode_automatic \
8897 module_expsym_cmds \
8898 lt_cv_prog_compiler_c_o \
8903 old_archive_cmds | \
8904 old_archive_from_new_cmds | \
8906 archive_expsym_cmds | \
8908 module_expsym_cmds | \
8909 old_archive_from_expsyms_cmds | \
8910 export_symbols_cmds | \
8911 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8912 postinstall_cmds | postuninstall_cmds | \
8913 old_postinstall_cmds | old_postuninstall_cmds | \
8914 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8915 # Double-quote double-evaled strings.
8916 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8919 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8925 *'\$0 --fallback-echo"')
8926 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8931 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8933 { echo "$as_me:$LINENO: creating $ofile" >&5
8934 echo "$as_me: creating $ofile" >&6;}
8936 cat <<__EOF__ >> "$cfgfile"
8939 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8940 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8941 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8943 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8944 # Free Software Foundation, Inc.
8946 # This file is part of GNU Libtool:
8947 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8949 # This program is free software; you can redistribute it and/or modify
8950 # it under the terms of the GNU General Public License as published by
8951 # the Free Software Foundation; either version 2 of the License, or
8952 # (at your option) any later version.
8954 # This program is distributed in the hope that it will be useful, but
8955 # WITHOUT ANY WARRANTY; without even the implied warranty of
8956 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8957 # General Public License for more details.
8959 # You should have received a copy of the GNU General Public License
8960 # along with this program; if not, write to the Free Software
8961 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8963 # As a special exception to the GNU General Public License, if you
8964 # distribute this file as part of a program that contains a
8965 # configuration script generated by Autoconf, you may include it under
8966 # the same distribution terms that you use for the rest of that program.
8968 # A sed program that does not truncate output.
8971 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8972 Xsed="$SED -e s/^X//"
8974 # The HP-UX ksh and POSIX shell print the target directory to stdout
8976 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8978 # The names of the tagged configurations supported by this script.
8981 # ### BEGIN LIBTOOL CONFIG
8983 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8985 # Shell to use when invoking shell scripts.
8988 # Whether or not to build shared libraries.
8989 build_libtool_libs=$enable_shared
8991 # Whether or not to build static libraries.
8992 build_old_libs=$enable_static
8994 # Whether or not to add -lc for building shared libraries.
8995 build_libtool_need_lc=$archive_cmds_need_lc
8997 # Whether or not to disallow shared libs when runtime libs are static
8998 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9000 # Whether or not to optimize for fast installation.
9001 fast_install=$enable_fast_install
9004 host_alias=$host_alias
9007 # An echo program that does not interpret backslashes.
9012 AR_FLAGS=$lt_AR_FLAGS
9017 # A language-specific compiler.
9020 # Is the compiler the GNU C compiler?
9026 # The linker used to build libraries.
9029 # Whether we need hard or soft links.
9032 # A BSD-compatible nm program.
9035 # A symbol stripping program
9038 # Used to examine libraries when file_magic_cmd begins "file"
9039 MAGIC_CMD=$MAGIC_CMD
9041 # Used on cygwin: DLL creation program.
9044 # Used on cygwin: object dumper.
9047 # Used on cygwin: assembler.
9050 # The name of the directory that contains temporary libtool files.
9053 # How to create reloadable object files.
9054 reload_flag=$lt_reload_flag
9055 reload_cmds=$lt_reload_cmds
9057 # How to pass a linker flag through the compiler.
9058 wl=$lt_lt_prog_compiler_wl
9060 # Object file suffix (normally "o").
9063 # Old archive suffix (normally "a").
9066 # Shared library suffix (normally ".so").
9067 shrext_cmds='$shrext_cmds'
9069 # Executable file suffix (normally "").
9072 # Additional compiler flags for building library objects.
9073 pic_flag=$lt_lt_prog_compiler_pic
9076 # What is the maximum length of a command?
9077 max_cmd_len=$lt_cv_sys_max_cmd_len
9079 # Does compiler simultaneously support -c and -o options?
9080 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9082 # Must we lock files when doing compilation ?
9083 need_locks=$lt_need_locks
9085 # Do we need the lib prefix for modules?
9086 need_lib_prefix=$need_lib_prefix
9088 # Do we need a version for libraries?
9089 need_version=$need_version
9091 # Whether dlopen is supported.
9092 dlopen_support=$enable_dlopen
9094 # Whether dlopen of programs is supported.
9095 dlopen_self=$enable_dlopen_self
9097 # Whether dlopen of statically linked programs is supported.
9098 dlopen_self_static=$enable_dlopen_self_static
9100 # Compiler flag to prevent dynamic linking.
9101 link_static_flag=$lt_lt_prog_compiler_static
9103 # Compiler flag to turn off builtin functions.
9104 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9106 # Compiler flag to allow reflexive dlopens.
9107 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9109 # Compiler flag to generate shared objects directly from archives.
9110 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9112 # Compiler flag to generate thread-safe objects.
9113 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9115 # Library versioning type.
9116 version_type=$version_type
9118 # Format of library name prefix.
9119 libname_spec=$lt_libname_spec
9121 # List of archive names. First name is the real one, the rest are links.
9122 # The last name is the one that the linker finds with -lNAME.
9123 library_names_spec=$lt_library_names_spec
9125 # The coded name of the library, if different from the real name.
9126 soname_spec=$lt_soname_spec
9128 # Commands used to build and install an old-style archive.
9130 old_archive_cmds=$lt_old_archive_cmds
9131 old_postinstall_cmds=$lt_old_postinstall_cmds
9132 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9134 # Create an old-style archive from a shared archive.
9135 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9137 # Create a temporary old-style archive to link instead of a shared archive.
9138 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9140 # Commands used to build and install a shared archive.
9141 archive_cmds=$lt_archive_cmds
9142 archive_expsym_cmds=$lt_archive_expsym_cmds
9143 postinstall_cmds=$lt_postinstall_cmds
9144 postuninstall_cmds=$lt_postuninstall_cmds
9146 # Commands used to build a loadable module (assumed same as above if empty)
9147 module_cmds=$lt_module_cmds
9148 module_expsym_cmds=$lt_module_expsym_cmds
9150 # Commands to strip libraries.
9151 old_striplib=$lt_old_striplib
9152 striplib=$lt_striplib
9154 # Dependencies to place before the objects being linked to create a
9156 predep_objects=$lt_predep_objects
9158 # Dependencies to place after the objects being linked to create a
9160 postdep_objects=$lt_postdep_objects
9162 # Dependencies to place before the objects being linked to create a
9166 # Dependencies to place after the objects being linked to create a
9168 postdeps=$lt_postdeps
9170 # The library search path used internally by the compiler when linking
9172 compiler_lib_search_path=$lt_compiler_lib_search_path
9174 # Method to check whether dependent libraries are shared objects.
9175 deplibs_check_method=$lt_deplibs_check_method
9177 # Command to use when deplibs_check_method == file_magic.
9178 file_magic_cmd=$lt_file_magic_cmd
9180 # Flag that allows shared libraries with undefined symbols to be built.
9181 allow_undefined_flag=$lt_allow_undefined_flag
9183 # Flag that forces no undefined symbols.
9184 no_undefined_flag=$lt_no_undefined_flag
9186 # Commands used to finish a libtool library installation in a directory.
9187 finish_cmds=$lt_finish_cmds
9189 # Same as above, but a single script fragment to be evaled but not shown.
9190 finish_eval=$lt_finish_eval
9192 # Take the output of nm and produce a listing of raw symbols and C names.
9193 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9195 # Transform the output of nm in a proper C declaration
9196 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9198 # Transform the output of nm in a C name address pair
9199 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9201 # This is the shared library runtime path variable.
9202 runpath_var=$runpath_var
9204 # This is the shared library path variable.
9205 shlibpath_var=$shlibpath_var
9207 # Is shlibpath searched before the hard-coded library search path?
9208 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9210 # How to hardcode a shared library path into an executable.
9211 hardcode_action=$hardcode_action
9213 # Whether we should hardcode library paths into libraries.
9214 hardcode_into_libs=$hardcode_into_libs
9216 # Flag to hardcode \$libdir into a binary during linking.
9217 # This must work even if \$libdir does not exist.
9218 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9220 # If ld is used when linking, flag to hardcode \$libdir into
9221 # a binary during linking. This must work even if \$libdir does
9223 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9225 # Whether we need a single -rpath flag with a separated argument.
9226 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9228 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9230 hardcode_direct=$hardcode_direct
9232 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9234 hardcode_minus_L=$hardcode_minus_L
9236 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9237 # the resulting binary.
9238 hardcode_shlibpath_var=$hardcode_shlibpath_var
9240 # Set to yes if building a shared library automatically hardcodes DIR into the library
9241 # and all subsequent libraries and executables linked against it.
9242 hardcode_automatic=$hardcode_automatic
9244 # Variables whose values should be saved in libtool wrapper scripts and
9245 # restored at relink time.
9246 variables_saved_for_relink="$variables_saved_for_relink"
9248 # Whether libtool must link a program against all its dependency libraries.
9249 link_all_deplibs=$link_all_deplibs
9251 # Compile-time system search path for libraries
9252 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9254 # Run-time system search path for libraries
9255 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9257 # Fix the shell variable \$srcfile for the compiler.
9258 fix_srcfile_path="$fix_srcfile_path"
9260 # Set to yes if exported symbols are required.
9261 always_export_symbols=$always_export_symbols
9263 # The commands to list exported symbols.
9264 export_symbols_cmds=$lt_export_symbols_cmds
9266 # The commands to extract the exported symbol list from a shared archive.
9267 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9269 # Symbols that should not be listed in the preloaded symbols.
9270 exclude_expsyms=$lt_exclude_expsyms
9272 # Symbols that must always be exported.
9273 include_expsyms=$lt_include_expsyms
9275 # ### END LIBTOOL CONFIG
9282 cat <<\EOF >> "$cfgfile"
9284 # AIX sometimes has problems with the GCC collect2 program. For some
9285 # reason, if we set the COLLECT_NAMES environment variable, the problems
9286 # vanish in a puff of smoke.
9287 if test "X${COLLECT_NAMES+set}" != Xset; then
9289 export COLLECT_NAMES
9295 # We use sed instead of cat because bash on DJGPP gets confused if
9296 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9297 # text mode, it properly converts lines to CR/LF. This bash problem
9298 # is reportedly fixed, but why not run on old versions too?
9299 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9301 mv -f "$cfgfile" "$ofile" || \
9302 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9306 # If there is no Makefile yet, we rely on a make rule to execute
9307 # `config.status --recheck' to rerun these tests and create the
9308 # libtool script then.
9309 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9310 if test -f "$ltmain_in"; then
9311 test -f Makefile && make "$ltmain"
9317 ac_cpp='$CPP $CPPFLAGS'
9318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9325 # Check whether --with-tags or --without-tags was given.
9326 if test "${with_tags+set}" = set; then
9327 withval="$with_tags"
9331 if test -f "$ltmain" && test -n "$tagnames"; then
9332 if test ! -f "${ofile}"; then
9333 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9334 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9337 if test -z "$LTCC"; then
9338 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9339 if test -z "$LTCC"; then
9340 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9341 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9343 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9344 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9348 # Extract list of available tagged configurations in $ofile.
9349 # Note that this assumes the entire list is on one line.
9350 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9352 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9353 for tagname in $tagnames; do
9355 # Check whether tagname contains only valid characters
9356 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9358 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9359 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9360 { (exit 1); exit 1; }; }
9364 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9366 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9367 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9368 { (exit 1); exit 1; }; }
9371 # Update the list of available tags.
9372 if test -n "$tagname"; then
9373 echo appending configuration tag "$tagname" to $ofile
9377 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9378 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9379 (test "X$CXX" != "Xg++"))) ; then
9381 ac_cpp='$CXXCPP $CPPFLAGS'
9382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9389 archive_cmds_need_lc_CXX=no
9390 allow_undefined_flag_CXX=
9391 always_export_symbols_CXX=no
9392 archive_expsym_cmds_CXX=
9393 export_dynamic_flag_spec_CXX=
9394 hardcode_direct_CXX=no
9395 hardcode_libdir_flag_spec_CXX=
9396 hardcode_libdir_flag_spec_ld_CXX=
9397 hardcode_libdir_separator_CXX=
9398 hardcode_minus_L_CXX=no
9399 hardcode_automatic_CXX=no
9401 module_expsym_cmds_CXX=
9402 link_all_deplibs_CXX=unknown
9403 old_archive_cmds_CXX=$old_archive_cmds
9404 no_undefined_flag_CXX=
9405 whole_archive_flag_spec_CXX=
9406 enable_shared_with_static_runtimes_CXX=no
9408 # Dependencies to place before and after the object being linked:
9410 postdep_objects_CXX=
9413 compiler_lib_search_path_CXX=
9415 # Source file extension for C++ test sources.
9418 # Object file extension for compiled C++ test sources.
9422 # Code to be used in simple compile tests
9423 lt_simple_compile_test_code="int some_variable = 0;\n"
9425 # Code to be used in simple link tests
9426 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9428 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9430 # If no C compiler was specified, use CC.
9433 # Allow CC to be a program name with arguments.
9437 # Allow CC to be a program name with arguments.
9442 lt_save_with_gnu_ld=$with_gnu_ld
9443 lt_save_path_LD=$lt_cv_path_LD
9444 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9445 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9447 unset lt_cv_prog_gnu_ld
9449 if test -n "${lt_cv_path_LDCXX+set}"; then
9450 lt_cv_path_LD=$lt_cv_path_LDCXX
9454 test -z "${LDCXX+set}" || LD=$LDCXX
9458 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9460 # We don't want -fno-exception wen compiling C++ code, so set the
9461 # no_builtin_flag separately
9462 if test "$GXX" = yes; then
9463 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9465 lt_prog_compiler_no_builtin_flag_CXX=
9468 if test "$GXX" = yes; then
9469 # Set up default GNU C++ configuration
9472 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9473 if test "${with_gnu_ld+set}" = set; then
9474 withval="$with_gnu_ld"
9475 test "$withval" = no || with_gnu_ld=yes
9480 if test "$GCC" = yes; then
9481 # Check if gcc -print-prog-name=ld gives a path.
9482 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9483 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9486 # gcc leaves a trailing carriage return which upsets mingw
9487 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9489 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9492 # Accept absolute paths.
9494 re_direlt='/[^/][^/]*/\.\./'
9495 # Canonicalize the pathname of ld
9496 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9497 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9498 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9500 test -z "$LD" && LD="$ac_prog"
9503 # If it fails, then pretend we aren't using GCC.
9507 # If it is relative, then search for the first ld in PATH.
9511 elif test "$with_gnu_ld" = yes; then
9512 echo "$as_me:$LINENO: checking for GNU ld" >&5
9513 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9515 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9516 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9518 if test "${lt_cv_path_LD+set}" = set; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9521 if test -z "$LD"; then
9522 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9523 for ac_dir in $PATH; do
9525 test -z "$ac_dir" && ac_dir=.
9526 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9527 lt_cv_path_LD="$ac_dir/$ac_prog"
9528 # Check to see if the program is GNU ld. I'd rather use --version,
9529 # but apparently some GNU ld's only accept -v.
9530 # Break only if it was the GNU/non-GNU ld that we prefer.
9531 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9532 *GNU* | *'with BFD'*)
9533 test "$with_gnu_ld" != no && break
9536 test "$with_gnu_ld" != yes && break
9543 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9548 if test -n "$LD"; then
9549 echo "$as_me:$LINENO: result: $LD" >&5
9550 echo "${ECHO_T}$LD" >&6
9552 echo "$as_me:$LINENO: result: no" >&5
9553 echo "${ECHO_T}no" >&6
9555 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9556 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9557 { (exit 1); exit 1; }; }
9558 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9559 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9560 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9561 echo $ECHO_N "(cached) $ECHO_C" >&6
9563 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9564 case `$LD -v 2>&1 </dev/null` in
9565 *GNU* | *'with BFD'*)
9566 lt_cv_prog_gnu_ld=yes
9569 lt_cv_prog_gnu_ld=no
9573 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9574 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9575 with_gnu_ld=$lt_cv_prog_gnu_ld
9579 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9580 # archiving commands below assume that GNU ld is being used.
9581 if test "$with_gnu_ld" = yes; then
9582 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9583 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'
9585 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9586 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9588 # If archive_cmds runs LD, not CC, wlarc should be empty
9589 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9590 # investigate it a little bit more. (MM)
9593 # ancient GNU ld didn't support --whole-archive et. al.
9594 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9595 grep 'no-whole-archive' > /dev/null; then
9596 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9598 whole_archive_flag_spec_CXX=
9604 # A generic and very simple default shared library creation
9605 # command for GNU C++ for the case where it uses the native
9606 # linker, instead of GNU ld. If possible, this setting should
9607 # overridden to take advantage of the native linker features on
9608 # the platform it is being used on.
9609 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9612 # Commands to make compiler produce verbose output that lists
9613 # what "hidden" libraries, object files and flags are used when
9614 # linking a shared library.
9615 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9623 # PORTME: fill in a description of your system's C++ link characteristics
9624 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9625 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9629 # FIXME: insert proper C++ library support
9633 if test "$host_cpu" = ia64; then
9634 # On IA64, the linker does run time linking by default, so we don't
9635 # have to do anything special.
9636 aix_use_runtimelinking=no
9637 exp_sym_flag='-Bexport'
9640 aix_use_runtimelinking=no
9642 # Test if we are trying to use run time linking or normal
9643 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9644 # need to do runtime linking.
9645 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9646 for ld_flag in $LDFLAGS; do
9649 aix_use_runtimelinking=yes
9656 exp_sym_flag='-bexport'
9657 no_entry_flag='-bnoentry'
9660 # When large executables or shared objects are built, AIX ld can
9661 # have problems creating the table of contents. If linking a library
9662 # or program results in "error TOC overflow" add -mminimal-toc to
9663 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9664 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9667 hardcode_direct_CXX=yes
9668 hardcode_libdir_separator_CXX=':'
9669 link_all_deplibs_CXX=yes
9671 if test "$GXX" = yes; then
9672 case $host_os in aix4.012|aix4.012.*)
9673 # We only want to do this on AIX 4.2 and lower, the check
9674 # below for broken collect2 doesn't work under 4.3+
9675 collect2name=`${CC} -print-prog-name=collect2`
9676 if test -f "$collect2name" && \
9677 strings "$collect2name" | grep resolve_lib_name >/dev/null
9679 # We have reworked collect2
9680 hardcode_direct_CXX=yes
9682 # We have old collect2
9683 hardcode_direct_CXX=unsupported
9684 # It fails to find uninstalled libraries when the uninstalled
9685 # path is not listed in the libpath. Setting hardcode_minus_L
9686 # to unsupported forces relinking
9687 hardcode_minus_L_CXX=yes
9688 hardcode_libdir_flag_spec_CXX='-L$libdir'
9689 hardcode_libdir_separator_CXX=
9692 shared_flag='-shared'
9695 if test "$host_cpu" = ia64; then
9696 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9697 # chokes on -Wl,-G. The following line is correct:
9700 if test "$aix_use_runtimelinking" = yes; then
9701 shared_flag='${wl}-G'
9703 shared_flag='${wl}-bM:SRE'
9708 # It seems that -bexpall does not export symbols beginning with
9709 # underscore (_), so it is better to generate a list of symbols to export.
9710 always_export_symbols_CXX=yes
9711 if test "$aix_use_runtimelinking" = yes; then
9712 # Warning - without using the other runtime loading flags (-brtl),
9713 # -berok will link without error, but may produce a broken library.
9714 allow_undefined_flag_CXX='-berok'
9715 # Determine the default libpath from the value encoded in an empty executable.
9716 cat >conftest.$ac_ext <<_ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h. */
9731 rm -f conftest.$ac_objext conftest$ac_exeext
9732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9733 (eval $ac_link) 2>conftest.er1
9735 grep -v '^ *+' conftest.er1 >conftest.err
9737 cat conftest.err >&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); } &&
9740 { ac_try='test -z "$ac_cxx_werror_flag"
9741 || test ! -s conftest.err'
9742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; } &&
9747 { ac_try='test -s conftest$ac_exeext'
9748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); }; }; then
9754 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9756 # Check for a 64-bit object if we didn't find anything.
9757 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; }
9760 echo "$as_me: failed program was:" >&5
9761 sed 's/^/| /' conftest.$ac_ext >&5
9764 rm -f conftest.err conftest.$ac_objext \
9765 conftest$ac_exeext conftest.$ac_ext
9766 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9768 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9770 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"
9772 if test "$host_cpu" = ia64; then
9773 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9774 allow_undefined_flag_CXX="-z nodefs"
9775 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"
9777 # Determine the default libpath from the value encoded in an empty executable.
9778 cat >conftest.$ac_ext <<_ACEOF
9781 cat confdefs.h >>conftest.$ac_ext
9782 cat >>conftest.$ac_ext <<_ACEOF
9783 /* end confdefs.h. */
9793 rm -f conftest.$ac_objext conftest$ac_exeext
9794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9795 (eval $ac_link) 2>conftest.er1
9797 grep -v '^ *+' conftest.er1 >conftest.err
9799 cat conftest.err >&5
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); } &&
9802 { ac_try='test -z "$ac_cxx_werror_flag"
9803 || test ! -s conftest.err'
9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; } &&
9809 { ac_try='test -s conftest$ac_exeext'
9810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); }; }; then
9816 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9818 # Check for a 64-bit object if we didn't find anything.
9819 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; }
9822 echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.$ac_ext >&5
9826 rm -f conftest.err conftest.$ac_objext \
9827 conftest$ac_exeext conftest.$ac_ext
9828 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9830 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9831 # Warning - without using the other run time loading flags,
9832 # -berok will link without error, but may produce a broken library.
9833 no_undefined_flag_CXX=' ${wl}-bernotok'
9834 allow_undefined_flag_CXX=' ${wl}-berok'
9835 # -bexpall does not export symbols beginning with underscore (_)
9836 always_export_symbols_CXX=yes
9837 # Exported symbols can be pulled into shared objects from archives
9838 whole_archive_flag_spec_CXX=' '
9839 archive_cmds_need_lc_CXX=yes
9840 # This is similar to how AIX traditionally builds it's shared libraries.
9841 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'
9846 case $cc_basename in
9848 # FIXME: insert proper C++ library support
9855 cygwin* | mingw* | pw32*)
9856 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9857 # as there is no search path for DLLs.
9858 hardcode_libdir_flag_spec_CXX='-L$libdir'
9859 allow_undefined_flag_CXX=unsupported
9860 always_export_symbols_CXX=no
9861 enable_shared_with_static_runtimes_CXX=yes
9863 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9864 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'
9865 # If the export-symbols file already is a .def file (1st line
9866 # is EXPORTS), use it as is; otherwise, prepend...
9867 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9868 cp $export_symbols $output_objdir/$soname.def;
9870 echo EXPORTS > $output_objdir/$soname.def;
9871 cat $export_symbols >> $output_objdir/$soname.def;
9873 $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'
9878 darwin* | rhapsody*)
9880 rhapsody* | darwin1.[012])
9881 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
9884 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9885 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9887 case ${MACOSX_DEPLOYMENT_TARGET} in
9889 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9892 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
9898 archive_cmds_need_lc_CXX=no
9899 hardcode_direct_CXX=no
9900 hardcode_automatic_CXX=yes
9901 hardcode_shlibpath_var_CXX=unsupported
9902 whole_archive_flag_spec_CXX=''
9903 link_all_deplibs_CXX=yes
9905 if test "$GXX" = yes ; then
9906 lt_int_apple_cc_single_mod=no
9907 output_verbose_link_cmd='echo'
9908 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9909 lt_int_apple_cc_single_mod=yes
9911 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9912 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9914 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'
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 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9919 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}'
9921 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}'
9923 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}'
9925 case "$cc_basename" in
9927 output_verbose_link_cmd='echo'
9928 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'
9929 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9930 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9931 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}'
9932 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}'
9942 case $cc_basename in
9944 # FIXME: insert proper C++ library support
9948 # Green Hills C++ Compiler
9949 # FIXME: insert proper C++ library support
9953 # FIXME: insert proper C++ library support
9959 # C++ shared libraries reported to be fairly broken before switch to ELF
9963 archive_cmds_need_lc_CXX=no
9965 freebsd* | kfreebsd*-gnu)
9966 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9973 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9974 hardcode_libdir_separator_CXX=:
9975 export_dynamic_flag_spec_CXX='${wl}-E'
9976 hardcode_direct_CXX=yes
9977 hardcode_minus_L_CXX=yes # Not in the search PATH,
9978 # but as the default
9979 # location of the library.
9981 case $cc_basename in
9983 # FIXME: insert proper C++ library support
9987 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'
9988 # Commands to make compiler produce verbose output that lists
9989 # what "hidden" libraries, object files and flags are used when
9990 # linking a shared library.
9992 # There doesn't appear to be a way to prevent this compiler from
9993 # explicitly linking system object files so we need to strip them
9994 # from the output so that they don't get included in the library
9996 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'
9999 if test "$GXX" = yes; then
10000 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'
10002 # FIXME: insert proper C++ library support
10009 if test $with_gnu_ld = no; then
10010 case "$host_cpu" in
10012 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10013 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10014 hardcode_libdir_separator_CXX=:
10017 hardcode_libdir_flag_spec_CXX='-L$libdir'
10020 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10021 hardcode_libdir_separator_CXX=:
10022 export_dynamic_flag_spec_CXX='${wl}-E'
10026 case "$host_cpu" in
10028 hardcode_direct_CXX=no
10029 hardcode_shlibpath_var_CXX=no
10032 hardcode_direct_CXX=no
10033 hardcode_shlibpath_var_CXX=no
10034 hardcode_minus_L_CXX=yes # Not in the search PATH,
10035 # but as the default
10036 # location of the library.
10039 hardcode_direct_CXX=yes
10040 hardcode_minus_L_CXX=yes # Not in the search PATH,
10041 # but as the default
10042 # location of the library.
10046 case $cc_basename in
10048 # FIXME: insert proper C++ library support
10052 case "$host_cpu" in
10054 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10057 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10060 # Commands to make compiler produce verbose output that lists
10061 # what "hidden" libraries, object files and flags are used when
10062 # linking a shared library.
10064 # There doesn't appear to be a way to prevent this compiler from
10065 # explicitly linking system object files so we need to strip them
10066 # from the output so that they don't get included in the library
10068 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'
10071 if test "$GXX" = yes; then
10072 if test $with_gnu_ld = no; then
10073 case "$host_cpu" in
10075 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10078 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'
10083 # FIXME: insert proper C++ library support
10090 case $cc_basename in
10093 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'
10095 # Archives containing C++ object files must be created using
10096 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10097 # necessary to make sure instantiated templates are included
10099 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10102 if test "$GXX" = yes; then
10103 if test "$with_gnu_ld" = no; then
10104 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'
10106 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'
10109 link_all_deplibs_CXX=yes
10112 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10113 hardcode_libdir_separator_CXX=:
10116 case $cc_basename in
10118 # Kuck and Associates, Inc. (KAI) C++ Compiler
10120 # KCC will only create a shared library if the output file
10121 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10122 # to its proper name (with version) after linking.
10123 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'
10124 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'
10125 # Commands to make compiler produce verbose output that lists
10126 # what "hidden" libraries, object files and flags are used when
10127 # linking a shared library.
10129 # There doesn't appear to be a way to prevent this compiler from
10130 # explicitly linking system object files so we need to strip them
10131 # from the output so that they don't get included in the library
10133 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'
10135 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10136 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10138 # Archives containing C++ object files must be created using
10139 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10140 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10145 # version 8.0 and above of icpc choke on multiply defined symbols
10146 # if we add $predep_objects and $postdep_objects, however 7.1 and
10147 # earlier do not add the objects themselves.
10148 case `$CC -V 2>&1` in
10150 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10151 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10153 *) # Version 8.0 or newer
10154 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10155 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10158 archive_cmds_need_lc_CXX=no
10159 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10160 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10161 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10165 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10166 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'
10168 runpath_var=LD_RUN_PATH
10169 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10170 hardcode_libdir_separator_CXX=:
10172 # Commands to make compiler produce verbose output that lists
10173 # what "hidden" libraries, object files and flags are used when
10174 # linking a shared library.
10176 # There doesn't appear to be a way to prevent this compiler from
10177 # explicitly linking system object files so we need to strip them
10178 # from the output so that they don't get included in the library
10180 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'
10185 # FIXME: insert proper C++ library support
10189 # FIXME: insert proper C++ library support
10193 case $cc_basename in
10195 # FIXME: insert proper C++ library support
10199 # FIXME: insert proper C++ library support
10205 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10206 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10208 hardcode_libdir_flag_spec_CXX='-R$libdir'
10209 hardcode_direct_CXX=yes
10210 hardcode_shlibpath_var_CXX=no
10212 # Workaround some broken pre-1.5 toolchains
10213 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10216 # C++ shared libraries are fairly broken
10220 hardcode_direct_CXX=yes
10221 hardcode_shlibpath_var_CXX=no
10222 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10223 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10224 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10225 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10226 export_dynamic_flag_spec_CXX='${wl}-E'
10227 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10229 output_verbose_link_cmd='echo'
10232 case $cc_basename in
10234 # Kuck and Associates, Inc. (KAI) C++ Compiler
10236 # KCC will only create a shared library if the output file
10237 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10238 # to its proper name (with version) after linking.
10239 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'
10241 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10242 hardcode_libdir_separator_CXX=:
10244 # Archives containing C++ object files must be created using
10245 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10246 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10250 # Rational C++ 2.4.1
10251 # FIXME: insert proper C++ library support
10255 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10256 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'
10258 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10259 hardcode_libdir_separator_CXX=:
10261 # Commands to make compiler produce verbose output that lists
10262 # what "hidden" libraries, object files and flags are used when
10263 # linking a shared library.
10265 # There doesn't appear to be a way to prevent this compiler from
10266 # explicitly linking system object files so we need to strip them
10267 # from the output so that they don't get included in the library
10269 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'
10272 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10273 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10274 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'
10276 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10277 hardcode_libdir_separator_CXX=:
10279 # Commands to make compiler produce verbose output that lists
10280 # what "hidden" libraries, object files and flags are used when
10281 # linking a shared library.
10282 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10285 # FIXME: insert proper C++ library support
10292 case $cc_basename in
10294 # Kuck and Associates, Inc. (KAI) C++ Compiler
10296 # KCC will only create a shared library if the output file
10297 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10298 # to its proper name (with version) after linking.
10299 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'
10301 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10302 hardcode_libdir_separator_CXX=:
10304 # Archives containing C++ object files must be created using
10305 # the KAI C++ compiler.
10306 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10309 # Rational C++ 2.4.1
10310 # FIXME: insert proper C++ library support
10314 allow_undefined_flag_CXX=' -expect_unresolved \*'
10315 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'
10316 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10317 echo "-hidden">> $lib.exp~
10318 $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~
10321 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10322 hardcode_libdir_separator_CXX=:
10324 # Commands to make compiler produce verbose output that lists
10325 # what "hidden" libraries, object files and flags are used when
10326 # linking a shared library.
10328 # There doesn't appear to be a way to prevent this compiler from
10329 # explicitly linking system object files so we need to strip them
10330 # from the output so that they don't get included in the library
10332 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'
10335 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10336 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10337 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'
10339 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10340 hardcode_libdir_separator_CXX=:
10342 # Commands to make compiler produce verbose output that lists
10343 # what "hidden" libraries, object files and flags are used when
10344 # linking a shared library.
10345 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10348 # FIXME: insert proper C++ library support
10355 # FIXME: insert proper C++ library support
10359 archive_cmds_need_lc_CXX=no
10360 case $cc_basename in
10362 # FIXME: insert proper C++ library support
10366 # FIXME: insert proper C++ library support
10372 case $cc_basename in
10375 # FIXME: insert proper C++ library support
10380 # FIXME: insert proper C++ library support
10384 # FIXME: insert proper C++ library support
10390 case $cc_basename in
10392 # Sun C++ 4.2, 5.x and Centerline C++
10393 no_undefined_flag_CXX=' -zdefs'
10394 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10395 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10396 $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'
10398 hardcode_libdir_flag_spec_CXX='-R$libdir'
10399 hardcode_shlibpath_var_CXX=no
10401 solaris2.0-5 | solaris2.0-5.*) ;;
10403 # The C++ compiler is used as linker so we must use $wl
10404 # flag to pass the commands to the underlying system
10406 # Supported since Solaris 2.6 (maybe 2.5.1?)
10407 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10410 link_all_deplibs_CXX=yes
10412 # Commands to make compiler produce verbose output that lists
10413 # what "hidden" libraries, object files and flags are used when
10414 # linking a shared library.
10416 # There doesn't appear to be a way to prevent this compiler from
10417 # explicitly linking system object files so we need to strip them
10418 # from the output so that they don't get included in the library
10420 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'
10422 # Archives containing C++ object files must be created using
10423 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10424 # necessary to make sure instantiated templates are included
10426 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10429 # Green Hills C++ Compiler
10430 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10432 # The C++ compiler must be used to create the archive.
10433 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10436 # GNU C++ compiler with Solaris linker
10437 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10438 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10439 if $CC --version | grep -v '^2\.7' > /dev/null; then
10440 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10441 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10442 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10444 # Commands to make compiler produce verbose output that lists
10445 # what "hidden" libraries, object files and flags are used when
10446 # linking a shared library.
10447 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10449 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10451 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10452 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10453 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10455 # Commands to make compiler produce verbose output that lists
10456 # what "hidden" libraries, object files and flags are used when
10457 # linking a shared library.
10458 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10461 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10466 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10467 archive_cmds_need_lc_CXX=no
10470 case $cc_basename in
10472 # NonStop-UX NCC 3.20
10473 # FIXME: insert proper C++ library support
10477 # FIXME: insert proper C++ library support
10483 # FIXME: insert proper C++ library support
10487 # FIXME: insert proper C++ library support
10491 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10492 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10493 test "$ld_shlibs_CXX" = no && can_build_shared=no
10499 cat > conftest.$ac_ext <<EOF
10503 Foo (void) { a = 0; }
10509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10510 (eval $ac_compile) 2>&5
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); }; then
10514 # Parse the compiler output and extract the necessary
10515 # objects, libraries and library flags.
10517 # Sentinel used to keep track of whether or not we are before
10518 # the conftest object file.
10519 pre_test_object_deps_done=no
10521 # The `*' in the case matches for architectures that use `case' in
10522 # $output_verbose_cmd can trigger glob expansion during the loop
10523 # eval without this substitution.
10524 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10526 for p in `eval $output_verbose_link_cmd`; do
10530 # Some compilers place space between "-{L,R}" and the path.
10531 # Remove the space.
10532 if test $p = "-L" \
10533 || test $p = "-R"; then
10540 if test "$pre_test_object_deps_done" = no; then
10543 # Internal compiler library paths should come after those
10544 # provided the user. The postdeps already come after the
10545 # user supplied libs so there is no need to process them.
10546 if test -z "$compiler_lib_search_path_CXX"; then
10547 compiler_lib_search_path_CXX="${prev}${p}"
10549 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10552 # The "-l" case would never come before the object being
10553 # linked, so don't bother handling this case.
10556 if test -z "$postdeps_CXX"; then
10557 postdeps_CXX="${prev}${p}"
10559 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10565 # This assumes that the test object file only shows up
10566 # once in the compiler output.
10567 if test "$p" = "conftest.$objext"; then
10568 pre_test_object_deps_done=yes
10572 if test "$pre_test_object_deps_done" = no; then
10573 if test -z "$predep_objects_CXX"; then
10574 predep_objects_CXX="$p"
10576 predep_objects_CXX="$predep_objects_CXX $p"
10579 if test -z "$postdep_objects_CXX"; then
10580 postdep_objects_CXX="$p"
10582 postdep_objects_CXX="$postdep_objects_CXX $p"
10587 *) ;; # Ignore the rest.
10595 echo "libtool.m4: error: problem compiling CXX test program"
10598 $rm -f confest.$objext
10600 case " $postdeps_CXX " in
10601 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10604 lt_prog_compiler_wl_CXX=
10605 lt_prog_compiler_pic_CXX=
10606 lt_prog_compiler_static_CXX=
10608 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10609 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10611 # C++ specific cases for pic, static, wl, etc.
10612 if test "$GXX" = yes; then
10613 lt_prog_compiler_wl_CXX='-Wl,'
10614 lt_prog_compiler_static_CXX='-static'
10618 # All AIX code is PIC.
10619 if test "$host_cpu" = ia64; then
10620 # AIX 5 now supports IA64 processor
10621 lt_prog_compiler_static_CXX='-Bstatic'
10625 # FIXME: we need at least 68020 code to build shared libraries, but
10626 # adding the `-m68020' flag to GCC prevents building anything better,
10628 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10630 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10631 # PIC is the default for these OSes.
10633 mingw* | os2* | pw32*)
10634 # This hack is so that the source file can tell whether it is being
10635 # built for inclusion in a dll (and should export symbols for example).
10636 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10638 darwin* | rhapsody*)
10639 # PIC is the default on this platform
10640 # Common symbols not allowed in MH_DYLIB files
10641 lt_prog_compiler_pic_CXX='-fno-common'
10644 # DJGPP does not support shared libraries at all
10645 lt_prog_compiler_pic_CXX=
10648 if test -d /usr/nec; then
10649 lt_prog_compiler_pic_CXX=-Kconform_pic
10653 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10654 # not for PA HP-UX.
10655 case "$host_cpu" in
10659 lt_prog_compiler_pic_CXX='-fPIC'
10664 lt_prog_compiler_pic_CXX='-fPIC'
10670 # All AIX code is PIC.
10671 if test "$host_cpu" = ia64; then
10672 # AIX 5 now supports IA64 processor
10673 lt_prog_compiler_static_CXX='-Bstatic'
10675 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10679 case $cc_basename in
10681 # Green Hills C++ Compiler
10682 # _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"
10687 # PIC is the default on this platform
10688 # Common symbols not allowed in MH_DYLIB files
10689 case "$cc_basename" in
10691 lt_prog_compiler_pic_CXX='-qnocommon'
10692 lt_prog_compiler_wl_CXX='-Wl,'
10697 case $cc_basename in
10699 lt_prog_compiler_pic_CXX='-KPIC'
10702 # Green Hills C++ Compiler
10703 lt_prog_compiler_pic_CXX='-pic'
10709 freebsd* | kfreebsd*-gnu)
10710 # FreeBSD uses GNU C++
10712 hpux9* | hpux10* | hpux11*)
10713 case $cc_basename in
10715 lt_prog_compiler_wl_CXX='-Wl,'
10716 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10717 if test "$host_cpu" != ia64; then
10718 lt_prog_compiler_pic_CXX='+Z'
10722 lt_prog_compiler_wl_CXX='-Wl,'
10723 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10724 case "$host_cpu" in
10729 lt_prog_compiler_pic_CXX='+Z'
10737 irix5* | irix6* | nonstopux*)
10738 case $cc_basename in
10740 lt_prog_compiler_wl_CXX='-Wl,'
10741 lt_prog_compiler_static_CXX='-non_shared'
10742 # CC pic flag -KPIC is the default.
10749 case $cc_basename in
10752 lt_prog_compiler_wl_CXX='--backend -Wl,'
10753 lt_prog_compiler_pic_CXX='-fPIC'
10757 lt_prog_compiler_wl_CXX='-Wl,'
10758 lt_prog_compiler_pic_CXX='-KPIC'
10759 lt_prog_compiler_static_CXX='-static'
10763 # Make sure the PIC flag is empty. It appears that all Alpha
10764 # Linux and Compaq Tru64 Unix objects are PIC.
10765 lt_prog_compiler_pic_CXX=
10766 lt_prog_compiler_static_CXX='-non_shared'
10777 case $cc_basename in
10779 lt_prog_compiler_pic_CXX='-W c,exportall'
10787 osf3* | osf4* | osf5*)
10788 case $cc_basename in
10790 lt_prog_compiler_wl_CXX='--backend -Wl,'
10793 # Rational C++ 2.4.1
10794 lt_prog_compiler_pic_CXX='-pic'
10797 # Digital/Compaq C++
10798 lt_prog_compiler_wl_CXX='-Wl,'
10799 # Make sure the PIC flag is empty. It appears that all Alpha
10800 # Linux and Compaq Tru64 Unix objects are PIC.
10801 lt_prog_compiler_pic_CXX=
10802 lt_prog_compiler_static_CXX='-non_shared'
10811 case $cc_basename in
10813 lt_prog_compiler_pic_CXX='-fPIC'
10820 case $cc_basename in
10822 # Sun C++ 4.2, 5.x and Centerline C++
10823 lt_prog_compiler_pic_CXX='-KPIC'
10824 lt_prog_compiler_static_CXX='-Bstatic'
10825 lt_prog_compiler_wl_CXX='-Qoption ld '
10828 # Green Hills C++ Compiler
10829 lt_prog_compiler_pic_CXX='-PIC'
10836 case $cc_basename in
10839 lt_prog_compiler_pic_CXX='-pic'
10840 lt_prog_compiler_static_CXX='-Bstatic'
10844 lt_prog_compiler_pic_CXX='-pic'
10851 case $cc_basename in
10853 # NonStop-UX NCC 3.20
10854 lt_prog_compiler_pic_CXX='-KPIC'
10865 lt_prog_compiler_can_build_shared_CXX=no
10870 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10871 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10874 # Check to make sure the PIC flag actually works.
10876 if test -n "$lt_prog_compiler_pic_CXX"; then
10878 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10879 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10880 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10881 echo $ECHO_N "(cached) $ECHO_C" >&6
10883 lt_prog_compiler_pic_works_CXX=no
10884 ac_outfile=conftest.$ac_objext
10885 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10886 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10887 # Insert the option either (1) after the last *FLAGS variable, or
10888 # (2) before a word containing "conftest.", or (3) at the end.
10889 # Note that $ac_compile itself does not contain backslashes and begins
10890 # with a dollar sign (not a hyphen), so the echo should work correctly.
10891 # The option is referenced via a variable to avoid confusing sed.
10892 lt_compile=`echo "$ac_compile" | $SED \
10893 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10895 -e 's:$: $lt_compiler_flag:'`
10896 (eval echo "\"\$as_me:10896: $lt_compile\"" >&5)
10897 (eval "$lt_compile" 2>conftest.err)
10899 cat conftest.err >&5
10900 echo "$as_me:10900: \$? = $ac_status" >&5
10901 if (exit $ac_status) && test -s "$ac_outfile"; then
10902 # The compiler can only warn and ignore the option if not recognized
10903 # So say no if there are warnings
10904 if test ! -s conftest.err; then
10905 lt_prog_compiler_pic_works_CXX=yes
10911 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10912 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10914 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10915 case $lt_prog_compiler_pic_CXX in
10917 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10920 lt_prog_compiler_pic_CXX=
10921 lt_prog_compiler_can_build_shared_CXX=no
10926 # For platforms which do not support PIC, -DPIC is meaningless:
10928 lt_prog_compiler_pic_CXX=
10931 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10935 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10936 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10937 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10938 echo $ECHO_N "(cached) $ECHO_C" >&6
10940 lt_cv_prog_compiler_c_o_CXX=no
10941 $rm -r conftest 2>/dev/null
10945 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10947 lt_compiler_flag="-o out/conftest2.$ac_objext"
10948 # Insert the option either (1) after the last *FLAGS variable, or
10949 # (2) before a word containing "conftest.", or (3) at the end.
10950 # Note that $ac_compile itself does not contain backslashes and begins
10951 # with a dollar sign (not a hyphen), so the echo should work correctly.
10952 lt_compile=`echo "$ac_compile" | $SED \
10953 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10954 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10955 -e 's:$: $lt_compiler_flag:'`
10956 (eval echo "\"\$as_me:10956: $lt_compile\"" >&5)
10957 (eval "$lt_compile" 2>out/conftest.err)
10959 cat out/conftest.err >&5
10960 echo "$as_me:10960: \$? = $ac_status" >&5
10961 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10963 # The compiler can only warn and ignore the option if not recognized
10964 # So say no if there are warnings
10965 if test ! -s out/conftest.err; then
10966 lt_cv_prog_compiler_c_o_CXX=yes
10971 # SGI C++ compiler will create directory out/ii_files/ for
10972 # template instantiation
10973 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10974 $rm out/* && rmdir out
10980 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10981 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10984 hard_links="nottested"
10985 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10986 # do not overwrite the value of need_locks provided by the user
10987 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10988 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10991 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10993 ln conftest.a conftest.b 2>&5 || hard_links=no
10994 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10995 echo "$as_me:$LINENO: result: $hard_links" >&5
10996 echo "${ECHO_T}$hard_links" >&6
10997 if test "$hard_links" = no; then
10998 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10999 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11006 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11007 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11009 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11012 # If we're using GNU nm, then we don't want the "-C" option.
11013 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11014 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11015 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'
11017 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'
11021 export_symbols_cmds_CXX="$ltdll_cmds"
11024 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11027 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11031 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11032 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11033 test "$ld_shlibs_CXX" = no && can_build_shared=no
11035 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11036 if test "$GCC" = yes; then
11037 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11041 # Do we need to explicitly link libc?
11043 case "x$archive_cmds_need_lc_CXX" in
11045 # Assume -lc should be added
11046 archive_cmds_need_lc_CXX=yes
11048 if test "$enable_shared" = yes && test "$GCC" = yes; then
11049 case $archive_cmds_CXX in
11051 # FIXME: we may have to deal with multi-command sequences.
11054 # Test whether the compiler implicitly links with -lc since on some
11055 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11056 # to ld, don't add -lc before -lgcc.
11057 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11058 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11060 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11063 (eval $ac_compile) 2>&5
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); } 2>conftest.err; then
11069 libobjs=conftest.$ac_objext
11071 wl=$lt_prog_compiler_wl_CXX
11077 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11078 allow_undefined_flag_CXX=
11079 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11080 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); }
11085 archive_cmds_need_lc_CXX=no
11087 archive_cmds_need_lc_CXX=yes
11089 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11091 cat conftest.err 1>&5
11094 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11095 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11102 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11103 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11104 library_names_spec=
11105 libname_spec='lib$name'
11109 postuninstall_cmds=
11113 shlibpath_overrides_runpath=unknown
11115 dynamic_linker="$host_os ld.so"
11116 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11117 if test "$GCC" = yes; then
11118 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11119 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11120 # if the path contains ";" then we assume it to be the separator
11121 # otherwise default to the standard path separator (i.e. ":") - it is
11122 # assumed that no part of a normal pathname contains ";" but that should
11123 # okay in the real world where ";" in dirpaths is itself problematic.
11124 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11126 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11129 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11131 need_lib_prefix=unknown
11132 hardcode_into_libs=no
11134 # when you set need_version to no, make sure it does not cause -set_version
11135 # flags to be left without arguments
11136 need_version=unknown
11141 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11142 shlibpath_var=LIBPATH
11144 # AIX 3 has no versioning support, so we append a major version to the name.
11145 soname_spec='${libname}${release}${shared_ext}$major'
11152 hardcode_into_libs=yes
11153 if test "$host_cpu" = ia64; then
11154 # AIX 5 supports IA64
11155 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11156 shlibpath_var=LD_LIBRARY_PATH
11158 # With GCC up to 2.95.x, collect2 would create an import file
11159 # for dependence libraries. The import file would start with
11160 # the line `#! .'. This would cause the generated library to
11161 # depend on `.', always an invalid library. This was fixed in
11162 # development snapshots of GCC prior to 3.0.
11164 aix4 | aix4.[01] | aix4.[01].*)
11165 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11167 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11170 can_build_shared=no
11174 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11175 # soname into executable. Probably we can add versioning support to
11176 # collect2, so additional links can be useful in future.
11177 if test "$aix_use_runtimelinking" = yes; then
11178 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11179 # instead of lib<name>.a to let people know that these are not
11180 # typical AIX shared libraries.
11181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11183 # We preserve .a as extension for shared libraries through AIX4.2
11184 # and later when we are not doing run time linking.
11185 library_names_spec='${libname}${release}.a $libname.a'
11186 soname_spec='${libname}${release}${shared_ext}$major'
11188 shlibpath_var=LIBPATH
11193 library_names_spec='$libname.ixlibrary $libname.a'
11194 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11195 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'
11199 library_names_spec='${libname}${shared_ext}'
11200 dynamic_linker="$host_os ld.so"
11201 shlibpath_var=LIBRARY_PATH
11207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11208 soname_spec='${libname}${release}${shared_ext}$major'
11209 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11210 shlibpath_var=LD_LIBRARY_PATH
11211 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11212 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11213 # the default ld.so.conf also contains /usr/contrib/lib and
11214 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11215 # libtool to hard-code these into programs
11218 cygwin* | mingw* | pw32*)
11219 version_type=windows
11224 case $GCC,$host_os in
11225 yes,cygwin* | yes,mingw* | yes,pw32*)
11226 library_names_spec='$libname.dll.a'
11227 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11228 postinstall_cmds='base_file=`basename \${file}`~
11229 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11230 dldir=$destdir/`dirname \$dlpath`~
11231 test -d \$dldir || mkdir -p \$dldir~
11232 $install_prog $dir/$dlname \$dldir/$dlname'
11233 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11234 dlpath=$dir/\$dldll~
11236 shlibpath_overrides_runpath=yes
11240 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11241 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11242 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11245 # MinGW DLLs use traditional 'lib' prefix
11246 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11247 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11248 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11249 # It is most probably a Windows format PATH printed by
11250 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11251 # path with ; separators, and with drive letters. We can handle the
11252 # drive letters (cygwin fileutils understands them), so leave them,
11253 # especially as we might pass files found there to a mingw objdump,
11254 # which wouldn't understand a cygwinified path. Ahh.
11255 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11257 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11261 # pw32 DLLs use 'pw' prefix rather than 'lib'
11262 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11268 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11271 dynamic_linker='Win32 ld.exe'
11272 # FIXME: first we should search . and the directory the executable is in
11276 darwin* | rhapsody*)
11277 dynamic_linker="$host_os dyld"
11278 version_type=darwin
11281 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11282 soname_spec='${libname}${release}${major}$shared_ext'
11283 shlibpath_overrides_runpath=yes
11284 shlibpath_var=DYLD_LIBRARY_PATH
11285 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11286 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11287 if test "$GCC" = yes; then
11288 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"`
11290 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11292 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11300 soname_spec='${libname}${release}${shared_ext}$major'
11301 shlibpath_var=LD_LIBRARY_PATH
11312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11313 soname_spec='${libname}${release}${shared_ext}$major'
11314 shlibpath_var=LD_LIBRARY_PATH
11315 shlibpath_overrides_runpath=no
11316 hardcode_into_libs=yes
11317 dynamic_linker='GNU ld.so'
11321 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11322 version_type=freebsd-$objformat
11323 case $version_type in
11325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11330 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11334 shlibpath_var=LD_LIBRARY_PATH
11337 shlibpath_overrides_runpath=yes
11339 freebsd3.01* | freebsdelf3.01*)
11340 shlibpath_overrides_runpath=yes
11341 hardcode_into_libs=yes
11344 shlibpath_overrides_runpath=no
11345 hardcode_into_libs=yes
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 shlibpath_var=LD_LIBRARY_PATH
11357 hardcode_into_libs=yes
11360 hpux9* | hpux10* | hpux11*)
11361 # Give a soname corresponding to the major version so that dld.sl refuses to
11362 # link against other versions.
11366 case "$host_cpu" in
11369 hardcode_into_libs=yes
11370 dynamic_linker="$host_os dld.so"
11371 shlibpath_var=LD_LIBRARY_PATH
11372 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11374 soname_spec='${libname}${release}${shared_ext}$major'
11375 if test "X$HPUX_IA64_MODE" = X32; then
11376 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11378 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11380 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11384 hardcode_into_libs=yes
11385 dynamic_linker="$host_os dld.sl"
11386 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11387 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11389 soname_spec='${libname}${release}${shared_ext}$major'
11390 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11391 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11395 dynamic_linker="$host_os dld.sl"
11396 shlibpath_var=SHLIB_PATH
11397 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11399 soname_spec='${libname}${release}${shared_ext}$major'
11402 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11403 postinstall_cmds='chmod 555 $lib'
11406 irix5* | irix6* | nonstopux*)
11408 nonstopux*) version_type=nonstopux ;;
11410 if test "$lt_cv_prog_gnu_ld" = yes; then
11418 soname_spec='${libname}${release}${shared_ext}$major'
11419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11421 irix5* | nonstopux*)
11422 libsuff= shlibsuff=
11425 case $LD in # libtool.m4 will add one of these switches to LD
11426 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11427 libsuff= shlibsuff= libmagic=32-bit;;
11428 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11429 libsuff=32 shlibsuff=N32 libmagic=N32;;
11430 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11431 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11432 *) libsuff= shlibsuff= libmagic=never-match;;
11436 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11437 shlibpath_overrides_runpath=no
11438 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11439 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11440 hardcode_into_libs=yes
11443 # No shared lib support for Linux oldld, aout, or coff.
11444 linux*oldld* | linux*aout* | linux*coff*)
11448 # This must be Linux ELF.
11453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11454 soname_spec='${libname}${release}${shared_ext}$major'
11455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11456 shlibpath_var=LD_LIBRARY_PATH
11457 shlibpath_overrides_runpath=no
11458 # This implies no fast_install, which is unacceptable.
11459 # Some rework will be needed to allow for fast_install
11460 # before this can be enabled.
11461 hardcode_into_libs=yes
11463 # Append ld.so.conf contents to the search path
11464 if test -f /etc/ld.so.conf; then
11465 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11466 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11469 # We used to test for /lib/ld.so.1 and disable shared libraries on
11470 # powerpc, because MkLinux only supported shared libraries with the
11471 # GNU dynamic linker. Since this was broken with cross compilers,
11472 # most powerpc-linux boxes support dynamic linking these days and
11473 # people can always --disable-shared, the test was removed, and we
11474 # assume the GNU/Linux dynamic linker is in use.
11475 dynamic_linker='GNU/Linux ld.so'
11482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11483 soname_spec='${libname}${release}${shared_ext}$major'
11484 shlibpath_var=LD_LIBRARY_PATH
11485 shlibpath_overrides_runpath=no
11486 hardcode_into_libs=yes
11487 dynamic_linker='GNU ld.so'
11494 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11497 dynamic_linker='NetBSD (a.out) ld.so'
11499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11500 soname_spec='${libname}${release}${shared_ext}$major'
11501 dynamic_linker='NetBSD ld.elf_so'
11503 shlibpath_var=LD_LIBRARY_PATH
11504 shlibpath_overrides_runpath=yes
11505 hardcode_into_libs=yes
11510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11511 shlibpath_var=LD_LIBRARY_PATH
11512 shlibpath_overrides_runpath=yes
11519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11520 soname_spec='${libname}${release}${shared_ext}$major'
11521 shlibpath_var=LD_LIBRARY_PATH
11522 shlibpath_overrides_runpath=yes
11529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11531 shlibpath_var=LD_LIBRARY_PATH
11532 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11534 openbsd2.[89] | openbsd2.[89].*)
11535 shlibpath_overrides_runpath=no
11538 shlibpath_overrides_runpath=yes
11542 shlibpath_overrides_runpath=yes
11547 libname_spec='$name'
11550 library_names_spec='$libname${shared_ext} $libname.a'
11551 dynamic_linker='OS/2 ld.exe'
11552 shlibpath_var=LIBPATH
11555 osf3* | osf4* | osf5*)
11559 soname_spec='${libname}${release}${shared_ext}$major'
11560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11561 shlibpath_var=LD_LIBRARY_PATH
11562 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11563 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11568 soname_spec='${libname}${release}${shared_ext}$major'
11569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11570 shlibpath_var=LD_LIBRARY_PATH
11577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11578 soname_spec='${libname}${release}${shared_ext}$major'
11579 shlibpath_var=LD_LIBRARY_PATH
11580 shlibpath_overrides_runpath=yes
11581 hardcode_into_libs=yes
11582 # ldd complains unless libraries are executable
11583 postinstall_cmds='chmod +x $lib'
11588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11589 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11590 shlibpath_var=LD_LIBRARY_PATH
11591 shlibpath_overrides_runpath=yes
11592 if test "$with_gnu_ld" = yes; then
11598 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11601 soname_spec='${libname}${release}${shared_ext}$major'
11602 shlibpath_var=LD_LIBRARY_PATH
11603 case $host_vendor in
11605 shlibpath_overrides_runpath=no
11607 export_dynamic_flag_spec='${wl}-Blargedynsym'
11608 runpath_var=LD_RUN_PATH
11616 shlibpath_overrides_runpath=no
11617 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11623 if test -d /usr/nec ;then
11625 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11626 soname_spec='$libname${shared_ext}.$major'
11627 shlibpath_var=LD_LIBRARY_PATH
11633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11634 soname_spec='${libname}${release}${shared_ext}$major'
11635 shlibpath_var=LD_LIBRARY_PATH
11642 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11643 echo "${ECHO_T}$dynamic_linker" >&6
11644 test "$dynamic_linker" = no && can_build_shared=no
11646 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11647 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11648 hardcode_action_CXX=
11649 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11650 test -n "$runpath_var_CXX" || \
11651 test "X$hardcode_automatic_CXX" = "Xyes" ; then
11653 # We can hardcode non-existant directories.
11654 if test "$hardcode_direct_CXX" != no &&
11655 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11656 # have to relink, otherwise we might link with an installed library
11657 # when we should be linking with a yet-to-be-installed one
11658 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11659 test "$hardcode_minus_L_CXX" != no; then
11660 # Linking always hardcodes the temporary library directory.
11661 hardcode_action_CXX=relink
11663 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11664 hardcode_action_CXX=immediate
11667 # We cannot hardcode anything, or else we can only hardcode existing
11669 hardcode_action_CXX=unsupported
11671 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11672 echo "${ECHO_T}$hardcode_action_CXX" >&6
11674 if test "$hardcode_action_CXX" = relink; then
11675 # Fast installation is not supported
11676 enable_fast_install=no
11677 elif test "$shlibpath_overrides_runpath" = yes ||
11678 test "$enable_shared" = no; then
11679 # Fast installation is not necessary
11680 enable_fast_install=needless
11685 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11686 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11687 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11688 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11689 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11690 echo "$as_me:$LINENO: result: yes" >&5
11691 echo "${ECHO_T}yes" >&6
11693 # FIXME - insert some real tests, host_os isn't really good enough
11696 if test -n "$STRIP" ; then
11697 striplib="$STRIP -x"
11698 echo "$as_me:$LINENO: result: yes" >&5
11699 echo "${ECHO_T}yes" >&6
11701 echo "$as_me:$LINENO: result: no" >&5
11702 echo "${ECHO_T}no" >&6
11706 echo "$as_me:$LINENO: result: no" >&5
11707 echo "${ECHO_T}no" >&6
11712 if test "x$enable_dlopen" != xyes; then
11713 enable_dlopen=unknown
11714 enable_dlopen_self=unknown
11715 enable_dlopen_self_static=unknown
11722 lt_cv_dlopen="load_add_on"
11724 lt_cv_dlopen_self=yes
11728 lt_cv_dlopen="LoadLibrary"
11733 lt_cv_dlopen="dlopen"
11738 # if libdl is installed we need to link against it
11739 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11740 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11741 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11742 echo $ECHO_N "(cached) $ECHO_C" >&6
11744 ac_check_lib_save_LIBS=$LIBS
11746 cat >conftest.$ac_ext <<_ACEOF
11749 cat confdefs.h >>conftest.$ac_ext
11750 cat >>conftest.$ac_ext <<_ACEOF
11751 /* end confdefs.h. */
11753 /* Override any gcc2 internal prototype to avoid an error. */
11757 /* We use char because int might match the return type of a gcc2
11758 builtin and then its argument prototype would still apply. */
11768 rm -f conftest.$ac_objext conftest$ac_exeext
11769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11770 (eval $ac_link) 2>conftest.er1
11772 grep -v '^ *+' conftest.er1 >conftest.err
11774 cat conftest.err >&5
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); } &&
11777 { ac_try='test -z "$ac_cxx_werror_flag"
11778 || test ! -s conftest.err'
11779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11780 (eval $ac_try) 2>&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); }; } &&
11784 { ac_try='test -s conftest$ac_exeext'
11785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11786 (eval $ac_try) 2>&5
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); }; }; then
11790 ac_cv_lib_dl_dlopen=yes
11792 echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.$ac_ext >&5
11795 ac_cv_lib_dl_dlopen=no
11797 rm -f conftest.err conftest.$ac_objext \
11798 conftest$ac_exeext conftest.$ac_ext
11799 LIBS=$ac_check_lib_save_LIBS
11801 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11802 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11803 if test $ac_cv_lib_dl_dlopen = yes; then
11804 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11807 lt_cv_dlopen="dyld"
11809 lt_cv_dlopen_self=yes
11816 echo "$as_me:$LINENO: checking for shl_load" >&5
11817 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11818 if test "${ac_cv_func_shl_load+set}" = set; then
11819 echo $ECHO_N "(cached) $ECHO_C" >&6
11821 cat >conftest.$ac_ext <<_ACEOF
11824 cat confdefs.h >>conftest.$ac_ext
11825 cat >>conftest.$ac_ext <<_ACEOF
11826 /* end confdefs.h. */
11827 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11829 #define shl_load innocuous_shl_load
11831 /* System header to define __stub macros and hopefully few prototypes,
11832 which can conflict with char shl_load (); below.
11833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11834 <limits.h> exists even on freestanding compilers. */
11837 # include <limits.h>
11839 # include <assert.h>
11844 /* Override any gcc2 internal prototype to avoid an error. */
11849 /* We use char because int might match the return type of a gcc2
11850 builtin and then its argument prototype would still apply. */
11852 /* The GNU C library defines this for functions which it implements
11853 to always fail with ENOSYS. Some functions are actually named
11854 something starting with __ and the normal name is an alias. */
11855 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11858 char (*f) () = shl_load;
11867 return f != shl_load;
11872 rm -f conftest.$ac_objext conftest$ac_exeext
11873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11874 (eval $ac_link) 2>conftest.er1
11876 grep -v '^ *+' conftest.er1 >conftest.err
11878 cat conftest.err >&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } &&
11881 { ac_try='test -z "$ac_cxx_werror_flag"
11882 || test ! -s conftest.err'
11883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11884 (eval $ac_try) 2>&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); }; } &&
11888 { ac_try='test -s conftest$ac_exeext'
11889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11890 (eval $ac_try) 2>&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); }; }; then
11894 ac_cv_func_shl_load=yes
11896 echo "$as_me: failed program was:" >&5
11897 sed 's/^/| /' conftest.$ac_ext >&5
11899 ac_cv_func_shl_load=no
11901 rm -f conftest.err conftest.$ac_objext \
11902 conftest$ac_exeext conftest.$ac_ext
11904 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11905 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11906 if test $ac_cv_func_shl_load = yes; then
11907 lt_cv_dlopen="shl_load"
11909 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11910 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11911 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11912 echo $ECHO_N "(cached) $ECHO_C" >&6
11914 ac_check_lib_save_LIBS=$LIBS
11916 cat >conftest.$ac_ext <<_ACEOF
11919 cat confdefs.h >>conftest.$ac_ext
11920 cat >>conftest.$ac_ext <<_ACEOF
11921 /* end confdefs.h. */
11923 /* Override any gcc2 internal prototype to avoid an error. */
11927 /* We use char because int might match the return type of a gcc2
11928 builtin and then its argument prototype would still apply. */
11938 rm -f conftest.$ac_objext conftest$ac_exeext
11939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11940 (eval $ac_link) 2>conftest.er1
11942 grep -v '^ *+' conftest.er1 >conftest.err
11944 cat conftest.err >&5
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); } &&
11947 { ac_try='test -z "$ac_cxx_werror_flag"
11948 || test ! -s conftest.err'
11949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950 (eval $ac_try) 2>&5
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; } &&
11954 { ac_try='test -s conftest$ac_exeext'
11955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11956 (eval $ac_try) 2>&5
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); }; }; then
11960 ac_cv_lib_dld_shl_load=yes
11962 echo "$as_me: failed program was:" >&5
11963 sed 's/^/| /' conftest.$ac_ext >&5
11965 ac_cv_lib_dld_shl_load=no
11967 rm -f conftest.err conftest.$ac_objext \
11968 conftest$ac_exeext conftest.$ac_ext
11969 LIBS=$ac_check_lib_save_LIBS
11971 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11972 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11973 if test $ac_cv_lib_dld_shl_load = yes; then
11974 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11976 echo "$as_me:$LINENO: checking for dlopen" >&5
11977 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11978 if test "${ac_cv_func_dlopen+set}" = set; then
11979 echo $ECHO_N "(cached) $ECHO_C" >&6
11981 cat >conftest.$ac_ext <<_ACEOF
11984 cat confdefs.h >>conftest.$ac_ext
11985 cat >>conftest.$ac_ext <<_ACEOF
11986 /* end confdefs.h. */
11987 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11989 #define dlopen innocuous_dlopen
11991 /* System header to define __stub macros and hopefully few prototypes,
11992 which can conflict with char dlopen (); below.
11993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11994 <limits.h> exists even on freestanding compilers. */
11997 # include <limits.h>
11999 # include <assert.h>
12004 /* Override any gcc2 internal prototype to avoid an error. */
12009 /* We use char because int might match the return type of a gcc2
12010 builtin and then its argument prototype would still apply. */
12012 /* The GNU C library defines this for functions which it implements
12013 to always fail with ENOSYS. Some functions are actually named
12014 something starting with __ and the normal name is an alias. */
12015 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12018 char (*f) () = dlopen;
12027 return f != dlopen;
12032 rm -f conftest.$ac_objext conftest$ac_exeext
12033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12034 (eval $ac_link) 2>conftest.er1
12036 grep -v '^ *+' conftest.er1 >conftest.err
12038 cat conftest.err >&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); } &&
12041 { ac_try='test -z "$ac_cxx_werror_flag"
12042 || test ! -s conftest.err'
12043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044 (eval $ac_try) 2>&5
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; } &&
12048 { ac_try='test -s conftest$ac_exeext'
12049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050 (eval $ac_try) 2>&5
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); }; }; then
12054 ac_cv_func_dlopen=yes
12056 echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.$ac_ext >&5
12059 ac_cv_func_dlopen=no
12061 rm -f conftest.err conftest.$ac_objext \
12062 conftest$ac_exeext conftest.$ac_ext
12064 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12065 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12066 if test $ac_cv_func_dlopen = yes; then
12067 lt_cv_dlopen="dlopen"
12069 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12070 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12071 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12072 echo $ECHO_N "(cached) $ECHO_C" >&6
12074 ac_check_lib_save_LIBS=$LIBS
12076 cat >conftest.$ac_ext <<_ACEOF
12079 cat confdefs.h >>conftest.$ac_ext
12080 cat >>conftest.$ac_ext <<_ACEOF
12081 /* end confdefs.h. */
12083 /* Override any gcc2 internal prototype to avoid an error. */
12087 /* We use char because int might match the return type of a gcc2
12088 builtin and then its argument prototype would still apply. */
12098 rm -f conftest.$ac_objext conftest$ac_exeext
12099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12100 (eval $ac_link) 2>conftest.er1
12102 grep -v '^ *+' conftest.er1 >conftest.err
12104 cat conftest.err >&5
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); } &&
12107 { ac_try='test -z "$ac_cxx_werror_flag"
12108 || test ! -s conftest.err'
12109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12110 (eval $ac_try) 2>&5
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); }; } &&
12114 { ac_try='test -s conftest$ac_exeext'
12115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12116 (eval $ac_try) 2>&5
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); }; }; then
12120 ac_cv_lib_dl_dlopen=yes
12122 echo "$as_me: failed program was:" >&5
12123 sed 's/^/| /' conftest.$ac_ext >&5
12125 ac_cv_lib_dl_dlopen=no
12127 rm -f conftest.err conftest.$ac_objext \
12128 conftest$ac_exeext conftest.$ac_ext
12129 LIBS=$ac_check_lib_save_LIBS
12131 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12132 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12133 if test $ac_cv_lib_dl_dlopen = yes; then
12134 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12136 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12137 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12138 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12139 echo $ECHO_N "(cached) $ECHO_C" >&6
12141 ac_check_lib_save_LIBS=$LIBS
12142 LIBS="-lsvld $LIBS"
12143 cat >conftest.$ac_ext <<_ACEOF
12146 cat confdefs.h >>conftest.$ac_ext
12147 cat >>conftest.$ac_ext <<_ACEOF
12148 /* end confdefs.h. */
12150 /* Override any gcc2 internal prototype to avoid an error. */
12154 /* We use char because int might match the return type of a gcc2
12155 builtin and then its argument prototype would still apply. */
12165 rm -f conftest.$ac_objext conftest$ac_exeext
12166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12167 (eval $ac_link) 2>conftest.er1
12169 grep -v '^ *+' conftest.er1 >conftest.err
12171 cat conftest.err >&5
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); } &&
12174 { ac_try='test -z "$ac_cxx_werror_flag"
12175 || test ! -s conftest.err'
12176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12177 (eval $ac_try) 2>&5
12179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); }; } &&
12181 { ac_try='test -s conftest$ac_exeext'
12182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12183 (eval $ac_try) 2>&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); }; }; then
12187 ac_cv_lib_svld_dlopen=yes
12189 echo "$as_me: failed program was:" >&5
12190 sed 's/^/| /' conftest.$ac_ext >&5
12192 ac_cv_lib_svld_dlopen=no
12194 rm -f conftest.err conftest.$ac_objext \
12195 conftest$ac_exeext conftest.$ac_ext
12196 LIBS=$ac_check_lib_save_LIBS
12198 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12199 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12200 if test $ac_cv_lib_svld_dlopen = yes; then
12201 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12203 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12204 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12205 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12206 echo $ECHO_N "(cached) $ECHO_C" >&6
12208 ac_check_lib_save_LIBS=$LIBS
12210 cat >conftest.$ac_ext <<_ACEOF
12213 cat confdefs.h >>conftest.$ac_ext
12214 cat >>conftest.$ac_ext <<_ACEOF
12215 /* end confdefs.h. */
12217 /* Override any gcc2 internal prototype to avoid an error. */
12221 /* We use char because int might match the return type of a gcc2
12222 builtin and then its argument prototype would still apply. */
12232 rm -f conftest.$ac_objext conftest$ac_exeext
12233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12234 (eval $ac_link) 2>conftest.er1
12236 grep -v '^ *+' conftest.er1 >conftest.err
12238 cat conftest.err >&5
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); } &&
12241 { ac_try='test -z "$ac_cxx_werror_flag"
12242 || test ! -s conftest.err'
12243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12244 (eval $ac_try) 2>&5
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); }; } &&
12248 { ac_try='test -s conftest$ac_exeext'
12249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12250 (eval $ac_try) 2>&5
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); }; }; then
12254 ac_cv_lib_dld_dld_link=yes
12256 echo "$as_me: failed program was:" >&5
12257 sed 's/^/| /' conftest.$ac_ext >&5
12259 ac_cv_lib_dld_dld_link=no
12261 rm -f conftest.err conftest.$ac_objext \
12262 conftest$ac_exeext conftest.$ac_ext
12263 LIBS=$ac_check_lib_save_LIBS
12265 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12266 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12267 if test $ac_cv_lib_dld_dld_link = yes; then
12268 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12289 if test "x$lt_cv_dlopen" != xno; then
12295 case $lt_cv_dlopen in
12297 save_CPPFLAGS="$CPPFLAGS"
12298 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12300 save_LDFLAGS="$LDFLAGS"
12301 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12304 LIBS="$lt_cv_dlopen_libs $LIBS"
12306 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12307 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12308 if test "${lt_cv_dlopen_self+set}" = set; then
12309 echo $ECHO_N "(cached) $ECHO_C" >&6
12311 if test "$cross_compiling" = yes; then :
12312 lt_cv_dlopen_self=cross
12314 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12315 lt_status=$lt_dlunknown
12316 cat > conftest.$ac_ext <<EOF
12317 #line 12317 "configure"
12318 #include "confdefs.h"
12327 # define LT_DLGLOBAL RTLD_GLOBAL
12330 # define LT_DLGLOBAL DL_GLOBAL
12332 # define LT_DLGLOBAL 0
12336 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12337 find out it does not work in some platform. */
12338 #ifndef LT_DLLAZY_OR_NOW
12340 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12343 # define LT_DLLAZY_OR_NOW DL_LAZY
12346 # define LT_DLLAZY_OR_NOW RTLD_NOW
12349 # define LT_DLLAZY_OR_NOW DL_NOW
12351 # define LT_DLLAZY_OR_NOW 0
12359 extern "C" void exit (int);
12362 void fnord() { int i=42;}
12365 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12366 int status = $lt_dlunknown;
12370 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12371 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12372 /* dlclose (self); */
12378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12379 (eval $ac_link) 2>&5
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12383 (./conftest; exit; ) 2>/dev/null
12385 case x$lt_status in
12386 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12387 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12388 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12391 # compilation failed
12392 lt_cv_dlopen_self=no
12399 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12400 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12402 if test "x$lt_cv_dlopen_self" = xyes; then
12403 LDFLAGS="$LDFLAGS $link_static_flag"
12404 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12405 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12406 if test "${lt_cv_dlopen_self_static+set}" = set; then
12407 echo $ECHO_N "(cached) $ECHO_C" >&6
12409 if test "$cross_compiling" = yes; then :
12410 lt_cv_dlopen_self_static=cross
12412 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12413 lt_status=$lt_dlunknown
12414 cat > conftest.$ac_ext <<EOF
12415 #line 12415 "configure"
12416 #include "confdefs.h"
12425 # define LT_DLGLOBAL RTLD_GLOBAL
12428 # define LT_DLGLOBAL DL_GLOBAL
12430 # define LT_DLGLOBAL 0
12434 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12435 find out it does not work in some platform. */
12436 #ifndef LT_DLLAZY_OR_NOW
12438 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12441 # define LT_DLLAZY_OR_NOW DL_LAZY
12444 # define LT_DLLAZY_OR_NOW RTLD_NOW
12447 # define LT_DLLAZY_OR_NOW DL_NOW
12449 # define LT_DLLAZY_OR_NOW 0
12457 extern "C" void exit (int);
12460 void fnord() { int i=42;}
12463 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12464 int status = $lt_dlunknown;
12468 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12469 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12470 /* dlclose (self); */
12476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12477 (eval $ac_link) 2>&5
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12481 (./conftest; exit; ) 2>/dev/null
12483 case x$lt_status in
12484 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12485 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12486 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12489 # compilation failed
12490 lt_cv_dlopen_self_static=no
12497 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12498 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12501 CPPFLAGS="$save_CPPFLAGS"
12502 LDFLAGS="$save_LDFLAGS"
12507 case $lt_cv_dlopen_self in
12508 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12509 *) enable_dlopen_self=unknown ;;
12512 case $lt_cv_dlopen_self_static in
12513 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12514 *) enable_dlopen_self_static=unknown ;;
12519 # The else clause should only fire when bootstrapping the
12520 # libtool distribution, otherwise you forgot to ship ltmain.sh
12521 # with your package, and you will get complaints that there are
12522 # no rules to generate ltmain.sh.
12523 if test -f "$ltmain"; then
12524 # See if we are running on zsh, and set the options which allow our commands through
12525 # without removal of \ escapes.
12526 if test -n "${ZSH_VERSION+set}" ; then
12527 setopt NO_GLOB_SUBST
12529 # Now quote all the things that may contain metacharacters while being
12530 # careful not to overquote the AC_SUBSTed values. We take copies of the
12531 # variables and quote the copies for generation of the libtool script.
12532 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12534 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12535 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12536 deplibs_check_method reload_flag reload_cmds need_locks \
12537 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12538 lt_cv_sys_global_symbol_to_c_name_address \
12539 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12540 old_postinstall_cmds old_postuninstall_cmds \
12544 lt_prog_compiler_wl_CXX \
12545 lt_prog_compiler_pic_CXX \
12546 lt_prog_compiler_static_CXX \
12547 lt_prog_compiler_no_builtin_flag_CXX \
12548 export_dynamic_flag_spec_CXX \
12549 thread_safe_flag_spec_CXX \
12550 whole_archive_flag_spec_CXX \
12551 enable_shared_with_static_runtimes_CXX \
12552 old_archive_cmds_CXX \
12553 old_archive_from_new_cmds_CXX \
12554 predep_objects_CXX \
12555 postdep_objects_CXX \
12558 compiler_lib_search_path_CXX \
12560 archive_expsym_cmds_CXX \
12561 postinstall_cmds_CXX \
12562 postuninstall_cmds_CXX \
12563 old_archive_from_expsyms_cmds_CXX \
12564 allow_undefined_flag_CXX \
12565 no_undefined_flag_CXX \
12566 export_symbols_cmds_CXX \
12567 hardcode_libdir_flag_spec_CXX \
12568 hardcode_libdir_flag_spec_ld_CXX \
12569 hardcode_libdir_separator_CXX \
12570 hardcode_automatic_CXX \
12572 module_expsym_cmds_CXX \
12573 lt_cv_prog_compiler_c_o_CXX \
12574 exclude_expsyms_CXX \
12575 include_expsyms_CXX; do
12578 old_archive_cmds_CXX | \
12579 old_archive_from_new_cmds_CXX | \
12580 archive_cmds_CXX | \
12581 archive_expsym_cmds_CXX | \
12582 module_cmds_CXX | \
12583 module_expsym_cmds_CXX | \
12584 old_archive_from_expsyms_cmds_CXX | \
12585 export_symbols_cmds_CXX | \
12586 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12587 postinstall_cmds | postuninstall_cmds | \
12588 old_postinstall_cmds | old_postuninstall_cmds | \
12589 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12590 # Double-quote double-evaled strings.
12591 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12594 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12600 *'\$0 --fallback-echo"')
12601 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12607 cat <<__EOF__ >> "$cfgfile"
12608 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12610 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12612 # Shell to use when invoking shell scripts.
12615 # Whether or not to build shared libraries.
12616 build_libtool_libs=$enable_shared
12618 # Whether or not to build static libraries.
12619 build_old_libs=$enable_static
12621 # Whether or not to add -lc for building shared libraries.
12622 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12624 # Whether or not to disallow shared libs when runtime libs are static
12625 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12627 # Whether or not to optimize for fast installation.
12628 fast_install=$enable_fast_install
12631 host_alias=$host_alias
12634 # An echo program that does not interpret backslashes.
12639 AR_FLAGS=$lt_AR_FLAGS
12644 # A language-specific compiler.
12645 CC=$lt_compiler_CXX
12647 # Is the compiler the GNU C compiler?
12653 # The linker used to build libraries.
12656 # Whether we need hard or soft links.
12659 # A BSD-compatible nm program.
12662 # A symbol stripping program
12665 # Used to examine libraries when file_magic_cmd begins "file"
12666 MAGIC_CMD=$MAGIC_CMD
12668 # Used on cygwin: DLL creation program.
12671 # Used on cygwin: object dumper.
12674 # Used on cygwin: assembler.
12677 # The name of the directory that contains temporary libtool files.
12680 # How to create reloadable object files.
12681 reload_flag=$lt_reload_flag
12682 reload_cmds=$lt_reload_cmds
12684 # How to pass a linker flag through the compiler.
12685 wl=$lt_lt_prog_compiler_wl_CXX
12687 # Object file suffix (normally "o").
12688 objext="$ac_objext"
12690 # Old archive suffix (normally "a").
12693 # Shared library suffix (normally ".so").
12694 shrext_cmds='$shrext_cmds'
12696 # Executable file suffix (normally "").
12699 # Additional compiler flags for building library objects.
12700 pic_flag=$lt_lt_prog_compiler_pic_CXX
12703 # What is the maximum length of a command?
12704 max_cmd_len=$lt_cv_sys_max_cmd_len
12706 # Does compiler simultaneously support -c and -o options?
12707 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12709 # Must we lock files when doing compilation ?
12710 need_locks=$lt_need_locks
12712 # Do we need the lib prefix for modules?
12713 need_lib_prefix=$need_lib_prefix
12715 # Do we need a version for libraries?
12716 need_version=$need_version
12718 # Whether dlopen is supported.
12719 dlopen_support=$enable_dlopen
12721 # Whether dlopen of programs is supported.
12722 dlopen_self=$enable_dlopen_self
12724 # Whether dlopen of statically linked programs is supported.
12725 dlopen_self_static=$enable_dlopen_self_static
12727 # Compiler flag to prevent dynamic linking.
12728 link_static_flag=$lt_lt_prog_compiler_static_CXX
12730 # Compiler flag to turn off builtin functions.
12731 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12733 # Compiler flag to allow reflexive dlopens.
12734 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12736 # Compiler flag to generate shared objects directly from archives.
12737 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12739 # Compiler flag to generate thread-safe objects.
12740 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12742 # Library versioning type.
12743 version_type=$version_type
12745 # Format of library name prefix.
12746 libname_spec=$lt_libname_spec
12748 # List of archive names. First name is the real one, the rest are links.
12749 # The last name is the one that the linker finds with -lNAME.
12750 library_names_spec=$lt_library_names_spec
12752 # The coded name of the library, if different from the real name.
12753 soname_spec=$lt_soname_spec
12755 # Commands used to build and install an old-style archive.
12757 old_archive_cmds=$lt_old_archive_cmds_CXX
12758 old_postinstall_cmds=$lt_old_postinstall_cmds
12759 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12761 # Create an old-style archive from a shared archive.
12762 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12764 # Create a temporary old-style archive to link instead of a shared archive.
12765 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12767 # Commands used to build and install a shared archive.
12768 archive_cmds=$lt_archive_cmds_CXX
12769 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12770 postinstall_cmds=$lt_postinstall_cmds
12771 postuninstall_cmds=$lt_postuninstall_cmds
12773 # Commands used to build a loadable module (assumed same as above if empty)
12774 module_cmds=$lt_module_cmds_CXX
12775 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12777 # Commands to strip libraries.
12778 old_striplib=$lt_old_striplib
12779 striplib=$lt_striplib
12781 # Dependencies to place before the objects being linked to create a
12783 predep_objects=$lt_predep_objects_CXX
12785 # Dependencies to place after the objects being linked to create a
12787 postdep_objects=$lt_postdep_objects_CXX
12789 # Dependencies to place before the objects being linked to create a
12791 predeps=$lt_predeps_CXX
12793 # Dependencies to place after the objects being linked to create a
12795 postdeps=$lt_postdeps_CXX
12797 # The library search path used internally by the compiler when linking
12798 # a shared library.
12799 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12801 # Method to check whether dependent libraries are shared objects.
12802 deplibs_check_method=$lt_deplibs_check_method
12804 # Command to use when deplibs_check_method == file_magic.
12805 file_magic_cmd=$lt_file_magic_cmd
12807 # Flag that allows shared libraries with undefined symbols to be built.
12808 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12810 # Flag that forces no undefined symbols.
12811 no_undefined_flag=$lt_no_undefined_flag_CXX
12813 # Commands used to finish a libtool library installation in a directory.
12814 finish_cmds=$lt_finish_cmds
12816 # Same as above, but a single script fragment to be evaled but not shown.
12817 finish_eval=$lt_finish_eval
12819 # Take the output of nm and produce a listing of raw symbols and C names.
12820 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12822 # Transform the output of nm in a proper C declaration
12823 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12825 # Transform the output of nm in a C name address pair
12826 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12828 # This is the shared library runtime path variable.
12829 runpath_var=$runpath_var
12831 # This is the shared library path variable.
12832 shlibpath_var=$shlibpath_var
12834 # Is shlibpath searched before the hard-coded library search path?
12835 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12837 # How to hardcode a shared library path into an executable.
12838 hardcode_action=$hardcode_action_CXX
12840 # Whether we should hardcode library paths into libraries.
12841 hardcode_into_libs=$hardcode_into_libs
12843 # Flag to hardcode \$libdir into a binary during linking.
12844 # This must work even if \$libdir does not exist.
12845 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12847 # If ld is used when linking, flag to hardcode \$libdir into
12848 # a binary during linking. This must work even if \$libdir does
12850 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12852 # Whether we need a single -rpath flag with a separated argument.
12853 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12855 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12856 # resulting binary.
12857 hardcode_direct=$hardcode_direct_CXX
12859 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12860 # resulting binary.
12861 hardcode_minus_L=$hardcode_minus_L_CXX
12863 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12864 # the resulting binary.
12865 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12867 # Set to yes if building a shared library automatically hardcodes DIR into the library
12868 # and all subsequent libraries and executables linked against it.
12869 hardcode_automatic=$hardcode_automatic_CXX
12871 # Variables whose values should be saved in libtool wrapper scripts and
12872 # restored at relink time.
12873 variables_saved_for_relink="$variables_saved_for_relink"
12875 # Whether libtool must link a program against all its dependency libraries.
12876 link_all_deplibs=$link_all_deplibs_CXX
12878 # Compile-time system search path for libraries
12879 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12881 # Run-time system search path for libraries
12882 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12884 # Fix the shell variable \$srcfile for the compiler.
12885 fix_srcfile_path="$fix_srcfile_path_CXX"
12887 # Set to yes if exported symbols are required.
12888 always_export_symbols=$always_export_symbols_CXX
12890 # The commands to list exported symbols.
12891 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12893 # The commands to extract the exported symbol list from a shared archive.
12894 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12896 # Symbols that should not be listed in the preloaded symbols.
12897 exclude_expsyms=$lt_exclude_expsyms_CXX
12899 # Symbols that must always be exported.
12900 include_expsyms=$lt_include_expsyms_CXX
12902 # ### END LIBTOOL TAG CONFIG: $tagname
12908 # If there is no Makefile yet, we rely on a make rule to execute
12909 # `config.status --recheck' to rerun these tests and create the
12910 # libtool script then.
12911 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12912 if test -f "$ltmain_in"; then
12913 test -f Makefile && make "$ltmain"
12919 ac_cpp='$CPP $CPPFLAGS'
12920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12928 with_gnu_ldcxx=$with_gnu_ld
12929 with_gnu_ld=$lt_save_with_gnu_ld
12930 lt_cv_path_LDCXX=$lt_cv_path_LD
12931 lt_cv_path_LD=$lt_save_path_LD
12932 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12933 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12941 if test -n "$F77" && test "X$F77" != "Xno"; then
12944 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12945 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12946 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12949 archive_cmds_need_lc_F77=no
12950 allow_undefined_flag_F77=
12951 always_export_symbols_F77=no
12952 archive_expsym_cmds_F77=
12953 export_dynamic_flag_spec_F77=
12954 hardcode_direct_F77=no
12955 hardcode_libdir_flag_spec_F77=
12956 hardcode_libdir_flag_spec_ld_F77=
12957 hardcode_libdir_separator_F77=
12958 hardcode_minus_L_F77=no
12959 hardcode_automatic_F77=no
12961 module_expsym_cmds_F77=
12962 link_all_deplibs_F77=unknown
12963 old_archive_cmds_F77=$old_archive_cmds
12964 no_undefined_flag_F77=
12965 whole_archive_flag_spec_F77=
12966 enable_shared_with_static_runtimes_F77=no
12968 # Source file extension for f77 test sources.
12971 # Object file extension for compiled f77 test sources.
12975 # Code to be used in simple compile tests
12976 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12978 # Code to be used in simple link tests
12979 lt_simple_link_test_code=" program t\n end\n"
12981 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12983 # If no C compiler was specified, use CC.
12986 # Allow CC to be a program name with arguments.
12990 # Allow CC to be a program name with arguments.
12995 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12997 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12998 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12999 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13000 echo "${ECHO_T}$can_build_shared" >&6
13002 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13003 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13004 test "$can_build_shared" = "no" && enable_shared=no
13006 # On AIX, shared libraries and static libraries use the same namespace, and
13007 # are all built from PIC.
13010 test "$enable_shared" = yes && enable_static=no
13011 if test -n "$RANLIB"; then
13012 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13013 postinstall_cmds='$RANLIB $lib'
13017 test "$enable_shared" = yes && enable_static=no
13020 echo "$as_me:$LINENO: result: $enable_shared" >&5
13021 echo "${ECHO_T}$enable_shared" >&6
13023 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13024 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13025 # Make sure either enable_shared or enable_static is yes.
13026 test "$enable_shared" = yes || enable_static=yes
13027 echo "$as_me:$LINENO: result: $enable_static" >&5
13028 echo "${ECHO_T}$enable_static" >&6
13030 test "$ld_shlibs_F77" = no && can_build_shared=no
13035 lt_prog_compiler_wl_F77=
13036 lt_prog_compiler_pic_F77=
13037 lt_prog_compiler_static_F77=
13039 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13040 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13042 if test "$GCC" = yes; then
13043 lt_prog_compiler_wl_F77='-Wl,'
13044 lt_prog_compiler_static_F77='-static'
13048 # All AIX code is PIC.
13049 if test "$host_cpu" = ia64; then
13050 # AIX 5 now supports IA64 processor
13051 lt_prog_compiler_static_F77='-Bstatic'
13056 # FIXME: we need at least 68020 code to build shared libraries, but
13057 # adding the `-m68020' flag to GCC prevents building anything better,
13059 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13062 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13063 # PIC is the default for these OSes.
13066 mingw* | pw32* | os2*)
13067 # This hack is so that the source file can tell whether it is being
13068 # built for inclusion in a dll (and should export symbols for example).
13069 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13072 darwin* | rhapsody*)
13073 # PIC is the default on this platform
13074 # Common symbols not allowed in MH_DYLIB files
13075 lt_prog_compiler_pic_F77='-fno-common'
13079 # Just because we use GCC doesn't mean we suddenly get shared libraries
13080 # on systems that don't support them.
13081 lt_prog_compiler_can_build_shared_F77=no
13086 if test -d /usr/nec; then
13087 lt_prog_compiler_pic_F77=-Kconform_pic
13092 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13093 # not for PA HP-UX.
13094 case "$host_cpu" in
13099 lt_prog_compiler_pic_F77='-fPIC'
13105 lt_prog_compiler_pic_F77='-fPIC'
13109 # PORTME Check for flag to pass linker flags through the system compiler.
13112 lt_prog_compiler_wl_F77='-Wl,'
13113 if test "$host_cpu" = ia64; then
13114 # AIX 5 now supports IA64 processor
13115 lt_prog_compiler_static_F77='-Bstatic'
13117 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13121 # PIC is the default on this platform
13122 # Common symbols not allowed in MH_DYLIB files
13123 case "$cc_basename" in
13125 lt_prog_compiler_pic_F77='-qnocommon'
13126 lt_prog_compiler_wl_F77='-Wl,'
13131 mingw* | pw32* | os2*)
13132 # This hack is so that the source file can tell whether it is being
13133 # built for inclusion in a dll (and should export symbols for example).
13134 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13137 hpux9* | hpux10* | hpux11*)
13138 lt_prog_compiler_wl_F77='-Wl,'
13139 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13140 # not for PA HP-UX.
13141 case "$host_cpu" in
13146 lt_prog_compiler_pic_F77='+Z'
13149 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13150 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13153 irix5* | irix6* | nonstopux*)
13154 lt_prog_compiler_wl_F77='-Wl,'
13155 # PIC (with -KPIC) is the default.
13156 lt_prog_compiler_static_F77='-non_shared'
13160 lt_prog_compiler_pic_F77='-KPIC'
13161 lt_prog_compiler_static_F77='-Bstatic'
13167 lt_prog_compiler_wl_F77='-Wl,'
13168 lt_prog_compiler_pic_F77='-KPIC'
13169 lt_prog_compiler_static_F77='-static'
13172 lt_prog_compiler_wl_F77='-Wl,'
13173 # All Alpha code is PIC.
13174 lt_prog_compiler_static_F77='-non_shared'
13179 osf3* | osf4* | osf5*)
13180 lt_prog_compiler_wl_F77='-Wl,'
13181 # All OSF/1 code is PIC.
13182 lt_prog_compiler_static_F77='-non_shared'
13186 lt_prog_compiler_pic_F77='-Kpic'
13187 lt_prog_compiler_static_F77='-dn'
13191 lt_prog_compiler_wl_F77='-Wl,'
13192 lt_prog_compiler_pic_F77='-KPIC'
13193 lt_prog_compiler_static_F77='-Bstatic'
13197 lt_prog_compiler_wl_F77='-Qoption ld '
13198 lt_prog_compiler_pic_F77='-PIC'
13199 lt_prog_compiler_static_F77='-Bstatic'
13202 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13203 lt_prog_compiler_wl_F77='-Wl,'
13204 lt_prog_compiler_pic_F77='-KPIC'
13205 lt_prog_compiler_static_F77='-Bstatic'
13209 if test -d /usr/nec ;then
13210 lt_prog_compiler_pic_F77='-Kconform_pic'
13211 lt_prog_compiler_static_F77='-Bstatic'
13216 lt_prog_compiler_pic_F77='-pic'
13217 lt_prog_compiler_static_F77='-Bstatic'
13221 lt_prog_compiler_can_build_shared_F77=no
13226 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13227 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13230 # Check to make sure the PIC flag actually works.
13232 if test -n "$lt_prog_compiler_pic_F77"; then
13234 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13235 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13236 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13237 echo $ECHO_N "(cached) $ECHO_C" >&6
13239 lt_prog_compiler_pic_works_F77=no
13240 ac_outfile=conftest.$ac_objext
13241 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13242 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13243 # Insert the option either (1) after the last *FLAGS variable, or
13244 # (2) before a word containing "conftest.", or (3) at the end.
13245 # Note that $ac_compile itself does not contain backslashes and begins
13246 # with a dollar sign (not a hyphen), so the echo should work correctly.
13247 # The option is referenced via a variable to avoid confusing sed.
13248 lt_compile=`echo "$ac_compile" | $SED \
13249 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13250 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13251 -e 's:$: $lt_compiler_flag:'`
13252 (eval echo "\"\$as_me:13252: $lt_compile\"" >&5)
13253 (eval "$lt_compile" 2>conftest.err)
13255 cat conftest.err >&5
13256 echo "$as_me:13256: \$? = $ac_status" >&5
13257 if (exit $ac_status) && test -s "$ac_outfile"; then
13258 # The compiler can only warn and ignore the option if not recognized
13259 # So say no if there are warnings
13260 if test ! -s conftest.err; then
13261 lt_prog_compiler_pic_works_F77=yes
13267 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13268 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13270 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13271 case $lt_prog_compiler_pic_F77 in
13273 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13276 lt_prog_compiler_pic_F77=
13277 lt_prog_compiler_can_build_shared_F77=no
13282 # For platforms which do not support PIC, -DPIC is meaningless:
13284 lt_prog_compiler_pic_F77=
13287 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13291 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13292 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13293 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13294 echo $ECHO_N "(cached) $ECHO_C" >&6
13296 lt_cv_prog_compiler_c_o_F77=no
13297 $rm -r conftest 2>/dev/null
13301 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13303 lt_compiler_flag="-o out/conftest2.$ac_objext"
13304 # Insert the option either (1) after the last *FLAGS variable, or
13305 # (2) before a word containing "conftest.", or (3) at the end.
13306 # Note that $ac_compile itself does not contain backslashes and begins
13307 # with a dollar sign (not a hyphen), so the echo should work correctly.
13308 lt_compile=`echo "$ac_compile" | $SED \
13309 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13310 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13311 -e 's:$: $lt_compiler_flag:'`
13312 (eval echo "\"\$as_me:13312: $lt_compile\"" >&5)
13313 (eval "$lt_compile" 2>out/conftest.err)
13315 cat out/conftest.err >&5
13316 echo "$as_me:13316: \$? = $ac_status" >&5
13317 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13319 # The compiler can only warn and ignore the option if not recognized
13320 # So say no if there are warnings
13321 if test ! -s out/conftest.err; then
13322 lt_cv_prog_compiler_c_o_F77=yes
13327 # SGI C++ compiler will create directory out/ii_files/ for
13328 # template instantiation
13329 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13330 $rm out/* && rmdir out
13336 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13337 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13340 hard_links="nottested"
13341 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13342 # do not overwrite the value of need_locks provided by the user
13343 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13344 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13347 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13349 ln conftest.a conftest.b 2>&5 || hard_links=no
13350 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13351 echo "$as_me:$LINENO: result: $hard_links" >&5
13352 echo "${ECHO_T}$hard_links" >&6
13353 if test "$hard_links" = no; then
13354 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13355 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13362 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13363 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13366 allow_undefined_flag_F77=
13367 enable_shared_with_static_runtimes_F77=no
13369 archive_expsym_cmds_F77=
13370 old_archive_From_new_cmds_F77=
13371 old_archive_from_expsyms_cmds_F77=
13372 export_dynamic_flag_spec_F77=
13373 whole_archive_flag_spec_F77=
13374 thread_safe_flag_spec_F77=
13375 hardcode_libdir_flag_spec_F77=
13376 hardcode_libdir_flag_spec_ld_F77=
13377 hardcode_libdir_separator_F77=
13378 hardcode_direct_F77=no
13379 hardcode_minus_L_F77=no
13380 hardcode_shlibpath_var_F77=unsupported
13381 link_all_deplibs_F77=unknown
13382 hardcode_automatic_F77=no
13384 module_expsym_cmds_F77=
13385 always_export_symbols_F77=no
13386 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13387 # include_expsyms should be a list of space-separated symbols to be *always*
13388 # included in the symbol list
13389 include_expsyms_F77=
13390 # exclude_expsyms can be an extended regexp of symbols to exclude
13391 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13392 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13393 # as well as any symbol that contains `d'.
13394 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13395 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13396 # platforms (ab)use it in PIC code, but their linkers get confused if
13397 # the symbol is explicitly referenced. Since portable code cannot
13398 # rely on this symbol name, it's probably fine to never include it in
13399 # preloaded symbol tables.
13400 extract_expsyms_cmds=
13403 cygwin* | mingw* | pw32*)
13404 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13405 # When not using gcc, we currently assume that we are using
13406 # Microsoft Visual C++.
13407 if test "$GCC" != yes; then
13417 if test "$with_gnu_ld" = yes; then
13418 # If archive_cmds runs LD, not CC, wlarc should be empty
13421 # See if GNU ld supports shared libraries.
13423 aix3* | aix4* | aix5*)
13424 # On AIX/PPC, the GNU linker is very broken
13425 if test "$host_cpu" != ia64; then
13429 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13430 *** to be unable to reliably create shared libraries on AIX.
13431 *** Therefore, libtool is disabling shared libraries support. If you
13432 *** really care for shared libraries, you may want to modify your PATH
13433 *** so that a non-GNU linker is found, and then restart.
13440 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)'
13441 hardcode_libdir_flag_spec_F77='-L$libdir'
13442 hardcode_minus_L_F77=yes
13444 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13445 # that the semantics of dynamic libraries on AmigaOS, at least up
13446 # to version 4, is to share data among multiple programs linked
13447 # with the same dynamic library. Since this doesn't match the
13448 # behavior of shared libraries on other platforms, we can't use
13454 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13455 allow_undefined_flag_F77=unsupported
13456 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13457 # support --undefined. This deserves some investigation. FIXME
13458 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13464 cygwin* | mingw* | pw32*)
13465 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13466 # as there is no search path for DLLs.
13467 hardcode_libdir_flag_spec_F77='-L$libdir'
13468 allow_undefined_flag_F77=unsupported
13469 always_export_symbols_F77=no
13470 enable_shared_with_static_runtimes_F77=yes
13471 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13473 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13474 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13475 # If the export-symbols file already is a .def file (1st line
13476 # is EXPORTS), use it as is; otherwise, prepend...
13477 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13478 cp $export_symbols $output_objdir/$soname.def;
13480 echo EXPORTS > $output_objdir/$soname.def;
13481 cat $export_symbols >> $output_objdir/$soname.def;
13483 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13490 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13491 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13494 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13495 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13500 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13504 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13505 *** create shared libraries on Solaris systems. Therefore, libtool
13506 *** is disabling shared libraries support. We urge you to upgrade GNU
13507 *** binutils to release 2.9.1 or newer. Another option is to modify
13508 *** your PATH or compiler configuration so that the native linker is
13509 *** used, and then restart.
13512 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13513 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13514 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13521 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13523 hardcode_direct_F77=yes
13524 hardcode_shlibpath_var_F77=no
13528 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13529 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13530 archive_cmds_F77="$tmp_archive_cmds"
13531 supports_anon_versioning=no
13532 case `$LD -v 2>/dev/null` in
13533 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13534 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13535 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13536 *\ 2.11.*) ;; # other 2.11 versions
13537 *) supports_anon_versioning=yes ;;
13539 if test $supports_anon_versioning = yes; then
13540 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13541 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13542 $echo "local: *; };" >> $output_objdir/$libname.ver~
13543 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13545 archive_expsym_cmds_F77="$tmp_archive_cmds"
13553 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13554 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13555 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13562 if test "$ld_shlibs_F77" = yes; then
13563 runpath_var=LD_RUN_PATH
13564 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13565 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13566 # ancient GNU ld didn't support --whole-archive et. al.
13567 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13568 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13570 whole_archive_flag_spec_F77=
13574 # PORTME fill in a description of your system's linker (not GNU ld)
13577 allow_undefined_flag_F77=unsupported
13578 always_export_symbols_F77=yes
13579 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'
13580 # Note: this linker hardcodes the directories in LIBPATH if there
13581 # are no directories specified by -L.
13582 hardcode_minus_L_F77=yes
13583 if test "$GCC" = yes && test -z "$link_static_flag"; then
13584 # Neither direct hardcoding nor static linking is supported with a
13586 hardcode_direct_F77=unsupported
13591 if test "$host_cpu" = ia64; then
13592 # On IA64, the linker does run time linking by default, so we don't
13593 # have to do anything special.
13594 aix_use_runtimelinking=no
13595 exp_sym_flag='-Bexport'
13598 # If we're using GNU nm, then we don't want the "-C" option.
13599 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13600 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13601 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'
13603 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'
13605 aix_use_runtimelinking=no
13607 # Test if we are trying to use run time linking or normal
13608 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13609 # need to do runtime linking.
13610 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13611 for ld_flag in $LDFLAGS; do
13612 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13613 aix_use_runtimelinking=yes
13619 exp_sym_flag='-bexport'
13620 no_entry_flag='-bnoentry'
13623 # When large executables or shared objects are built, AIX ld can
13624 # have problems creating the table of contents. If linking a library
13625 # or program results in "error TOC overflow" add -mminimal-toc to
13626 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13627 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13629 archive_cmds_F77=''
13630 hardcode_direct_F77=yes
13631 hardcode_libdir_separator_F77=':'
13632 link_all_deplibs_F77=yes
13634 if test "$GCC" = yes; then
13635 case $host_os in aix4.012|aix4.012.*)
13636 # We only want to do this on AIX 4.2 and lower, the check
13637 # below for broken collect2 doesn't work under 4.3+
13638 collect2name=`${CC} -print-prog-name=collect2`
13639 if test -f "$collect2name" && \
13640 strings "$collect2name" | grep resolve_lib_name >/dev/null
13642 # We have reworked collect2
13643 hardcode_direct_F77=yes
13645 # We have old collect2
13646 hardcode_direct_F77=unsupported
13647 # It fails to find uninstalled libraries when the uninstalled
13648 # path is not listed in the libpath. Setting hardcode_minus_L
13649 # to unsupported forces relinking
13650 hardcode_minus_L_F77=yes
13651 hardcode_libdir_flag_spec_F77='-L$libdir'
13652 hardcode_libdir_separator_F77=
13655 shared_flag='-shared'
13658 if test "$host_cpu" = ia64; then
13659 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13660 # chokes on -Wl,-G. The following line is correct:
13663 if test "$aix_use_runtimelinking" = yes; then
13664 shared_flag='${wl}-G'
13666 shared_flag='${wl}-bM:SRE'
13671 # It seems that -bexpall does not export symbols beginning with
13672 # underscore (_), so it is better to generate a list of symbols to export.
13673 always_export_symbols_F77=yes
13674 if test "$aix_use_runtimelinking" = yes; then
13675 # Warning - without using the other runtime loading flags (-brtl),
13676 # -berok will link without error, but may produce a broken library.
13677 allow_undefined_flag_F77='-berok'
13678 # Determine the default libpath from the value encoded in an empty executable.
13679 cat >conftest.$ac_ext <<_ACEOF
13684 rm -f conftest.$ac_objext conftest$ac_exeext
13685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13686 (eval $ac_link) 2>conftest.er1
13688 grep -v '^ *+' conftest.er1 >conftest.err
13690 cat conftest.err >&5
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); } &&
13693 { ac_try='test -z "$ac_f77_werror_flag"
13694 || test ! -s conftest.err'
13695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13696 (eval $ac_try) 2>&5
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); }; } &&
13700 { ac_try='test -s conftest$ac_exeext'
13701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13702 (eval $ac_try) 2>&5
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); }; }; then
13707 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13709 # Check for a 64-bit object if we didn't find anything.
13710 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; }
13713 echo "$as_me: failed program was:" >&5
13714 sed 's/^/| /' conftest.$ac_ext >&5
13717 rm -f conftest.err conftest.$ac_objext \
13718 conftest$ac_exeext conftest.$ac_ext
13719 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13721 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13722 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"
13724 if test "$host_cpu" = ia64; then
13725 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13726 allow_undefined_flag_F77="-z nodefs"
13727 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"
13729 # Determine the default libpath from the value encoded in an empty executable.
13730 cat >conftest.$ac_ext <<_ACEOF
13735 rm -f conftest.$ac_objext conftest$ac_exeext
13736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13737 (eval $ac_link) 2>conftest.er1
13739 grep -v '^ *+' conftest.er1 >conftest.err
13741 cat conftest.err >&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); } &&
13744 { ac_try='test -z "$ac_f77_werror_flag"
13745 || test ! -s conftest.err'
13746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13747 (eval $ac_try) 2>&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); }; } &&
13751 { ac_try='test -s conftest$ac_exeext'
13752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13753 (eval $ac_try) 2>&5
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); }; }; then
13758 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13760 # Check for a 64-bit object if we didn't find anything.
13761 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; }
13764 echo "$as_me: failed program was:" >&5
13765 sed 's/^/| /' conftest.$ac_ext >&5
13768 rm -f conftest.err conftest.$ac_objext \
13769 conftest$ac_exeext conftest.$ac_ext
13770 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13772 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13773 # Warning - without using the other run time loading flags,
13774 # -berok will link without error, but may produce a broken library.
13775 no_undefined_flag_F77=' ${wl}-bernotok'
13776 allow_undefined_flag_F77=' ${wl}-berok'
13777 # -bexpall does not export symbols beginning with underscore (_)
13778 always_export_symbols_F77=yes
13779 # Exported symbols can be pulled into shared objects from archives
13780 whole_archive_flag_spec_F77=' '
13781 archive_cmds_need_lc_F77=yes
13782 # This is similar to how AIX traditionally builds it's shared libraries.
13783 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'
13789 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)'
13790 hardcode_libdir_flag_spec_F77='-L$libdir'
13791 hardcode_minus_L_F77=yes
13792 # see comment about different semantics on the GNU ld section
13797 export_dynamic_flag_spec_F77=-rdynamic
13800 cygwin* | mingw* | pw32*)
13801 # When not using gcc, we currently assume that we are using
13802 # Microsoft Visual C++.
13803 # hardcode_libdir_flag_spec is actually meaningless, as there is
13804 # no search path for DLLs.
13805 hardcode_libdir_flag_spec_F77=' '
13806 allow_undefined_flag_F77=unsupported
13807 # Tell ltmain to make .lib files, not .a files.
13809 # Tell ltmain to make .dll files, not .so files.
13811 # FIXME: Setting linknames here is a bad hack.
13812 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13813 # The linker will automatically build a .lib file if we build a DLL.
13814 old_archive_From_new_cmds_F77='true'
13815 # FIXME: Should let the user specify the lib program.
13816 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13817 fix_srcfile_path='`cygpath -w "$srcfile"`'
13818 enable_shared_with_static_runtimes_F77=yes
13821 darwin* | rhapsody*)
13823 rhapsody* | darwin1.[012])
13824 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13827 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13828 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13830 case ${MACOSX_DEPLOYMENT_TARGET} in
13832 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13835 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13841 archive_cmds_need_lc_F77=no
13842 hardcode_direct_F77=no
13843 hardcode_automatic_F77=yes
13844 hardcode_shlibpath_var_F77=unsupported
13845 whole_archive_flag_spec_F77=''
13846 link_all_deplibs_F77=yes
13847 if test "$GCC" = yes ; then
13848 output_verbose_link_cmd='echo'
13849 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13850 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13851 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13852 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}'
13853 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}'
13855 case "$cc_basename" in
13857 output_verbose_link_cmd='echo'
13858 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13859 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13860 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13861 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}'
13862 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}'
13872 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13873 hardcode_libdir_flag_spec_F77='-L$libdir'
13874 hardcode_shlibpath_var_F77=no
13881 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13882 # support. Future versions do this automatically, but an explicit c++rt0.o
13883 # does not break anything, and helps significantly (at the cost of a little
13886 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13887 hardcode_libdir_flag_spec_F77='-R$libdir'
13888 hardcode_direct_F77=yes
13889 hardcode_shlibpath_var_F77=no
13892 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13894 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13895 hardcode_direct_F77=yes
13896 hardcode_minus_L_F77=yes
13897 hardcode_shlibpath_var_F77=no
13900 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13901 freebsd* | kfreebsd*-gnu)
13902 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13903 hardcode_libdir_flag_spec_F77='-R$libdir'
13904 hardcode_direct_F77=yes
13905 hardcode_shlibpath_var_F77=no
13909 if test "$GCC" = yes; then
13910 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'
13912 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'
13914 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13915 hardcode_libdir_separator_F77=:
13916 hardcode_direct_F77=yes
13918 # hardcode_minus_L: Not really in the search PATH,
13919 # but as the default location of the library.
13920 hardcode_minus_L_F77=yes
13921 export_dynamic_flag_spec_F77='${wl}-E'
13925 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13926 case "$host_cpu" in
13928 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13931 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13935 case "$host_cpu" in
13937 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13940 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13944 if test "$with_gnu_ld" = no; then
13945 case "$host_cpu" in
13947 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13948 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13949 hardcode_libdir_separator_F77=:
13950 hardcode_direct_F77=no
13951 hardcode_shlibpath_var_F77=no
13954 hardcode_libdir_flag_spec_F77='-L$libdir'
13955 hardcode_direct_F77=no
13956 hardcode_shlibpath_var_F77=no
13958 # hardcode_minus_L: Not really in the search PATH,
13959 # but as the default location of the library.
13960 hardcode_minus_L_F77=yes
13963 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13964 hardcode_libdir_separator_F77=:
13965 hardcode_direct_F77=yes
13966 export_dynamic_flag_spec_F77='${wl}-E'
13968 # hardcode_minus_L: Not really in the search PATH,
13969 # but as the default location of the library.
13970 hardcode_minus_L_F77=yes
13976 irix5* | irix6* | nonstopux*)
13977 if test "$GCC" = yes; then
13978 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'
13980 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'
13981 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13983 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13984 hardcode_libdir_separator_F77=:
13985 link_all_deplibs_F77=yes
13989 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13990 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13992 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13994 hardcode_libdir_flag_spec_F77='-R$libdir'
13995 hardcode_direct_F77=yes
13996 hardcode_shlibpath_var_F77=no
14000 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14001 hardcode_direct_F77=yes
14002 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14003 hardcode_libdir_separator_F77=:
14004 hardcode_shlibpath_var_F77=no
14008 hardcode_direct_F77=yes
14009 hardcode_shlibpath_var_F77=no
14010 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14011 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14012 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14013 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14014 export_dynamic_flag_spec_F77='${wl}-E'
14017 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14018 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14019 hardcode_libdir_flag_spec_F77='-R$libdir'
14022 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14023 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14030 hardcode_libdir_flag_spec_F77='-L$libdir'
14031 hardcode_minus_L_F77=yes
14032 allow_undefined_flag_F77=unsupported
14033 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'
14034 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14038 if test "$GCC" = yes; then
14039 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14040 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'
14042 allow_undefined_flag_F77=' -expect_unresolved \*'
14043 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'
14045 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14046 hardcode_libdir_separator_F77=:
14049 osf4* | osf5*) # as osf3* with the addition of -msym flag
14050 if test "$GCC" = yes; then
14051 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14052 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'
14053 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14055 allow_undefined_flag_F77=' -expect_unresolved \*'
14056 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'
14057 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~
14058 $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'
14060 # Both c and cxx compiler support -rpath directly
14061 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14063 hardcode_libdir_separator_F77=:
14067 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14068 hardcode_shlibpath_var_F77=no
14069 export_dynamic_flag_spec_F77='${wl}-Bexport'
14070 runpath_var=LD_RUN_PATH
14071 hardcode_runpath_var=yes
14075 no_undefined_flag_F77=' -z text'
14076 if test "$GCC" = yes; then
14077 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14078 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14079 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14081 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14082 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14083 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14085 hardcode_libdir_flag_spec_F77='-R$libdir'
14086 hardcode_shlibpath_var_F77=no
14088 solaris2.[0-5] | solaris2.[0-5].*) ;;
14089 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14090 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14092 link_all_deplibs_F77=yes
14096 if test "x$host_vendor" = xsequent; then
14097 # Use $CC to link under sequent, because it throws in some extra .o
14098 # files that make .init and .fini sections work.
14099 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14101 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14103 hardcode_libdir_flag_spec_F77='-L$libdir'
14104 hardcode_direct_F77=yes
14105 hardcode_minus_L_F77=yes
14106 hardcode_shlibpath_var_F77=no
14110 case $host_vendor in
14112 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14113 hardcode_direct_F77=yes # is this really true???
14116 ## LD is ld it makes a PLAMLIB
14117 ## CC just makes a GrossModule.
14118 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14119 reload_cmds_F77='$CC -r -o $output$reload_objs'
14120 hardcode_direct_F77=no
14123 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14124 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14127 runpath_var='LD_RUN_PATH'
14128 hardcode_shlibpath_var_F77=no
14132 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14133 hardcode_shlibpath_var_F77=no
14134 export_dynamic_flag_spec_F77='-Bexport'
14138 if test -d /usr/nec; then
14139 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14140 hardcode_shlibpath_var_F77=no
14141 runpath_var=LD_RUN_PATH
14142 hardcode_runpath_var=yes
14148 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14149 hardcode_direct_F77=yes
14150 hardcode_minus_L_F77=no
14151 hardcode_shlibpath_var_F77=no
14152 hardcode_runpath_var=yes
14153 runpath_var=LD_RUN_PATH
14156 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14157 no_undefined_flag_F77='${wl}-z ${wl}text'
14158 if test "$GCC" = yes; then
14159 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14161 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14163 runpath_var='LD_RUN_PATH'
14164 hardcode_shlibpath_var_F77=no
14168 no_undefined_flag_F77=' -z text'
14169 # $CC -shared without GNU ld will not create a library from C++
14170 # object files and a static libstdc++, better avoid it by now
14171 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14172 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14173 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14174 hardcode_libdir_flag_spec_F77=
14175 hardcode_shlibpath_var_F77=no
14176 runpath_var='LD_RUN_PATH'
14180 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14181 hardcode_libdir_flag_spec_F77='-L$libdir'
14182 hardcode_shlibpath_var_F77=no
14191 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14192 echo "${ECHO_T}$ld_shlibs_F77" >&6
14193 test "$ld_shlibs_F77" = no && can_build_shared=no
14195 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14196 if test "$GCC" = yes; then
14197 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14201 # Do we need to explicitly link libc?
14203 case "x$archive_cmds_need_lc_F77" in
14205 # Assume -lc should be added
14206 archive_cmds_need_lc_F77=yes
14208 if test "$enable_shared" = yes && test "$GCC" = yes; then
14209 case $archive_cmds_F77 in
14211 # FIXME: we may have to deal with multi-command sequences.
14214 # Test whether the compiler implicitly links with -lc since on some
14215 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14216 # to ld, don't add -lc before -lgcc.
14217 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14218 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14220 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14223 (eval $ac_compile) 2>&5
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); } 2>conftest.err; then
14229 libobjs=conftest.$ac_objext
14231 wl=$lt_prog_compiler_wl_F77
14237 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14238 allow_undefined_flag_F77=
14239 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14240 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); }
14245 archive_cmds_need_lc_F77=no
14247 archive_cmds_need_lc_F77=yes
14249 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14251 cat conftest.err 1>&5
14254 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14255 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14262 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14263 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14264 library_names_spec=
14265 libname_spec='lib$name'
14269 postuninstall_cmds=
14273 shlibpath_overrides_runpath=unknown
14275 dynamic_linker="$host_os ld.so"
14276 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14277 if test "$GCC" = yes; then
14278 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14279 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14280 # if the path contains ";" then we assume it to be the separator
14281 # otherwise default to the standard path separator (i.e. ":") - it is
14282 # assumed that no part of a normal pathname contains ";" but that should
14283 # okay in the real world where ";" in dirpaths is itself problematic.
14284 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14286 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14289 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14291 need_lib_prefix=unknown
14292 hardcode_into_libs=no
14294 # when you set need_version to no, make sure it does not cause -set_version
14295 # flags to be left without arguments
14296 need_version=unknown
14301 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14302 shlibpath_var=LIBPATH
14304 # AIX 3 has no versioning support, so we append a major version to the name.
14305 soname_spec='${libname}${release}${shared_ext}$major'
14312 hardcode_into_libs=yes
14313 if test "$host_cpu" = ia64; then
14314 # AIX 5 supports IA64
14315 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14316 shlibpath_var=LD_LIBRARY_PATH
14318 # With GCC up to 2.95.x, collect2 would create an import file
14319 # for dependence libraries. The import file would start with
14320 # the line `#! .'. This would cause the generated library to
14321 # depend on `.', always an invalid library. This was fixed in
14322 # development snapshots of GCC prior to 3.0.
14324 aix4 | aix4.[01] | aix4.[01].*)
14325 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14327 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14330 can_build_shared=no
14334 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14335 # soname into executable. Probably we can add versioning support to
14336 # collect2, so additional links can be useful in future.
14337 if test "$aix_use_runtimelinking" = yes; then
14338 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14339 # instead of lib<name>.a to let people know that these are not
14340 # typical AIX shared libraries.
14341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14343 # We preserve .a as extension for shared libraries through AIX4.2
14344 # and later when we are not doing run time linking.
14345 library_names_spec='${libname}${release}.a $libname.a'
14346 soname_spec='${libname}${release}${shared_ext}$major'
14348 shlibpath_var=LIBPATH
14353 library_names_spec='$libname.ixlibrary $libname.a'
14354 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14355 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'
14359 library_names_spec='${libname}${shared_ext}'
14360 dynamic_linker="$host_os ld.so"
14361 shlibpath_var=LIBRARY_PATH
14367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14368 soname_spec='${libname}${release}${shared_ext}$major'
14369 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14370 shlibpath_var=LD_LIBRARY_PATH
14371 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14372 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14373 # the default ld.so.conf also contains /usr/contrib/lib and
14374 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14375 # libtool to hard-code these into programs
14378 cygwin* | mingw* | pw32*)
14379 version_type=windows
14384 case $GCC,$host_os in
14385 yes,cygwin* | yes,mingw* | yes,pw32*)
14386 library_names_spec='$libname.dll.a'
14387 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14388 postinstall_cmds='base_file=`basename \${file}`~
14389 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14390 dldir=$destdir/`dirname \$dlpath`~
14391 test -d \$dldir || mkdir -p \$dldir~
14392 $install_prog $dir/$dlname \$dldir/$dlname'
14393 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14394 dlpath=$dir/\$dldll~
14396 shlibpath_overrides_runpath=yes
14400 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14401 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14402 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14405 # MinGW DLLs use traditional 'lib' prefix
14406 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14407 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14408 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14409 # It is most probably a Windows format PATH printed by
14410 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14411 # path with ; separators, and with drive letters. We can handle the
14412 # drive letters (cygwin fileutils understands them), so leave them,
14413 # especially as we might pass files found there to a mingw objdump,
14414 # which wouldn't understand a cygwinified path. Ahh.
14415 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14417 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14421 # pw32 DLLs use 'pw' prefix rather than 'lib'
14422 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14428 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14431 dynamic_linker='Win32 ld.exe'
14432 # FIXME: first we should search . and the directory the executable is in
14436 darwin* | rhapsody*)
14437 dynamic_linker="$host_os dyld"
14438 version_type=darwin
14441 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14442 soname_spec='${libname}${release}${major}$shared_ext'
14443 shlibpath_overrides_runpath=yes
14444 shlibpath_var=DYLD_LIBRARY_PATH
14445 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14446 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14447 if test "$GCC" = yes; then
14448 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"`
14450 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14452 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14460 soname_spec='${libname}${release}${shared_ext}$major'
14461 shlibpath_var=LD_LIBRARY_PATH
14472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14473 soname_spec='${libname}${release}${shared_ext}$major'
14474 shlibpath_var=LD_LIBRARY_PATH
14475 shlibpath_overrides_runpath=no
14476 hardcode_into_libs=yes
14477 dynamic_linker='GNU ld.so'
14481 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14482 version_type=freebsd-$objformat
14483 case $version_type in
14485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14490 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14494 shlibpath_var=LD_LIBRARY_PATH
14497 shlibpath_overrides_runpath=yes
14499 freebsd3.01* | freebsdelf3.01*)
14500 shlibpath_overrides_runpath=yes
14501 hardcode_into_libs=yes
14504 shlibpath_overrides_runpath=no
14505 hardcode_into_libs=yes
14514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14515 soname_spec='${libname}${release}${shared_ext}$major'
14516 shlibpath_var=LD_LIBRARY_PATH
14517 hardcode_into_libs=yes
14520 hpux9* | hpux10* | hpux11*)
14521 # Give a soname corresponding to the major version so that dld.sl refuses to
14522 # link against other versions.
14526 case "$host_cpu" in
14529 hardcode_into_libs=yes
14530 dynamic_linker="$host_os dld.so"
14531 shlibpath_var=LD_LIBRARY_PATH
14532 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14534 soname_spec='${libname}${release}${shared_ext}$major'
14535 if test "X$HPUX_IA64_MODE" = X32; then
14536 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14538 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14540 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14544 hardcode_into_libs=yes
14545 dynamic_linker="$host_os dld.sl"
14546 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14547 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14549 soname_spec='${libname}${release}${shared_ext}$major'
14550 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14551 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14555 dynamic_linker="$host_os dld.sl"
14556 shlibpath_var=SHLIB_PATH
14557 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14559 soname_spec='${libname}${release}${shared_ext}$major'
14562 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14563 postinstall_cmds='chmod 555 $lib'
14566 irix5* | irix6* | nonstopux*)
14568 nonstopux*) version_type=nonstopux ;;
14570 if test "$lt_cv_prog_gnu_ld" = yes; then
14578 soname_spec='${libname}${release}${shared_ext}$major'
14579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14581 irix5* | nonstopux*)
14582 libsuff= shlibsuff=
14585 case $LD in # libtool.m4 will add one of these switches to LD
14586 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14587 libsuff= shlibsuff= libmagic=32-bit;;
14588 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14589 libsuff=32 shlibsuff=N32 libmagic=N32;;
14590 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14591 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14592 *) libsuff= shlibsuff= libmagic=never-match;;
14596 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14597 shlibpath_overrides_runpath=no
14598 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14599 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14600 hardcode_into_libs=yes
14603 # No shared lib support for Linux oldld, aout, or coff.
14604 linux*oldld* | linux*aout* | linux*coff*)
14608 # This must be Linux ELF.
14613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14614 soname_spec='${libname}${release}${shared_ext}$major'
14615 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14616 shlibpath_var=LD_LIBRARY_PATH
14617 shlibpath_overrides_runpath=no
14618 # This implies no fast_install, which is unacceptable.
14619 # Some rework will be needed to allow for fast_install
14620 # before this can be enabled.
14621 hardcode_into_libs=yes
14623 # Append ld.so.conf contents to the search path
14624 if test -f /etc/ld.so.conf; then
14625 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14626 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14629 # We used to test for /lib/ld.so.1 and disable shared libraries on
14630 # powerpc, because MkLinux only supported shared libraries with the
14631 # GNU dynamic linker. Since this was broken with cross compilers,
14632 # most powerpc-linux boxes support dynamic linking these days and
14633 # people can always --disable-shared, the test was removed, and we
14634 # assume the GNU/Linux dynamic linker is in use.
14635 dynamic_linker='GNU/Linux ld.so'
14642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14643 soname_spec='${libname}${release}${shared_ext}$major'
14644 shlibpath_var=LD_LIBRARY_PATH
14645 shlibpath_overrides_runpath=no
14646 hardcode_into_libs=yes
14647 dynamic_linker='GNU ld.so'
14654 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14656 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14657 dynamic_linker='NetBSD (a.out) ld.so'
14659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14660 soname_spec='${libname}${release}${shared_ext}$major'
14661 dynamic_linker='NetBSD ld.elf_so'
14663 shlibpath_var=LD_LIBRARY_PATH
14664 shlibpath_overrides_runpath=yes
14665 hardcode_into_libs=yes
14670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14671 shlibpath_var=LD_LIBRARY_PATH
14672 shlibpath_overrides_runpath=yes
14679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14680 soname_spec='${libname}${release}${shared_ext}$major'
14681 shlibpath_var=LD_LIBRARY_PATH
14682 shlibpath_overrides_runpath=yes
14689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14690 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14691 shlibpath_var=LD_LIBRARY_PATH
14692 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14694 openbsd2.[89] | openbsd2.[89].*)
14695 shlibpath_overrides_runpath=no
14698 shlibpath_overrides_runpath=yes
14702 shlibpath_overrides_runpath=yes
14707 libname_spec='$name'
14710 library_names_spec='$libname${shared_ext} $libname.a'
14711 dynamic_linker='OS/2 ld.exe'
14712 shlibpath_var=LIBPATH
14715 osf3* | osf4* | osf5*)
14719 soname_spec='${libname}${release}${shared_ext}$major'
14720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14721 shlibpath_var=LD_LIBRARY_PATH
14722 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14723 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14728 soname_spec='${libname}${release}${shared_ext}$major'
14729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14730 shlibpath_var=LD_LIBRARY_PATH
14737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14738 soname_spec='${libname}${release}${shared_ext}$major'
14739 shlibpath_var=LD_LIBRARY_PATH
14740 shlibpath_overrides_runpath=yes
14741 hardcode_into_libs=yes
14742 # ldd complains unless libraries are executable
14743 postinstall_cmds='chmod +x $lib'
14748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14749 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14750 shlibpath_var=LD_LIBRARY_PATH
14751 shlibpath_overrides_runpath=yes
14752 if test "$with_gnu_ld" = yes; then
14758 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14761 soname_spec='${libname}${release}${shared_ext}$major'
14762 shlibpath_var=LD_LIBRARY_PATH
14763 case $host_vendor in
14765 shlibpath_overrides_runpath=no
14767 export_dynamic_flag_spec='${wl}-Blargedynsym'
14768 runpath_var=LD_RUN_PATH
14776 shlibpath_overrides_runpath=no
14777 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14783 if test -d /usr/nec ;then
14785 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14786 soname_spec='$libname${shared_ext}.$major'
14787 shlibpath_var=LD_LIBRARY_PATH
14793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14794 soname_spec='${libname}${release}${shared_ext}$major'
14795 shlibpath_var=LD_LIBRARY_PATH
14802 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14803 echo "${ECHO_T}$dynamic_linker" >&6
14804 test "$dynamic_linker" = no && can_build_shared=no
14806 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14807 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14808 hardcode_action_F77=
14809 if test -n "$hardcode_libdir_flag_spec_F77" || \
14810 test -n "$runpath_var_F77" || \
14811 test "X$hardcode_automatic_F77" = "Xyes" ; then
14813 # We can hardcode non-existant directories.
14814 if test "$hardcode_direct_F77" != no &&
14815 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14816 # have to relink, otherwise we might link with an installed library
14817 # when we should be linking with a yet-to-be-installed one
14818 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14819 test "$hardcode_minus_L_F77" != no; then
14820 # Linking always hardcodes the temporary library directory.
14821 hardcode_action_F77=relink
14823 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14824 hardcode_action_F77=immediate
14827 # We cannot hardcode anything, or else we can only hardcode existing
14829 hardcode_action_F77=unsupported
14831 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14832 echo "${ECHO_T}$hardcode_action_F77" >&6
14834 if test "$hardcode_action_F77" = relink; then
14835 # Fast installation is not supported
14836 enable_fast_install=no
14837 elif test "$shlibpath_overrides_runpath" = yes ||
14838 test "$enable_shared" = no; then
14839 # Fast installation is not necessary
14840 enable_fast_install=needless
14845 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14846 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14847 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14848 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14849 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14850 echo "$as_me:$LINENO: result: yes" >&5
14851 echo "${ECHO_T}yes" >&6
14853 # FIXME - insert some real tests, host_os isn't really good enough
14856 if test -n "$STRIP" ; then
14857 striplib="$STRIP -x"
14858 echo "$as_me:$LINENO: result: yes" >&5
14859 echo "${ECHO_T}yes" >&6
14861 echo "$as_me:$LINENO: result: no" >&5
14862 echo "${ECHO_T}no" >&6
14866 echo "$as_me:$LINENO: result: no" >&5
14867 echo "${ECHO_T}no" >&6
14874 # The else clause should only fire when bootstrapping the
14875 # libtool distribution, otherwise you forgot to ship ltmain.sh
14876 # with your package, and you will get complaints that there are
14877 # no rules to generate ltmain.sh.
14878 if test -f "$ltmain"; then
14879 # See if we are running on zsh, and set the options which allow our commands through
14880 # without removal of \ escapes.
14881 if test -n "${ZSH_VERSION+set}" ; then
14882 setopt NO_GLOB_SUBST
14884 # Now quote all the things that may contain metacharacters while being
14885 # careful not to overquote the AC_SUBSTed values. We take copies of the
14886 # variables and quote the copies for generation of the libtool script.
14887 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14889 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14890 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14891 deplibs_check_method reload_flag reload_cmds need_locks \
14892 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14893 lt_cv_sys_global_symbol_to_c_name_address \
14894 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14895 old_postinstall_cmds old_postuninstall_cmds \
14899 lt_prog_compiler_wl_F77 \
14900 lt_prog_compiler_pic_F77 \
14901 lt_prog_compiler_static_F77 \
14902 lt_prog_compiler_no_builtin_flag_F77 \
14903 export_dynamic_flag_spec_F77 \
14904 thread_safe_flag_spec_F77 \
14905 whole_archive_flag_spec_F77 \
14906 enable_shared_with_static_runtimes_F77 \
14907 old_archive_cmds_F77 \
14908 old_archive_from_new_cmds_F77 \
14909 predep_objects_F77 \
14910 postdep_objects_F77 \
14913 compiler_lib_search_path_F77 \
14915 archive_expsym_cmds_F77 \
14916 postinstall_cmds_F77 \
14917 postuninstall_cmds_F77 \
14918 old_archive_from_expsyms_cmds_F77 \
14919 allow_undefined_flag_F77 \
14920 no_undefined_flag_F77 \
14921 export_symbols_cmds_F77 \
14922 hardcode_libdir_flag_spec_F77 \
14923 hardcode_libdir_flag_spec_ld_F77 \
14924 hardcode_libdir_separator_F77 \
14925 hardcode_automatic_F77 \
14927 module_expsym_cmds_F77 \
14928 lt_cv_prog_compiler_c_o_F77 \
14929 exclude_expsyms_F77 \
14930 include_expsyms_F77; do
14933 old_archive_cmds_F77 | \
14934 old_archive_from_new_cmds_F77 | \
14935 archive_cmds_F77 | \
14936 archive_expsym_cmds_F77 | \
14937 module_cmds_F77 | \
14938 module_expsym_cmds_F77 | \
14939 old_archive_from_expsyms_cmds_F77 | \
14940 export_symbols_cmds_F77 | \
14941 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14942 postinstall_cmds | postuninstall_cmds | \
14943 old_postinstall_cmds | old_postuninstall_cmds | \
14944 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14945 # Double-quote double-evaled strings.
14946 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14949 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14955 *'\$0 --fallback-echo"')
14956 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14962 cat <<__EOF__ >> "$cfgfile"
14963 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14965 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14967 # Shell to use when invoking shell scripts.
14970 # Whether or not to build shared libraries.
14971 build_libtool_libs=$enable_shared
14973 # Whether or not to build static libraries.
14974 build_old_libs=$enable_static
14976 # Whether or not to add -lc for building shared libraries.
14977 build_libtool_need_lc=$archive_cmds_need_lc_F77
14979 # Whether or not to disallow shared libs when runtime libs are static
14980 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14982 # Whether or not to optimize for fast installation.
14983 fast_install=$enable_fast_install
14986 host_alias=$host_alias
14989 # An echo program that does not interpret backslashes.
14994 AR_FLAGS=$lt_AR_FLAGS
14999 # A language-specific compiler.
15000 CC=$lt_compiler_F77
15002 # Is the compiler the GNU C compiler?
15008 # The linker used to build libraries.
15011 # Whether we need hard or soft links.
15014 # A BSD-compatible nm program.
15017 # A symbol stripping program
15020 # Used to examine libraries when file_magic_cmd begins "file"
15021 MAGIC_CMD=$MAGIC_CMD
15023 # Used on cygwin: DLL creation program.
15026 # Used on cygwin: object dumper.
15029 # Used on cygwin: assembler.
15032 # The name of the directory that contains temporary libtool files.
15035 # How to create reloadable object files.
15036 reload_flag=$lt_reload_flag
15037 reload_cmds=$lt_reload_cmds
15039 # How to pass a linker flag through the compiler.
15040 wl=$lt_lt_prog_compiler_wl_F77
15042 # Object file suffix (normally "o").
15043 objext="$ac_objext"
15045 # Old archive suffix (normally "a").
15048 # Shared library suffix (normally ".so").
15049 shrext_cmds='$shrext_cmds'
15051 # Executable file suffix (normally "").
15054 # Additional compiler flags for building library objects.
15055 pic_flag=$lt_lt_prog_compiler_pic_F77
15058 # What is the maximum length of a command?
15059 max_cmd_len=$lt_cv_sys_max_cmd_len
15061 # Does compiler simultaneously support -c and -o options?
15062 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15064 # Must we lock files when doing compilation ?
15065 need_locks=$lt_need_locks
15067 # Do we need the lib prefix for modules?
15068 need_lib_prefix=$need_lib_prefix
15070 # Do we need a version for libraries?
15071 need_version=$need_version
15073 # Whether dlopen is supported.
15074 dlopen_support=$enable_dlopen
15076 # Whether dlopen of programs is supported.
15077 dlopen_self=$enable_dlopen_self
15079 # Whether dlopen of statically linked programs is supported.
15080 dlopen_self_static=$enable_dlopen_self_static
15082 # Compiler flag to prevent dynamic linking.
15083 link_static_flag=$lt_lt_prog_compiler_static_F77
15085 # Compiler flag to turn off builtin functions.
15086 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15088 # Compiler flag to allow reflexive dlopens.
15089 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15091 # Compiler flag to generate shared objects directly from archives.
15092 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15094 # Compiler flag to generate thread-safe objects.
15095 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15097 # Library versioning type.
15098 version_type=$version_type
15100 # Format of library name prefix.
15101 libname_spec=$lt_libname_spec
15103 # List of archive names. First name is the real one, the rest are links.
15104 # The last name is the one that the linker finds with -lNAME.
15105 library_names_spec=$lt_library_names_spec
15107 # The coded name of the library, if different from the real name.
15108 soname_spec=$lt_soname_spec
15110 # Commands used to build and install an old-style archive.
15112 old_archive_cmds=$lt_old_archive_cmds_F77
15113 old_postinstall_cmds=$lt_old_postinstall_cmds
15114 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15116 # Create an old-style archive from a shared archive.
15117 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15119 # Create a temporary old-style archive to link instead of a shared archive.
15120 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15122 # Commands used to build and install a shared archive.
15123 archive_cmds=$lt_archive_cmds_F77
15124 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15125 postinstall_cmds=$lt_postinstall_cmds
15126 postuninstall_cmds=$lt_postuninstall_cmds
15128 # Commands used to build a loadable module (assumed same as above if empty)
15129 module_cmds=$lt_module_cmds_F77
15130 module_expsym_cmds=$lt_module_expsym_cmds_F77
15132 # Commands to strip libraries.
15133 old_striplib=$lt_old_striplib
15134 striplib=$lt_striplib
15136 # Dependencies to place before the objects being linked to create a
15138 predep_objects=$lt_predep_objects_F77
15140 # Dependencies to place after the objects being linked to create a
15142 postdep_objects=$lt_postdep_objects_F77
15144 # Dependencies to place before the objects being linked to create a
15146 predeps=$lt_predeps_F77
15148 # Dependencies to place after the objects being linked to create a
15150 postdeps=$lt_postdeps_F77
15152 # The library search path used internally by the compiler when linking
15153 # a shared library.
15154 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15156 # Method to check whether dependent libraries are shared objects.
15157 deplibs_check_method=$lt_deplibs_check_method
15159 # Command to use when deplibs_check_method == file_magic.
15160 file_magic_cmd=$lt_file_magic_cmd
15162 # Flag that allows shared libraries with undefined symbols to be built.
15163 allow_undefined_flag=$lt_allow_undefined_flag_F77
15165 # Flag that forces no undefined symbols.
15166 no_undefined_flag=$lt_no_undefined_flag_F77
15168 # Commands used to finish a libtool library installation in a directory.
15169 finish_cmds=$lt_finish_cmds
15171 # Same as above, but a single script fragment to be evaled but not shown.
15172 finish_eval=$lt_finish_eval
15174 # Take the output of nm and produce a listing of raw symbols and C names.
15175 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15177 # Transform the output of nm in a proper C declaration
15178 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15180 # Transform the output of nm in a C name address pair
15181 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15183 # This is the shared library runtime path variable.
15184 runpath_var=$runpath_var
15186 # This is the shared library path variable.
15187 shlibpath_var=$shlibpath_var
15189 # Is shlibpath searched before the hard-coded library search path?
15190 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15192 # How to hardcode a shared library path into an executable.
15193 hardcode_action=$hardcode_action_F77
15195 # Whether we should hardcode library paths into libraries.
15196 hardcode_into_libs=$hardcode_into_libs
15198 # Flag to hardcode \$libdir into a binary during linking.
15199 # This must work even if \$libdir does not exist.
15200 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15202 # If ld is used when linking, flag to hardcode \$libdir into
15203 # a binary during linking. This must work even if \$libdir does
15205 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15207 # Whether we need a single -rpath flag with a separated argument.
15208 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15210 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15211 # resulting binary.
15212 hardcode_direct=$hardcode_direct_F77
15214 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15215 # resulting binary.
15216 hardcode_minus_L=$hardcode_minus_L_F77
15218 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15219 # the resulting binary.
15220 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15222 # Set to yes if building a shared library automatically hardcodes DIR into the library
15223 # and all subsequent libraries and executables linked against it.
15224 hardcode_automatic=$hardcode_automatic_F77
15226 # Variables whose values should be saved in libtool wrapper scripts and
15227 # restored at relink time.
15228 variables_saved_for_relink="$variables_saved_for_relink"
15230 # Whether libtool must link a program against all its dependency libraries.
15231 link_all_deplibs=$link_all_deplibs_F77
15233 # Compile-time system search path for libraries
15234 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15236 # Run-time system search path for libraries
15237 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15239 # Fix the shell variable \$srcfile for the compiler.
15240 fix_srcfile_path="$fix_srcfile_path_F77"
15242 # Set to yes if exported symbols are required.
15243 always_export_symbols=$always_export_symbols_F77
15245 # The commands to list exported symbols.
15246 export_symbols_cmds=$lt_export_symbols_cmds_F77
15248 # The commands to extract the exported symbol list from a shared archive.
15249 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15251 # Symbols that should not be listed in the preloaded symbols.
15252 exclude_expsyms=$lt_exclude_expsyms_F77
15254 # Symbols that must always be exported.
15255 include_expsyms=$lt_include_expsyms_F77
15257 # ### END LIBTOOL TAG CONFIG: $tagname
15263 # If there is no Makefile yet, we rely on a make rule to execute
15264 # `config.status --recheck' to rerun these tests and create the
15265 # libtool script then.
15266 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15267 if test -f "$ltmain_in"; then
15268 test -f Makefile && make "$ltmain"
15274 ac_cpp='$CPP $CPPFLAGS'
15275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15287 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15289 ac_cpp='$CPP $CPPFLAGS'
15290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15295 # Source file extension for Java test sources.
15298 # Object file extension for compiled Java test sources.
15302 # Code to be used in simple compile tests
15303 lt_simple_compile_test_code="class foo {}\n"
15305 # Code to be used in simple link tests
15306 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15308 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15310 # If no C compiler was specified, use CC.
15313 # Allow CC to be a program name with arguments.
15317 # Allow CC to be a program name with arguments.
15323 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15324 archive_cmds_need_lc_GCJ=no
15327 lt_prog_compiler_no_builtin_flag_GCJ=
15329 if test "$GCC" = yes; then
15330 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15333 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15334 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15335 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15336 echo $ECHO_N "(cached) $ECHO_C" >&6
15338 lt_cv_prog_compiler_rtti_exceptions=no
15339 ac_outfile=conftest.$ac_objext
15340 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15341 lt_compiler_flag="-fno-rtti -fno-exceptions"
15342 # Insert the option either (1) after the last *FLAGS variable, or
15343 # (2) before a word containing "conftest.", or (3) at the end.
15344 # Note that $ac_compile itself does not contain backslashes and begins
15345 # with a dollar sign (not a hyphen), so the echo should work correctly.
15346 # The option is referenced via a variable to avoid confusing sed.
15347 lt_compile=`echo "$ac_compile" | $SED \
15348 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15349 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15350 -e 's:$: $lt_compiler_flag:'`
15351 (eval echo "\"\$as_me:15351: $lt_compile\"" >&5)
15352 (eval "$lt_compile" 2>conftest.err)
15354 cat conftest.err >&5
15355 echo "$as_me:15355: \$? = $ac_status" >&5
15356 if (exit $ac_status) && test -s "$ac_outfile"; then
15357 # The compiler can only warn and ignore the option if not recognized
15358 # So say no if there are warnings
15359 if test ! -s conftest.err; then
15360 lt_cv_prog_compiler_rtti_exceptions=yes
15366 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15367 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15369 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15370 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15377 lt_prog_compiler_wl_GCJ=
15378 lt_prog_compiler_pic_GCJ=
15379 lt_prog_compiler_static_GCJ=
15381 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15382 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15384 if test "$GCC" = yes; then
15385 lt_prog_compiler_wl_GCJ='-Wl,'
15386 lt_prog_compiler_static_GCJ='-static'
15390 # All AIX code is PIC.
15391 if test "$host_cpu" = ia64; then
15392 # AIX 5 now supports IA64 processor
15393 lt_prog_compiler_static_GCJ='-Bstatic'
15398 # FIXME: we need at least 68020 code to build shared libraries, but
15399 # adding the `-m68020' flag to GCC prevents building anything better,
15401 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15404 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15405 # PIC is the default for these OSes.
15408 mingw* | pw32* | os2*)
15409 # This hack is so that the source file can tell whether it is being
15410 # built for inclusion in a dll (and should export symbols for example).
15411 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15414 darwin* | rhapsody*)
15415 # PIC is the default on this platform
15416 # Common symbols not allowed in MH_DYLIB files
15417 lt_prog_compiler_pic_GCJ='-fno-common'
15421 # Just because we use GCC doesn't mean we suddenly get shared libraries
15422 # on systems that don't support them.
15423 lt_prog_compiler_can_build_shared_GCJ=no
15428 if test -d /usr/nec; then
15429 lt_prog_compiler_pic_GCJ=-Kconform_pic
15434 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15435 # not for PA HP-UX.
15436 case "$host_cpu" in
15441 lt_prog_compiler_pic_GCJ='-fPIC'
15447 lt_prog_compiler_pic_GCJ='-fPIC'
15451 # PORTME Check for flag to pass linker flags through the system compiler.
15454 lt_prog_compiler_wl_GCJ='-Wl,'
15455 if test "$host_cpu" = ia64; then
15456 # AIX 5 now supports IA64 processor
15457 lt_prog_compiler_static_GCJ='-Bstatic'
15459 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15463 # PIC is the default on this platform
15464 # Common symbols not allowed in MH_DYLIB files
15465 case "$cc_basename" in
15467 lt_prog_compiler_pic_GCJ='-qnocommon'
15468 lt_prog_compiler_wl_GCJ='-Wl,'
15473 mingw* | pw32* | os2*)
15474 # This hack is so that the source file can tell whether it is being
15475 # built for inclusion in a dll (and should export symbols for example).
15476 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15479 hpux9* | hpux10* | hpux11*)
15480 lt_prog_compiler_wl_GCJ='-Wl,'
15481 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15482 # not for PA HP-UX.
15483 case "$host_cpu" in
15488 lt_prog_compiler_pic_GCJ='+Z'
15491 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15492 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15495 irix5* | irix6* | nonstopux*)
15496 lt_prog_compiler_wl_GCJ='-Wl,'
15497 # PIC (with -KPIC) is the default.
15498 lt_prog_compiler_static_GCJ='-non_shared'
15502 lt_prog_compiler_pic_GCJ='-KPIC'
15503 lt_prog_compiler_static_GCJ='-Bstatic'
15509 lt_prog_compiler_wl_GCJ='-Wl,'
15510 lt_prog_compiler_pic_GCJ='-KPIC'
15511 lt_prog_compiler_static_GCJ='-static'
15514 lt_prog_compiler_wl_GCJ='-Wl,'
15515 # All Alpha code is PIC.
15516 lt_prog_compiler_static_GCJ='-non_shared'
15521 osf3* | osf4* | osf5*)
15522 lt_prog_compiler_wl_GCJ='-Wl,'
15523 # All OSF/1 code is PIC.
15524 lt_prog_compiler_static_GCJ='-non_shared'
15528 lt_prog_compiler_pic_GCJ='-Kpic'
15529 lt_prog_compiler_static_GCJ='-dn'
15533 lt_prog_compiler_wl_GCJ='-Wl,'
15534 lt_prog_compiler_pic_GCJ='-KPIC'
15535 lt_prog_compiler_static_GCJ='-Bstatic'
15539 lt_prog_compiler_wl_GCJ='-Qoption ld '
15540 lt_prog_compiler_pic_GCJ='-PIC'
15541 lt_prog_compiler_static_GCJ='-Bstatic'
15544 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15545 lt_prog_compiler_wl_GCJ='-Wl,'
15546 lt_prog_compiler_pic_GCJ='-KPIC'
15547 lt_prog_compiler_static_GCJ='-Bstatic'
15551 if test -d /usr/nec ;then
15552 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15553 lt_prog_compiler_static_GCJ='-Bstatic'
15558 lt_prog_compiler_pic_GCJ='-pic'
15559 lt_prog_compiler_static_GCJ='-Bstatic'
15563 lt_prog_compiler_can_build_shared_GCJ=no
15568 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15569 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15572 # Check to make sure the PIC flag actually works.
15574 if test -n "$lt_prog_compiler_pic_GCJ"; then
15576 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15577 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15578 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15579 echo $ECHO_N "(cached) $ECHO_C" >&6
15581 lt_prog_compiler_pic_works_GCJ=no
15582 ac_outfile=conftest.$ac_objext
15583 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15584 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15585 # Insert the option either (1) after the last *FLAGS variable, or
15586 # (2) before a word containing "conftest.", or (3) at the end.
15587 # Note that $ac_compile itself does not contain backslashes and begins
15588 # with a dollar sign (not a hyphen), so the echo should work correctly.
15589 # The option is referenced via a variable to avoid confusing sed.
15590 lt_compile=`echo "$ac_compile" | $SED \
15591 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15593 -e 's:$: $lt_compiler_flag:'`
15594 (eval echo "\"\$as_me:15594: $lt_compile\"" >&5)
15595 (eval "$lt_compile" 2>conftest.err)
15597 cat conftest.err >&5
15598 echo "$as_me:15598: \$? = $ac_status" >&5
15599 if (exit $ac_status) && test -s "$ac_outfile"; then
15600 # The compiler can only warn and ignore the option if not recognized
15601 # So say no if there are warnings
15602 if test ! -s conftest.err; then
15603 lt_prog_compiler_pic_works_GCJ=yes
15609 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15610 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15612 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15613 case $lt_prog_compiler_pic_GCJ in
15615 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15618 lt_prog_compiler_pic_GCJ=
15619 lt_prog_compiler_can_build_shared_GCJ=no
15624 # For platforms which do not support PIC, -DPIC is meaningless:
15626 lt_prog_compiler_pic_GCJ=
15629 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15633 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15634 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15635 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15636 echo $ECHO_N "(cached) $ECHO_C" >&6
15638 lt_cv_prog_compiler_c_o_GCJ=no
15639 $rm -r conftest 2>/dev/null
15643 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15645 lt_compiler_flag="-o out/conftest2.$ac_objext"
15646 # Insert the option either (1) after the last *FLAGS variable, or
15647 # (2) before a word containing "conftest.", or (3) at the end.
15648 # Note that $ac_compile itself does not contain backslashes and begins
15649 # with a dollar sign (not a hyphen), so the echo should work correctly.
15650 lt_compile=`echo "$ac_compile" | $SED \
15651 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15652 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15653 -e 's:$: $lt_compiler_flag:'`
15654 (eval echo "\"\$as_me:15654: $lt_compile\"" >&5)
15655 (eval "$lt_compile" 2>out/conftest.err)
15657 cat out/conftest.err >&5
15658 echo "$as_me:15658: \$? = $ac_status" >&5
15659 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15661 # The compiler can only warn and ignore the option if not recognized
15662 # So say no if there are warnings
15663 if test ! -s out/conftest.err; then
15664 lt_cv_prog_compiler_c_o_GCJ=yes
15669 # SGI C++ compiler will create directory out/ii_files/ for
15670 # template instantiation
15671 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15672 $rm out/* && rmdir out
15678 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15679 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15682 hard_links="nottested"
15683 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15684 # do not overwrite the value of need_locks provided by the user
15685 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15686 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15689 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15691 ln conftest.a conftest.b 2>&5 || hard_links=no
15692 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15693 echo "$as_me:$LINENO: result: $hard_links" >&5
15694 echo "${ECHO_T}$hard_links" >&6
15695 if test "$hard_links" = no; then
15696 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15697 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15704 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15705 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15708 allow_undefined_flag_GCJ=
15709 enable_shared_with_static_runtimes_GCJ=no
15711 archive_expsym_cmds_GCJ=
15712 old_archive_From_new_cmds_GCJ=
15713 old_archive_from_expsyms_cmds_GCJ=
15714 export_dynamic_flag_spec_GCJ=
15715 whole_archive_flag_spec_GCJ=
15716 thread_safe_flag_spec_GCJ=
15717 hardcode_libdir_flag_spec_GCJ=
15718 hardcode_libdir_flag_spec_ld_GCJ=
15719 hardcode_libdir_separator_GCJ=
15720 hardcode_direct_GCJ=no
15721 hardcode_minus_L_GCJ=no
15722 hardcode_shlibpath_var_GCJ=unsupported
15723 link_all_deplibs_GCJ=unknown
15724 hardcode_automatic_GCJ=no
15726 module_expsym_cmds_GCJ=
15727 always_export_symbols_GCJ=no
15728 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15729 # include_expsyms should be a list of space-separated symbols to be *always*
15730 # included in the symbol list
15731 include_expsyms_GCJ=
15732 # exclude_expsyms can be an extended regexp of symbols to exclude
15733 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15734 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15735 # as well as any symbol that contains `d'.
15736 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15737 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15738 # platforms (ab)use it in PIC code, but their linkers get confused if
15739 # the symbol is explicitly referenced. Since portable code cannot
15740 # rely on this symbol name, it's probably fine to never include it in
15741 # preloaded symbol tables.
15742 extract_expsyms_cmds=
15745 cygwin* | mingw* | pw32*)
15746 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15747 # When not using gcc, we currently assume that we are using
15748 # Microsoft Visual C++.
15749 if test "$GCC" != yes; then
15759 if test "$with_gnu_ld" = yes; then
15760 # If archive_cmds runs LD, not CC, wlarc should be empty
15763 # See if GNU ld supports shared libraries.
15765 aix3* | aix4* | aix5*)
15766 # On AIX/PPC, the GNU linker is very broken
15767 if test "$host_cpu" != ia64; then
15771 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15772 *** to be unable to reliably create shared libraries on AIX.
15773 *** Therefore, libtool is disabling shared libraries support. If you
15774 *** really care for shared libraries, you may want to modify your PATH
15775 *** so that a non-GNU linker is found, and then restart.
15782 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)'
15783 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15784 hardcode_minus_L_GCJ=yes
15786 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15787 # that the semantics of dynamic libraries on AmigaOS, at least up
15788 # to version 4, is to share data among multiple programs linked
15789 # with the same dynamic library. Since this doesn't match the
15790 # behavior of shared libraries on other platforms, we can't use
15796 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15797 allow_undefined_flag_GCJ=unsupported
15798 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15799 # support --undefined. This deserves some investigation. FIXME
15800 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15806 cygwin* | mingw* | pw32*)
15807 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15808 # as there is no search path for DLLs.
15809 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15810 allow_undefined_flag_GCJ=unsupported
15811 always_export_symbols_GCJ=no
15812 enable_shared_with_static_runtimes_GCJ=yes
15813 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15815 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15816 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15817 # If the export-symbols file already is a .def file (1st line
15818 # is EXPORTS), use it as is; otherwise, prepend...
15819 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15820 cp $export_symbols $output_objdir/$soname.def;
15822 echo EXPORTS > $output_objdir/$soname.def;
15823 cat $export_symbols >> $output_objdir/$soname.def;
15825 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15832 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15833 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15836 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15837 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15842 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15846 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15847 *** create shared libraries on Solaris systems. Therefore, libtool
15848 *** is disabling shared libraries support. We urge you to upgrade GNU
15849 *** binutils to release 2.9.1 or newer. Another option is to modify
15850 *** your PATH or compiler configuration so that the native linker is
15851 *** used, and then restart.
15854 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15855 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15856 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15863 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15865 hardcode_direct_GCJ=yes
15866 hardcode_shlibpath_var_GCJ=no
15870 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15871 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15872 archive_cmds_GCJ="$tmp_archive_cmds"
15873 supports_anon_versioning=no
15874 case `$LD -v 2>/dev/null` in
15875 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15876 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15877 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15878 *\ 2.11.*) ;; # other 2.11 versions
15879 *) supports_anon_versioning=yes ;;
15881 if test $supports_anon_versioning = yes; then
15882 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15883 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15884 $echo "local: *; };" >> $output_objdir/$libname.ver~
15885 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15887 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15895 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15896 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15897 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15904 if test "$ld_shlibs_GCJ" = yes; then
15905 runpath_var=LD_RUN_PATH
15906 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15907 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15908 # ancient GNU ld didn't support --whole-archive et. al.
15909 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15910 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15912 whole_archive_flag_spec_GCJ=
15916 # PORTME fill in a description of your system's linker (not GNU ld)
15919 allow_undefined_flag_GCJ=unsupported
15920 always_export_symbols_GCJ=yes
15921 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'
15922 # Note: this linker hardcodes the directories in LIBPATH if there
15923 # are no directories specified by -L.
15924 hardcode_minus_L_GCJ=yes
15925 if test "$GCC" = yes && test -z "$link_static_flag"; then
15926 # Neither direct hardcoding nor static linking is supported with a
15928 hardcode_direct_GCJ=unsupported
15933 if test "$host_cpu" = ia64; then
15934 # On IA64, the linker does run time linking by default, so we don't
15935 # have to do anything special.
15936 aix_use_runtimelinking=no
15937 exp_sym_flag='-Bexport'
15940 # If we're using GNU nm, then we don't want the "-C" option.
15941 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15942 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15943 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'
15945 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'
15947 aix_use_runtimelinking=no
15949 # Test if we are trying to use run time linking or normal
15950 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15951 # need to do runtime linking.
15952 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15953 for ld_flag in $LDFLAGS; do
15954 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15955 aix_use_runtimelinking=yes
15961 exp_sym_flag='-bexport'
15962 no_entry_flag='-bnoentry'
15965 # When large executables or shared objects are built, AIX ld can
15966 # have problems creating the table of contents. If linking a library
15967 # or program results in "error TOC overflow" add -mminimal-toc to
15968 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15969 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15971 archive_cmds_GCJ=''
15972 hardcode_direct_GCJ=yes
15973 hardcode_libdir_separator_GCJ=':'
15974 link_all_deplibs_GCJ=yes
15976 if test "$GCC" = yes; then
15977 case $host_os in aix4.012|aix4.012.*)
15978 # We only want to do this on AIX 4.2 and lower, the check
15979 # below for broken collect2 doesn't work under 4.3+
15980 collect2name=`${CC} -print-prog-name=collect2`
15981 if test -f "$collect2name" && \
15982 strings "$collect2name" | grep resolve_lib_name >/dev/null
15984 # We have reworked collect2
15985 hardcode_direct_GCJ=yes
15987 # We have old collect2
15988 hardcode_direct_GCJ=unsupported
15989 # It fails to find uninstalled libraries when the uninstalled
15990 # path is not listed in the libpath. Setting hardcode_minus_L
15991 # to unsupported forces relinking
15992 hardcode_minus_L_GCJ=yes
15993 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15994 hardcode_libdir_separator_GCJ=
15997 shared_flag='-shared'
16000 if test "$host_cpu" = ia64; then
16001 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16002 # chokes on -Wl,-G. The following line is correct:
16005 if test "$aix_use_runtimelinking" = yes; then
16006 shared_flag='${wl}-G'
16008 shared_flag='${wl}-bM:SRE'
16013 # It seems that -bexpall does not export symbols beginning with
16014 # underscore (_), so it is better to generate a list of symbols to export.
16015 always_export_symbols_GCJ=yes
16016 if test "$aix_use_runtimelinking" = yes; then
16017 # Warning - without using the other runtime loading flags (-brtl),
16018 # -berok will link without error, but may produce a broken library.
16019 allow_undefined_flag_GCJ='-berok'
16020 # Determine the default libpath from the value encoded in an empty executable.
16021 cat >conftest.$ac_ext <<_ACEOF
16024 cat confdefs.h >>conftest.$ac_ext
16025 cat >>conftest.$ac_ext <<_ACEOF
16026 /* end confdefs.h. */
16036 rm -f conftest.$ac_objext conftest$ac_exeext
16037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16038 (eval $ac_link) 2>conftest.er1
16040 grep -v '^ *+' conftest.er1 >conftest.err
16042 cat conftest.err >&5
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); } &&
16045 { ac_try='test -z "$ac_c_werror_flag"
16046 || test ! -s conftest.err'
16047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16048 (eval $ac_try) 2>&5
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); }; } &&
16052 { ac_try='test -s conftest$ac_exeext'
16053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16054 (eval $ac_try) 2>&5
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); }; }; then
16059 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16061 # Check for a 64-bit object if we didn't find anything.
16062 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; }
16065 echo "$as_me: failed program was:" >&5
16066 sed 's/^/| /' conftest.$ac_ext >&5
16069 rm -f conftest.err conftest.$ac_objext \
16070 conftest$ac_exeext conftest.$ac_ext
16071 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16073 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16074 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"
16076 if test "$host_cpu" = ia64; then
16077 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16078 allow_undefined_flag_GCJ="-z nodefs"
16079 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"
16081 # Determine the default libpath from the value encoded in an empty executable.
16082 cat >conftest.$ac_ext <<_ACEOF
16085 cat confdefs.h >>conftest.$ac_ext
16086 cat >>conftest.$ac_ext <<_ACEOF
16087 /* end confdefs.h. */
16097 rm -f conftest.$ac_objext conftest$ac_exeext
16098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16099 (eval $ac_link) 2>conftest.er1
16101 grep -v '^ *+' conftest.er1 >conftest.err
16103 cat conftest.err >&5
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); } &&
16106 { ac_try='test -z "$ac_c_werror_flag"
16107 || test ! -s conftest.err'
16108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16109 (eval $ac_try) 2>&5
16111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112 (exit $ac_status); }; } &&
16113 { ac_try='test -s conftest$ac_exeext'
16114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16115 (eval $ac_try) 2>&5
16117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118 (exit $ac_status); }; }; then
16120 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16122 # Check for a 64-bit object if we didn't find anything.
16123 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; }
16126 echo "$as_me: failed program was:" >&5
16127 sed 's/^/| /' conftest.$ac_ext >&5
16130 rm -f conftest.err conftest.$ac_objext \
16131 conftest$ac_exeext conftest.$ac_ext
16132 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16134 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16135 # Warning - without using the other run time loading flags,
16136 # -berok will link without error, but may produce a broken library.
16137 no_undefined_flag_GCJ=' ${wl}-bernotok'
16138 allow_undefined_flag_GCJ=' ${wl}-berok'
16139 # -bexpall does not export symbols beginning with underscore (_)
16140 always_export_symbols_GCJ=yes
16141 # Exported symbols can be pulled into shared objects from archives
16142 whole_archive_flag_spec_GCJ=' '
16143 archive_cmds_need_lc_GCJ=yes
16144 # This is similar to how AIX traditionally builds it's shared libraries.
16145 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'
16151 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)'
16152 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16153 hardcode_minus_L_GCJ=yes
16154 # see comment about different semantics on the GNU ld section
16159 export_dynamic_flag_spec_GCJ=-rdynamic
16162 cygwin* | mingw* | pw32*)
16163 # When not using gcc, we currently assume that we are using
16164 # Microsoft Visual C++.
16165 # hardcode_libdir_flag_spec is actually meaningless, as there is
16166 # no search path for DLLs.
16167 hardcode_libdir_flag_spec_GCJ=' '
16168 allow_undefined_flag_GCJ=unsupported
16169 # Tell ltmain to make .lib files, not .a files.
16171 # Tell ltmain to make .dll files, not .so files.
16173 # FIXME: Setting linknames here is a bad hack.
16174 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16175 # The linker will automatically build a .lib file if we build a DLL.
16176 old_archive_From_new_cmds_GCJ='true'
16177 # FIXME: Should let the user specify the lib program.
16178 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16179 fix_srcfile_path='`cygpath -w "$srcfile"`'
16180 enable_shared_with_static_runtimes_GCJ=yes
16183 darwin* | rhapsody*)
16185 rhapsody* | darwin1.[012])
16186 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16189 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16190 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16192 case ${MACOSX_DEPLOYMENT_TARGET} in
16194 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16197 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16203 archive_cmds_need_lc_GCJ=no
16204 hardcode_direct_GCJ=no
16205 hardcode_automatic_GCJ=yes
16206 hardcode_shlibpath_var_GCJ=unsupported
16207 whole_archive_flag_spec_GCJ=''
16208 link_all_deplibs_GCJ=yes
16209 if test "$GCC" = yes ; then
16210 output_verbose_link_cmd='echo'
16211 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16212 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16213 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16214 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}'
16215 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}'
16217 case "$cc_basename" in
16219 output_verbose_link_cmd='echo'
16220 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16221 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16222 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16223 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}'
16224 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}'
16234 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16235 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16236 hardcode_shlibpath_var_GCJ=no
16243 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16244 # support. Future versions do this automatically, but an explicit c++rt0.o
16245 # does not break anything, and helps significantly (at the cost of a little
16248 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16249 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16250 hardcode_direct_GCJ=yes
16251 hardcode_shlibpath_var_GCJ=no
16254 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16256 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16257 hardcode_direct_GCJ=yes
16258 hardcode_minus_L_GCJ=yes
16259 hardcode_shlibpath_var_GCJ=no
16262 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16263 freebsd* | kfreebsd*-gnu)
16264 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16265 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16266 hardcode_direct_GCJ=yes
16267 hardcode_shlibpath_var_GCJ=no
16271 if test "$GCC" = yes; then
16272 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'
16274 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'
16276 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16277 hardcode_libdir_separator_GCJ=:
16278 hardcode_direct_GCJ=yes
16280 # hardcode_minus_L: Not really in the search PATH,
16281 # but as the default location of the library.
16282 hardcode_minus_L_GCJ=yes
16283 export_dynamic_flag_spec_GCJ='${wl}-E'
16287 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16288 case "$host_cpu" in
16290 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16293 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16297 case "$host_cpu" in
16299 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16302 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16306 if test "$with_gnu_ld" = no; then
16307 case "$host_cpu" in
16309 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16310 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16311 hardcode_libdir_separator_GCJ=:
16312 hardcode_direct_GCJ=no
16313 hardcode_shlibpath_var_GCJ=no
16316 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16317 hardcode_direct_GCJ=no
16318 hardcode_shlibpath_var_GCJ=no
16320 # hardcode_minus_L: Not really in the search PATH,
16321 # but as the default location of the library.
16322 hardcode_minus_L_GCJ=yes
16325 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16326 hardcode_libdir_separator_GCJ=:
16327 hardcode_direct_GCJ=yes
16328 export_dynamic_flag_spec_GCJ='${wl}-E'
16330 # hardcode_minus_L: Not really in the search PATH,
16331 # but as the default location of the library.
16332 hardcode_minus_L_GCJ=yes
16338 irix5* | irix6* | nonstopux*)
16339 if test "$GCC" = yes; then
16340 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'
16342 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'
16343 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16345 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16346 hardcode_libdir_separator_GCJ=:
16347 link_all_deplibs_GCJ=yes
16351 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16352 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16354 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16356 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16357 hardcode_direct_GCJ=yes
16358 hardcode_shlibpath_var_GCJ=no
16362 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16363 hardcode_direct_GCJ=yes
16364 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16365 hardcode_libdir_separator_GCJ=:
16366 hardcode_shlibpath_var_GCJ=no
16370 hardcode_direct_GCJ=yes
16371 hardcode_shlibpath_var_GCJ=no
16372 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16373 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16374 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16375 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16376 export_dynamic_flag_spec_GCJ='${wl}-E'
16379 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16380 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16381 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16384 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16385 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16392 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16393 hardcode_minus_L_GCJ=yes
16394 allow_undefined_flag_GCJ=unsupported
16395 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'
16396 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16400 if test "$GCC" = yes; then
16401 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16402 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'
16404 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16405 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'
16407 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16408 hardcode_libdir_separator_GCJ=:
16411 osf4* | osf5*) # as osf3* with the addition of -msym flag
16412 if test "$GCC" = yes; then
16413 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16414 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'
16415 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16417 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16418 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'
16419 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~
16420 $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'
16422 # Both c and cxx compiler support -rpath directly
16423 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16425 hardcode_libdir_separator_GCJ=:
16429 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16430 hardcode_shlibpath_var_GCJ=no
16431 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16432 runpath_var=LD_RUN_PATH
16433 hardcode_runpath_var=yes
16437 no_undefined_flag_GCJ=' -z text'
16438 if test "$GCC" = yes; then
16439 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16440 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16441 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16443 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16444 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16445 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16447 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16448 hardcode_shlibpath_var_GCJ=no
16450 solaris2.[0-5] | solaris2.[0-5].*) ;;
16451 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16452 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16454 link_all_deplibs_GCJ=yes
16458 if test "x$host_vendor" = xsequent; then
16459 # Use $CC to link under sequent, because it throws in some extra .o
16460 # files that make .init and .fini sections work.
16461 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16463 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16465 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16466 hardcode_direct_GCJ=yes
16467 hardcode_minus_L_GCJ=yes
16468 hardcode_shlibpath_var_GCJ=no
16472 case $host_vendor in
16474 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16475 hardcode_direct_GCJ=yes # is this really true???
16478 ## LD is ld it makes a PLAMLIB
16479 ## CC just makes a GrossModule.
16480 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16481 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16482 hardcode_direct_GCJ=no
16485 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16486 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16489 runpath_var='LD_RUN_PATH'
16490 hardcode_shlibpath_var_GCJ=no
16494 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16495 hardcode_shlibpath_var_GCJ=no
16496 export_dynamic_flag_spec_GCJ='-Bexport'
16500 if test -d /usr/nec; then
16501 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16502 hardcode_shlibpath_var_GCJ=no
16503 runpath_var=LD_RUN_PATH
16504 hardcode_runpath_var=yes
16510 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16511 hardcode_direct_GCJ=yes
16512 hardcode_minus_L_GCJ=no
16513 hardcode_shlibpath_var_GCJ=no
16514 hardcode_runpath_var=yes
16515 runpath_var=LD_RUN_PATH
16518 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16519 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16520 if test "$GCC" = yes; then
16521 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16523 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16525 runpath_var='LD_RUN_PATH'
16526 hardcode_shlibpath_var_GCJ=no
16530 no_undefined_flag_GCJ=' -z text'
16531 # $CC -shared without GNU ld will not create a library from C++
16532 # object files and a static libstdc++, better avoid it by now
16533 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16534 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16535 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16536 hardcode_libdir_flag_spec_GCJ=
16537 hardcode_shlibpath_var_GCJ=no
16538 runpath_var='LD_RUN_PATH'
16542 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16543 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16544 hardcode_shlibpath_var_GCJ=no
16553 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16554 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16555 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16557 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16558 if test "$GCC" = yes; then
16559 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16563 # Do we need to explicitly link libc?
16565 case "x$archive_cmds_need_lc_GCJ" in
16567 # Assume -lc should be added
16568 archive_cmds_need_lc_GCJ=yes
16570 if test "$enable_shared" = yes && test "$GCC" = yes; then
16571 case $archive_cmds_GCJ in
16573 # FIXME: we may have to deal with multi-command sequences.
16576 # Test whether the compiler implicitly links with -lc since on some
16577 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16578 # to ld, don't add -lc before -lgcc.
16579 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16580 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16582 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16585 (eval $ac_compile) 2>&5
16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); } 2>conftest.err; then
16591 libobjs=conftest.$ac_objext
16593 wl=$lt_prog_compiler_wl_GCJ
16599 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16600 allow_undefined_flag_GCJ=
16601 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16602 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); }
16607 archive_cmds_need_lc_GCJ=no
16609 archive_cmds_need_lc_GCJ=yes
16611 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16613 cat conftest.err 1>&5
16616 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16617 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16624 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16625 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16626 library_names_spec=
16627 libname_spec='lib$name'
16631 postuninstall_cmds=
16635 shlibpath_overrides_runpath=unknown
16637 dynamic_linker="$host_os ld.so"
16638 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16639 if test "$GCC" = yes; then
16640 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16641 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16642 # if the path contains ";" then we assume it to be the separator
16643 # otherwise default to the standard path separator (i.e. ":") - it is
16644 # assumed that no part of a normal pathname contains ";" but that should
16645 # okay in the real world where ";" in dirpaths is itself problematic.
16646 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16648 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16651 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16653 need_lib_prefix=unknown
16654 hardcode_into_libs=no
16656 # when you set need_version to no, make sure it does not cause -set_version
16657 # flags to be left without arguments
16658 need_version=unknown
16663 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16664 shlibpath_var=LIBPATH
16666 # AIX 3 has no versioning support, so we append a major version to the name.
16667 soname_spec='${libname}${release}${shared_ext}$major'
16674 hardcode_into_libs=yes
16675 if test "$host_cpu" = ia64; then
16676 # AIX 5 supports IA64
16677 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16678 shlibpath_var=LD_LIBRARY_PATH
16680 # With GCC up to 2.95.x, collect2 would create an import file
16681 # for dependence libraries. The import file would start with
16682 # the line `#! .'. This would cause the generated library to
16683 # depend on `.', always an invalid library. This was fixed in
16684 # development snapshots of GCC prior to 3.0.
16686 aix4 | aix4.[01] | aix4.[01].*)
16687 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16689 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16692 can_build_shared=no
16696 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16697 # soname into executable. Probably we can add versioning support to
16698 # collect2, so additional links can be useful in future.
16699 if test "$aix_use_runtimelinking" = yes; then
16700 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16701 # instead of lib<name>.a to let people know that these are not
16702 # typical AIX shared libraries.
16703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16705 # We preserve .a as extension for shared libraries through AIX4.2
16706 # and later when we are not doing run time linking.
16707 library_names_spec='${libname}${release}.a $libname.a'
16708 soname_spec='${libname}${release}${shared_ext}$major'
16710 shlibpath_var=LIBPATH
16715 library_names_spec='$libname.ixlibrary $libname.a'
16716 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16717 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'
16721 library_names_spec='${libname}${shared_ext}'
16722 dynamic_linker="$host_os ld.so"
16723 shlibpath_var=LIBRARY_PATH
16729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16730 soname_spec='${libname}${release}${shared_ext}$major'
16731 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16732 shlibpath_var=LD_LIBRARY_PATH
16733 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16734 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16735 # the default ld.so.conf also contains /usr/contrib/lib and
16736 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16737 # libtool to hard-code these into programs
16740 cygwin* | mingw* | pw32*)
16741 version_type=windows
16746 case $GCC,$host_os in
16747 yes,cygwin* | yes,mingw* | yes,pw32*)
16748 library_names_spec='$libname.dll.a'
16749 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16750 postinstall_cmds='base_file=`basename \${file}`~
16751 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16752 dldir=$destdir/`dirname \$dlpath`~
16753 test -d \$dldir || mkdir -p \$dldir~
16754 $install_prog $dir/$dlname \$dldir/$dlname'
16755 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16756 dlpath=$dir/\$dldll~
16758 shlibpath_overrides_runpath=yes
16762 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16763 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16764 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16767 # MinGW DLLs use traditional 'lib' prefix
16768 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16769 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16770 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16771 # It is most probably a Windows format PATH printed by
16772 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16773 # path with ; separators, and with drive letters. We can handle the
16774 # drive letters (cygwin fileutils understands them), so leave them,
16775 # especially as we might pass files found there to a mingw objdump,
16776 # which wouldn't understand a cygwinified path. Ahh.
16777 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16779 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16783 # pw32 DLLs use 'pw' prefix rather than 'lib'
16784 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16790 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16793 dynamic_linker='Win32 ld.exe'
16794 # FIXME: first we should search . and the directory the executable is in
16798 darwin* | rhapsody*)
16799 dynamic_linker="$host_os dyld"
16800 version_type=darwin
16803 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16804 soname_spec='${libname}${release}${major}$shared_ext'
16805 shlibpath_overrides_runpath=yes
16806 shlibpath_var=DYLD_LIBRARY_PATH
16807 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16808 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16809 if test "$GCC" = yes; then
16810 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"`
16812 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16814 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16822 soname_spec='${libname}${release}${shared_ext}$major'
16823 shlibpath_var=LD_LIBRARY_PATH
16834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16835 soname_spec='${libname}${release}${shared_ext}$major'
16836 shlibpath_var=LD_LIBRARY_PATH
16837 shlibpath_overrides_runpath=no
16838 hardcode_into_libs=yes
16839 dynamic_linker='GNU ld.so'
16843 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16844 version_type=freebsd-$objformat
16845 case $version_type in
16847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16852 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16856 shlibpath_var=LD_LIBRARY_PATH
16859 shlibpath_overrides_runpath=yes
16861 freebsd3.01* | freebsdelf3.01*)
16862 shlibpath_overrides_runpath=yes
16863 hardcode_into_libs=yes
16866 shlibpath_overrides_runpath=no
16867 hardcode_into_libs=yes
16876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16877 soname_spec='${libname}${release}${shared_ext}$major'
16878 shlibpath_var=LD_LIBRARY_PATH
16879 hardcode_into_libs=yes
16882 hpux9* | hpux10* | hpux11*)
16883 # Give a soname corresponding to the major version so that dld.sl refuses to
16884 # link against other versions.
16888 case "$host_cpu" in
16891 hardcode_into_libs=yes
16892 dynamic_linker="$host_os dld.so"
16893 shlibpath_var=LD_LIBRARY_PATH
16894 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16896 soname_spec='${libname}${release}${shared_ext}$major'
16897 if test "X$HPUX_IA64_MODE" = X32; then
16898 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16900 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16902 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16906 hardcode_into_libs=yes
16907 dynamic_linker="$host_os dld.sl"
16908 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16909 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16911 soname_spec='${libname}${release}${shared_ext}$major'
16912 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16913 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16917 dynamic_linker="$host_os dld.sl"
16918 shlibpath_var=SHLIB_PATH
16919 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16921 soname_spec='${libname}${release}${shared_ext}$major'
16924 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16925 postinstall_cmds='chmod 555 $lib'
16928 irix5* | irix6* | nonstopux*)
16930 nonstopux*) version_type=nonstopux ;;
16932 if test "$lt_cv_prog_gnu_ld" = yes; then
16940 soname_spec='${libname}${release}${shared_ext}$major'
16941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16943 irix5* | nonstopux*)
16944 libsuff= shlibsuff=
16947 case $LD in # libtool.m4 will add one of these switches to LD
16948 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16949 libsuff= shlibsuff= libmagic=32-bit;;
16950 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16951 libsuff=32 shlibsuff=N32 libmagic=N32;;
16952 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16953 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16954 *) libsuff= shlibsuff= libmagic=never-match;;
16958 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16959 shlibpath_overrides_runpath=no
16960 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16961 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16962 hardcode_into_libs=yes
16965 # No shared lib support for Linux oldld, aout, or coff.
16966 linux*oldld* | linux*aout* | linux*coff*)
16970 # This must be Linux ELF.
16975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16976 soname_spec='${libname}${release}${shared_ext}$major'
16977 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16978 shlibpath_var=LD_LIBRARY_PATH
16979 shlibpath_overrides_runpath=no
16980 # This implies no fast_install, which is unacceptable.
16981 # Some rework will be needed to allow for fast_install
16982 # before this can be enabled.
16983 hardcode_into_libs=yes
16985 # Append ld.so.conf contents to the search path
16986 if test -f /etc/ld.so.conf; then
16987 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16988 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16991 # We used to test for /lib/ld.so.1 and disable shared libraries on
16992 # powerpc, because MkLinux only supported shared libraries with the
16993 # GNU dynamic linker. Since this was broken with cross compilers,
16994 # most powerpc-linux boxes support dynamic linking these days and
16995 # people can always --disable-shared, the test was removed, and we
16996 # assume the GNU/Linux dynamic linker is in use.
16997 dynamic_linker='GNU/Linux ld.so'
17004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17005 soname_spec='${libname}${release}${shared_ext}$major'
17006 shlibpath_var=LD_LIBRARY_PATH
17007 shlibpath_overrides_runpath=no
17008 hardcode_into_libs=yes
17009 dynamic_linker='GNU ld.so'
17016 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17018 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17019 dynamic_linker='NetBSD (a.out) ld.so'
17021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17022 soname_spec='${libname}${release}${shared_ext}$major'
17023 dynamic_linker='NetBSD ld.elf_so'
17025 shlibpath_var=LD_LIBRARY_PATH
17026 shlibpath_overrides_runpath=yes
17027 hardcode_into_libs=yes
17032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17033 shlibpath_var=LD_LIBRARY_PATH
17034 shlibpath_overrides_runpath=yes
17041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17042 soname_spec='${libname}${release}${shared_ext}$major'
17043 shlibpath_var=LD_LIBRARY_PATH
17044 shlibpath_overrides_runpath=yes
17051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17053 shlibpath_var=LD_LIBRARY_PATH
17054 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17056 openbsd2.[89] | openbsd2.[89].*)
17057 shlibpath_overrides_runpath=no
17060 shlibpath_overrides_runpath=yes
17064 shlibpath_overrides_runpath=yes
17069 libname_spec='$name'
17072 library_names_spec='$libname${shared_ext} $libname.a'
17073 dynamic_linker='OS/2 ld.exe'
17074 shlibpath_var=LIBPATH
17077 osf3* | osf4* | osf5*)
17081 soname_spec='${libname}${release}${shared_ext}$major'
17082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17083 shlibpath_var=LD_LIBRARY_PATH
17084 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17085 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17090 soname_spec='${libname}${release}${shared_ext}$major'
17091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17092 shlibpath_var=LD_LIBRARY_PATH
17099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17100 soname_spec='${libname}${release}${shared_ext}$major'
17101 shlibpath_var=LD_LIBRARY_PATH
17102 shlibpath_overrides_runpath=yes
17103 hardcode_into_libs=yes
17104 # ldd complains unless libraries are executable
17105 postinstall_cmds='chmod +x $lib'
17110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17111 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17112 shlibpath_var=LD_LIBRARY_PATH
17113 shlibpath_overrides_runpath=yes
17114 if test "$with_gnu_ld" = yes; then
17120 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17123 soname_spec='${libname}${release}${shared_ext}$major'
17124 shlibpath_var=LD_LIBRARY_PATH
17125 case $host_vendor in
17127 shlibpath_overrides_runpath=no
17129 export_dynamic_flag_spec='${wl}-Blargedynsym'
17130 runpath_var=LD_RUN_PATH
17138 shlibpath_overrides_runpath=no
17139 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17145 if test -d /usr/nec ;then
17147 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17148 soname_spec='$libname${shared_ext}.$major'
17149 shlibpath_var=LD_LIBRARY_PATH
17155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17156 soname_spec='${libname}${release}${shared_ext}$major'
17157 shlibpath_var=LD_LIBRARY_PATH
17164 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17165 echo "${ECHO_T}$dynamic_linker" >&6
17166 test "$dynamic_linker" = no && can_build_shared=no
17168 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17169 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17170 hardcode_action_GCJ=
17171 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17172 test -n "$runpath_var_GCJ" || \
17173 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17175 # We can hardcode non-existant directories.
17176 if test "$hardcode_direct_GCJ" != no &&
17177 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17178 # have to relink, otherwise we might link with an installed library
17179 # when we should be linking with a yet-to-be-installed one
17180 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17181 test "$hardcode_minus_L_GCJ" != no; then
17182 # Linking always hardcodes the temporary library directory.
17183 hardcode_action_GCJ=relink
17185 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17186 hardcode_action_GCJ=immediate
17189 # We cannot hardcode anything, or else we can only hardcode existing
17191 hardcode_action_GCJ=unsupported
17193 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17194 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17196 if test "$hardcode_action_GCJ" = relink; then
17197 # Fast installation is not supported
17198 enable_fast_install=no
17199 elif test "$shlibpath_overrides_runpath" = yes ||
17200 test "$enable_shared" = no; then
17201 # Fast installation is not necessary
17202 enable_fast_install=needless
17207 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17208 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17209 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17210 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17211 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17212 echo "$as_me:$LINENO: result: yes" >&5
17213 echo "${ECHO_T}yes" >&6
17215 # FIXME - insert some real tests, host_os isn't really good enough
17218 if test -n "$STRIP" ; then
17219 striplib="$STRIP -x"
17220 echo "$as_me:$LINENO: result: yes" >&5
17221 echo "${ECHO_T}yes" >&6
17223 echo "$as_me:$LINENO: result: no" >&5
17224 echo "${ECHO_T}no" >&6
17228 echo "$as_me:$LINENO: result: no" >&5
17229 echo "${ECHO_T}no" >&6
17234 if test "x$enable_dlopen" != xyes; then
17235 enable_dlopen=unknown
17236 enable_dlopen_self=unknown
17237 enable_dlopen_self_static=unknown
17244 lt_cv_dlopen="load_add_on"
17246 lt_cv_dlopen_self=yes
17250 lt_cv_dlopen="LoadLibrary"
17255 lt_cv_dlopen="dlopen"
17260 # if libdl is installed we need to link against it
17261 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17262 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17263 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17264 echo $ECHO_N "(cached) $ECHO_C" >&6
17266 ac_check_lib_save_LIBS=$LIBS
17268 cat >conftest.$ac_ext <<_ACEOF
17271 cat confdefs.h >>conftest.$ac_ext
17272 cat >>conftest.$ac_ext <<_ACEOF
17273 /* end confdefs.h. */
17275 /* Override any gcc2 internal prototype to avoid an error. */
17279 /* We use char because int might match the return type of a gcc2
17280 builtin and then its argument prototype would still apply. */
17290 rm -f conftest.$ac_objext conftest$ac_exeext
17291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17292 (eval $ac_link) 2>conftest.er1
17294 grep -v '^ *+' conftest.er1 >conftest.err
17296 cat conftest.err >&5
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); } &&
17299 { ac_try='test -z "$ac_c_werror_flag"
17300 || test ! -s conftest.err'
17301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17302 (eval $ac_try) 2>&5
17304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); }; } &&
17306 { ac_try='test -s conftest$ac_exeext'
17307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17308 (eval $ac_try) 2>&5
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); }; }; then
17312 ac_cv_lib_dl_dlopen=yes
17314 echo "$as_me: failed program was:" >&5
17315 sed 's/^/| /' conftest.$ac_ext >&5
17317 ac_cv_lib_dl_dlopen=no
17319 rm -f conftest.err conftest.$ac_objext \
17320 conftest$ac_exeext conftest.$ac_ext
17321 LIBS=$ac_check_lib_save_LIBS
17323 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17324 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17325 if test $ac_cv_lib_dl_dlopen = yes; then
17326 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17329 lt_cv_dlopen="dyld"
17331 lt_cv_dlopen_self=yes
17338 echo "$as_me:$LINENO: checking for shl_load" >&5
17339 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17340 if test "${ac_cv_func_shl_load+set}" = set; then
17341 echo $ECHO_N "(cached) $ECHO_C" >&6
17343 cat >conftest.$ac_ext <<_ACEOF
17346 cat confdefs.h >>conftest.$ac_ext
17347 cat >>conftest.$ac_ext <<_ACEOF
17348 /* end confdefs.h. */
17349 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17351 #define shl_load innocuous_shl_load
17353 /* System header to define __stub macros and hopefully few prototypes,
17354 which can conflict with char shl_load (); below.
17355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17356 <limits.h> exists even on freestanding compilers. */
17359 # include <limits.h>
17361 # include <assert.h>
17366 /* Override any gcc2 internal prototype to avoid an error. */
17371 /* We use char because int might match the return type of a gcc2
17372 builtin and then its argument prototype would still apply. */
17374 /* The GNU C library defines this for functions which it implements
17375 to always fail with ENOSYS. Some functions are actually named
17376 something starting with __ and the normal name is an alias. */
17377 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17380 char (*f) () = shl_load;
17389 return f != shl_load;
17394 rm -f conftest.$ac_objext conftest$ac_exeext
17395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17396 (eval $ac_link) 2>conftest.er1
17398 grep -v '^ *+' conftest.er1 >conftest.err
17400 cat conftest.err >&5
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); } &&
17403 { ac_try='test -z "$ac_c_werror_flag"
17404 || test ! -s conftest.err'
17405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17406 (eval $ac_try) 2>&5
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); }; } &&
17410 { ac_try='test -s conftest$ac_exeext'
17411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17412 (eval $ac_try) 2>&5
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); }; }; then
17416 ac_cv_func_shl_load=yes
17418 echo "$as_me: failed program was:" >&5
17419 sed 's/^/| /' conftest.$ac_ext >&5
17421 ac_cv_func_shl_load=no
17423 rm -f conftest.err conftest.$ac_objext \
17424 conftest$ac_exeext conftest.$ac_ext
17426 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17427 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17428 if test $ac_cv_func_shl_load = yes; then
17429 lt_cv_dlopen="shl_load"
17431 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17432 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17433 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17434 echo $ECHO_N "(cached) $ECHO_C" >&6
17436 ac_check_lib_save_LIBS=$LIBS
17438 cat >conftest.$ac_ext <<_ACEOF
17441 cat confdefs.h >>conftest.$ac_ext
17442 cat >>conftest.$ac_ext <<_ACEOF
17443 /* end confdefs.h. */
17445 /* Override any gcc2 internal prototype to avoid an error. */
17449 /* We use char because int might match the return type of a gcc2
17450 builtin and then its argument prototype would still apply. */
17460 rm -f conftest.$ac_objext conftest$ac_exeext
17461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17462 (eval $ac_link) 2>conftest.er1
17464 grep -v '^ *+' conftest.er1 >conftest.err
17466 cat conftest.err >&5
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); } &&
17469 { ac_try='test -z "$ac_c_werror_flag"
17470 || test ! -s conftest.err'
17471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472 (eval $ac_try) 2>&5
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); }; } &&
17476 { ac_try='test -s conftest$ac_exeext'
17477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17478 (eval $ac_try) 2>&5
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); }; }; then
17482 ac_cv_lib_dld_shl_load=yes
17484 echo "$as_me: failed program was:" >&5
17485 sed 's/^/| /' conftest.$ac_ext >&5
17487 ac_cv_lib_dld_shl_load=no
17489 rm -f conftest.err conftest.$ac_objext \
17490 conftest$ac_exeext conftest.$ac_ext
17491 LIBS=$ac_check_lib_save_LIBS
17493 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17494 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17495 if test $ac_cv_lib_dld_shl_load = yes; then
17496 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17498 echo "$as_me:$LINENO: checking for dlopen" >&5
17499 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17500 if test "${ac_cv_func_dlopen+set}" = set; then
17501 echo $ECHO_N "(cached) $ECHO_C" >&6
17503 cat >conftest.$ac_ext <<_ACEOF
17506 cat confdefs.h >>conftest.$ac_ext
17507 cat >>conftest.$ac_ext <<_ACEOF
17508 /* end confdefs.h. */
17509 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17511 #define dlopen innocuous_dlopen
17513 /* System header to define __stub macros and hopefully few prototypes,
17514 which can conflict with char dlopen (); below.
17515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17516 <limits.h> exists even on freestanding compilers. */
17519 # include <limits.h>
17521 # include <assert.h>
17526 /* Override any gcc2 internal prototype to avoid an error. */
17531 /* We use char because int might match the return type of a gcc2
17532 builtin and then its argument prototype would still apply. */
17534 /* The GNU C library defines this for functions which it implements
17535 to always fail with ENOSYS. Some functions are actually named
17536 something starting with __ and the normal name is an alias. */
17537 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17540 char (*f) () = dlopen;
17549 return f != dlopen;
17554 rm -f conftest.$ac_objext conftest$ac_exeext
17555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17556 (eval $ac_link) 2>conftest.er1
17558 grep -v '^ *+' conftest.er1 >conftest.err
17560 cat conftest.err >&5
17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); } &&
17563 { ac_try='test -z "$ac_c_werror_flag"
17564 || test ! -s conftest.err'
17565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17566 (eval $ac_try) 2>&5
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); }; } &&
17570 { ac_try='test -s conftest$ac_exeext'
17571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572 (eval $ac_try) 2>&5
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); }; }; then
17576 ac_cv_func_dlopen=yes
17578 echo "$as_me: failed program was:" >&5
17579 sed 's/^/| /' conftest.$ac_ext >&5
17581 ac_cv_func_dlopen=no
17583 rm -f conftest.err conftest.$ac_objext \
17584 conftest$ac_exeext conftest.$ac_ext
17586 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17587 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17588 if test $ac_cv_func_dlopen = yes; then
17589 lt_cv_dlopen="dlopen"
17591 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17592 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17593 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17594 echo $ECHO_N "(cached) $ECHO_C" >&6
17596 ac_check_lib_save_LIBS=$LIBS
17598 cat >conftest.$ac_ext <<_ACEOF
17601 cat confdefs.h >>conftest.$ac_ext
17602 cat >>conftest.$ac_ext <<_ACEOF
17603 /* end confdefs.h. */
17605 /* Override any gcc2 internal prototype to avoid an error. */
17609 /* We use char because int might match the return type of a gcc2
17610 builtin and then its argument prototype would still apply. */
17620 rm -f conftest.$ac_objext conftest$ac_exeext
17621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17622 (eval $ac_link) 2>conftest.er1
17624 grep -v '^ *+' conftest.er1 >conftest.err
17626 cat conftest.err >&5
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); } &&
17629 { ac_try='test -z "$ac_c_werror_flag"
17630 || test ! -s conftest.err'
17631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17632 (eval $ac_try) 2>&5
17634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635 (exit $ac_status); }; } &&
17636 { ac_try='test -s conftest$ac_exeext'
17637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17638 (eval $ac_try) 2>&5
17640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641 (exit $ac_status); }; }; then
17642 ac_cv_lib_dl_dlopen=yes
17644 echo "$as_me: failed program was:" >&5
17645 sed 's/^/| /' conftest.$ac_ext >&5
17647 ac_cv_lib_dl_dlopen=no
17649 rm -f conftest.err conftest.$ac_objext \
17650 conftest$ac_exeext conftest.$ac_ext
17651 LIBS=$ac_check_lib_save_LIBS
17653 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17654 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17655 if test $ac_cv_lib_dl_dlopen = yes; then
17656 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17658 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17659 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17660 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17661 echo $ECHO_N "(cached) $ECHO_C" >&6
17663 ac_check_lib_save_LIBS=$LIBS
17664 LIBS="-lsvld $LIBS"
17665 cat >conftest.$ac_ext <<_ACEOF
17668 cat confdefs.h >>conftest.$ac_ext
17669 cat >>conftest.$ac_ext <<_ACEOF
17670 /* end confdefs.h. */
17672 /* Override any gcc2 internal prototype to avoid an error. */
17676 /* We use char because int might match the return type of a gcc2
17677 builtin and then its argument prototype would still apply. */
17687 rm -f conftest.$ac_objext conftest$ac_exeext
17688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17689 (eval $ac_link) 2>conftest.er1
17691 grep -v '^ *+' conftest.er1 >conftest.err
17693 cat conftest.err >&5
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); } &&
17696 { ac_try='test -z "$ac_c_werror_flag"
17697 || test ! -s conftest.err'
17698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17699 (eval $ac_try) 2>&5
17701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 (exit $ac_status); }; } &&
17703 { ac_try='test -s conftest$ac_exeext'
17704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17705 (eval $ac_try) 2>&5
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); }; }; then
17709 ac_cv_lib_svld_dlopen=yes
17711 echo "$as_me: failed program was:" >&5
17712 sed 's/^/| /' conftest.$ac_ext >&5
17714 ac_cv_lib_svld_dlopen=no
17716 rm -f conftest.err conftest.$ac_objext \
17717 conftest$ac_exeext conftest.$ac_ext
17718 LIBS=$ac_check_lib_save_LIBS
17720 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17721 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17722 if test $ac_cv_lib_svld_dlopen = yes; then
17723 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17725 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17726 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17727 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17728 echo $ECHO_N "(cached) $ECHO_C" >&6
17730 ac_check_lib_save_LIBS=$LIBS
17732 cat >conftest.$ac_ext <<_ACEOF
17735 cat confdefs.h >>conftest.$ac_ext
17736 cat >>conftest.$ac_ext <<_ACEOF
17737 /* end confdefs.h. */
17739 /* Override any gcc2 internal prototype to avoid an error. */
17743 /* We use char because int might match the return type of a gcc2
17744 builtin and then its argument prototype would still apply. */
17754 rm -f conftest.$ac_objext conftest$ac_exeext
17755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17756 (eval $ac_link) 2>conftest.er1
17758 grep -v '^ *+' conftest.er1 >conftest.err
17760 cat conftest.err >&5
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); } &&
17763 { ac_try='test -z "$ac_c_werror_flag"
17764 || test ! -s conftest.err'
17765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766 (eval $ac_try) 2>&5
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); }; } &&
17770 { ac_try='test -s conftest$ac_exeext'
17771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17772 (eval $ac_try) 2>&5
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); }; }; then
17776 ac_cv_lib_dld_dld_link=yes
17778 echo "$as_me: failed program was:" >&5
17779 sed 's/^/| /' conftest.$ac_ext >&5
17781 ac_cv_lib_dld_dld_link=no
17783 rm -f conftest.err conftest.$ac_objext \
17784 conftest$ac_exeext conftest.$ac_ext
17785 LIBS=$ac_check_lib_save_LIBS
17787 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17788 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17789 if test $ac_cv_lib_dld_dld_link = yes; then
17790 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17811 if test "x$lt_cv_dlopen" != xno; then
17817 case $lt_cv_dlopen in
17819 save_CPPFLAGS="$CPPFLAGS"
17820 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17822 save_LDFLAGS="$LDFLAGS"
17823 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17826 LIBS="$lt_cv_dlopen_libs $LIBS"
17828 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17829 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17830 if test "${lt_cv_dlopen_self+set}" = set; then
17831 echo $ECHO_N "(cached) $ECHO_C" >&6
17833 if test "$cross_compiling" = yes; then :
17834 lt_cv_dlopen_self=cross
17836 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17837 lt_status=$lt_dlunknown
17838 cat > conftest.$ac_ext <<EOF
17839 #line 17839 "configure"
17840 #include "confdefs.h"
17849 # define LT_DLGLOBAL RTLD_GLOBAL
17852 # define LT_DLGLOBAL DL_GLOBAL
17854 # define LT_DLGLOBAL 0
17858 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17859 find out it does not work in some platform. */
17860 #ifndef LT_DLLAZY_OR_NOW
17862 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17865 # define LT_DLLAZY_OR_NOW DL_LAZY
17868 # define LT_DLLAZY_OR_NOW RTLD_NOW
17871 # define LT_DLLAZY_OR_NOW DL_NOW
17873 # define LT_DLLAZY_OR_NOW 0
17881 extern "C" void exit (int);
17884 void fnord() { int i=42;}
17887 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17888 int status = $lt_dlunknown;
17892 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17893 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17894 /* dlclose (self); */
17900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17901 (eval $ac_link) 2>&5
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17905 (./conftest; exit; ) 2>/dev/null
17907 case x$lt_status in
17908 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17909 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17910 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17913 # compilation failed
17914 lt_cv_dlopen_self=no
17921 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17922 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17924 if test "x$lt_cv_dlopen_self" = xyes; then
17925 LDFLAGS="$LDFLAGS $link_static_flag"
17926 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17927 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17928 if test "${lt_cv_dlopen_self_static+set}" = set; then
17929 echo $ECHO_N "(cached) $ECHO_C" >&6
17931 if test "$cross_compiling" = yes; then :
17932 lt_cv_dlopen_self_static=cross
17934 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17935 lt_status=$lt_dlunknown
17936 cat > conftest.$ac_ext <<EOF
17937 #line 17937 "configure"
17938 #include "confdefs.h"
17947 # define LT_DLGLOBAL RTLD_GLOBAL
17950 # define LT_DLGLOBAL DL_GLOBAL
17952 # define LT_DLGLOBAL 0
17956 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17957 find out it does not work in some platform. */
17958 #ifndef LT_DLLAZY_OR_NOW
17960 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17963 # define LT_DLLAZY_OR_NOW DL_LAZY
17966 # define LT_DLLAZY_OR_NOW RTLD_NOW
17969 # define LT_DLLAZY_OR_NOW DL_NOW
17971 # define LT_DLLAZY_OR_NOW 0
17979 extern "C" void exit (int);
17982 void fnord() { int i=42;}
17985 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17986 int status = $lt_dlunknown;
17990 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17991 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17992 /* dlclose (self); */
17998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17999 (eval $ac_link) 2>&5
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18003 (./conftest; exit; ) 2>/dev/null
18005 case x$lt_status in
18006 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18007 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18008 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18011 # compilation failed
18012 lt_cv_dlopen_self_static=no
18019 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18020 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18023 CPPFLAGS="$save_CPPFLAGS"
18024 LDFLAGS="$save_LDFLAGS"
18029 case $lt_cv_dlopen_self in
18030 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18031 *) enable_dlopen_self=unknown ;;
18034 case $lt_cv_dlopen_self_static in
18035 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18036 *) enable_dlopen_self_static=unknown ;;
18041 # The else clause should only fire when bootstrapping the
18042 # libtool distribution, otherwise you forgot to ship ltmain.sh
18043 # with your package, and you will get complaints that there are
18044 # no rules to generate ltmain.sh.
18045 if test -f "$ltmain"; then
18046 # See if we are running on zsh, and set the options which allow our commands through
18047 # without removal of \ escapes.
18048 if test -n "${ZSH_VERSION+set}" ; then
18049 setopt NO_GLOB_SUBST
18051 # Now quote all the things that may contain metacharacters while being
18052 # careful not to overquote the AC_SUBSTed values. We take copies of the
18053 # variables and quote the copies for generation of the libtool script.
18054 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18056 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18057 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18058 deplibs_check_method reload_flag reload_cmds need_locks \
18059 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18060 lt_cv_sys_global_symbol_to_c_name_address \
18061 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18062 old_postinstall_cmds old_postuninstall_cmds \
18066 lt_prog_compiler_wl_GCJ \
18067 lt_prog_compiler_pic_GCJ \
18068 lt_prog_compiler_static_GCJ \
18069 lt_prog_compiler_no_builtin_flag_GCJ \
18070 export_dynamic_flag_spec_GCJ \
18071 thread_safe_flag_spec_GCJ \
18072 whole_archive_flag_spec_GCJ \
18073 enable_shared_with_static_runtimes_GCJ \
18074 old_archive_cmds_GCJ \
18075 old_archive_from_new_cmds_GCJ \
18076 predep_objects_GCJ \
18077 postdep_objects_GCJ \
18080 compiler_lib_search_path_GCJ \
18082 archive_expsym_cmds_GCJ \
18083 postinstall_cmds_GCJ \
18084 postuninstall_cmds_GCJ \
18085 old_archive_from_expsyms_cmds_GCJ \
18086 allow_undefined_flag_GCJ \
18087 no_undefined_flag_GCJ \
18088 export_symbols_cmds_GCJ \
18089 hardcode_libdir_flag_spec_GCJ \
18090 hardcode_libdir_flag_spec_ld_GCJ \
18091 hardcode_libdir_separator_GCJ \
18092 hardcode_automatic_GCJ \
18094 module_expsym_cmds_GCJ \
18095 lt_cv_prog_compiler_c_o_GCJ \
18096 exclude_expsyms_GCJ \
18097 include_expsyms_GCJ; do
18100 old_archive_cmds_GCJ | \
18101 old_archive_from_new_cmds_GCJ | \
18102 archive_cmds_GCJ | \
18103 archive_expsym_cmds_GCJ | \
18104 module_cmds_GCJ | \
18105 module_expsym_cmds_GCJ | \
18106 old_archive_from_expsyms_cmds_GCJ | \
18107 export_symbols_cmds_GCJ | \
18108 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18109 postinstall_cmds | postuninstall_cmds | \
18110 old_postinstall_cmds | old_postuninstall_cmds | \
18111 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18112 # Double-quote double-evaled strings.
18113 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18116 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18122 *'\$0 --fallback-echo"')
18123 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18129 cat <<__EOF__ >> "$cfgfile"
18130 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18132 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18134 # Shell to use when invoking shell scripts.
18137 # Whether or not to build shared libraries.
18138 build_libtool_libs=$enable_shared
18140 # Whether or not to build static libraries.
18141 build_old_libs=$enable_static
18143 # Whether or not to add -lc for building shared libraries.
18144 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18146 # Whether or not to disallow shared libs when runtime libs are static
18147 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18149 # Whether or not to optimize for fast installation.
18150 fast_install=$enable_fast_install
18153 host_alias=$host_alias
18156 # An echo program that does not interpret backslashes.
18161 AR_FLAGS=$lt_AR_FLAGS
18166 # A language-specific compiler.
18167 CC=$lt_compiler_GCJ
18169 # Is the compiler the GNU C compiler?
18175 # The linker used to build libraries.
18178 # Whether we need hard or soft links.
18181 # A BSD-compatible nm program.
18184 # A symbol stripping program
18187 # Used to examine libraries when file_magic_cmd begins "file"
18188 MAGIC_CMD=$MAGIC_CMD
18190 # Used on cygwin: DLL creation program.
18193 # Used on cygwin: object dumper.
18196 # Used on cygwin: assembler.
18199 # The name of the directory that contains temporary libtool files.
18202 # How to create reloadable object files.
18203 reload_flag=$lt_reload_flag
18204 reload_cmds=$lt_reload_cmds
18206 # How to pass a linker flag through the compiler.
18207 wl=$lt_lt_prog_compiler_wl_GCJ
18209 # Object file suffix (normally "o").
18210 objext="$ac_objext"
18212 # Old archive suffix (normally "a").
18215 # Shared library suffix (normally ".so").
18216 shrext_cmds='$shrext_cmds'
18218 # Executable file suffix (normally "").
18221 # Additional compiler flags for building library objects.
18222 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18225 # What is the maximum length of a command?
18226 max_cmd_len=$lt_cv_sys_max_cmd_len
18228 # Does compiler simultaneously support -c and -o options?
18229 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18231 # Must we lock files when doing compilation ?
18232 need_locks=$lt_need_locks
18234 # Do we need the lib prefix for modules?
18235 need_lib_prefix=$need_lib_prefix
18237 # Do we need a version for libraries?
18238 need_version=$need_version
18240 # Whether dlopen is supported.
18241 dlopen_support=$enable_dlopen
18243 # Whether dlopen of programs is supported.
18244 dlopen_self=$enable_dlopen_self
18246 # Whether dlopen of statically linked programs is supported.
18247 dlopen_self_static=$enable_dlopen_self_static
18249 # Compiler flag to prevent dynamic linking.
18250 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18252 # Compiler flag to turn off builtin functions.
18253 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18255 # Compiler flag to allow reflexive dlopens.
18256 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18258 # Compiler flag to generate shared objects directly from archives.
18259 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18261 # Compiler flag to generate thread-safe objects.
18262 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18264 # Library versioning type.
18265 version_type=$version_type
18267 # Format of library name prefix.
18268 libname_spec=$lt_libname_spec
18270 # List of archive names. First name is the real one, the rest are links.
18271 # The last name is the one that the linker finds with -lNAME.
18272 library_names_spec=$lt_library_names_spec
18274 # The coded name of the library, if different from the real name.
18275 soname_spec=$lt_soname_spec
18277 # Commands used to build and install an old-style archive.
18279 old_archive_cmds=$lt_old_archive_cmds_GCJ
18280 old_postinstall_cmds=$lt_old_postinstall_cmds
18281 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18283 # Create an old-style archive from a shared archive.
18284 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18286 # Create a temporary old-style archive to link instead of a shared archive.
18287 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18289 # Commands used to build and install a shared archive.
18290 archive_cmds=$lt_archive_cmds_GCJ
18291 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18292 postinstall_cmds=$lt_postinstall_cmds
18293 postuninstall_cmds=$lt_postuninstall_cmds
18295 # Commands used to build a loadable module (assumed same as above if empty)
18296 module_cmds=$lt_module_cmds_GCJ
18297 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18299 # Commands to strip libraries.
18300 old_striplib=$lt_old_striplib
18301 striplib=$lt_striplib
18303 # Dependencies to place before the objects being linked to create a
18305 predep_objects=$lt_predep_objects_GCJ
18307 # Dependencies to place after the objects being linked to create a
18309 postdep_objects=$lt_postdep_objects_GCJ
18311 # Dependencies to place before the objects being linked to create a
18313 predeps=$lt_predeps_GCJ
18315 # Dependencies to place after the objects being linked to create a
18317 postdeps=$lt_postdeps_GCJ
18319 # The library search path used internally by the compiler when linking
18320 # a shared library.
18321 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18323 # Method to check whether dependent libraries are shared objects.
18324 deplibs_check_method=$lt_deplibs_check_method
18326 # Command to use when deplibs_check_method == file_magic.
18327 file_magic_cmd=$lt_file_magic_cmd
18329 # Flag that allows shared libraries with undefined symbols to be built.
18330 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18332 # Flag that forces no undefined symbols.
18333 no_undefined_flag=$lt_no_undefined_flag_GCJ
18335 # Commands used to finish a libtool library installation in a directory.
18336 finish_cmds=$lt_finish_cmds
18338 # Same as above, but a single script fragment to be evaled but not shown.
18339 finish_eval=$lt_finish_eval
18341 # Take the output of nm and produce a listing of raw symbols and C names.
18342 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18344 # Transform the output of nm in a proper C declaration
18345 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18347 # Transform the output of nm in a C name address pair
18348 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18350 # This is the shared library runtime path variable.
18351 runpath_var=$runpath_var
18353 # This is the shared library path variable.
18354 shlibpath_var=$shlibpath_var
18356 # Is shlibpath searched before the hard-coded library search path?
18357 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18359 # How to hardcode a shared library path into an executable.
18360 hardcode_action=$hardcode_action_GCJ
18362 # Whether we should hardcode library paths into libraries.
18363 hardcode_into_libs=$hardcode_into_libs
18365 # Flag to hardcode \$libdir into a binary during linking.
18366 # This must work even if \$libdir does not exist.
18367 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18369 # If ld is used when linking, flag to hardcode \$libdir into
18370 # a binary during linking. This must work even if \$libdir does
18372 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18374 # Whether we need a single -rpath flag with a separated argument.
18375 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18377 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18378 # resulting binary.
18379 hardcode_direct=$hardcode_direct_GCJ
18381 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18382 # resulting binary.
18383 hardcode_minus_L=$hardcode_minus_L_GCJ
18385 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18386 # the resulting binary.
18387 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18389 # Set to yes if building a shared library automatically hardcodes DIR into the library
18390 # and all subsequent libraries and executables linked against it.
18391 hardcode_automatic=$hardcode_automatic_GCJ
18393 # Variables whose values should be saved in libtool wrapper scripts and
18394 # restored at relink time.
18395 variables_saved_for_relink="$variables_saved_for_relink"
18397 # Whether libtool must link a program against all its dependency libraries.
18398 link_all_deplibs=$link_all_deplibs_GCJ
18400 # Compile-time system search path for libraries
18401 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18403 # Run-time system search path for libraries
18404 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18406 # Fix the shell variable \$srcfile for the compiler.
18407 fix_srcfile_path="$fix_srcfile_path_GCJ"
18409 # Set to yes if exported symbols are required.
18410 always_export_symbols=$always_export_symbols_GCJ
18412 # The commands to list exported symbols.
18413 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18415 # The commands to extract the exported symbol list from a shared archive.
18416 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18418 # Symbols that should not be listed in the preloaded symbols.
18419 exclude_expsyms=$lt_exclude_expsyms_GCJ
18421 # Symbols that must always be exported.
18422 include_expsyms=$lt_include_expsyms_GCJ
18424 # ### END LIBTOOL TAG CONFIG: $tagname
18430 # If there is no Makefile yet, we rely on a make rule to execute
18431 # `config.status --recheck' to rerun these tests and create the
18432 # libtool script then.
18433 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18434 if test -f "$ltmain_in"; then
18435 test -f Makefile && make "$ltmain"
18441 ac_cpp='$CPP $CPPFLAGS'
18442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18455 ac_cpp='$CPP $CPPFLAGS'
18456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18461 # Source file extension for RC test sources.
18464 # Object file extension for compiled RC test sources.
18468 # Code to be used in simple compile tests
18469 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18471 # Code to be used in simple link tests
18472 lt_simple_link_test_code="$lt_simple_compile_test_code"
18474 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18476 # If no C compiler was specified, use CC.
18479 # Allow CC to be a program name with arguments.
18483 # Allow CC to be a program name with arguments.
18488 lt_cv_prog_compiler_c_o_RC=yes
18490 # The else clause should only fire when bootstrapping the
18491 # libtool distribution, otherwise you forgot to ship ltmain.sh
18492 # with your package, and you will get complaints that there are
18493 # no rules to generate ltmain.sh.
18494 if test -f "$ltmain"; then
18495 # See if we are running on zsh, and set the options which allow our commands through
18496 # without removal of \ escapes.
18497 if test -n "${ZSH_VERSION+set}" ; then
18498 setopt NO_GLOB_SUBST
18500 # Now quote all the things that may contain metacharacters while being
18501 # careful not to overquote the AC_SUBSTed values. We take copies of the
18502 # variables and quote the copies for generation of the libtool script.
18503 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18505 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18506 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18507 deplibs_check_method reload_flag reload_cmds need_locks \
18508 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18509 lt_cv_sys_global_symbol_to_c_name_address \
18510 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18511 old_postinstall_cmds old_postuninstall_cmds \
18515 lt_prog_compiler_wl_RC \
18516 lt_prog_compiler_pic_RC \
18517 lt_prog_compiler_static_RC \
18518 lt_prog_compiler_no_builtin_flag_RC \
18519 export_dynamic_flag_spec_RC \
18520 thread_safe_flag_spec_RC \
18521 whole_archive_flag_spec_RC \
18522 enable_shared_with_static_runtimes_RC \
18523 old_archive_cmds_RC \
18524 old_archive_from_new_cmds_RC \
18525 predep_objects_RC \
18526 postdep_objects_RC \
18529 compiler_lib_search_path_RC \
18531 archive_expsym_cmds_RC \
18532 postinstall_cmds_RC \
18533 postuninstall_cmds_RC \
18534 old_archive_from_expsyms_cmds_RC \
18535 allow_undefined_flag_RC \
18536 no_undefined_flag_RC \
18537 export_symbols_cmds_RC \
18538 hardcode_libdir_flag_spec_RC \
18539 hardcode_libdir_flag_spec_ld_RC \
18540 hardcode_libdir_separator_RC \
18541 hardcode_automatic_RC \
18543 module_expsym_cmds_RC \
18544 lt_cv_prog_compiler_c_o_RC \
18545 exclude_expsyms_RC \
18546 include_expsyms_RC; do
18549 old_archive_cmds_RC | \
18550 old_archive_from_new_cmds_RC | \
18551 archive_cmds_RC | \
18552 archive_expsym_cmds_RC | \
18554 module_expsym_cmds_RC | \
18555 old_archive_from_expsyms_cmds_RC | \
18556 export_symbols_cmds_RC | \
18557 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18558 postinstall_cmds | postuninstall_cmds | \
18559 old_postinstall_cmds | old_postuninstall_cmds | \
18560 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18561 # Double-quote double-evaled strings.
18562 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18565 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18571 *'\$0 --fallback-echo"')
18572 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18578 cat <<__EOF__ >> "$cfgfile"
18579 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18581 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18583 # Shell to use when invoking shell scripts.
18586 # Whether or not to build shared libraries.
18587 build_libtool_libs=$enable_shared
18589 # Whether or not to build static libraries.
18590 build_old_libs=$enable_static
18592 # Whether or not to add -lc for building shared libraries.
18593 build_libtool_need_lc=$archive_cmds_need_lc_RC
18595 # Whether or not to disallow shared libs when runtime libs are static
18596 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18598 # Whether or not to optimize for fast installation.
18599 fast_install=$enable_fast_install
18602 host_alias=$host_alias
18605 # An echo program that does not interpret backslashes.
18610 AR_FLAGS=$lt_AR_FLAGS
18615 # A language-specific compiler.
18618 # Is the compiler the GNU C compiler?
18624 # The linker used to build libraries.
18627 # Whether we need hard or soft links.
18630 # A BSD-compatible nm program.
18633 # A symbol stripping program
18636 # Used to examine libraries when file_magic_cmd begins "file"
18637 MAGIC_CMD=$MAGIC_CMD
18639 # Used on cygwin: DLL creation program.
18642 # Used on cygwin: object dumper.
18645 # Used on cygwin: assembler.
18648 # The name of the directory that contains temporary libtool files.
18651 # How to create reloadable object files.
18652 reload_flag=$lt_reload_flag
18653 reload_cmds=$lt_reload_cmds
18655 # How to pass a linker flag through the compiler.
18656 wl=$lt_lt_prog_compiler_wl_RC
18658 # Object file suffix (normally "o").
18659 objext="$ac_objext"
18661 # Old archive suffix (normally "a").
18664 # Shared library suffix (normally ".so").
18665 shrext_cmds='$shrext_cmds'
18667 # Executable file suffix (normally "").
18670 # Additional compiler flags for building library objects.
18671 pic_flag=$lt_lt_prog_compiler_pic_RC
18674 # What is the maximum length of a command?
18675 max_cmd_len=$lt_cv_sys_max_cmd_len
18677 # Does compiler simultaneously support -c and -o options?
18678 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18680 # Must we lock files when doing compilation ?
18681 need_locks=$lt_need_locks
18683 # Do we need the lib prefix for modules?
18684 need_lib_prefix=$need_lib_prefix
18686 # Do we need a version for libraries?
18687 need_version=$need_version
18689 # Whether dlopen is supported.
18690 dlopen_support=$enable_dlopen
18692 # Whether dlopen of programs is supported.
18693 dlopen_self=$enable_dlopen_self
18695 # Whether dlopen of statically linked programs is supported.
18696 dlopen_self_static=$enable_dlopen_self_static
18698 # Compiler flag to prevent dynamic linking.
18699 link_static_flag=$lt_lt_prog_compiler_static_RC
18701 # Compiler flag to turn off builtin functions.
18702 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18704 # Compiler flag to allow reflexive dlopens.
18705 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18707 # Compiler flag to generate shared objects directly from archives.
18708 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18710 # Compiler flag to generate thread-safe objects.
18711 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18713 # Library versioning type.
18714 version_type=$version_type
18716 # Format of library name prefix.
18717 libname_spec=$lt_libname_spec
18719 # List of archive names. First name is the real one, the rest are links.
18720 # The last name is the one that the linker finds with -lNAME.
18721 library_names_spec=$lt_library_names_spec
18723 # The coded name of the library, if different from the real name.
18724 soname_spec=$lt_soname_spec
18726 # Commands used to build and install an old-style archive.
18728 old_archive_cmds=$lt_old_archive_cmds_RC
18729 old_postinstall_cmds=$lt_old_postinstall_cmds
18730 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18732 # Create an old-style archive from a shared archive.
18733 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18735 # Create a temporary old-style archive to link instead of a shared archive.
18736 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18738 # Commands used to build and install a shared archive.
18739 archive_cmds=$lt_archive_cmds_RC
18740 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18741 postinstall_cmds=$lt_postinstall_cmds
18742 postuninstall_cmds=$lt_postuninstall_cmds
18744 # Commands used to build a loadable module (assumed same as above if empty)
18745 module_cmds=$lt_module_cmds_RC
18746 module_expsym_cmds=$lt_module_expsym_cmds_RC
18748 # Commands to strip libraries.
18749 old_striplib=$lt_old_striplib
18750 striplib=$lt_striplib
18752 # Dependencies to place before the objects being linked to create a
18754 predep_objects=$lt_predep_objects_RC
18756 # Dependencies to place after the objects being linked to create a
18758 postdep_objects=$lt_postdep_objects_RC
18760 # Dependencies to place before the objects being linked to create a
18762 predeps=$lt_predeps_RC
18764 # Dependencies to place after the objects being linked to create a
18766 postdeps=$lt_postdeps_RC
18768 # The library search path used internally by the compiler when linking
18769 # a shared library.
18770 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18772 # Method to check whether dependent libraries are shared objects.
18773 deplibs_check_method=$lt_deplibs_check_method
18775 # Command to use when deplibs_check_method == file_magic.
18776 file_magic_cmd=$lt_file_magic_cmd
18778 # Flag that allows shared libraries with undefined symbols to be built.
18779 allow_undefined_flag=$lt_allow_undefined_flag_RC
18781 # Flag that forces no undefined symbols.
18782 no_undefined_flag=$lt_no_undefined_flag_RC
18784 # Commands used to finish a libtool library installation in a directory.
18785 finish_cmds=$lt_finish_cmds
18787 # Same as above, but a single script fragment to be evaled but not shown.
18788 finish_eval=$lt_finish_eval
18790 # Take the output of nm and produce a listing of raw symbols and C names.
18791 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18793 # Transform the output of nm in a proper C declaration
18794 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18796 # Transform the output of nm in a C name address pair
18797 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18799 # This is the shared library runtime path variable.
18800 runpath_var=$runpath_var
18802 # This is the shared library path variable.
18803 shlibpath_var=$shlibpath_var
18805 # Is shlibpath searched before the hard-coded library search path?
18806 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18808 # How to hardcode a shared library path into an executable.
18809 hardcode_action=$hardcode_action_RC
18811 # Whether we should hardcode library paths into libraries.
18812 hardcode_into_libs=$hardcode_into_libs
18814 # Flag to hardcode \$libdir into a binary during linking.
18815 # This must work even if \$libdir does not exist.
18816 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18818 # If ld is used when linking, flag to hardcode \$libdir into
18819 # a binary during linking. This must work even if \$libdir does
18821 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18823 # Whether we need a single -rpath flag with a separated argument.
18824 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18826 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18827 # resulting binary.
18828 hardcode_direct=$hardcode_direct_RC
18830 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18831 # resulting binary.
18832 hardcode_minus_L=$hardcode_minus_L_RC
18834 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18835 # the resulting binary.
18836 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18838 # Set to yes if building a shared library automatically hardcodes DIR into the library
18839 # and all subsequent libraries and executables linked against it.
18840 hardcode_automatic=$hardcode_automatic_RC
18842 # Variables whose values should be saved in libtool wrapper scripts and
18843 # restored at relink time.
18844 variables_saved_for_relink="$variables_saved_for_relink"
18846 # Whether libtool must link a program against all its dependency libraries.
18847 link_all_deplibs=$link_all_deplibs_RC
18849 # Compile-time system search path for libraries
18850 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18852 # Run-time system search path for libraries
18853 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18855 # Fix the shell variable \$srcfile for the compiler.
18856 fix_srcfile_path="$fix_srcfile_path_RC"
18858 # Set to yes if exported symbols are required.
18859 always_export_symbols=$always_export_symbols_RC
18861 # The commands to list exported symbols.
18862 export_symbols_cmds=$lt_export_symbols_cmds_RC
18864 # The commands to extract the exported symbol list from a shared archive.
18865 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18867 # Symbols that should not be listed in the preloaded symbols.
18868 exclude_expsyms=$lt_exclude_expsyms_RC
18870 # Symbols that must always be exported.
18871 include_expsyms=$lt_include_expsyms_RC
18873 # ### END LIBTOOL TAG CONFIG: $tagname
18879 # If there is no Makefile yet, we rely on a make rule to execute
18880 # `config.status --recheck' to rerun these tests and create the
18881 # libtool script then.
18882 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18883 if test -f "$ltmain_in"; then
18884 test -f Makefile && make "$ltmain"
18890 ac_cpp='$CPP $CPPFLAGS'
18891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18900 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18901 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18902 { (exit 1); exit 1; }; }
18906 # Append the new tag name to the list of available tags.
18907 if test -n "$tagname" ; then
18908 available_tags="$available_tags $tagname"
18914 # Now substitute the updated list of available tags.
18915 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18916 mv "${ofile}T" "$ofile"
18920 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18921 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18922 { (exit 1); exit 1; }; }
18928 # This can be used to rebuild libtool when needed
18929 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18931 # Always use our own libtool.
18932 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18934 # Prevent multiple expansion
18956 # Extract the first word of "dot", so it can be a program name with args.
18957 set dummy dot; ac_word=$2
18958 echo "$as_me:$LINENO: checking for $ac_word" >&5
18959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18960 if test "${ac_cv_path_DOT+set}" = set; then
18961 echo $ECHO_N "(cached) $ECHO_C" >&6
18965 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18969 for as_dir in $PATH
18972 test -z "$as_dir" && as_dir=.
18973 for ac_exec_ext in '' $ac_executable_extensions; do
18974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18975 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18982 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18986 DOT=$ac_cv_path_DOT
18988 if test -n "$DOT"; then
18989 echo "$as_me:$LINENO: result: $DOT" >&5
18990 echo "${ECHO_T}$DOT" >&6
18992 echo "$as_me:$LINENO: result: no" >&5
18993 echo "${ECHO_T}no" >&6
18996 # Extract the first word of "etags", so it can be a program name with args.
18997 set dummy etags; ac_word=$2
18998 echo "$as_me:$LINENO: checking for $ac_word" >&5
18999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19000 if test "${ac_cv_path_ETAGS+set}" = set; then
19001 echo $ECHO_N "(cached) $ECHO_C" >&6
19005 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
19008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19009 for as_dir in $PATH
19012 test -z "$as_dir" && as_dir=.
19013 for ac_exec_ext in '' $ac_executable_extensions; do
19014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19015 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
19016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19022 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
19026 ETAGS=$ac_cv_path_ETAGS
19028 if test -n "$ETAGS"; then
19029 echo "$as_me:$LINENO: result: $ETAGS" >&5
19030 echo "${ECHO_T}$ETAGS" >&6
19032 echo "$as_me:$LINENO: result: no" >&5
19033 echo "${ECHO_T}no" >&6
19036 etags_version=`$ETAGS --version 2>&1`
19037 case "$etags_version" in
19038 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
19039 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
19040 *) ETAGSFLAGS="" ;;
19042 ETAGSFLAGS=$ETAGSFLAGS
19044 # Extract the first word of "python", so it can be a program name with args.
19045 set dummy python; ac_word=$2
19046 echo "$as_me:$LINENO: checking for $ac_word" >&5
19047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19048 if test "${ac_cv_path_PYTHON+set}" = set; then
19049 echo $ECHO_N "(cached) $ECHO_C" >&6
19053 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19057 for as_dir in $PATH
19060 test -z "$as_dir" && as_dir=.
19061 for ac_exec_ext in '' $ac_executable_extensions; do
19062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19063 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19070 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
19074 PYTHON=$ac_cv_path_PYTHON
19076 if test -n "$PYTHON"; then
19077 echo "$as_me:$LINENO: result: $PYTHON" >&5
19078 echo "${ECHO_T}$PYTHON" >&6
19080 echo "$as_me:$LINENO: result: no" >&5
19081 echo "${ECHO_T}no" >&6
19084 if test "$PYTHON" = "false"
19086 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
19087 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
19089 # Extract the first word of "qmtest", so it can be a program name with args.
19090 set dummy qmtest; ac_word=$2
19091 echo "$as_me:$LINENO: checking for $ac_word" >&5
19092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19093 if test "${ac_cv_path_QMTEST+set}" = set; then
19094 echo $ECHO_N "(cached) $ECHO_C" >&6
19098 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19102 for as_dir in $PATH
19105 test -z "$as_dir" && as_dir=.
19106 for ac_exec_ext in '' $ac_executable_extensions; do
19107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19108 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19115 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
19119 QMTEST=$ac_cv_path_QMTEST
19121 if test -n "$QMTEST"; then
19122 echo "$as_me:$LINENO: result: $QMTEST" >&5
19123 echo "${ECHO_T}$QMTEST" >&6
19125 echo "$as_me:$LINENO: result: no" >&5
19126 echo "${ECHO_T}no" >&6
19129 if test "$QMTEST" = "false"
19131 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
19132 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
19135 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
19136 pymajor=`echo $pyversion | cut -d. -f1`
19137 pyminor=`echo $pyversion | cut -d. -f2`
19139 if test "$pymajor" -ge "2"
19141 if test "$pymajor" -eq "2"
19143 if test "$pyminor" -lt "2"
19145 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19146 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
19150 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19151 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
19155 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19156 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19157 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19158 echo $ECHO_N "(cached) $ECHO_C" >&6
19160 ac_check_lib_save_LIBS=$LIBS
19162 cat >conftest.$ac_ext <<_ACEOF
19165 cat confdefs.h >>conftest.$ac_ext
19166 cat >>conftest.$ac_ext <<_ACEOF
19167 /* end confdefs.h. */
19169 /* Override any gcc2 internal prototype to avoid an error. */
19173 /* We use char because int might match the return type of a gcc2
19174 builtin and then its argument prototype would still apply. */
19184 rm -f conftest.$ac_objext conftest$ac_exeext
19185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19186 (eval $ac_link) 2>conftest.er1
19188 grep -v '^ *+' conftest.er1 >conftest.err
19190 cat conftest.err >&5
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); } &&
19193 { ac_try='test -z "$ac_c_werror_flag"
19194 || test ! -s conftest.err'
19195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19196 (eval $ac_try) 2>&5
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); }; } &&
19200 { ac_try='test -s conftest$ac_exeext'
19201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19202 (eval $ac_try) 2>&5
19204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205 (exit $ac_status); }; }; then
19206 ac_cv_lib_elf_elf_begin=yes
19208 echo "$as_me: failed program was:" >&5
19209 sed 's/^/| /' conftest.$ac_ext >&5
19211 ac_cv_lib_elf_elf_begin=no
19213 rm -f conftest.err conftest.$ac_objext \
19214 conftest$ac_exeext conftest.$ac_ext
19215 LIBS=$ac_check_lib_save_LIBS
19217 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19218 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19219 if test $ac_cv_lib_elf_elf_begin = yes; then
19220 cat >>confdefs.h <<_ACEOF
19221 #define HAVE_LIBELF 1
19229 echo "$as_me:$LINENO: checking for BZ2_bzCompressInit in -lbz2" >&5
19230 echo $ECHO_N "checking for BZ2_bzCompressInit in -lbz2... $ECHO_C" >&6
19231 if test "${ac_cv_lib_bz2_BZ2_bzCompressInit+set}" = set; then
19232 echo $ECHO_N "(cached) $ECHO_C" >&6
19234 ac_check_lib_save_LIBS=$LIBS
19236 cat >conftest.$ac_ext <<_ACEOF
19239 cat confdefs.h >>conftest.$ac_ext
19240 cat >>conftest.$ac_ext <<_ACEOF
19241 /* end confdefs.h. */
19243 /* Override any gcc2 internal prototype to avoid an error. */
19247 /* We use char because int might match the return type of a gcc2
19248 builtin and then its argument prototype would still apply. */
19249 char BZ2_bzCompressInit ();
19253 BZ2_bzCompressInit ();
19258 rm -f conftest.$ac_objext conftest$ac_exeext
19259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19260 (eval $ac_link) 2>conftest.er1
19262 grep -v '^ *+' conftest.er1 >conftest.err
19264 cat conftest.err >&5
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); } &&
19267 { ac_try='test -z "$ac_c_werror_flag"
19268 || test ! -s conftest.err'
19269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19270 (eval $ac_try) 2>&5
19272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273 (exit $ac_status); }; } &&
19274 { ac_try='test -s conftest$ac_exeext'
19275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19276 (eval $ac_try) 2>&5
19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); }; }; then
19280 ac_cv_lib_bz2_BZ2_bzCompressInit=yes
19282 echo "$as_me: failed program was:" >&5
19283 sed 's/^/| /' conftest.$ac_ext >&5
19285 ac_cv_lib_bz2_BZ2_bzCompressInit=no
19287 rm -f conftest.err conftest.$ac_objext \
19288 conftest$ac_exeext conftest.$ac_ext
19289 LIBS=$ac_check_lib_save_LIBS
19291 echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
19292 echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6
19293 if test $ac_cv_lib_bz2_BZ2_bzCompressInit = yes; then
19300 for ac_header in bzlib.h
19302 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19304 echo "$as_me:$LINENO: checking for $ac_header" >&5
19305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19307 echo $ECHO_N "(cached) $ECHO_C" >&6
19309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19312 # Is the header compilable?
19313 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19314 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19315 cat >conftest.$ac_ext <<_ACEOF
19318 cat confdefs.h >>conftest.$ac_ext
19319 cat >>conftest.$ac_ext <<_ACEOF
19320 /* end confdefs.h. */
19321 $ac_includes_default
19322 #include <$ac_header>
19324 rm -f conftest.$ac_objext
19325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19326 (eval $ac_compile) 2>conftest.er1
19328 grep -v '^ *+' conftest.er1 >conftest.err
19330 cat conftest.err >&5
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); } &&
19333 { ac_try='test -z "$ac_c_werror_flag"
19334 || test ! -s conftest.err'
19335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19336 (eval $ac_try) 2>&5
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); }; } &&
19340 { ac_try='test -s conftest.$ac_objext'
19341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19342 (eval $ac_try) 2>&5
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); }; }; then
19346 ac_header_compiler=yes
19348 echo "$as_me: failed program was:" >&5
19349 sed 's/^/| /' conftest.$ac_ext >&5
19351 ac_header_compiler=no
19353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19354 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19355 echo "${ECHO_T}$ac_header_compiler" >&6
19357 # Is the header present?
19358 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19359 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19360 cat >conftest.$ac_ext <<_ACEOF
19363 cat confdefs.h >>conftest.$ac_ext
19364 cat >>conftest.$ac_ext <<_ACEOF
19365 /* end confdefs.h. */
19366 #include <$ac_header>
19368 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19371 grep -v '^ *+' conftest.er1 >conftest.err
19373 cat conftest.err >&5
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); } >/dev/null; then
19376 if test -s conftest.err; then
19377 ac_cpp_err=$ac_c_preproc_warn_flag
19378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19385 if test -z "$ac_cpp_err"; then
19386 ac_header_preproc=yes
19388 echo "$as_me: failed program was:" >&5
19389 sed 's/^/| /' conftest.$ac_ext >&5
19391 ac_header_preproc=no
19393 rm -f conftest.err conftest.$ac_ext
19394 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19395 echo "${ECHO_T}$ac_header_preproc" >&6
19397 # So? What about this header?
19398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19400 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19401 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19403 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19404 ac_header_preproc=yes
19407 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19409 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19410 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19411 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19412 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19413 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19414 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19417 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19418 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19421 ## ----------------------------------- ##
19422 ## Report this to llvmbugs@cs.uiuc.edu ##
19423 ## ----------------------------------- ##
19426 sed "s/^/$as_me: WARNING: /" >&2
19429 echo "$as_me:$LINENO: checking for $ac_header" >&5
19430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19432 echo $ECHO_N "(cached) $ECHO_C" >&6
19434 eval "$as_ac_Header=\$ac_header_preproc"
19436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19441 cat >>confdefs.h <<_ACEOF
19442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19451 echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
19452 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
19453 if test "${ac_cv_lib_z_gzopen+set}" = set; then
19454 echo $ECHO_N "(cached) $ECHO_C" >&6
19456 ac_check_lib_save_LIBS=$LIBS
19458 cat >conftest.$ac_ext <<_ACEOF
19461 cat confdefs.h >>conftest.$ac_ext
19462 cat >>conftest.$ac_ext <<_ACEOF
19463 /* end confdefs.h. */
19465 /* Override any gcc2 internal prototype to avoid an error. */
19469 /* We use char because int might match the return type of a gcc2
19470 builtin and then its argument prototype would still apply. */
19480 rm -f conftest.$ac_objext conftest$ac_exeext
19481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19482 (eval $ac_link) 2>conftest.er1
19484 grep -v '^ *+' conftest.er1 >conftest.err
19486 cat conftest.err >&5
19487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488 (exit $ac_status); } &&
19489 { ac_try='test -z "$ac_c_werror_flag"
19490 || test ! -s conftest.err'
19491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19492 (eval $ac_try) 2>&5
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); }; } &&
19496 { ac_try='test -s conftest$ac_exeext'
19497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19498 (eval $ac_try) 2>&5
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); }; }; then
19502 ac_cv_lib_z_gzopen=yes
19504 echo "$as_me: failed program was:" >&5
19505 sed 's/^/| /' conftest.$ac_ext >&5
19507 ac_cv_lib_z_gzopen=no
19509 rm -f conftest.err conftest.$ac_objext \
19510 conftest$ac_exeext conftest.$ac_ext
19511 LIBS=$ac_check_lib_save_LIBS
19513 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
19514 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
19515 if test $ac_cv_lib_z_gzopen = yes; then
19522 for ac_header in zlib.h
19524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19526 echo "$as_me:$LINENO: checking for $ac_header" >&5
19527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19529 echo $ECHO_N "(cached) $ECHO_C" >&6
19531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19534 # Is the header compilable?
19535 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19536 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19537 cat >conftest.$ac_ext <<_ACEOF
19540 cat confdefs.h >>conftest.$ac_ext
19541 cat >>conftest.$ac_ext <<_ACEOF
19542 /* end confdefs.h. */
19543 $ac_includes_default
19544 #include <$ac_header>
19546 rm -f conftest.$ac_objext
19547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19548 (eval $ac_compile) 2>conftest.er1
19550 grep -v '^ *+' conftest.er1 >conftest.err
19552 cat conftest.err >&5
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); } &&
19555 { ac_try='test -z "$ac_c_werror_flag"
19556 || test ! -s conftest.err'
19557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19558 (eval $ac_try) 2>&5
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); }; } &&
19562 { ac_try='test -s conftest.$ac_objext'
19563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19564 (eval $ac_try) 2>&5
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); }; }; then
19568 ac_header_compiler=yes
19570 echo "$as_me: failed program was:" >&5
19571 sed 's/^/| /' conftest.$ac_ext >&5
19573 ac_header_compiler=no
19575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19576 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19577 echo "${ECHO_T}$ac_header_compiler" >&6
19579 # Is the header present?
19580 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19581 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19582 cat >conftest.$ac_ext <<_ACEOF
19585 cat confdefs.h >>conftest.$ac_ext
19586 cat >>conftest.$ac_ext <<_ACEOF
19587 /* end confdefs.h. */
19588 #include <$ac_header>
19590 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19593 grep -v '^ *+' conftest.er1 >conftest.err
19595 cat conftest.err >&5
19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); } >/dev/null; then
19598 if test -s conftest.err; then
19599 ac_cpp_err=$ac_c_preproc_warn_flag
19600 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19607 if test -z "$ac_cpp_err"; then
19608 ac_header_preproc=yes
19610 echo "$as_me: failed program was:" >&5
19611 sed 's/^/| /' conftest.$ac_ext >&5
19613 ac_header_preproc=no
19615 rm -f conftest.err conftest.$ac_ext
19616 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19617 echo "${ECHO_T}$ac_header_preproc" >&6
19619 # So? What about this header?
19620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19622 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19623 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19625 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19626 ac_header_preproc=yes
19629 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19630 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19631 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19632 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19633 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19634 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19635 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19636 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19639 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19640 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19643 ## ----------------------------------- ##
19644 ## Report this to llvmbugs@cs.uiuc.edu ##
19645 ## ----------------------------------- ##
19648 sed "s/^/$as_me: WARNING: /" >&2
19651 echo "$as_me:$LINENO: checking for $ac_header" >&5
19652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19654 echo $ECHO_N "(cached) $ECHO_C" >&6
19656 eval "$as_ac_Header=\$ac_header_preproc"
19658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19663 cat >>confdefs.h <<_ACEOF
19664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19673 if test $zlib_found -eq 1 -a $zlib_h_found -eq 1; then
19675 cat >>confdefs.h <<\_ACEOF
19676 #define HAVE_ZLIB 1
19685 if test $bzip2_found -eq 1 -a $bzlib_h_found -eq 1 ; then
19687 cat >>confdefs.h <<\_ACEOF
19688 #define HAVE_BZIP2 1
19697 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19698 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19699 if test "${ac_cv_search_dlopen+set}" = set; then
19700 echo $ECHO_N "(cached) $ECHO_C" >&6
19702 ac_func_search_save_LIBS=$LIBS
19703 ac_cv_search_dlopen=no
19704 cat >conftest.$ac_ext <<_ACEOF
19707 cat confdefs.h >>conftest.$ac_ext
19708 cat >>conftest.$ac_ext <<_ACEOF
19709 /* end confdefs.h. */
19711 /* Override any gcc2 internal prototype to avoid an error. */
19715 /* We use char because int might match the return type of a gcc2
19716 builtin and then its argument prototype would still apply. */
19726 rm -f conftest.$ac_objext conftest$ac_exeext
19727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19728 (eval $ac_link) 2>conftest.er1
19730 grep -v '^ *+' conftest.er1 >conftest.err
19732 cat conftest.err >&5
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); } &&
19735 { ac_try='test -z "$ac_c_werror_flag"
19736 || test ! -s conftest.err'
19737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19738 (eval $ac_try) 2>&5
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); }; } &&
19742 { ac_try='test -s conftest$ac_exeext'
19743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19744 (eval $ac_try) 2>&5
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); }; }; then
19748 ac_cv_search_dlopen="none required"
19750 echo "$as_me: failed program was:" >&5
19751 sed 's/^/| /' conftest.$ac_ext >&5
19754 rm -f conftest.err conftest.$ac_objext \
19755 conftest$ac_exeext conftest.$ac_ext
19756 if test "$ac_cv_search_dlopen" = no; then
19757 for ac_lib in dl; do
19758 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19759 cat >conftest.$ac_ext <<_ACEOF
19762 cat confdefs.h >>conftest.$ac_ext
19763 cat >>conftest.$ac_ext <<_ACEOF
19764 /* end confdefs.h. */
19766 /* Override any gcc2 internal prototype to avoid an error. */
19770 /* We use char because int might match the return type of a gcc2
19771 builtin and then its argument prototype would still apply. */
19781 rm -f conftest.$ac_objext conftest$ac_exeext
19782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19783 (eval $ac_link) 2>conftest.er1
19785 grep -v '^ *+' conftest.er1 >conftest.err
19787 cat conftest.err >&5
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); } &&
19790 { ac_try='test -z "$ac_c_werror_flag"
19791 || test ! -s conftest.err'
19792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19793 (eval $ac_try) 2>&5
19795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); }; } &&
19797 { ac_try='test -s conftest$ac_exeext'
19798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19799 (eval $ac_try) 2>&5
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); }; }; then
19803 ac_cv_search_dlopen="-l$ac_lib"
19806 echo "$as_me: failed program was:" >&5
19807 sed 's/^/| /' conftest.$ac_ext >&5
19810 rm -f conftest.err conftest.$ac_objext \
19811 conftest$ac_exeext conftest.$ac_ext
19814 LIBS=$ac_func_search_save_LIBS
19816 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19817 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19818 if test "$ac_cv_search_dlopen" != no; then
19819 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19821 cat >>confdefs.h <<\_ACEOF
19822 #define HAVE_DLOPEN 1
19826 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19827 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19831 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19832 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19833 if test "${ac_cv_search_mallinfo+set}" = set; then
19834 echo $ECHO_N "(cached) $ECHO_C" >&6
19836 ac_func_search_save_LIBS=$LIBS
19837 ac_cv_search_mallinfo=no
19838 cat >conftest.$ac_ext <<_ACEOF
19841 cat confdefs.h >>conftest.$ac_ext
19842 cat >>conftest.$ac_ext <<_ACEOF
19843 /* end confdefs.h. */
19845 /* Override any gcc2 internal prototype to avoid an error. */
19849 /* We use char because int might match the return type of a gcc2
19850 builtin and then its argument prototype would still apply. */
19860 rm -f conftest.$ac_objext conftest$ac_exeext
19861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19862 (eval $ac_link) 2>conftest.er1
19864 grep -v '^ *+' conftest.er1 >conftest.err
19866 cat conftest.err >&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); } &&
19869 { ac_try='test -z "$ac_c_werror_flag"
19870 || test ! -s conftest.err'
19871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19872 (eval $ac_try) 2>&5
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); }; } &&
19876 { ac_try='test -s conftest$ac_exeext'
19877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19878 (eval $ac_try) 2>&5
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); }; }; then
19882 ac_cv_search_mallinfo="none required"
19884 echo "$as_me: failed program was:" >&5
19885 sed 's/^/| /' conftest.$ac_ext >&5
19888 rm -f conftest.err conftest.$ac_objext \
19889 conftest$ac_exeext conftest.$ac_ext
19890 if test "$ac_cv_search_mallinfo" = no; then
19891 for ac_lib in malloc; do
19892 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19893 cat >conftest.$ac_ext <<_ACEOF
19896 cat confdefs.h >>conftest.$ac_ext
19897 cat >>conftest.$ac_ext <<_ACEOF
19898 /* end confdefs.h. */
19900 /* Override any gcc2 internal prototype to avoid an error. */
19904 /* We use char because int might match the return type of a gcc2
19905 builtin and then its argument prototype would still apply. */
19915 rm -f conftest.$ac_objext conftest$ac_exeext
19916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19917 (eval $ac_link) 2>conftest.er1
19919 grep -v '^ *+' conftest.er1 >conftest.err
19921 cat conftest.err >&5
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); } &&
19924 { ac_try='test -z "$ac_c_werror_flag"
19925 || test ! -s conftest.err'
19926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19927 (eval $ac_try) 2>&5
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); }; } &&
19931 { ac_try='test -s conftest$ac_exeext'
19932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19933 (eval $ac_try) 2>&5
19935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936 (exit $ac_status); }; }; then
19937 ac_cv_search_mallinfo="-l$ac_lib"
19940 echo "$as_me: failed program was:" >&5
19941 sed 's/^/| /' conftest.$ac_ext >&5
19944 rm -f conftest.err conftest.$ac_objext \
19945 conftest$ac_exeext conftest.$ac_ext
19948 LIBS=$ac_func_search_save_LIBS
19950 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19951 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19952 if test "$ac_cv_search_mallinfo" != no; then
19953 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19955 cat >>confdefs.h <<\_ACEOF
19956 #define HAVE_MALLINFO 1
19962 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19963 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19964 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19965 echo $ECHO_N "(cached) $ECHO_C" >&6
19967 ac_func_search_save_LIBS=$LIBS
19968 ac_cv_search_pthread_mutex_lock=no
19969 cat >conftest.$ac_ext <<_ACEOF
19972 cat confdefs.h >>conftest.$ac_ext
19973 cat >>conftest.$ac_ext <<_ACEOF
19974 /* end confdefs.h. */
19976 /* Override any gcc2 internal prototype to avoid an error. */
19980 /* We use char because int might match the return type of a gcc2
19981 builtin and then its argument prototype would still apply. */
19982 char pthread_mutex_lock ();
19986 pthread_mutex_lock ();
19991 rm -f conftest.$ac_objext conftest$ac_exeext
19992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19993 (eval $ac_link) 2>conftest.er1
19995 grep -v '^ *+' conftest.er1 >conftest.err
19997 cat conftest.err >&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); } &&
20000 { ac_try='test -z "$ac_c_werror_flag"
20001 || test ! -s conftest.err'
20002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20003 (eval $ac_try) 2>&5
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); }; } &&
20007 { ac_try='test -s conftest$ac_exeext'
20008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20009 (eval $ac_try) 2>&5
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); }; }; then
20013 ac_cv_search_pthread_mutex_lock="none required"
20015 echo "$as_me: failed program was:" >&5
20016 sed 's/^/| /' conftest.$ac_ext >&5
20019 rm -f conftest.err conftest.$ac_objext \
20020 conftest$ac_exeext conftest.$ac_ext
20021 if test "$ac_cv_search_pthread_mutex_lock" = no; then
20022 for ac_lib in pthread; do
20023 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20024 cat >conftest.$ac_ext <<_ACEOF
20027 cat confdefs.h >>conftest.$ac_ext
20028 cat >>conftest.$ac_ext <<_ACEOF
20029 /* end confdefs.h. */
20031 /* Override any gcc2 internal prototype to avoid an error. */
20035 /* We use char because int might match the return type of a gcc2
20036 builtin and then its argument prototype would still apply. */
20037 char pthread_mutex_lock ();
20041 pthread_mutex_lock ();
20046 rm -f conftest.$ac_objext conftest$ac_exeext
20047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20048 (eval $ac_link) 2>conftest.er1
20050 grep -v '^ *+' conftest.er1 >conftest.err
20052 cat conftest.err >&5
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); } &&
20055 { ac_try='test -z "$ac_c_werror_flag"
20056 || test ! -s conftest.err'
20057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20058 (eval $ac_try) 2>&5
20060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061 (exit $ac_status); }; } &&
20062 { ac_try='test -s conftest$ac_exeext'
20063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20064 (eval $ac_try) 2>&5
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); }; }; then
20068 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
20071 echo "$as_me: failed program was:" >&5
20072 sed 's/^/| /' conftest.$ac_ext >&5
20075 rm -f conftest.err conftest.$ac_objext \
20076 conftest$ac_exeext conftest.$ac_ext
20079 LIBS=$ac_func_search_save_LIBS
20081 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
20082 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
20083 if test "$ac_cv_search_pthread_mutex_lock" != no; then
20084 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
20086 cat >>confdefs.h <<\_ACEOF
20087 #define HAVE_PTHREAD_MUTEX_LOCK 1
20093 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20094 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20095 if test "${ac_cv_header_stdc+set}" = set; then
20096 echo $ECHO_N "(cached) $ECHO_C" >&6
20098 cat >conftest.$ac_ext <<_ACEOF
20101 cat confdefs.h >>conftest.$ac_ext
20102 cat >>conftest.$ac_ext <<_ACEOF
20103 /* end confdefs.h. */
20104 #include <stdlib.h>
20105 #include <stdarg.h>
20106 #include <string.h>
20117 rm -f conftest.$ac_objext
20118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20119 (eval $ac_compile) 2>conftest.er1
20121 grep -v '^ *+' conftest.er1 >conftest.err
20123 cat conftest.err >&5
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); } &&
20126 { ac_try='test -z "$ac_c_werror_flag"
20127 || test ! -s conftest.err'
20128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20129 (eval $ac_try) 2>&5
20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132 (exit $ac_status); }; } &&
20133 { ac_try='test -s conftest.$ac_objext'
20134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20135 (eval $ac_try) 2>&5
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); }; }; then
20139 ac_cv_header_stdc=yes
20141 echo "$as_me: failed program was:" >&5
20142 sed 's/^/| /' conftest.$ac_ext >&5
20144 ac_cv_header_stdc=no
20146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20148 if test $ac_cv_header_stdc = yes; then
20149 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20150 cat >conftest.$ac_ext <<_ACEOF
20153 cat confdefs.h >>conftest.$ac_ext
20154 cat >>conftest.$ac_ext <<_ACEOF
20155 /* end confdefs.h. */
20156 #include <string.h>
20159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20160 $EGREP "memchr" >/dev/null 2>&1; then
20163 ac_cv_header_stdc=no
20169 if test $ac_cv_header_stdc = yes; then
20170 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20171 cat >conftest.$ac_ext <<_ACEOF
20174 cat confdefs.h >>conftest.$ac_ext
20175 cat >>conftest.$ac_ext <<_ACEOF
20176 /* end confdefs.h. */
20177 #include <stdlib.h>
20180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20181 $EGREP "free" >/dev/null 2>&1; then
20184 ac_cv_header_stdc=no
20190 if test $ac_cv_header_stdc = yes; then
20191 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20192 if test "$cross_compiling" = yes; then
20195 cat >conftest.$ac_ext <<_ACEOF
20198 cat confdefs.h >>conftest.$ac_ext
20199 cat >>conftest.$ac_ext <<_ACEOF
20200 /* end confdefs.h. */
20202 #if ((' ' & 0x0FF) == 0x020)
20203 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20204 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20206 # define ISLOWER(c) \
20207 (('a' <= (c) && (c) <= 'i') \
20208 || ('j' <= (c) && (c) <= 'r') \
20209 || ('s' <= (c) && (c) <= 'z'))
20210 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20213 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20218 for (i = 0; i < 256; i++)
20219 if (XOR (islower (i), ISLOWER (i))
20220 || toupper (i) != TOUPPER (i))
20225 rm -f conftest$ac_exeext
20226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20227 (eval $ac_link) 2>&5
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20232 (eval $ac_try) 2>&5
20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235 (exit $ac_status); }; }; then
20238 echo "$as_me: program exited with status $ac_status" >&5
20239 echo "$as_me: failed program was:" >&5
20240 sed 's/^/| /' conftest.$ac_ext >&5
20242 ( exit $ac_status )
20243 ac_cv_header_stdc=no
20245 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20249 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20250 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20251 if test $ac_cv_header_stdc = yes; then
20253 cat >>confdefs.h <<\_ACEOF
20254 #define STDC_HEADERS 1
20259 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20260 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20261 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20262 echo $ECHO_N "(cached) $ECHO_C" >&6
20264 cat >conftest.$ac_ext <<_ACEOF
20267 cat confdefs.h >>conftest.$ac_ext
20268 cat >>conftest.$ac_ext <<_ACEOF
20269 /* end confdefs.h. */
20270 #include <sys/types.h>
20271 #include <sys/wait.h>
20272 #ifndef WEXITSTATUS
20273 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20276 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20284 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20289 rm -f conftest.$ac_objext
20290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20291 (eval $ac_compile) 2>conftest.er1
20293 grep -v '^ *+' conftest.er1 >conftest.err
20295 cat conftest.err >&5
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); } &&
20298 { ac_try='test -z "$ac_c_werror_flag"
20299 || test ! -s conftest.err'
20300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20301 (eval $ac_try) 2>&5
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); }; } &&
20305 { ac_try='test -s conftest.$ac_objext'
20306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20307 (eval $ac_try) 2>&5
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); }; }; then
20311 ac_cv_header_sys_wait_h=yes
20313 echo "$as_me: failed program was:" >&5
20314 sed 's/^/| /' conftest.$ac_ext >&5
20316 ac_cv_header_sys_wait_h=no
20318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20320 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20321 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20322 if test $ac_cv_header_sys_wait_h = yes; then
20324 cat >>confdefs.h <<\_ACEOF
20325 #define HAVE_SYS_WAIT_H 1
20342 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
20344 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20346 echo "$as_me:$LINENO: checking for $ac_header" >&5
20347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20349 echo $ECHO_N "(cached) $ECHO_C" >&6
20351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20354 # Is the header compilable?
20355 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20357 cat >conftest.$ac_ext <<_ACEOF
20360 cat confdefs.h >>conftest.$ac_ext
20361 cat >>conftest.$ac_ext <<_ACEOF
20362 /* end confdefs.h. */
20363 $ac_includes_default
20364 #include <$ac_header>
20366 rm -f conftest.$ac_objext
20367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20368 (eval $ac_compile) 2>conftest.er1
20370 grep -v '^ *+' conftest.er1 >conftest.err
20372 cat conftest.err >&5
20373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374 (exit $ac_status); } &&
20375 { ac_try='test -z "$ac_c_werror_flag"
20376 || test ! -s conftest.err'
20377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20378 (eval $ac_try) 2>&5
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); }; } &&
20382 { ac_try='test -s conftest.$ac_objext'
20383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20384 (eval $ac_try) 2>&5
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); }; }; then
20388 ac_header_compiler=yes
20390 echo "$as_me: failed program was:" >&5
20391 sed 's/^/| /' conftest.$ac_ext >&5
20393 ac_header_compiler=no
20395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20396 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20397 echo "${ECHO_T}$ac_header_compiler" >&6
20399 # Is the header present?
20400 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20401 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20402 cat >conftest.$ac_ext <<_ACEOF
20405 cat confdefs.h >>conftest.$ac_ext
20406 cat >>conftest.$ac_ext <<_ACEOF
20407 /* end confdefs.h. */
20408 #include <$ac_header>
20410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20413 grep -v '^ *+' conftest.er1 >conftest.err
20415 cat conftest.err >&5
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); } >/dev/null; then
20418 if test -s conftest.err; then
20419 ac_cpp_err=$ac_c_preproc_warn_flag
20420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20427 if test -z "$ac_cpp_err"; then
20428 ac_header_preproc=yes
20430 echo "$as_me: failed program was:" >&5
20431 sed 's/^/| /' conftest.$ac_ext >&5
20433 ac_header_preproc=no
20435 rm -f conftest.err conftest.$ac_ext
20436 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20437 echo "${ECHO_T}$ac_header_preproc" >&6
20439 # So? What about this header?
20440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20446 ac_header_preproc=yes
20449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20452 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20453 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20455 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20456 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20459 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20463 ## ----------------------------------- ##
20464 ## Report this to llvmbugs@cs.uiuc.edu ##
20465 ## ----------------------------------- ##
20468 sed "s/^/$as_me: WARNING: /" >&2
20471 echo "$as_me:$LINENO: checking for $ac_header" >&5
20472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20474 echo $ECHO_N "(cached) $ECHO_C" >&6
20476 eval "$as_ac_Header=\$ac_header_preproc"
20478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20483 cat >>confdefs.h <<_ACEOF
20484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20492 if test "${ac_cv_header_sys_types_h+set}" = set; then
20493 echo "$as_me:$LINENO: checking for sys/types.h" >&5
20494 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
20495 if test "${ac_cv_header_sys_types_h+set}" = set; then
20496 echo $ECHO_N "(cached) $ECHO_C" >&6
20498 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20499 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20501 # Is the header compilable?
20502 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
20503 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
20504 cat >conftest.$ac_ext <<_ACEOF
20507 cat confdefs.h >>conftest.$ac_ext
20508 cat >>conftest.$ac_ext <<_ACEOF
20509 /* end confdefs.h. */
20510 $ac_includes_default
20511 #include <sys/types.h>
20513 rm -f conftest.$ac_objext
20514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20515 (eval $ac_compile) 2>conftest.er1
20517 grep -v '^ *+' conftest.er1 >conftest.err
20519 cat conftest.err >&5
20520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521 (exit $ac_status); } &&
20522 { ac_try='test -z "$ac_c_werror_flag"
20523 || test ! -s conftest.err'
20524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20525 (eval $ac_try) 2>&5
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); }; } &&
20529 { ac_try='test -s conftest.$ac_objext'
20530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20531 (eval $ac_try) 2>&5
20533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534 (exit $ac_status); }; }; then
20535 ac_header_compiler=yes
20537 echo "$as_me: failed program was:" >&5
20538 sed 's/^/| /' conftest.$ac_ext >&5
20540 ac_header_compiler=no
20542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20543 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20544 echo "${ECHO_T}$ac_header_compiler" >&6
20546 # Is the header present?
20547 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
20548 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
20549 cat >conftest.$ac_ext <<_ACEOF
20552 cat confdefs.h >>conftest.$ac_ext
20553 cat >>conftest.$ac_ext <<_ACEOF
20554 /* end confdefs.h. */
20555 #include <sys/types.h>
20557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20558 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20560 grep -v '^ *+' conftest.er1 >conftest.err
20562 cat conftest.err >&5
20563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564 (exit $ac_status); } >/dev/null; then
20565 if test -s conftest.err; then
20566 ac_cpp_err=$ac_c_preproc_warn_flag
20567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20574 if test -z "$ac_cpp_err"; then
20575 ac_header_preproc=yes
20577 echo "$as_me: failed program was:" >&5
20578 sed 's/^/| /' conftest.$ac_ext >&5
20580 ac_header_preproc=no
20582 rm -f conftest.err conftest.$ac_ext
20583 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20584 echo "${ECHO_T}$ac_header_preproc" >&6
20586 # So? What about this header?
20587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20589 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
20590 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20591 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
20592 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
20593 ac_header_preproc=yes
20596 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
20597 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
20598 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
20599 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
20600 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
20601 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
20602 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
20603 echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
20604 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
20605 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
20606 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
20607 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
20610 ## ----------------------------------- ##
20611 ## Report this to llvmbugs@cs.uiuc.edu ##
20612 ## ----------------------------------- ##
20615 sed "s/^/$as_me: WARNING: /" >&2
20618 echo "$as_me:$LINENO: checking for sys/types.h" >&5
20619 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
20620 if test "${ac_cv_header_sys_types_h+set}" = set; then
20621 echo $ECHO_N "(cached) $ECHO_C" >&6
20623 ac_cv_header_sys_types_h=$ac_header_preproc
20625 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20626 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20631 if test "${ac_cv_header_inttypes_h+set}" = set; then
20632 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20633 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20634 if test "${ac_cv_header_inttypes_h+set}" = set; then
20635 echo $ECHO_N "(cached) $ECHO_C" >&6
20637 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20638 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20640 # Is the header compilable?
20641 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
20642 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
20643 cat >conftest.$ac_ext <<_ACEOF
20646 cat confdefs.h >>conftest.$ac_ext
20647 cat >>conftest.$ac_ext <<_ACEOF
20648 /* end confdefs.h. */
20649 $ac_includes_default
20650 #include <inttypes.h>
20652 rm -f conftest.$ac_objext
20653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20654 (eval $ac_compile) 2>conftest.er1
20656 grep -v '^ *+' conftest.er1 >conftest.err
20658 cat conftest.err >&5
20659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660 (exit $ac_status); } &&
20661 { ac_try='test -z "$ac_c_werror_flag"
20662 || test ! -s conftest.err'
20663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20664 (eval $ac_try) 2>&5
20666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667 (exit $ac_status); }; } &&
20668 { ac_try='test -s conftest.$ac_objext'
20669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20670 (eval $ac_try) 2>&5
20672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673 (exit $ac_status); }; }; then
20674 ac_header_compiler=yes
20676 echo "$as_me: failed program was:" >&5
20677 sed 's/^/| /' conftest.$ac_ext >&5
20679 ac_header_compiler=no
20681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20682 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20683 echo "${ECHO_T}$ac_header_compiler" >&6
20685 # Is the header present?
20686 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
20687 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
20688 cat >conftest.$ac_ext <<_ACEOF
20691 cat confdefs.h >>conftest.$ac_ext
20692 cat >>conftest.$ac_ext <<_ACEOF
20693 /* end confdefs.h. */
20694 #include <inttypes.h>
20696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20699 grep -v '^ *+' conftest.er1 >conftest.err
20701 cat conftest.err >&5
20702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703 (exit $ac_status); } >/dev/null; then
20704 if test -s conftest.err; then
20705 ac_cpp_err=$ac_c_preproc_warn_flag
20706 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20713 if test -z "$ac_cpp_err"; then
20714 ac_header_preproc=yes
20716 echo "$as_me: failed program was:" >&5
20717 sed 's/^/| /' conftest.$ac_ext >&5
20719 ac_header_preproc=no
20721 rm -f conftest.err conftest.$ac_ext
20722 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20723 echo "${ECHO_T}$ac_header_preproc" >&6
20725 # So? What about this header?
20726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20728 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20729 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20730 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20731 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20732 ac_header_preproc=yes
20735 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20736 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
20737 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
20738 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
20739 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20740 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20741 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
20742 echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
20743 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20744 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20745 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20746 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20749 ## ----------------------------------- ##
20750 ## Report this to llvmbugs@cs.uiuc.edu ##
20751 ## ----------------------------------- ##
20754 sed "s/^/$as_me: WARNING: /" >&2
20757 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20758 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20759 if test "${ac_cv_header_inttypes_h+set}" = set; then
20760 echo $ECHO_N "(cached) $ECHO_C" >&6
20762 ac_cv_header_inttypes_h=$ac_header_preproc
20764 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20765 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20770 if test "${ac_cv_header_stdint_h+set}" = set; then
20771 echo "$as_me:$LINENO: checking for stdint.h" >&5
20772 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20773 if test "${ac_cv_header_stdint_h+set}" = set; then
20774 echo $ECHO_N "(cached) $ECHO_C" >&6
20776 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20777 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20779 # Is the header compilable?
20780 echo "$as_me:$LINENO: checking stdint.h usability" >&5
20781 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20782 cat >conftest.$ac_ext <<_ACEOF
20785 cat confdefs.h >>conftest.$ac_ext
20786 cat >>conftest.$ac_ext <<_ACEOF
20787 /* end confdefs.h. */
20788 $ac_includes_default
20789 #include <stdint.h>
20791 rm -f conftest.$ac_objext
20792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20793 (eval $ac_compile) 2>conftest.er1
20795 grep -v '^ *+' conftest.er1 >conftest.err
20797 cat conftest.err >&5
20798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799 (exit $ac_status); } &&
20800 { ac_try='test -z "$ac_c_werror_flag"
20801 || test ! -s conftest.err'
20802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20803 (eval $ac_try) 2>&5
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); }; } &&
20807 { ac_try='test -s conftest.$ac_objext'
20808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20809 (eval $ac_try) 2>&5
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); }; }; then
20813 ac_header_compiler=yes
20815 echo "$as_me: failed program was:" >&5
20816 sed 's/^/| /' conftest.$ac_ext >&5
20818 ac_header_compiler=no
20820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20821 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20822 echo "${ECHO_T}$ac_header_compiler" >&6
20824 # Is the header present?
20825 echo "$as_me:$LINENO: checking stdint.h presence" >&5
20826 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20827 cat >conftest.$ac_ext <<_ACEOF
20830 cat confdefs.h >>conftest.$ac_ext
20831 cat >>conftest.$ac_ext <<_ACEOF
20832 /* end confdefs.h. */
20833 #include <stdint.h>
20835 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20836 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20838 grep -v '^ *+' conftest.er1 >conftest.err
20840 cat conftest.err >&5
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); } >/dev/null; then
20843 if test -s conftest.err; then
20844 ac_cpp_err=$ac_c_preproc_warn_flag
20845 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20852 if test -z "$ac_cpp_err"; then
20853 ac_header_preproc=yes
20855 echo "$as_me: failed program was:" >&5
20856 sed 's/^/| /' conftest.$ac_ext >&5
20858 ac_header_preproc=no
20860 rm -f conftest.err conftest.$ac_ext
20861 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20862 echo "${ECHO_T}$ac_header_preproc" >&6
20864 # So? What about this header?
20865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20867 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20868 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20869 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20870 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20871 ac_header_preproc=yes
20874 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20875 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20876 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
20877 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
20878 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20879 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20880 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
20881 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
20882 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20883 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20884 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20885 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20888 ## ----------------------------------- ##
20889 ## Report this to llvmbugs@cs.uiuc.edu ##
20890 ## ----------------------------------- ##
20893 sed "s/^/$as_me: WARNING: /" >&2
20896 echo "$as_me:$LINENO: checking for stdint.h" >&5
20897 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20898 if test "${ac_cv_header_stdint_h+set}" = set; then
20899 echo $ECHO_N "(cached) $ECHO_C" >&6
20901 ac_cv_header_stdint_h=$ac_header_preproc
20903 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20904 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20910 echo "$as_me:$LINENO: checking for pid_t" >&5
20911 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20912 if test "${ac_cv_type_pid_t+set}" = set; then
20913 echo $ECHO_N "(cached) $ECHO_C" >&6
20915 cat >conftest.$ac_ext <<_ACEOF
20918 cat confdefs.h >>conftest.$ac_ext
20919 cat >>conftest.$ac_ext <<_ACEOF
20920 /* end confdefs.h. */
20921 $ac_includes_default
20927 if (sizeof (pid_t))
20933 rm -f conftest.$ac_objext
20934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20935 (eval $ac_compile) 2>conftest.er1
20937 grep -v '^ *+' conftest.er1 >conftest.err
20939 cat conftest.err >&5
20940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941 (exit $ac_status); } &&
20942 { ac_try='test -z "$ac_c_werror_flag"
20943 || test ! -s conftest.err'
20944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20945 (eval $ac_try) 2>&5
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); }; } &&
20949 { ac_try='test -s conftest.$ac_objext'
20950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20951 (eval $ac_try) 2>&5
20953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954 (exit $ac_status); }; }; then
20955 ac_cv_type_pid_t=yes
20957 echo "$as_me: failed program was:" >&5
20958 sed 's/^/| /' conftest.$ac_ext >&5
20960 ac_cv_type_pid_t=no
20962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20964 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20965 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20966 if test $ac_cv_type_pid_t = yes; then
20970 cat >>confdefs.h <<_ACEOF
20976 echo "$as_me:$LINENO: checking for size_t" >&5
20977 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20978 if test "${ac_cv_type_size_t+set}" = set; then
20979 echo $ECHO_N "(cached) $ECHO_C" >&6
20981 cat >conftest.$ac_ext <<_ACEOF
20984 cat confdefs.h >>conftest.$ac_ext
20985 cat >>conftest.$ac_ext <<_ACEOF
20986 /* end confdefs.h. */
20987 $ac_includes_default
20993 if (sizeof (size_t))
20999 rm -f conftest.$ac_objext
21000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21001 (eval $ac_compile) 2>conftest.er1
21003 grep -v '^ *+' conftest.er1 >conftest.err
21005 cat conftest.err >&5
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); } &&
21008 { ac_try='test -z "$ac_c_werror_flag"
21009 || test ! -s conftest.err'
21010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21011 (eval $ac_try) 2>&5
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); }; } &&
21015 { ac_try='test -s conftest.$ac_objext'
21016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21017 (eval $ac_try) 2>&5
21019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020 (exit $ac_status); }; }; then
21021 ac_cv_type_size_t=yes
21023 echo "$as_me: failed program was:" >&5
21024 sed 's/^/| /' conftest.$ac_ext >&5
21026 ac_cv_type_size_t=no
21028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21030 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21031 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21032 if test $ac_cv_type_size_t = yes; then
21036 cat >>confdefs.h <<_ACEOF
21037 #define size_t unsigned
21042 echo "$as_me:$LINENO: checking for int64_t" >&5
21043 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
21044 if test "${ac_cv_type_int64_t+set}" = set; then
21045 echo $ECHO_N "(cached) $ECHO_C" >&6
21047 cat >conftest.$ac_ext <<_ACEOF
21050 cat confdefs.h >>conftest.$ac_ext
21051 cat >>conftest.$ac_ext <<_ACEOF
21052 /* end confdefs.h. */
21053 $ac_includes_default
21059 if (sizeof (int64_t))
21065 rm -f conftest.$ac_objext
21066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21067 (eval $ac_compile) 2>conftest.er1
21069 grep -v '^ *+' conftest.er1 >conftest.err
21071 cat conftest.err >&5
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); } &&
21074 { ac_try='test -z "$ac_c_werror_flag"
21075 || test ! -s conftest.err'
21076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21077 (eval $ac_try) 2>&5
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); }; } &&
21081 { ac_try='test -s conftest.$ac_objext'
21082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21083 (eval $ac_try) 2>&5
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); }; }; then
21087 ac_cv_type_int64_t=yes
21089 echo "$as_me: failed program was:" >&5
21090 sed 's/^/| /' conftest.$ac_ext >&5
21092 ac_cv_type_int64_t=no
21094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21096 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
21097 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
21098 if test $ac_cv_type_int64_t = yes; then
21100 cat >>confdefs.h <<_ACEOF
21101 #define HAVE_INT64_T 1
21106 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
21107 echo "$as_me: error: Type int64_t required but not found" >&2;}
21108 { (exit 1); exit 1; }; }
21111 echo "$as_me:$LINENO: checking for uint64_t" >&5
21112 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
21113 if test "${ac_cv_type_uint64_t+set}" = set; then
21114 echo $ECHO_N "(cached) $ECHO_C" >&6
21116 cat >conftest.$ac_ext <<_ACEOF
21119 cat confdefs.h >>conftest.$ac_ext
21120 cat >>conftest.$ac_ext <<_ACEOF
21121 /* end confdefs.h. */
21122 $ac_includes_default
21126 if ((uint64_t *) 0)
21128 if (sizeof (uint64_t))
21134 rm -f conftest.$ac_objext
21135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21136 (eval $ac_compile) 2>conftest.er1
21138 grep -v '^ *+' conftest.er1 >conftest.err
21140 cat conftest.err >&5
21141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); } &&
21143 { ac_try='test -z "$ac_c_werror_flag"
21144 || test ! -s conftest.err'
21145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21146 (eval $ac_try) 2>&5
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); }; } &&
21150 { ac_try='test -s conftest.$ac_objext'
21151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21152 (eval $ac_try) 2>&5
21154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155 (exit $ac_status); }; }; then
21156 ac_cv_type_uint64_t=yes
21158 echo "$as_me: failed program was:" >&5
21159 sed 's/^/| /' conftest.$ac_ext >&5
21161 ac_cv_type_uint64_t=no
21163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21165 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
21166 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
21167 if test $ac_cv_type_uint64_t = yes; then
21169 cat >>confdefs.h <<_ACEOF
21170 #define HAVE_UINT64_T 1
21175 echo "$as_me:$LINENO: checking for u_int64_t" >&5
21176 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
21177 if test "${ac_cv_type_u_int64_t+set}" = set; then
21178 echo $ECHO_N "(cached) $ECHO_C" >&6
21180 cat >conftest.$ac_ext <<_ACEOF
21183 cat confdefs.h >>conftest.$ac_ext
21184 cat >>conftest.$ac_ext <<_ACEOF
21185 /* end confdefs.h. */
21186 $ac_includes_default
21190 if ((u_int64_t *) 0)
21192 if (sizeof (u_int64_t))
21198 rm -f conftest.$ac_objext
21199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21200 (eval $ac_compile) 2>conftest.er1
21202 grep -v '^ *+' conftest.er1 >conftest.err
21204 cat conftest.err >&5
21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); } &&
21207 { ac_try='test -z "$ac_c_werror_flag"
21208 || test ! -s conftest.err'
21209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21210 (eval $ac_try) 2>&5
21212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213 (exit $ac_status); }; } &&
21214 { ac_try='test -s conftest.$ac_objext'
21215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21216 (eval $ac_try) 2>&5
21218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219 (exit $ac_status); }; }; then
21220 ac_cv_type_u_int64_t=yes
21222 echo "$as_me: failed program was:" >&5
21223 sed 's/^/| /' conftest.$ac_ext >&5
21225 ac_cv_type_u_int64_t=no
21227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21229 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
21230 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
21231 if test $ac_cv_type_u_int64_t = yes; then
21233 cat >>confdefs.h <<_ACEOF
21234 #define HAVE_U_INT64_T 1
21239 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
21240 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
21241 { (exit 1); exit 1; }; }
21246 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21247 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
21248 if test "${ac_cv_header_time+set}" = set; then
21249 echo $ECHO_N "(cached) $ECHO_C" >&6
21251 cat >conftest.$ac_ext <<_ACEOF
21254 cat confdefs.h >>conftest.$ac_ext
21255 cat >>conftest.$ac_ext <<_ACEOF
21256 /* end confdefs.h. */
21257 #include <sys/types.h>
21258 #include <sys/time.h>
21264 if ((struct tm *) 0)
21270 rm -f conftest.$ac_objext
21271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21272 (eval $ac_compile) 2>conftest.er1
21274 grep -v '^ *+' conftest.er1 >conftest.err
21276 cat conftest.err >&5
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); } &&
21279 { ac_try='test -z "$ac_c_werror_flag"
21280 || test ! -s conftest.err'
21281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21282 (eval $ac_try) 2>&5
21284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285 (exit $ac_status); }; } &&
21286 { ac_try='test -s conftest.$ac_objext'
21287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21288 (eval $ac_try) 2>&5
21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); }; }; then
21292 ac_cv_header_time=yes
21294 echo "$as_me: failed program was:" >&5
21295 sed 's/^/| /' conftest.$ac_ext >&5
21297 ac_cv_header_time=no
21299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21301 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21302 echo "${ECHO_T}$ac_cv_header_time" >&6
21303 if test $ac_cv_header_time = yes; then
21305 cat >>confdefs.h <<\_ACEOF
21306 #define TIME_WITH_SYS_TIME 1
21311 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21312 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
21313 if test "${ac_cv_struct_tm+set}" = set; then
21314 echo $ECHO_N "(cached) $ECHO_C" >&6
21316 cat >conftest.$ac_ext <<_ACEOF
21319 cat confdefs.h >>conftest.$ac_ext
21320 cat >>conftest.$ac_ext <<_ACEOF
21321 /* end confdefs.h. */
21322 #include <sys/types.h>
21328 struct tm *tp; tp->tm_sec;
21333 rm -f conftest.$ac_objext
21334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21335 (eval $ac_compile) 2>conftest.er1
21337 grep -v '^ *+' conftest.er1 >conftest.err
21339 cat conftest.err >&5
21340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341 (exit $ac_status); } &&
21342 { ac_try='test -z "$ac_c_werror_flag"
21343 || test ! -s conftest.err'
21344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21345 (eval $ac_try) 2>&5
21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348 (exit $ac_status); }; } &&
21349 { ac_try='test -s conftest.$ac_objext'
21350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21351 (eval $ac_try) 2>&5
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); }; }; then
21355 ac_cv_struct_tm=time.h
21357 echo "$as_me: failed program was:" >&5
21358 sed 's/^/| /' conftest.$ac_ext >&5
21360 ac_cv_struct_tm=sys/time.h
21362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21364 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21365 echo "${ECHO_T}$ac_cv_struct_tm" >&6
21366 if test $ac_cv_struct_tm = sys/time.h; then
21368 cat >>confdefs.h <<\_ACEOF
21369 #define TM_IN_SYS_TIME 1
21376 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
21377 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
21379 ac_cpp='$CPP $CPPFLAGS'
21380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21384 if test "$cross_compiling" = yes; then
21387 cat >conftest.$ac_ext <<_ACEOF
21391 cat confdefs.h >>conftest.$ac_ext
21392 cat >>conftest.$ac_ext <<_ACEOF
21393 /* end confdefs.h. */
21396 #include <stdlib.h>
21402 volatile double A, B;
21406 sprintf(Buffer, "%a", A);
21410 if (A != 0x1.999999999999ap-4)
21417 rm -f conftest$ac_exeext
21418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21419 (eval $ac_link) 2>&5
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21424 (eval $ac_try) 2>&5
21426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21427 (exit $ac_status); }; }; then
21430 echo "$as_me: program exited with status $ac_status" >&5
21431 echo "$as_me: failed program was:" >&5
21432 sed 's/^/| /' conftest.$ac_ext >&5
21434 ( exit $ac_status )
21437 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21440 ac_cpp='$CPP $CPPFLAGS'
21441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21445 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
21446 echo "${ECHO_T}$ac_c_printf_a" >&6
21447 if test "$ac_c_printf_a" = "yes"; then
21449 cat >>confdefs.h <<\_ACEOF
21450 #define HAVE_PRINTF_A 1
21456 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21457 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21458 if test "${ac_cv_c_bigendian+set}" = set; then
21459 echo $ECHO_N "(cached) $ECHO_C" >&6
21461 # See if sys/param.h defines the BYTE_ORDER macro.
21462 cat >conftest.$ac_ext <<_ACEOF
21465 cat confdefs.h >>conftest.$ac_ext
21466 cat >>conftest.$ac_ext <<_ACEOF
21467 /* end confdefs.h. */
21468 #include <sys/types.h>
21469 #include <sys/param.h>
21474 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21475 bogus endian macros
21482 rm -f conftest.$ac_objext
21483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21484 (eval $ac_compile) 2>conftest.er1
21486 grep -v '^ *+' conftest.er1 >conftest.err
21488 cat conftest.err >&5
21489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490 (exit $ac_status); } &&
21491 { ac_try='test -z "$ac_c_werror_flag"
21492 || test ! -s conftest.err'
21493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21494 (eval $ac_try) 2>&5
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); }; } &&
21498 { ac_try='test -s conftest.$ac_objext'
21499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21500 (eval $ac_try) 2>&5
21502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503 (exit $ac_status); }; }; then
21504 # It does; now see whether it defined to BIG_ENDIAN or not.
21505 cat >conftest.$ac_ext <<_ACEOF
21508 cat confdefs.h >>conftest.$ac_ext
21509 cat >>conftest.$ac_ext <<_ACEOF
21510 /* end confdefs.h. */
21511 #include <sys/types.h>
21512 #include <sys/param.h>
21517 #if BYTE_ORDER != BIG_ENDIAN
21525 rm -f conftest.$ac_objext
21526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21527 (eval $ac_compile) 2>conftest.er1
21529 grep -v '^ *+' conftest.er1 >conftest.err
21531 cat conftest.err >&5
21532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533 (exit $ac_status); } &&
21534 { ac_try='test -z "$ac_c_werror_flag"
21535 || test ! -s conftest.err'
21536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21537 (eval $ac_try) 2>&5
21539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); }; } &&
21541 { ac_try='test -s conftest.$ac_objext'
21542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21543 (eval $ac_try) 2>&5
21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546 (exit $ac_status); }; }; then
21547 ac_cv_c_bigendian=yes
21549 echo "$as_me: failed program was:" >&5
21550 sed 's/^/| /' conftest.$ac_ext >&5
21552 ac_cv_c_bigendian=no
21554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21556 echo "$as_me: failed program was:" >&5
21557 sed 's/^/| /' conftest.$ac_ext >&5
21559 # It does not; compile a test program.
21560 if test "$cross_compiling" = yes; then
21561 # try to guess the endianness by grepping values into an object file
21562 ac_cv_c_bigendian=unknown
21563 cat >conftest.$ac_ext <<_ACEOF
21566 cat confdefs.h >>conftest.$ac_ext
21567 cat >>conftest.$ac_ext <<_ACEOF
21568 /* end confdefs.h. */
21569 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21570 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21571 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21572 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21573 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21574 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21578 _ascii (); _ebcdic ();
21583 rm -f conftest.$ac_objext
21584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21585 (eval $ac_compile) 2>conftest.er1
21587 grep -v '^ *+' conftest.er1 >conftest.err
21589 cat conftest.err >&5
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); } &&
21592 { ac_try='test -z "$ac_c_werror_flag"
21593 || test ! -s conftest.err'
21594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21595 (eval $ac_try) 2>&5
21597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); }; } &&
21599 { ac_try='test -s conftest.$ac_objext'
21600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21601 (eval $ac_try) 2>&5
21603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604 (exit $ac_status); }; }; then
21605 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21606 ac_cv_c_bigendian=yes
21608 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21609 if test "$ac_cv_c_bigendian" = unknown; then
21610 ac_cv_c_bigendian=no
21612 # finding both strings is unlikely to happen, but who knows?
21613 ac_cv_c_bigendian=unknown
21617 echo "$as_me: failed program was:" >&5
21618 sed 's/^/| /' conftest.$ac_ext >&5
21621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21623 cat >conftest.$ac_ext <<_ACEOF
21626 cat confdefs.h >>conftest.$ac_ext
21627 cat >>conftest.$ac_ext <<_ACEOF
21628 /* end confdefs.h. */
21632 /* Are we little or big endian? From Harbison&Steele. */
21636 char c[sizeof (long)];
21639 exit (u.c[sizeof (long) - 1] == 1);
21642 rm -f conftest$ac_exeext
21643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21644 (eval $ac_link) 2>&5
21646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21649 (eval $ac_try) 2>&5
21651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652 (exit $ac_status); }; }; then
21653 ac_cv_c_bigendian=no
21655 echo "$as_me: program exited with status $ac_status" >&5
21656 echo "$as_me: failed program was:" >&5
21657 sed 's/^/| /' conftest.$ac_ext >&5
21659 ( exit $ac_status )
21660 ac_cv_c_bigendian=yes
21662 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21667 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21668 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21669 case $ac_cv_c_bigendian in
21677 { { echo "$as_me:$LINENO: error: unknown endianness
21678 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21679 echo "$as_me: error: unknown endianness
21680 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21681 { (exit 1); exit 1; }; } ;;
21685 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
21686 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
21687 if test "${ac_cv_cxx_namespaces+set}" = set; then
21688 echo $ECHO_N "(cached) $ECHO_C" >&6
21691 ac_cpp='$CXXCPP $CPPFLAGS'
21692 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21693 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21694 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21696 cat >conftest.$ac_ext <<_ACEOF
21699 cat confdefs.h >>conftest.$ac_ext
21700 cat >>conftest.$ac_ext <<_ACEOF
21701 /* end confdefs.h. */
21702 namespace Outer { namespace Inner { int i = 0; }}
21706 using namespace Outer::Inner; return i;
21711 rm -f conftest.$ac_objext
21712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21713 (eval $ac_compile) 2>conftest.er1
21715 grep -v '^ *+' conftest.er1 >conftest.err
21717 cat conftest.err >&5
21718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21719 (exit $ac_status); } &&
21720 { ac_try='test -z "$ac_cxx_werror_flag"
21721 || test ! -s conftest.err'
21722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21723 (eval $ac_try) 2>&5
21725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726 (exit $ac_status); }; } &&
21727 { ac_try='test -s conftest.$ac_objext'
21728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21729 (eval $ac_try) 2>&5
21731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21732 (exit $ac_status); }; }; then
21733 ac_cv_cxx_namespaces=yes
21735 echo "$as_me: failed program was:" >&5
21736 sed 's/^/| /' conftest.$ac_ext >&5
21738 ac_cv_cxx_namespaces=no
21740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21742 ac_cpp='$CPP $CPPFLAGS'
21743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21749 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
21750 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
21751 if test "$ac_cv_cxx_namespaces" = yes; then
21753 cat >>confdefs.h <<\_ACEOF
21754 #define HAVE_NAMESPACES
21759 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
21760 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
21761 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
21762 echo $ECHO_N "(cached) $ECHO_C" >&6
21766 ac_cpp='$CXXCPP $CPPFLAGS'
21767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21771 cat >conftest.$ac_ext <<_ACEOF
21774 cat confdefs.h >>conftest.$ac_ext
21775 cat >>conftest.$ac_ext <<_ACEOF
21776 /* end confdefs.h. */
21777 #include <ext/hash_map>
21778 #ifdef HAVE_NAMESPACES
21779 using namespace std;
21784 hash_map<int, int> t;
21789 rm -f conftest.$ac_objext
21790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21791 (eval $ac_compile) 2>conftest.er1
21793 grep -v '^ *+' conftest.er1 >conftest.err
21795 cat conftest.err >&5
21796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); } &&
21798 { ac_try='test -z "$ac_cxx_werror_flag"
21799 || test ! -s conftest.err'
21800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21801 (eval $ac_try) 2>&5
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); }; } &&
21805 { ac_try='test -s conftest.$ac_objext'
21806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21807 (eval $ac_try) 2>&5
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); }; }; then
21811 ac_cv_cxx_have_std_ext_hash_map=yes
21813 echo "$as_me: failed program was:" >&5
21814 sed 's/^/| /' conftest.$ac_ext >&5
21816 ac_cv_cxx_have_std_ext_hash_map=no
21818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21820 ac_cpp='$CPP $CPPFLAGS'
21821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21826 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21827 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
21828 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21831 cat >>confdefs.h <<\_ACEOF
21832 #define HAVE_STD_EXT_HASH_MAP 1
21837 cat >>confdefs.h <<\_ACEOF
21838 #define HAVE_STD_EXT_HASH_MAP 0
21843 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21844 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21845 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21846 echo $ECHO_N "(cached) $ECHO_C" >&6
21850 ac_cpp='$CXXCPP $CPPFLAGS'
21851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21855 cat >conftest.$ac_ext <<_ACEOF
21858 cat confdefs.h >>conftest.$ac_ext
21859 cat >>conftest.$ac_ext <<_ACEOF
21860 /* end confdefs.h. */
21861 #include <ext/hash_map>
21862 #ifdef HAVE_NAMESPACES
21863 using namespace __gnu_cxx;
21868 hash_map<int,int> t;
21873 rm -f conftest.$ac_objext
21874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21875 (eval $ac_compile) 2>conftest.er1
21877 grep -v '^ *+' conftest.er1 >conftest.err
21879 cat conftest.err >&5
21880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881 (exit $ac_status); } &&
21882 { ac_try='test -z "$ac_cxx_werror_flag"
21883 || test ! -s conftest.err'
21884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21885 (eval $ac_try) 2>&5
21887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888 (exit $ac_status); }; } &&
21889 { ac_try='test -s conftest.$ac_objext'
21890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21891 (eval $ac_try) 2>&5
21893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894 (exit $ac_status); }; }; then
21895 ac_cv_cxx_have_gnu_ext_hash_map=yes
21897 echo "$as_me: failed program was:" >&5
21898 sed 's/^/| /' conftest.$ac_ext >&5
21900 ac_cv_cxx_have_gnu_ext_hash_map=no
21902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21904 ac_cpp='$CPP $CPPFLAGS'
21905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21910 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21911 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
21912 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21915 cat >>confdefs.h <<\_ACEOF
21916 #define HAVE_GNU_EXT_HASH_MAP 1
21921 cat >>confdefs.h <<\_ACEOF
21922 #define HAVE_GNU_EXT_HASH_MAP 0
21927 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21928 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21929 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21930 echo $ECHO_N "(cached) $ECHO_C" >&6
21934 ac_cpp='$CXXCPP $CPPFLAGS'
21935 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21936 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21937 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21939 cat >conftest.$ac_ext <<_ACEOF
21942 cat confdefs.h >>conftest.$ac_ext
21943 cat >>conftest.$ac_ext <<_ACEOF
21944 /* end confdefs.h. */
21945 #include <hash_map>
21949 hash_map<int,int> t;
21954 rm -f conftest.$ac_objext
21955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21956 (eval $ac_compile) 2>conftest.er1
21958 grep -v '^ *+' conftest.er1 >conftest.err
21960 cat conftest.err >&5
21961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21962 (exit $ac_status); } &&
21963 { ac_try='test -z "$ac_cxx_werror_flag"
21964 || test ! -s conftest.err'
21965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21966 (eval $ac_try) 2>&5
21968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969 (exit $ac_status); }; } &&
21970 { ac_try='test -s conftest.$ac_objext'
21971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21972 (eval $ac_try) 2>&5
21974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21975 (exit $ac_status); }; }; then
21976 ac_cv_cxx_have_global_hash_map=yes
21978 echo "$as_me: failed program was:" >&5
21979 sed 's/^/| /' conftest.$ac_ext >&5
21981 ac_cv_cxx_have_global_hash_map=no
21983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21985 ac_cpp='$CPP $CPPFLAGS'
21986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21991 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21992 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
21993 if test "$ac_cv_cxx_have_global_hash_map" = yes
21996 cat >>confdefs.h <<\_ACEOF
21997 #define HAVE_GLOBAL_HASH_MAP 1
22002 cat >>confdefs.h <<\_ACEOF
22003 #define HAVE_GLOBAL_HASH_MAP 0
22008 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
22009 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
22010 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
22011 echo $ECHO_N "(cached) $ECHO_C" >&6
22015 ac_cpp='$CXXCPP $CPPFLAGS'
22016 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22017 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22018 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22020 cat >conftest.$ac_ext <<_ACEOF
22023 cat confdefs.h >>conftest.$ac_ext
22024 cat >>conftest.$ac_ext <<_ACEOF
22025 /* end confdefs.h. */
22026 #include <ext/hash_set>
22027 #ifdef HAVE_NAMESPACES
22028 using namespace std;
22038 rm -f conftest.$ac_objext
22039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22040 (eval $ac_compile) 2>conftest.er1
22042 grep -v '^ *+' conftest.er1 >conftest.err
22044 cat conftest.err >&5
22045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046 (exit $ac_status); } &&
22047 { ac_try='test -z "$ac_cxx_werror_flag"
22048 || test ! -s conftest.err'
22049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22050 (eval $ac_try) 2>&5
22052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053 (exit $ac_status); }; } &&
22054 { ac_try='test -s conftest.$ac_objext'
22055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22056 (eval $ac_try) 2>&5
22058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059 (exit $ac_status); }; }; then
22060 ac_cv_cxx_have_std_ext_hash_set=yes
22062 echo "$as_me: failed program was:" >&5
22063 sed 's/^/| /' conftest.$ac_ext >&5
22065 ac_cv_cxx_have_std_ext_hash_set=no
22067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22069 ac_cpp='$CPP $CPPFLAGS'
22070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22075 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
22076 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
22077 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
22080 cat >>confdefs.h <<\_ACEOF
22081 #define HAVE_STD_EXT_HASH_SET 1
22086 cat >>confdefs.h <<\_ACEOF
22087 #define HAVE_STD_EXT_HASH_SET 0
22092 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
22093 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
22094 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
22095 echo $ECHO_N "(cached) $ECHO_C" >&6
22099 ac_cpp='$CXXCPP $CPPFLAGS'
22100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22104 cat >conftest.$ac_ext <<_ACEOF
22107 cat confdefs.h >>conftest.$ac_ext
22108 cat >>conftest.$ac_ext <<_ACEOF
22109 /* end confdefs.h. */
22110 #include <ext/hash_set>
22111 #ifdef HAVE_NAMESPACES
22112 using namespace __gnu_cxx;
22122 rm -f conftest.$ac_objext
22123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22124 (eval $ac_compile) 2>conftest.er1
22126 grep -v '^ *+' conftest.er1 >conftest.err
22128 cat conftest.err >&5
22129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22130 (exit $ac_status); } &&
22131 { ac_try='test -z "$ac_cxx_werror_flag"
22132 || test ! -s conftest.err'
22133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22134 (eval $ac_try) 2>&5
22136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137 (exit $ac_status); }; } &&
22138 { ac_try='test -s conftest.$ac_objext'
22139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22140 (eval $ac_try) 2>&5
22142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22143 (exit $ac_status); }; }; then
22144 ac_cv_cxx_have_gnu_ext_hash_set=yes
22146 echo "$as_me: failed program was:" >&5
22147 sed 's/^/| /' conftest.$ac_ext >&5
22149 ac_cv_cxx_have_gnu_ext_hash_set=no
22151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22153 ac_cpp='$CPP $CPPFLAGS'
22154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22159 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
22160 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
22161 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
22164 cat >>confdefs.h <<\_ACEOF
22165 #define HAVE_GNU_EXT_HASH_SET 1
22170 cat >>confdefs.h <<\_ACEOF
22171 #define HAVE_GNU_EXT_HASH_SET 0
22176 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
22177 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
22178 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
22179 echo $ECHO_N "(cached) $ECHO_C" >&6
22183 ac_cpp='$CXXCPP $CPPFLAGS'
22184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22188 cat >conftest.$ac_ext <<_ACEOF
22191 cat confdefs.h >>conftest.$ac_ext
22192 cat >>conftest.$ac_ext <<_ACEOF
22193 /* end confdefs.h. */
22194 #include <hash_set>
22198 hash_set<int> t; return 0;
22203 rm -f conftest.$ac_objext
22204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22205 (eval $ac_compile) 2>conftest.er1
22207 grep -v '^ *+' conftest.er1 >conftest.err
22209 cat conftest.err >&5
22210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211 (exit $ac_status); } &&
22212 { ac_try='test -z "$ac_cxx_werror_flag"
22213 || test ! -s conftest.err'
22214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22215 (eval $ac_try) 2>&5
22217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22218 (exit $ac_status); }; } &&
22219 { ac_try='test -s conftest.$ac_objext'
22220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22221 (eval $ac_try) 2>&5
22223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224 (exit $ac_status); }; }; then
22225 ac_cv_cxx_have_global_hash_set=yes
22227 echo "$as_me: failed program was:" >&5
22228 sed 's/^/| /' conftest.$ac_ext >&5
22230 ac_cv_cxx_have_global_hash_set=no
22232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22234 ac_cpp='$CPP $CPPFLAGS'
22235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22240 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
22241 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
22242 if test "$ac_cv_cxx_have_global_hash_set" = yes
22245 cat >>confdefs.h <<\_ACEOF
22246 #define HAVE_GLOBAL_HASH_SET 1
22251 cat >>confdefs.h <<\_ACEOF
22252 #define HAVE_GLOBAL_HASH_SET 0
22257 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
22258 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
22259 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
22260 echo $ECHO_N "(cached) $ECHO_C" >&6
22264 ac_cpp='$CXXCPP $CPPFLAGS'
22265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22269 cat >conftest.$ac_ext <<_ACEOF
22272 cat confdefs.h >>conftest.$ac_ext
22273 cat >>conftest.$ac_ext <<_ACEOF
22274 /* end confdefs.h. */
22275 #include <iterator>
22276 #ifdef HAVE_NAMESPACES
22277 using namespace std;
22282 iterator<int,int,int> t; return 0;
22287 rm -f conftest.$ac_objext
22288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22289 (eval $ac_compile) 2>conftest.er1
22291 grep -v '^ *+' conftest.er1 >conftest.err
22293 cat conftest.err >&5
22294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295 (exit $ac_status); } &&
22296 { ac_try='test -z "$ac_cxx_werror_flag"
22297 || test ! -s conftest.err'
22298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22299 (eval $ac_try) 2>&5
22301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302 (exit $ac_status); }; } &&
22303 { ac_try='test -s conftest.$ac_objext'
22304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22305 (eval $ac_try) 2>&5
22307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308 (exit $ac_status); }; }; then
22309 ac_cv_cxx_have_std_iterator=yes
22311 echo "$as_me: failed program was:" >&5
22312 sed 's/^/| /' conftest.$ac_ext >&5
22314 ac_cv_cxx_have_std_iterator=no
22316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22318 ac_cpp='$CPP $CPPFLAGS'
22319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22325 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
22326 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
22327 if test "$ac_cv_cxx_have_std_iterator" = yes
22330 cat >>confdefs.h <<\_ACEOF
22331 #define HAVE_STD_ITERATOR 1
22336 cat >>confdefs.h <<\_ACEOF
22337 #define HAVE_STD_ITERATOR 0
22342 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
22343 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
22344 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
22345 echo $ECHO_N "(cached) $ECHO_C" >&6
22349 ac_cpp='$CXXCPP $CPPFLAGS'
22350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22354 cat >conftest.$ac_ext <<_ACEOF
22357 cat confdefs.h >>conftest.$ac_ext
22358 cat >>conftest.$ac_ext <<_ACEOF
22359 /* end confdefs.h. */
22360 #include <iterator>
22361 #ifdef HAVE_NAMESPACES
22362 using namespace std;
22367 bidirectional_iterator<int,int> t; return 0;
22372 rm -f conftest.$ac_objext
22373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22374 (eval $ac_compile) 2>conftest.er1
22376 grep -v '^ *+' conftest.er1 >conftest.err
22378 cat conftest.err >&5
22379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380 (exit $ac_status); } &&
22381 { ac_try='test -z "$ac_cxx_werror_flag"
22382 || test ! -s conftest.err'
22383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22384 (eval $ac_try) 2>&5
22386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387 (exit $ac_status); }; } &&
22388 { ac_try='test -s conftest.$ac_objext'
22389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22390 (eval $ac_try) 2>&5
22392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393 (exit $ac_status); }; }; then
22394 ac_cv_cxx_have_bi_iterator=yes
22396 echo "$as_me: failed program was:" >&5
22397 sed 's/^/| /' conftest.$ac_ext >&5
22399 ac_cv_cxx_have_bi_iterator=no
22401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22403 ac_cpp='$CPP $CPPFLAGS'
22404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22410 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
22411 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
22412 if test "$ac_cv_cxx_have_bi_iterator" = yes
22415 cat >>confdefs.h <<\_ACEOF
22416 #define HAVE_BI_ITERATOR 1
22421 cat >>confdefs.h <<\_ACEOF
22422 #define HAVE_BI_ITERATOR 0
22427 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
22428 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
22429 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
22430 echo $ECHO_N "(cached) $ECHO_C" >&6
22434 ac_cpp='$CXXCPP $CPPFLAGS'
22435 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22436 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22437 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22439 cat >conftest.$ac_ext <<_ACEOF
22442 cat confdefs.h >>conftest.$ac_ext
22443 cat >>conftest.$ac_ext <<_ACEOF
22444 /* end confdefs.h. */
22445 #include <iterator>
22446 #ifdef HAVE_NAMESPACES
22447 using namespace std;
22452 forward_iterator<int,int> t; return 0;
22457 rm -f conftest.$ac_objext
22458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22459 (eval $ac_compile) 2>conftest.er1
22461 grep -v '^ *+' conftest.er1 >conftest.err
22463 cat conftest.err >&5
22464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465 (exit $ac_status); } &&
22466 { ac_try='test -z "$ac_cxx_werror_flag"
22467 || test ! -s conftest.err'
22468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22469 (eval $ac_try) 2>&5
22471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472 (exit $ac_status); }; } &&
22473 { ac_try='test -s conftest.$ac_objext'
22474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22475 (eval $ac_try) 2>&5
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); }; }; then
22479 ac_cv_cxx_have_fwd_iterator=yes
22481 echo "$as_me: failed program was:" >&5
22482 sed 's/^/| /' conftest.$ac_ext >&5
22484 ac_cv_cxx_have_fwd_iterator=no
22486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22488 ac_cpp='$CPP $CPPFLAGS'
22489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22495 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
22496 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
22497 if test "$ac_cv_cxx_have_fwd_iterator" = yes
22500 cat >>confdefs.h <<\_ACEOF
22501 #define HAVE_FWD_ITERATOR 1
22506 cat >>confdefs.h <<\_ACEOF
22507 #define HAVE_FWD_ITERATOR 0
22514 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
22515 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
22516 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
22517 echo $ECHO_N "(cached) $ECHO_C" >&6
22520 ac_cpp='$CXXCPP $CPPFLAGS'
22521 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22522 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22523 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22525 cat >conftest.$ac_ext <<_ACEOF
22528 cat confdefs.h >>conftest.$ac_ext
22529 cat >>conftest.$ac_ext <<_ACEOF
22530 /* end confdefs.h. */
22532 int foo(float f) {return isnan(f);}
22534 rm -f conftest.$ac_objext
22535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22536 (eval $ac_compile) 2>conftest.er1
22538 grep -v '^ *+' conftest.er1 >conftest.err
22540 cat conftest.err >&5
22541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542 (exit $ac_status); } &&
22543 { ac_try='test -z "$ac_cxx_werror_flag"
22544 || test ! -s conftest.err'
22545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22546 (eval $ac_try) 2>&5
22548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549 (exit $ac_status); }; } &&
22550 { ac_try='test -s conftest.$ac_objext'
22551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22552 (eval $ac_try) 2>&5
22554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555 (exit $ac_status); }; }; then
22556 ac_cv_func_isnan_in_math_h=yes
22558 echo "$as_me: failed program was:" >&5
22559 sed 's/^/| /' conftest.$ac_ext >&5
22561 ac_cv_func_isnan_in_math_h=no
22563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22565 ac_cpp='$CPP $CPPFLAGS'
22566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22571 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
22572 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
22573 if test "$ac_cv_func_isnan_in_math_h" = "yes"
22576 cat >>confdefs.h <<\_ACEOF
22577 #define HAVE_ISNAN_IN_MATH_H 1
22581 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
22582 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
22583 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
22584 echo $ECHO_N "(cached) $ECHO_C" >&6
22587 ac_cpp='$CXXCPP $CPPFLAGS'
22588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22592 cat >conftest.$ac_ext <<_ACEOF
22595 cat confdefs.h >>conftest.$ac_ext
22596 cat >>conftest.$ac_ext <<_ACEOF
22597 /* end confdefs.h. */
22599 int foo(float f) {return isnan(f);}
22601 rm -f conftest.$ac_objext
22602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22603 (eval $ac_compile) 2>conftest.er1
22605 grep -v '^ *+' conftest.er1 >conftest.err
22607 cat conftest.err >&5
22608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22609 (exit $ac_status); } &&
22610 { ac_try='test -z "$ac_cxx_werror_flag"
22611 || test ! -s conftest.err'
22612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22613 (eval $ac_try) 2>&5
22615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616 (exit $ac_status); }; } &&
22617 { ac_try='test -s conftest.$ac_objext'
22618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22619 (eval $ac_try) 2>&5
22621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622 (exit $ac_status); }; }; then
22623 ac_cv_func_isnan_in_cmath=yes
22625 echo "$as_me: failed program was:" >&5
22626 sed 's/^/| /' conftest.$ac_ext >&5
22628 ac_cv_func_isnan_in_cmath=no
22630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22632 ac_cpp='$CPP $CPPFLAGS'
22633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22638 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
22639 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
22640 if test "$ac_cv_func_isnan_in_cmath" = "yes"
22643 cat >>confdefs.h <<\_ACEOF
22644 #define HAVE_ISNAN_IN_CMATH 1
22648 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
22649 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
22650 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
22651 echo $ECHO_N "(cached) $ECHO_C" >&6
22654 ac_cpp='$CXXCPP $CPPFLAGS'
22655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22659 cat >conftest.$ac_ext <<_ACEOF
22662 cat confdefs.h >>conftest.$ac_ext
22663 cat >>conftest.$ac_ext <<_ACEOF
22664 /* end confdefs.h. */
22666 using std::isnan; int foo(float f) {return isnan(f);}
22668 rm -f conftest.$ac_objext
22669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22670 (eval $ac_compile) 2>conftest.er1
22672 grep -v '^ *+' conftest.er1 >conftest.err
22674 cat conftest.err >&5
22675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676 (exit $ac_status); } &&
22677 { ac_try='test -z "$ac_cxx_werror_flag"
22678 || test ! -s conftest.err'
22679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22680 (eval $ac_try) 2>&5
22682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683 (exit $ac_status); }; } &&
22684 { ac_try='test -s conftest.$ac_objext'
22685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22686 (eval $ac_try) 2>&5
22688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22689 (exit $ac_status); }; }; then
22690 ac_cv_func_std_isnan_in_cmath=yes
22692 echo "$as_me: failed program was:" >&5
22693 sed 's/^/| /' conftest.$ac_ext >&5
22695 ac_cv_func_std_isnan_in_cmath=no
22697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22699 ac_cpp='$CPP $CPPFLAGS'
22700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22705 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
22706 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
22707 if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
22710 cat >>confdefs.h <<\_ACEOF
22711 #define HAVE_STD_ISNAN_IN_CMATH 1
22717 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
22718 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
22719 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
22720 echo $ECHO_N "(cached) $ECHO_C" >&6
22723 ac_cpp='$CXXCPP $CPPFLAGS'
22724 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22725 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22726 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22728 cat >conftest.$ac_ext <<_ACEOF
22731 cat confdefs.h >>conftest.$ac_ext
22732 cat >>conftest.$ac_ext <<_ACEOF
22733 /* end confdefs.h. */
22735 int foo(float f) {return isinf(f);}
22737 rm -f conftest.$ac_objext
22738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22739 (eval $ac_compile) 2>conftest.er1
22741 grep -v '^ *+' conftest.er1 >conftest.err
22743 cat conftest.err >&5
22744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745 (exit $ac_status); } &&
22746 { ac_try='test -z "$ac_cxx_werror_flag"
22747 || test ! -s conftest.err'
22748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22749 (eval $ac_try) 2>&5
22751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752 (exit $ac_status); }; } &&
22753 { ac_try='test -s conftest.$ac_objext'
22754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22755 (eval $ac_try) 2>&5
22757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758 (exit $ac_status); }; }; then
22759 ac_cv_func_isinf_in_math_h=yes
22761 echo "$as_me: failed program was:" >&5
22762 sed 's/^/| /' conftest.$ac_ext >&5
22764 ac_cv_func_isinf_in_math_h=no
22766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22768 ac_cpp='$CPP $CPPFLAGS'
22769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22774 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
22775 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
22776 if test "$ac_cv_func_isinf_in_math_h" = "yes"
22779 cat >>confdefs.h <<\_ACEOF
22780 #define HAVE_ISINF_IN_MATH_H 1
22784 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
22785 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
22786 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
22787 echo $ECHO_N "(cached) $ECHO_C" >&6
22790 ac_cpp='$CXXCPP $CPPFLAGS'
22791 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22792 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22793 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22795 cat >conftest.$ac_ext <<_ACEOF
22798 cat confdefs.h >>conftest.$ac_ext
22799 cat >>conftest.$ac_ext <<_ACEOF
22800 /* end confdefs.h. */
22802 int foo(float f) {return isinf(f);}
22804 rm -f conftest.$ac_objext
22805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22806 (eval $ac_compile) 2>conftest.er1
22808 grep -v '^ *+' conftest.er1 >conftest.err
22810 cat conftest.err >&5
22811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812 (exit $ac_status); } &&
22813 { ac_try='test -z "$ac_cxx_werror_flag"
22814 || test ! -s conftest.err'
22815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22816 (eval $ac_try) 2>&5
22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 (exit $ac_status); }; } &&
22820 { ac_try='test -s conftest.$ac_objext'
22821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22822 (eval $ac_try) 2>&5
22824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825 (exit $ac_status); }; }; then
22826 ac_cv_func_isinf_in_cmath=yes
22828 echo "$as_me: failed program was:" >&5
22829 sed 's/^/| /' conftest.$ac_ext >&5
22831 ac_cv_func_isinf_in_cmath=no
22833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22835 ac_cpp='$CPP $CPPFLAGS'
22836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22841 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
22842 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
22843 if test "$ac_cv_func_isinf_in_cmath" = "yes"
22846 cat >>confdefs.h <<\_ACEOF
22847 #define HAVE_ISINF_IN_CMATH 1
22851 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
22852 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
22853 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
22854 echo $ECHO_N "(cached) $ECHO_C" >&6
22857 ac_cpp='$CXXCPP $CPPFLAGS'
22858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22862 cat >conftest.$ac_ext <<_ACEOF
22865 cat confdefs.h >>conftest.$ac_ext
22866 cat >>conftest.$ac_ext <<_ACEOF
22867 /* end confdefs.h. */
22869 using std::isinf; int foo(float f) {return isinf(f);}
22871 rm -f conftest.$ac_objext
22872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22873 (eval $ac_compile) 2>conftest.er1
22875 grep -v '^ *+' conftest.er1 >conftest.err
22877 cat conftest.err >&5
22878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879 (exit $ac_status); } &&
22880 { ac_try='test -z "$ac_cxx_werror_flag"
22881 || test ! -s conftest.err'
22882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22883 (eval $ac_try) 2>&5
22885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886 (exit $ac_status); }; } &&
22887 { ac_try='test -s conftest.$ac_objext'
22888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22889 (eval $ac_try) 2>&5
22891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892 (exit $ac_status); }; }; then
22893 ac_cv_func_std_isinf_in_cmath=yes
22895 echo "$as_me: failed program was:" >&5
22896 sed 's/^/| /' conftest.$ac_ext >&5
22898 ac_cv_func_std_isinf_in_cmath=no
22900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22902 ac_cpp='$CPP $CPPFLAGS'
22903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22908 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22909 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22910 if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
22913 cat >>confdefs.h <<\_ACEOF
22914 #define HAVE_STD_ISINF_IN_CMATH 1
22918 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22919 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22920 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22921 echo $ECHO_N "(cached) $ECHO_C" >&6
22924 ac_cpp='$CXXCPP $CPPFLAGS'
22925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22929 cat >conftest.$ac_ext <<_ACEOF
22932 cat confdefs.h >>conftest.$ac_ext
22933 cat >>conftest.$ac_ext <<_ACEOF
22934 /* end confdefs.h. */
22935 #include <ieeefp.h>
22936 int foo(float f) {return finite(f);}
22938 rm -f conftest.$ac_objext
22939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22940 (eval $ac_compile) 2>conftest.er1
22942 grep -v '^ *+' conftest.er1 >conftest.err
22944 cat conftest.err >&5
22945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946 (exit $ac_status); } &&
22947 { ac_try='test -z "$ac_cxx_werror_flag"
22948 || test ! -s conftest.err'
22949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22950 (eval $ac_try) 2>&5
22952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953 (exit $ac_status); }; } &&
22954 { ac_try='test -s conftest.$ac_objext'
22955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22956 (eval $ac_try) 2>&5
22958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959 (exit $ac_status); }; }; then
22960 ac_cv_func_finite_in_ieeefp_h=yes
22962 echo "$as_me: failed program was:" >&5
22963 sed 's/^/| /' conftest.$ac_ext >&5
22965 ac_cv_func_finite_in_ieeefp_h=no
22967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22969 ac_cpp='$CPP $CPPFLAGS'
22970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22975 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22976 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22977 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
22980 cat >>confdefs.h <<\_ACEOF
22981 #define HAVE_FINITE_IN_IEEEFP_H 1
22987 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22988 # for constant arguments. Useless!
22989 echo "$as_me:$LINENO: checking for working alloca.h" >&5
22990 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22991 if test "${ac_cv_working_alloca_h+set}" = set; then
22992 echo $ECHO_N "(cached) $ECHO_C" >&6
22994 cat >conftest.$ac_ext <<_ACEOF
22997 cat confdefs.h >>conftest.$ac_ext
22998 cat >>conftest.$ac_ext <<_ACEOF
22999 /* end confdefs.h. */
23000 #include <alloca.h>
23004 char *p = (char *) alloca (2 * sizeof (int));
23009 rm -f conftest.$ac_objext conftest$ac_exeext
23010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23011 (eval $ac_link) 2>conftest.er1
23013 grep -v '^ *+' conftest.er1 >conftest.err
23015 cat conftest.err >&5
23016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017 (exit $ac_status); } &&
23018 { ac_try='test -z "$ac_c_werror_flag"
23019 || test ! -s conftest.err'
23020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23021 (eval $ac_try) 2>&5
23023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024 (exit $ac_status); }; } &&
23025 { ac_try='test -s conftest$ac_exeext'
23026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23027 (eval $ac_try) 2>&5
23029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030 (exit $ac_status); }; }; then
23031 ac_cv_working_alloca_h=yes
23033 echo "$as_me: failed program was:" >&5
23034 sed 's/^/| /' conftest.$ac_ext >&5
23036 ac_cv_working_alloca_h=no
23038 rm -f conftest.err conftest.$ac_objext \
23039 conftest$ac_exeext conftest.$ac_ext
23041 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23042 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
23043 if test $ac_cv_working_alloca_h = yes; then
23045 cat >>confdefs.h <<\_ACEOF
23046 #define HAVE_ALLOCA_H 1
23051 echo "$as_me:$LINENO: checking for alloca" >&5
23052 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
23053 if test "${ac_cv_func_alloca_works+set}" = set; then
23054 echo $ECHO_N "(cached) $ECHO_C" >&6
23056 cat >conftest.$ac_ext <<_ACEOF
23059 cat confdefs.h >>conftest.$ac_ext
23060 cat >>conftest.$ac_ext <<_ACEOF
23061 /* end confdefs.h. */
23063 # define alloca __builtin_alloca
23066 # include <malloc.h>
23067 # define alloca _alloca
23070 # include <alloca.h>
23075 # ifndef alloca /* predefined by HP cc +Olibcalls */
23086 char *p = (char *) alloca (1);
23091 rm -f conftest.$ac_objext conftest$ac_exeext
23092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23093 (eval $ac_link) 2>conftest.er1
23095 grep -v '^ *+' conftest.er1 >conftest.err
23097 cat conftest.err >&5
23098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23099 (exit $ac_status); } &&
23100 { ac_try='test -z "$ac_c_werror_flag"
23101 || test ! -s conftest.err'
23102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23103 (eval $ac_try) 2>&5
23105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106 (exit $ac_status); }; } &&
23107 { ac_try='test -s conftest$ac_exeext'
23108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23109 (eval $ac_try) 2>&5
23111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23112 (exit $ac_status); }; }; then
23113 ac_cv_func_alloca_works=yes
23115 echo "$as_me: failed program was:" >&5
23116 sed 's/^/| /' conftest.$ac_ext >&5
23118 ac_cv_func_alloca_works=no
23120 rm -f conftest.err conftest.$ac_objext \
23121 conftest$ac_exeext conftest.$ac_ext
23123 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
23124 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
23126 if test $ac_cv_func_alloca_works = yes; then
23128 cat >>confdefs.h <<\_ACEOF
23129 #define HAVE_ALLOCA 1
23133 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23134 # that cause trouble. Some versions do not even contain alloca or
23135 # contain a buggy version. If you still want to use their alloca,
23136 # use ar to extract alloca.o from them instead of compiling alloca.c.
23138 ALLOCA=alloca.$ac_objext
23140 cat >>confdefs.h <<\_ACEOF
23145 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
23146 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
23147 if test "${ac_cv_os_cray+set}" = set; then
23148 echo $ECHO_N "(cached) $ECHO_C" >&6
23150 cat >conftest.$ac_ext <<_ACEOF
23153 cat confdefs.h >>conftest.$ac_ext
23154 cat >>conftest.$ac_ext <<_ACEOF
23155 /* end confdefs.h. */
23156 #if defined(CRAY) && ! defined(CRAY2)
23163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23164 $EGREP "webecray" >/dev/null 2>&1; then
23172 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
23173 echo "${ECHO_T}$ac_cv_os_cray" >&6
23174 if test $ac_cv_os_cray = yes; then
23175 for ac_func in _getb67 GETB67 getb67; do
23176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23177 echo "$as_me:$LINENO: checking for $ac_func" >&5
23178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23179 if eval "test \"\${$as_ac_var+set}\" = set"; then
23180 echo $ECHO_N "(cached) $ECHO_C" >&6
23182 cat >conftest.$ac_ext <<_ACEOF
23185 cat confdefs.h >>conftest.$ac_ext
23186 cat >>conftest.$ac_ext <<_ACEOF
23187 /* end confdefs.h. */
23188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23190 #define $ac_func innocuous_$ac_func
23192 /* System header to define __stub macros and hopefully few prototypes,
23193 which can conflict with char $ac_func (); below.
23194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23195 <limits.h> exists even on freestanding compilers. */
23198 # include <limits.h>
23200 # include <assert.h>
23205 /* Override any gcc2 internal prototype to avoid an error. */
23210 /* We use char because int might match the return type of a gcc2
23211 builtin and then its argument prototype would still apply. */
23213 /* The GNU C library defines this for functions which it implements
23214 to always fail with ENOSYS. Some functions are actually named
23215 something starting with __ and the normal name is an alias. */
23216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23219 char (*f) () = $ac_func;
23228 return f != $ac_func;
23233 rm -f conftest.$ac_objext conftest$ac_exeext
23234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23235 (eval $ac_link) 2>conftest.er1
23237 grep -v '^ *+' conftest.er1 >conftest.err
23239 cat conftest.err >&5
23240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); } &&
23242 { ac_try='test -z "$ac_c_werror_flag"
23243 || test ! -s conftest.err'
23244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23245 (eval $ac_try) 2>&5
23247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23248 (exit $ac_status); }; } &&
23249 { ac_try='test -s conftest$ac_exeext'
23250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23251 (eval $ac_try) 2>&5
23253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254 (exit $ac_status); }; }; then
23255 eval "$as_ac_var=yes"
23257 echo "$as_me: failed program was:" >&5
23258 sed 's/^/| /' conftest.$ac_ext >&5
23260 eval "$as_ac_var=no"
23262 rm -f conftest.err conftest.$ac_objext \
23263 conftest$ac_exeext conftest.$ac_ext
23265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23266 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23267 if test `eval echo '${'$as_ac_var'}'` = yes; then
23269 cat >>confdefs.h <<_ACEOF
23270 #define CRAY_STACKSEG_END $ac_func
23279 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
23280 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
23281 if test "${ac_cv_c_stack_direction+set}" = set; then
23282 echo $ECHO_N "(cached) $ECHO_C" >&6
23284 if test "$cross_compiling" = yes; then
23285 ac_cv_c_stack_direction=0
23287 cat >conftest.$ac_ext <<_ACEOF
23290 cat confdefs.h >>conftest.$ac_ext
23291 cat >>conftest.$ac_ext <<_ACEOF
23292 /* end confdefs.h. */
23294 find_stack_direction ()
23296 static char *addr = 0;
23301 return find_stack_direction ();
23304 return (&dummy > addr) ? 1 : -1;
23310 exit (find_stack_direction () < 0);
23313 rm -f conftest$ac_exeext
23314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23315 (eval $ac_link) 2>&5
23317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
23324 ac_cv_c_stack_direction=1
23326 echo "$as_me: program exited with status $ac_status" >&5
23327 echo "$as_me: failed program was:" >&5
23328 sed 's/^/| /' conftest.$ac_ext >&5
23330 ( exit $ac_status )
23331 ac_cv_c_stack_direction=-1
23333 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23336 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23337 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
23339 cat >>confdefs.h <<_ACEOF
23340 #define STACK_DIRECTION $ac_cv_c_stack_direction
23348 for ac_header in stdlib.h unistd.h
23350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23352 echo "$as_me:$LINENO: checking for $ac_header" >&5
23353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23355 echo $ECHO_N "(cached) $ECHO_C" >&6
23357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23360 # Is the header compilable?
23361 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23363 cat >conftest.$ac_ext <<_ACEOF
23366 cat confdefs.h >>conftest.$ac_ext
23367 cat >>conftest.$ac_ext <<_ACEOF
23368 /* end confdefs.h. */
23369 $ac_includes_default
23370 #include <$ac_header>
23372 rm -f conftest.$ac_objext
23373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23374 (eval $ac_compile) 2>conftest.er1
23376 grep -v '^ *+' conftest.er1 >conftest.err
23378 cat conftest.err >&5
23379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23380 (exit $ac_status); } &&
23381 { ac_try='test -z "$ac_c_werror_flag"
23382 || test ! -s conftest.err'
23383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23384 (eval $ac_try) 2>&5
23386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387 (exit $ac_status); }; } &&
23388 { ac_try='test -s conftest.$ac_objext'
23389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23390 (eval $ac_try) 2>&5
23392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393 (exit $ac_status); }; }; then
23394 ac_header_compiler=yes
23396 echo "$as_me: failed program was:" >&5
23397 sed 's/^/| /' conftest.$ac_ext >&5
23399 ac_header_compiler=no
23401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23403 echo "${ECHO_T}$ac_header_compiler" >&6
23405 # Is the header present?
23406 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23408 cat >conftest.$ac_ext <<_ACEOF
23411 cat confdefs.h >>conftest.$ac_ext
23412 cat >>conftest.$ac_ext <<_ACEOF
23413 /* end confdefs.h. */
23414 #include <$ac_header>
23416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23419 grep -v '^ *+' conftest.er1 >conftest.err
23421 cat conftest.err >&5
23422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423 (exit $ac_status); } >/dev/null; then
23424 if test -s conftest.err; then
23425 ac_cpp_err=$ac_c_preproc_warn_flag
23426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23433 if test -z "$ac_cpp_err"; then
23434 ac_header_preproc=yes
23436 echo "$as_me: failed program was:" >&5
23437 sed 's/^/| /' conftest.$ac_ext >&5
23439 ac_header_preproc=no
23441 rm -f conftest.err conftest.$ac_ext
23442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23443 echo "${ECHO_T}$ac_header_preproc" >&6
23445 # So? What about this header?
23446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23452 ac_header_preproc=yes
23455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23462 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23469 ## ----------------------------------- ##
23470 ## Report this to llvmbugs@cs.uiuc.edu ##
23471 ## ----------------------------------- ##
23474 sed "s/^/$as_me: WARNING: /" >&2
23477 echo "$as_me:$LINENO: checking for $ac_header" >&5
23478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23480 echo $ECHO_N "(cached) $ECHO_C" >&6
23482 eval "$as_ac_Header=\$ac_header_preproc"
23484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23489 cat >>confdefs.h <<_ACEOF
23490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23498 for ac_func in getpagesize
23500 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23501 echo "$as_me:$LINENO: checking for $ac_func" >&5
23502 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23503 if eval "test \"\${$as_ac_var+set}\" = set"; then
23504 echo $ECHO_N "(cached) $ECHO_C" >&6
23506 cat >conftest.$ac_ext <<_ACEOF
23509 cat confdefs.h >>conftest.$ac_ext
23510 cat >>conftest.$ac_ext <<_ACEOF
23511 /* end confdefs.h. */
23512 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23514 #define $ac_func innocuous_$ac_func
23516 /* System header to define __stub macros and hopefully few prototypes,
23517 which can conflict with char $ac_func (); below.
23518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23519 <limits.h> exists even on freestanding compilers. */
23522 # include <limits.h>
23524 # include <assert.h>
23529 /* Override any gcc2 internal prototype to avoid an error. */
23534 /* We use char because int might match the return type of a gcc2
23535 builtin and then its argument prototype would still apply. */
23537 /* The GNU C library defines this for functions which it implements
23538 to always fail with ENOSYS. Some functions are actually named
23539 something starting with __ and the normal name is an alias. */
23540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23543 char (*f) () = $ac_func;
23552 return f != $ac_func;
23557 rm -f conftest.$ac_objext conftest$ac_exeext
23558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23559 (eval $ac_link) 2>conftest.er1
23561 grep -v '^ *+' conftest.er1 >conftest.err
23563 cat conftest.err >&5
23564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565 (exit $ac_status); } &&
23566 { ac_try='test -z "$ac_c_werror_flag"
23567 || test ! -s conftest.err'
23568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23569 (eval $ac_try) 2>&5
23571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572 (exit $ac_status); }; } &&
23573 { ac_try='test -s conftest$ac_exeext'
23574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23575 (eval $ac_try) 2>&5
23577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578 (exit $ac_status); }; }; then
23579 eval "$as_ac_var=yes"
23581 echo "$as_me: failed program was:" >&5
23582 sed 's/^/| /' conftest.$ac_ext >&5
23584 eval "$as_ac_var=no"
23586 rm -f conftest.err conftest.$ac_objext \
23587 conftest$ac_exeext conftest.$ac_ext
23589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23590 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23591 if test `eval echo '${'$as_ac_var'}'` = yes; then
23592 cat >>confdefs.h <<_ACEOF
23593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23599 echo "$as_me:$LINENO: checking for working mmap" >&5
23600 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
23601 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
23602 echo $ECHO_N "(cached) $ECHO_C" >&6
23604 if test "$cross_compiling" = yes; then
23605 ac_cv_func_mmap_fixed_mapped=no
23607 cat >conftest.$ac_ext <<_ACEOF
23610 cat confdefs.h >>conftest.$ac_ext
23611 cat >>conftest.$ac_ext <<_ACEOF
23612 /* end confdefs.h. */
23613 $ac_includes_default
23614 /* malloc might have been renamed as rpl_malloc. */
23617 /* Thanks to Mike Haertel and Jim Avera for this test.
23618 Here is a matrix of mmap possibilities:
23619 mmap private not fixed
23620 mmap private fixed at somewhere currently unmapped
23621 mmap private fixed at somewhere already mapped
23622 mmap shared not fixed
23623 mmap shared fixed at somewhere currently unmapped
23624 mmap shared fixed at somewhere already mapped
23625 For private mappings, we should verify that changes cannot be read()
23626 back from the file, nor mmap's back from the file at a different
23627 address. (There have been systems where private was not correctly
23628 implemented like the infamous i386 svr4.0, and systems where the
23629 VM page cache was not coherent with the file system buffer cache
23630 like early versions of FreeBSD and possibly contemporary NetBSD.)
23631 For shared mappings, we should conversely verify that changes get
23632 propagated back to all the places they're supposed to be.
23634 Grep wants private fixed already mapped.
23635 The main things grep needs to know about mmap are:
23636 * does it exist and is it safe to write into the mmap'd area
23637 * how to use it (BSD variants) */
23640 #include <sys/mman.h>
23642 #if !STDC_HEADERS && !HAVE_STDLIB_H
23646 /* This mess was copied from the GNU getpagesize.h. */
23647 #if !HAVE_GETPAGESIZE
23648 /* Assume that all systems that can run configure have sys/param.h. */
23649 # if !HAVE_SYS_PARAM_H
23650 # define HAVE_SYS_PARAM_H 1
23653 # ifdef _SC_PAGESIZE
23654 # define getpagesize() sysconf(_SC_PAGESIZE)
23655 # else /* no _SC_PAGESIZE */
23656 # if HAVE_SYS_PARAM_H
23657 # include <sys/param.h>
23658 # ifdef EXEC_PAGESIZE
23659 # define getpagesize() EXEC_PAGESIZE
23660 # else /* no EXEC_PAGESIZE */
23662 # define getpagesize() NBPG * CLSIZE
23665 # endif /* no CLSIZE */
23666 # else /* no NBPG */
23668 # define getpagesize() NBPC
23669 # else /* no NBPC */
23671 # define getpagesize() PAGESIZE
23672 # endif /* PAGESIZE */
23673 # endif /* no NBPC */
23674 # endif /* no NBPG */
23675 # endif /* no EXEC_PAGESIZE */
23676 # else /* no HAVE_SYS_PARAM_H */
23677 # define getpagesize() 8192 /* punt totally */
23678 # endif /* no HAVE_SYS_PARAM_H */
23679 # endif /* no _SC_PAGESIZE */
23681 #endif /* no HAVE_GETPAGESIZE */
23686 char *data, *data2, *data3;
23690 pagesize = getpagesize ();
23692 /* First, make a file with some known garbage in it. */
23693 data = (char *) malloc (pagesize);
23696 for (i = 0; i < pagesize; ++i)
23697 *(data + i) = rand ();
23699 fd = creat ("conftest.mmap", 0600);
23702 if (write (fd, data, pagesize) != pagesize)
23706 /* Next, try to mmap the file at a fixed address which already has
23707 something else allocated at it. If we can, also make sure that
23708 we see the same garbage. */
23709 fd = open ("conftest.mmap", O_RDWR);
23712 data2 = (char *) malloc (2 * pagesize);
23715 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
23716 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23717 MAP_PRIVATE | MAP_FIXED, fd, 0L))
23719 for (i = 0; i < pagesize; ++i)
23720 if (*(data + i) != *(data2 + i))
23723 /* Finally, make sure that changes to the mapped area do not
23724 percolate back to the file as seen by read(). (This is a bug on
23725 some variants of i386 svr4.0.) */
23726 for (i = 0; i < pagesize; ++i)
23727 *(data2 + i) = *(data2 + i) + 1;
23728 data3 = (char *) malloc (pagesize);
23731 if (read (fd, data3, pagesize) != pagesize)
23733 for (i = 0; i < pagesize; ++i)
23734 if (*(data + i) != *(data3 + i))
23740 rm -f conftest$ac_exeext
23741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23742 (eval $ac_link) 2>&5
23744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23747 (eval $ac_try) 2>&5
23749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23750 (exit $ac_status); }; }; then
23751 ac_cv_func_mmap_fixed_mapped=yes
23753 echo "$as_me: program exited with status $ac_status" >&5
23754 echo "$as_me: failed program was:" >&5
23755 sed 's/^/| /' conftest.$ac_ext >&5
23757 ( exit $ac_status )
23758 ac_cv_func_mmap_fixed_mapped=no
23760 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23763 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
23764 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
23765 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23767 cat >>confdefs.h <<\_ACEOF
23768 #define HAVE_MMAP 1
23772 rm -f conftest.mmap
23774 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
23776 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
23777 echo "$as_me: WARNING: mmap() required but not found" >&2;}
23779 echo "$as_me:$LINENO: checking for mmap of files" >&5
23780 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
23781 if test "${ac_cv_func_mmap_file+set}" = set; then
23782 echo $ECHO_N "(cached) $ECHO_C" >&6
23785 ac_cpp='$CPP $CPPFLAGS'
23786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23790 if test "$cross_compiling" = yes; then
23791 ac_cv_func_mmap_file=no
23793 cat >conftest.$ac_ext <<_ACEOF
23797 cat confdefs.h >>conftest.$ac_ext
23798 cat >>conftest.$ac_ext <<_ACEOF
23799 /* end confdefs.h. */
23801 #include <sys/types.h>
23802 #include <sys/mman.h>
23810 fd = creat ("foo",0777);
23811 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
23813 return (fd != (int) MAP_FAILED);
23818 rm -f conftest$ac_exeext
23819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23820 (eval $ac_link) 2>&5
23822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23825 (eval $ac_try) 2>&5
23827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23828 (exit $ac_status); }; }; then
23829 ac_cv_func_mmap_file=yes
23831 echo "$as_me: program exited with status $ac_status" >&5
23832 echo "$as_me: failed program was:" >&5
23833 sed 's/^/| /' conftest.$ac_ext >&5
23835 ( exit $ac_status )
23836 ac_cv_func_mmap_file=no
23838 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23841 ac_cpp='$CPP $CPPFLAGS'
23842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23848 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
23849 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
23850 if test "$ac_cv_func_mmap_file" = yes; then
23852 cat >>confdefs.h <<\_ACEOF
23853 #define HAVE_MMAP_FILE
23860 if test "$ac_cv_func_mmap_file" = "no"
23862 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23863 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
23865 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23866 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23867 if test "${ac_cv_header_mmap_anon+set}" = set; then
23868 echo $ECHO_N "(cached) $ECHO_C" >&6
23871 ac_cpp='$CPP $CPPFLAGS'
23872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23876 cat >conftest.$ac_ext <<_ACEOF
23879 cat confdefs.h >>conftest.$ac_ext
23880 cat >>conftest.$ac_ext <<_ACEOF
23881 /* end confdefs.h. */
23882 #include <sys/mman.h>
23883 #include <unistd.h>
23888 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23893 rm -f conftest.$ac_objext
23894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23895 (eval $ac_compile) 2>conftest.er1
23897 grep -v '^ *+' conftest.er1 >conftest.err
23899 cat conftest.err >&5
23900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23901 (exit $ac_status); } &&
23902 { ac_try='test -z "$ac_c_werror_flag"
23903 || test ! -s conftest.err'
23904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23905 (eval $ac_try) 2>&5
23907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23908 (exit $ac_status); }; } &&
23909 { ac_try='test -s conftest.$ac_objext'
23910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23911 (eval $ac_try) 2>&5
23913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914 (exit $ac_status); }; }; then
23915 ac_cv_header_mmap_anon=yes
23917 echo "$as_me: failed program was:" >&5
23918 sed 's/^/| /' conftest.$ac_ext >&5
23920 ac_cv_header_mmap_anon=no
23922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23924 ac_cpp='$CPP $CPPFLAGS'
23925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23931 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23932 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23933 if test "$ac_cv_header_mmap_anon" = yes; then
23935 cat >>confdefs.h <<\_ACEOF
23936 #define HAVE_MMAP_ANONYMOUS
23941 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23942 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23943 if test "${ac_cv_type_signal+set}" = set; then
23944 echo $ECHO_N "(cached) $ECHO_C" >&6
23946 cat >conftest.$ac_ext <<_ACEOF
23949 cat confdefs.h >>conftest.$ac_ext
23950 cat >>conftest.$ac_ext <<_ACEOF
23951 /* end confdefs.h. */
23952 #include <sys/types.h>
23953 #include <signal.h>
23958 extern "C" void (*signal (int, void (*)(int)))(int);
23960 void (*signal ()) ();
23971 rm -f conftest.$ac_objext
23972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23973 (eval $ac_compile) 2>conftest.er1
23975 grep -v '^ *+' conftest.er1 >conftest.err
23977 cat conftest.err >&5
23978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23979 (exit $ac_status); } &&
23980 { ac_try='test -z "$ac_c_werror_flag"
23981 || test ! -s conftest.err'
23982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23983 (eval $ac_try) 2>&5
23985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23986 (exit $ac_status); }; } &&
23987 { ac_try='test -s conftest.$ac_objext'
23988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23989 (eval $ac_try) 2>&5
23991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23992 (exit $ac_status); }; }; then
23993 ac_cv_type_signal=void
23995 echo "$as_me: failed program was:" >&5
23996 sed 's/^/| /' conftest.$ac_ext >&5
23998 ac_cv_type_signal=int
24000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24002 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24003 echo "${ECHO_T}$ac_cv_type_signal" >&6
24005 cat >>confdefs.h <<_ACEOF
24006 #define RETSIGTYPE $ac_cv_type_signal
24019 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
24021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24022 echo "$as_me:$LINENO: checking for $ac_func" >&5
24023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24024 if eval "test \"\${$as_ac_var+set}\" = set"; then
24025 echo $ECHO_N "(cached) $ECHO_C" >&6
24027 cat >conftest.$ac_ext <<_ACEOF
24030 cat confdefs.h >>conftest.$ac_ext
24031 cat >>conftest.$ac_ext <<_ACEOF
24032 /* end confdefs.h. */
24033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24035 #define $ac_func innocuous_$ac_func
24037 /* System header to define __stub macros and hopefully few prototypes,
24038 which can conflict with char $ac_func (); below.
24039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24040 <limits.h> exists even on freestanding compilers. */
24043 # include <limits.h>
24045 # include <assert.h>
24050 /* Override any gcc2 internal prototype to avoid an error. */
24055 /* We use char because int might match the return type of a gcc2
24056 builtin and then its argument prototype would still apply. */
24058 /* The GNU C library defines this for functions which it implements
24059 to always fail with ENOSYS. Some functions are actually named
24060 something starting with __ and the normal name is an alias. */
24061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24064 char (*f) () = $ac_func;
24073 return f != $ac_func;
24078 rm -f conftest.$ac_objext conftest$ac_exeext
24079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24080 (eval $ac_link) 2>conftest.er1
24082 grep -v '^ *+' conftest.er1 >conftest.err
24084 cat conftest.err >&5
24085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24086 (exit $ac_status); } &&
24087 { ac_try='test -z "$ac_c_werror_flag"
24088 || test ! -s conftest.err'
24089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24090 (eval $ac_try) 2>&5
24092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24093 (exit $ac_status); }; } &&
24094 { ac_try='test -s conftest$ac_exeext'
24095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24096 (eval $ac_try) 2>&5
24098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24099 (exit $ac_status); }; }; then
24100 eval "$as_ac_var=yes"
24102 echo "$as_me: failed program was:" >&5
24103 sed 's/^/| /' conftest.$ac_ext >&5
24105 eval "$as_ac_var=no"
24107 rm -f conftest.err conftest.$ac_objext \
24108 conftest$ac_exeext conftest.$ac_ext
24110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24111 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24112 if test `eval echo '${'$as_ac_var'}'` = yes; then
24113 cat >>confdefs.h <<_ACEOF
24114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24120 echo "$as_me:$LINENO: checking for mprotect" >&5
24121 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
24122 if test "${ac_cv_func_mprotect+set}" = set; then
24123 echo $ECHO_N "(cached) $ECHO_C" >&6
24125 cat >conftest.$ac_ext <<_ACEOF
24128 cat confdefs.h >>conftest.$ac_ext
24129 cat >>conftest.$ac_ext <<_ACEOF
24130 /* end confdefs.h. */
24131 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
24132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24133 #define mprotect innocuous_mprotect
24135 /* System header to define __stub macros and hopefully few prototypes,
24136 which can conflict with char mprotect (); below.
24137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24138 <limits.h> exists even on freestanding compilers. */
24141 # include <limits.h>
24143 # include <assert.h>
24148 /* Override any gcc2 internal prototype to avoid an error. */
24153 /* We use char because int might match the return type of a gcc2
24154 builtin and then its argument prototype would still apply. */
24156 /* The GNU C library defines this for functions which it implements
24157 to always fail with ENOSYS. Some functions are actually named
24158 something starting with __ and the normal name is an alias. */
24159 #if defined (__stub_mprotect) || defined (__stub___mprotect)
24162 char (*f) () = mprotect;
24171 return f != mprotect;
24176 rm -f conftest.$ac_objext conftest$ac_exeext
24177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24178 (eval $ac_link) 2>conftest.er1
24180 grep -v '^ *+' conftest.er1 >conftest.err
24182 cat conftest.err >&5
24183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24184 (exit $ac_status); } &&
24185 { ac_try='test -z "$ac_c_werror_flag"
24186 || test ! -s conftest.err'
24187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24188 (eval $ac_try) 2>&5
24190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24191 (exit $ac_status); }; } &&
24192 { ac_try='test -s conftest$ac_exeext'
24193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24194 (eval $ac_try) 2>&5
24196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24197 (exit $ac_status); }; }; then
24198 ac_cv_func_mprotect=yes
24200 echo "$as_me: failed program was:" >&5
24201 sed 's/^/| /' conftest.$ac_ext >&5
24203 ac_cv_func_mprotect=no
24205 rm -f conftest.err conftest.$ac_objext \
24206 conftest$ac_exeext conftest.$ac_ext
24208 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
24209 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
24210 if test $ac_cv_func_mprotect = yes; then
24213 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
24214 echo "$as_me: error: Function mprotect() required but not found" >&2;}
24215 { (exit 1); exit 1; }; }
24220 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
24221 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
24223 ac_cpp='$CPP $CPPFLAGS'
24224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24228 oldcflags="$CFLAGS"
24229 CFLAGS="$CFLAGS -Wl,-R."
24230 cat >conftest.$ac_ext <<_ACEOF
24233 cat confdefs.h >>conftest.$ac_ext
24234 cat >>conftest.$ac_ext <<_ACEOF
24235 /* end confdefs.h. */
24240 int main() { return 0; }
24245 rm -f conftest.$ac_objext conftest$ac_exeext
24246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24247 (eval $ac_link) 2>conftest.er1
24249 grep -v '^ *+' conftest.er1 >conftest.err
24251 cat conftest.err >&5
24252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24253 (exit $ac_status); } &&
24254 { ac_try='test -z "$ac_c_werror_flag"
24255 || test ! -s conftest.err'
24256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24257 (eval $ac_try) 2>&5
24259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260 (exit $ac_status); }; } &&
24261 { ac_try='test -s conftest$ac_exeext'
24262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24263 (eval $ac_try) 2>&5
24265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266 (exit $ac_status); }; }; then
24267 ac_cv_link_use_r=yes
24269 echo "$as_me: failed program was:" >&5
24270 sed 's/^/| /' conftest.$ac_ext >&5
24272 ac_cv_link_use_r=no
24274 rm -f conftest.err conftest.$ac_objext \
24275 conftest$ac_exeext conftest.$ac_ext
24276 CFLAGS="$oldcflags"
24278 ac_cpp='$CPP $CPPFLAGS'
24279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24283 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
24284 echo "${ECHO_T}$ac_cv_link_use_r" >&6
24285 if test "$ac_cv_link_use_r" = yes
24288 cat >>confdefs.h <<\_ACEOF
24289 #define HAVE_LINK_R 1
24295 # Check whether --enable-optimized or --disable-optimized was given.
24296 if test "${enable_optimized+set}" = set; then
24297 enableval="$enable_optimized"
24302 if test ${enableval} = "no"
24307 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
24311 # Check whether --enable-jit or --disable-jit was given.
24312 if test "${enable_jit+set}" = set; then
24313 enableval="$enable_jit"
24318 if test ${enableval} = "no"
24325 JIT=TARGET_HAS_JIT=1
24329 JIT=TARGET_HAS_JIT=1
24340 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
24341 if test "${with_llvmgccdir+set}" = set; then
24342 withval="$with_llvmgccdir"
24343 LLVMGCCDIR=$withval
24346 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
24347 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
24349 if test -d "$LLVMGCCDIR"
24351 if test -x "$LLVMGCCDIR/bin/gcc"
24353 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
24357 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
24358 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
24359 if test "$LLVM_GCC_CHECK" = "no"
24363 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
24364 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
24366 if test -x "$LLVM_GCC_CHECK"
24368 cp /dev/null conftest.c
24369 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
24375 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
24376 LLVMCC1=$llvmcc1path
24378 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
24379 LLVMCC1PLUS=$llvmcc1pluspath
24382 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
24383 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
24384 if test "$LLVM_GCC_SANE" = "no"
24389 echo "$as_me:$LINENO: checking for shared library suffix" >&5
24390 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
24391 eval "SHLIBEXT=$shrext_cmds"
24392 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
24393 echo "${ECHO_T}$SHLIBEXT" >&6
24397 cat >>confdefs.h <<_ACEOF
24398 #define SHLIBEXT "$SHLIBEXT"
24402 # Translate the various configuration directories and other basic
24403 # information into substitutions that will end up in config.h.in so
24404 # that these configured values can be hard-wired into a program.
24405 eval LLVM_PREFIX="${prefix}";
24406 eval LLVM_BINDIR="${prefix}/bin";
24407 eval LLVM_LIBDIR="${prefix}/lib";
24408 eval LLVM_DATADIR="${prefix}/data";
24409 eval LLVM_DOCSDIR="${prefix}/docs";
24410 eval LLVM_ETCDIR="${prefix}/etc";
24411 eval LLVM_INCLUDEDIR="${prefix}/include";
24412 eval LLVM_INFODIR="${prefix}/info";
24413 eval LLVM_MANDIR="${prefix}/man";
24414 LLVM_CONFIGTIME=`date`
24426 cat >>confdefs.h <<_ACEOF
24427 #define LLVM_PREFIX "$LLVM_PREFIX"
24431 cat >>confdefs.h <<_ACEOF
24432 #define LLVM_BINDIR "$LLVM_BINDIR"
24436 cat >>confdefs.h <<_ACEOF
24437 #define LLVM_LIBDIR "$LLVM_LIBDIR"
24441 cat >>confdefs.h <<_ACEOF
24442 #define LLVM_DATADIR "$LLVM_DATADIR"
24446 cat >>confdefs.h <<_ACEOF
24447 #define LLVM_DATADIR "$LLVM_DOCSDIR"
24451 cat >>confdefs.h <<_ACEOF
24452 #define LLVM_ETCDIR "$LLVM_ETCDIR"
24456 cat >>confdefs.h <<_ACEOF
24457 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
24461 cat >>confdefs.h <<_ACEOF
24462 #define LLVM_INFODIR "$LLVM_INFODIR"
24466 cat >>confdefs.h <<_ACEOF
24467 #define LLVM_MANDIR "$LLVM_MANDIR"
24471 cat >>confdefs.h <<_ACEOF
24472 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
24476 cat >confcache <<\_ACEOF
24477 # This file is a shell script that caches the results of configure
24478 # tests run on this system so they can be shared between configure
24479 # scripts and configure runs, see configure's option --config-cache.
24480 # It is not useful on other systems. If it contains results you don't
24481 # want to keep, you may remove or edit it.
24483 # config.status only pays attention to the cache file if you give it
24484 # the --recheck option to rerun configure.
24486 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24487 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24488 # following values.
24492 # The following way of writing the cache mishandles newlines in values,
24493 # but we know of no workaround that is simple, portable, and efficient.
24494 # So, don't put newlines in cache variables' values.
24495 # Ultrix sh set writes to stderr and can't be redirected directly,
24496 # and sets the high bit in the cache file unless we assign to the vars.
24499 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24501 # `set' does not quote correctly, so add quotes (double-quote
24502 # substitution turns \\\\ into \\, and sed turns \\ into \).
24505 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24508 # `set' quotes correctly as required by POSIX, so do not add quotes.
24510 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24517 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24519 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24521 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24522 if test -w $cache_file; then
24523 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24524 cat confcache >$cache_file
24526 echo "not updating unwritable cache $cache_file"
24531 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24532 # Let make expand exec_prefix.
24533 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24535 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24536 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24537 # trailing colons and then remove the whole line if VPATH becomes empty
24538 # (actually we leave an empty line to preserve line numbers).
24539 if test "x$srcdir" = x.; then
24540 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24541 s/:*\$(srcdir):*/:/;
24542 s/:*\${srcdir}:*/:/;
24544 s/^\([^=]*=[ ]*\):*/\1/;
24550 DEFS=-DHAVE_CONFIG_H
24554 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24555 # 1. Remove the extension, and $U if already installed.
24556 ac_i=`echo "$ac_i" |
24557 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24559 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24560 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24562 LIBOBJS=$ac_libobjs
24564 LTLIBOBJS=$ac_ltlibobjs
24568 : ${CONFIG_STATUS=./config.status}
24569 ac_clean_files_save=$ac_clean_files
24570 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24571 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24572 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24573 cat >$CONFIG_STATUS <<_ACEOF
24575 # Generated by $as_me.
24576 # Run this file to recreate the current configuration.
24577 # Compiler output produced by configure, useful for debugging
24578 # configure, is in config.log if it exists.
24581 ac_cs_recheck=false
24583 SHELL=\${CONFIG_SHELL-$SHELL}
24586 cat >>$CONFIG_STATUS <<\_ACEOF
24587 ## --------------------- ##
24588 ## M4sh Initialization. ##
24589 ## --------------------- ##
24591 # Be Bourne compatible
24592 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24595 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24596 # is contrary to our usage. Disable this feature.
24597 alias -g '${1+"$@"}'='"$@"'
24598 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24601 DUALCASE=1; export DUALCASE # for MKS sh
24603 # Support unset when possible.
24604 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24611 # Work around bugs in pre-3.0 UWIN ksh.
24612 $as_unset ENV MAIL MAILPATH
24619 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24620 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24621 LC_TELEPHONE LC_TIME
24623 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24624 eval $as_var=C; export $as_var
24630 # Required to use basename.
24631 if expr a : '\(a\)' >/dev/null 2>&1; then
24637 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24638 as_basename=basename
24644 # Name of the executable.
24645 as_me=`$as_basename "$0" ||
24646 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24647 X"$0" : 'X\(//\)$' \| \
24648 X"$0" : 'X\(/\)$' \| \
24649 . : '\(.\)' 2>/dev/null ||
24651 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24652 /^X\/\(\/\/\)$/{ s//\1/; q; }
24653 /^X\/\(\/\).*/{ s//\1/; q; }
24657 # PATH needs CR, and LINENO needs CR and PATH.
24658 # Avoid depending upon Character Ranges.
24659 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24660 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24661 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24662 as_cr_digits='0123456789'
24663 as_cr_alnum=$as_cr_Letters$as_cr_digits
24665 # The user is always right.
24666 if test "${PATH_SEPARATOR+set}" != set; then
24667 echo "#! /bin/sh" >conf$$.sh
24668 echo "exit 0" >>conf$$.sh
24670 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24679 as_lineno_1=$LINENO
24680 as_lineno_2=$LINENO
24681 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24682 test "x$as_lineno_1" != "x$as_lineno_2" &&
24683 test "x$as_lineno_3" = "x$as_lineno_2" || {
24684 # Find who we are. Look in the path if we contain no path at all
24687 *[\\/]* ) as_myself=$0 ;;
24688 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24689 for as_dir in $PATH
24692 test -z "$as_dir" && as_dir=.
24693 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24698 # We did not find ourselves, most probably we were run as `sh COMMAND'
24699 # in which case we are not to be found in the path.
24700 if test "x$as_myself" = x; then
24703 if test ! -f "$as_myself"; then
24704 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24705 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24706 { (exit 1); exit 1; }; }
24708 case $CONFIG_SHELL in
24710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24711 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24714 test -z "$as_dir" && as_dir=.
24715 for as_base in sh bash ksh sh5; do
24718 if ("$as_dir/$as_base" -c '
24719 as_lineno_1=$LINENO
24720 as_lineno_2=$LINENO
24721 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24722 test "x$as_lineno_1" != "x$as_lineno_2" &&
24723 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24724 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24725 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24726 CONFIG_SHELL=$as_dir/$as_base
24727 export CONFIG_SHELL
24728 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24736 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24737 # uniformly replaced by the line number. The first 'sed' inserts a
24738 # line-number line before each line; the second 'sed' does the real
24739 # work. The second script uses 'N' to pair each line-number line
24740 # with the numbered line, and appends trailing '-' during
24741 # substitution so that $LINENO is not a special case at line end.
24742 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24743 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24744 sed '=' <$as_myself |
24749 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24752 s,^['$as_cr_digits']*\n,,
24753 ' >$as_me.lineno &&
24754 chmod +x $as_me.lineno ||
24755 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24756 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24757 { (exit 1); exit 1; }; }
24759 # Don't try to exec as it changes $[0], causing all sort of problems
24760 # (the dirname of $[0] is not the place where we might find the
24761 # original and so on. Autoconf is especially sensible to this).
24763 # Exit status is that of the last command.
24768 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24769 *c*,-n*) ECHO_N= ECHO_C='
24771 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24772 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24775 if expr a : '\(a\)' >/dev/null 2>&1; then
24781 rm -f conf$$ conf$$.exe conf$$.file
24783 if ln -s conf$$.file conf$$ 2>/dev/null; then
24784 # We could just check for DJGPP; but this test a) works b) is more generic
24785 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24786 if test -f conf$$.exe; then
24787 # Don't use ln at all; we don't have any links
24792 elif ln conf$$.file conf$$ 2>/dev/null; then
24797 rm -f conf$$ conf$$.exe conf$$.file
24799 if mkdir -p . 2>/dev/null; then
24802 test -d ./-p && rmdir ./-p
24806 as_executable_p="test -f"
24808 # Sed expression to map a string onto a valid CPP name.
24809 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24811 # Sed expression to map a string onto a valid variable name.
24812 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24816 # We need space, tab and new line, in precisely that order.
24826 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24827 # report actual input values of CONFIG_FILES etc. instead of their
24828 # values after options handling. Logging --version etc. is OK.
24832 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24833 ## Running $as_me. ##
24838 This file was extended by LLVM $as_me 1.4, which was
24839 generated by GNU Autoconf 2.59. Invocation command line was
24841 CONFIG_FILES = $CONFIG_FILES
24842 CONFIG_HEADERS = $CONFIG_HEADERS
24843 CONFIG_LINKS = $CONFIG_LINKS
24844 CONFIG_COMMANDS = $CONFIG_COMMANDS
24848 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24852 # Files that config.status was made for.
24853 if test -n "$ac_config_files"; then
24854 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24857 if test -n "$ac_config_headers"; then
24858 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24861 if test -n "$ac_config_links"; then
24862 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24865 if test -n "$ac_config_commands"; then
24866 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24869 cat >>$CONFIG_STATUS <<\_ACEOF
24872 \`$as_me' instantiates files from templates according to the
24873 current configuration.
24875 Usage: $0 [OPTIONS] [FILE]...
24877 -h, --help print this help, then exit
24878 -V, --version print version number, then exit
24879 -q, --quiet do not print progress messages
24880 -d, --debug don't remove temporary files
24881 --recheck update $as_me by reconfiguring in the same conditions
24882 --file=FILE[:TEMPLATE]
24883 instantiate the configuration file FILE
24884 --header=FILE[:TEMPLATE]
24885 instantiate the configuration header FILE
24887 Configuration files:
24890 Configuration headers:
24893 Configuration links:
24896 Configuration commands:
24899 Report bugs to <bug-autoconf@gnu.org>."
24902 cat >>$CONFIG_STATUS <<_ACEOF
24904 LLVM config.status 1.4
24905 configured by $0, generated by GNU Autoconf 2.59,
24906 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24908 Copyright (C) 2003 Free Software Foundation, Inc.
24909 This config.status script is free software; the Free Software Foundation
24910 gives unlimited permission to copy, distribute and modify it."
24915 cat >>$CONFIG_STATUS <<\_ACEOF
24916 # If no file are specified by the user, then we need to provide default
24917 # value. By we need to know if files were specified by the user.
24923 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24924 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24932 *) # This is not an option, so the user has probably given explicit
24935 ac_need_defaults=false;;
24939 # Handling of the options.
24941 cat >>$CONFIG_STATUS <<\_ACEOF
24942 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24944 --version | --vers* | -V )
24945 echo "$ac_cs_version"; exit 0 ;;
24947 # Conflict between --help and --header
24948 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24949 Try \`$0 --help' for more information." >&5
24950 echo "$as_me: error: ambiguous option: $1
24951 Try \`$0 --help' for more information." >&2;}
24952 { (exit 1); exit 1; }; };;
24953 --help | --hel | -h )
24954 echo "$ac_cs_usage"; exit 0 ;;
24955 --debug | --d* | -d )
24957 --file | --fil | --fi | --f )
24959 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24960 ac_need_defaults=false;;
24961 --header | --heade | --head | --hea )
24963 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24964 ac_need_defaults=false;;
24965 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24966 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24969 # This is an error.
24970 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24971 Try \`$0 --help' for more information." >&5
24972 echo "$as_me: error: unrecognized option: $1
24973 Try \`$0 --help' for more information." >&2;}
24974 { (exit 1); exit 1; }; } ;;
24976 *) ac_config_targets="$ac_config_targets $1" ;;
24982 ac_configure_extra_args=
24984 if $ac_cs_silent; then
24986 ac_configure_extra_args="$ac_configure_extra_args --silent"
24990 cat >>$CONFIG_STATUS <<_ACEOF
24991 if \$ac_cs_recheck; then
24992 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24993 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24998 cat >>$CONFIG_STATUS <<_ACEOF
25000 # INIT-COMMANDS section.
25003 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
25004 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
25005 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
25006 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
25007 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
25008 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
25009 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
25010 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
25011 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
25012 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
25013 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile.JIT`
25014 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
25015 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
25021 cat >>$CONFIG_STATUS <<\_ACEOF
25022 for ac_config_target in $ac_config_targets
25024 case "$ac_config_target" in
25025 # Handling of arguments.
25026 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
25027 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
25028 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
25029 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
25030 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
25031 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
25032 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
25033 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
25034 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
25035 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
25036 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
25037 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
25038 "tools/Makefile.JIT" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile.JIT" ;;
25039 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
25040 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
25041 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
25042 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
25043 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
25044 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
25045 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
25046 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
25047 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25048 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25049 { (exit 1); exit 1; }; };;
25053 # If the user did not use the arguments to specify the items to instantiate,
25054 # then the envvar interface is used. Set only those that are not.
25055 # We use the long form for the default assignment because of an extremely
25056 # bizarre bug on SunOS 4.1.3.
25057 if $ac_need_defaults; then
25058 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25059 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25060 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25061 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25064 # Have a temporary directory for convenience. Make it in the build tree
25065 # simply because there is no reason to put it here, and in addition,
25066 # creating and moving files from /tmp can sometimes cause problems.
25067 # Create a temporary directory, and hook for its removal unless debugging.
25070 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25071 trap '{ (exit 1); exit 1; }' 1 2 13 15
25074 # Create a (secure) tmp directory for tmp files.
25077 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25078 test -n "$tmp" && test -d "$tmp"
25081 tmp=./confstat$$-$RANDOM
25082 (umask 077 && mkdir $tmp)
25085 echo "$me: cannot create a temporary directory in ." >&2
25086 { (exit 1); exit 1; }
25091 cat >>$CONFIG_STATUS <<_ACEOF
25094 # CONFIG_FILES section.
25097 # No need to generate the scripts if there are no CONFIG_FILES.
25098 # This happens for instance when ./config.status config.h
25099 if test -n "\$CONFIG_FILES"; then
25100 # Protect against being on the right side of a sed subst in config.status.
25101 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25102 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25103 s,@SHELL@,$SHELL,;t t
25104 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25105 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25106 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25107 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25108 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25109 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25110 s,@exec_prefix@,$exec_prefix,;t t
25111 s,@prefix@,$prefix,;t t
25112 s,@program_transform_name@,$program_transform_name,;t t
25113 s,@bindir@,$bindir,;t t
25114 s,@sbindir@,$sbindir,;t t
25115 s,@libexecdir@,$libexecdir,;t t
25116 s,@datadir@,$datadir,;t t
25117 s,@sysconfdir@,$sysconfdir,;t t
25118 s,@sharedstatedir@,$sharedstatedir,;t t
25119 s,@localstatedir@,$localstatedir,;t t
25120 s,@libdir@,$libdir,;t t
25121 s,@includedir@,$includedir,;t t
25122 s,@oldincludedir@,$oldincludedir,;t t
25123 s,@infodir@,$infodir,;t t
25124 s,@mandir@,$mandir,;t t
25125 s,@build_alias@,$build_alias,;t t
25126 s,@host_alias@,$host_alias,;t t
25127 s,@target_alias@,$target_alias,;t t
25128 s,@DEFS@,$DEFS,;t t
25129 s,@ECHO_C@,$ECHO_C,;t t
25130 s,@ECHO_N@,$ECHO_N,;t t
25131 s,@ECHO_T@,$ECHO_T,;t t
25132 s,@LIBS@,$LIBS,;t t
25133 s,@subdirs@,$subdirs,;t t
25134 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25135 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25136 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25137 s,@build@,$build,;t t
25138 s,@build_cpu@,$build_cpu,;t t
25139 s,@build_vendor@,$build_vendor,;t t
25140 s,@build_os@,$build_os,;t t
25141 s,@host@,$host,;t t
25142 s,@host_cpu@,$host_cpu,;t t
25143 s,@host_vendor@,$host_vendor,;t t
25144 s,@host_os@,$host_os,;t t
25145 s,@target@,$target,;t t
25146 s,@target_cpu@,$target_cpu,;t t
25147 s,@target_vendor@,$target_vendor,;t t
25148 s,@target_os@,$target_os,;t t
25150 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
25151 s,@ARCH@,$ARCH,;t t
25153 s,@CXXFLAGS@,$CXXFLAGS,;t t
25154 s,@LDFLAGS@,$LDFLAGS,;t t
25155 s,@CPPFLAGS@,$CPPFLAGS,;t t
25156 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25157 s,@EXEEXT@,$EXEEXT,;t t
25158 s,@OBJEXT@,$OBJEXT,;t t
25160 s,@CFLAGS@,$CFLAGS,;t t
25161 s,@ac_ct_CC@,$ac_ct_CC,;t t
25163 s,@ifGNUmake@,$ifGNUmake,;t t
25165 s,@LEXLIB@,$LEXLIB,;t t
25166 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
25167 s,@FLEX@,$FLEX,;t t
25168 s,@YACC@,$YACC,;t t
25169 s,@BISON@,$BISON,;t t
25170 s,@EGREP@,$EGREP,;t t
25171 s,@LN_S@,$LN_S,;t t
25172 s,@ECHO@,$ECHO,;t t
25174 s,@ac_ct_AR@,$ac_ct_AR,;t t
25175 s,@RANLIB@,$RANLIB,;t t
25176 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25177 s,@STRIP@,$STRIP,;t t
25178 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25179 s,@CXXCPP@,$CXXCPP,;t t
25181 s,@FFLAGS@,$FFLAGS,;t t
25182 s,@ac_ct_F77@,$ac_ct_F77,;t t
25183 s,@LIBTOOL@,$LIBTOOL,;t t
25185 s,@ETAGS@,$ETAGS,;t t
25186 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
25187 s,@PYTHON@,$PYTHON,;t t
25188 s,@QMTEST@,$QMTEST,;t t
25189 s,@HAVE_ZLIB@,$HAVE_ZLIB,;t t
25190 s,@HAVE_BZIP2@,$HAVE_BZIP2,;t t
25191 s,@ENDIAN@,$ENDIAN,;t t
25192 s,@ALLOCA@,$ALLOCA,;t t
25193 s,@MMAP_FILE@,$MMAP_FILE,;t t
25194 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
25196 s,@LLVMCC1@,$LLVMCC1,;t t
25197 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
25198 s,@SHLIBEXT@,$SHLIBEXT,;t t
25199 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
25200 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
25201 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
25202 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
25203 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
25204 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
25205 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
25206 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
25207 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
25208 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
25209 s,@LIBOBJS@,$LIBOBJS,;t t
25210 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25215 cat >>$CONFIG_STATUS <<\_ACEOF
25216 # Split the substitutions into bite-sized pieces for seds with
25217 # small command number limits, like on Digital OSF/1 and HP-UX.
25218 ac_max_sed_lines=48
25219 ac_sed_frag=1 # Number of current file.
25220 ac_beg=1 # First line for current file.
25221 ac_end=$ac_max_sed_lines # Line after last line for current file.
25224 while $ac_more_lines; do
25225 if test $ac_beg -gt 1; then
25226 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25228 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25230 if test ! -s $tmp/subs.frag; then
25231 ac_more_lines=false
25233 # The purpose of the label and of the branching condition is to
25234 # speed up the sed processing (if there are no `@' at all, there
25235 # is no need to browse any of the substitutions).
25236 # These are the two extra sed commands mentioned above.
25238 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25239 if test -z "$ac_sed_cmds"; then
25240 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25242 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25244 ac_sed_frag=`expr $ac_sed_frag + 1`
25246 ac_end=`expr $ac_end + $ac_max_sed_lines`
25249 if test -z "$ac_sed_cmds"; then
25252 fi # test -n "$CONFIG_FILES"
25255 cat >>$CONFIG_STATUS <<\_ACEOF
25256 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25257 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25259 - | *:- | *:-:* ) # input from stdin
25261 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25262 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25263 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25264 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25265 * ) ac_file_in=$ac_file.in ;;
25268 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25269 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25270 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25271 X"$ac_file" : 'X\(//\)[^/]' \| \
25272 X"$ac_file" : 'X\(//\)$' \| \
25273 X"$ac_file" : 'X\(/\)' \| \
25274 . : '\(.\)' 2>/dev/null ||
25276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25277 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25278 /^X\(\/\/\)$/{ s//\1/; q; }
25279 /^X\(\/\).*/{ s//\1/; q; }
25281 { if $as_mkdir_p; then
25286 while test ! -d "$as_dir"; do
25287 as_dirs="$as_dir $as_dirs"
25288 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25289 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25290 X"$as_dir" : 'X\(//\)[^/]' \| \
25291 X"$as_dir" : 'X\(//\)$' \| \
25292 X"$as_dir" : 'X\(/\)' \| \
25293 . : '\(.\)' 2>/dev/null ||
25295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25296 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25297 /^X\(\/\/\)$/{ s//\1/; q; }
25298 /^X\(\/\).*/{ s//\1/; q; }
25301 test ! -n "$as_dirs" || mkdir $as_dirs
25302 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25303 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25304 { (exit 1); exit 1; }; }; }
25308 if test "$ac_dir" != .; then
25309 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25310 # A "../" for each directory in $ac_dir_suffix.
25311 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25313 ac_dir_suffix= ac_top_builddir=
25317 .) # No --srcdir option. We are building in place.
25319 if test -z "$ac_top_builddir"; then
25322 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25324 [\\/]* | ?:[\\/]* ) # Absolute path.
25325 ac_srcdir=$srcdir$ac_dir_suffix;
25326 ac_top_srcdir=$srcdir ;;
25327 *) # Relative path.
25328 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25329 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25332 # Do not use `cd foo && pwd` to compute absolute paths, because
25333 # the directories may not exist.
25335 .) ac_abs_builddir="$ac_dir";;
25338 .) ac_abs_builddir=`pwd`;;
25339 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25340 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25343 case $ac_abs_builddir in
25344 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25346 case ${ac_top_builddir}. in
25347 .) ac_abs_top_builddir=$ac_abs_builddir;;
25348 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25349 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25352 case $ac_abs_builddir in
25353 .) ac_abs_srcdir=$ac_srcdir;;
25356 .) ac_abs_srcdir=$ac_abs_builddir;;
25357 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25358 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25361 case $ac_abs_builddir in
25362 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25364 case $ac_top_srcdir in
25365 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25366 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25367 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25373 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25374 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25377 if test x"$ac_file" != x-; then
25378 { echo "$as_me:$LINENO: creating $ac_file" >&5
25379 echo "$as_me: creating $ac_file" >&6;}
25382 # Let's still pretend it is `configure' which instantiates (i.e., don't
25383 # use $as_me), people would be surprised to read:
25384 # /* config.h. Generated by config.status. */
25385 if test x"$ac_file" = x-; then
25388 configure_input="$ac_file. "
25390 configure_input=$configure_input"Generated from `echo $ac_file_in |
25391 sed 's,.*/,,'` by configure."
25393 # First look for the input files in the build tree, otherwise in the
25395 ac_file_inputs=`IFS=:
25396 for f in $ac_file_in; do
25398 -) echo $tmp/stdin ;;
25400 # Absolute (can't be DOS-style, as IFS=:)
25401 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25402 echo "$as_me: error: cannot find input file: $f" >&2;}
25403 { (exit 1); exit 1; }; }
25406 if test -f "$f"; then
25409 elif test -f "$srcdir/$f"; then
25414 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25415 echo "$as_me: error: cannot find input file: $f" >&2;}
25416 { (exit 1); exit 1; }; }
25419 done` || { (exit 1); exit 1; }
25421 cat >>$CONFIG_STATUS <<_ACEOF
25425 cat >>$CONFIG_STATUS <<\_ACEOF
25427 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25428 s,@configure_input@,$configure_input,;t t
25429 s,@srcdir@,$ac_srcdir,;t t
25430 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25431 s,@top_srcdir@,$ac_top_srcdir,;t t
25432 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25433 s,@builddir@,$ac_builddir,;t t
25434 s,@abs_builddir@,$ac_abs_builddir,;t t
25435 s,@top_builddir@,$ac_top_builddir,;t t
25436 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25437 s,@INSTALL@,$ac_INSTALL,;t t
25438 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25440 if test x"$ac_file" != x-; then
25441 mv $tmp/out $ac_file
25449 cat >>$CONFIG_STATUS <<\_ACEOF
25452 # CONFIG_HEADER section.
25455 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25456 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25458 # ac_d sets the value in "#define NAME VALUE" lines.
25459 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25460 ac_dB='[ ].*$,\1#\2'
25463 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25464 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25465 ac_uB='$,\1#\2define\3'
25469 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25470 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25472 - | *:- | *:-:* ) # input from stdin
25474 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25475 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25476 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25477 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25478 * ) ac_file_in=$ac_file.in ;;
25481 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25482 echo "$as_me: creating $ac_file" >&6;}
25484 # First look for the input files in the build tree, otherwise in the
25486 ac_file_inputs=`IFS=:
25487 for f in $ac_file_in; do
25489 -) echo $tmp/stdin ;;
25491 # Absolute (can't be DOS-style, as IFS=:)
25492 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25493 echo "$as_me: error: cannot find input file: $f" >&2;}
25494 { (exit 1); exit 1; }; }
25495 # Do quote $f, to prevent DOS paths from being IFS'd.
25498 if test -f "$f"; then
25501 elif test -f "$srcdir/$f"; then
25506 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25507 echo "$as_me: error: cannot find input file: $f" >&2;}
25508 { (exit 1); exit 1; }; }
25511 done` || { (exit 1); exit 1; }
25512 # Remove the trailing spaces.
25513 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25517 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25518 # `conftest.undefs', that substitutes the proper values into
25519 # config.h.in to produce config.h. The first handles `#define'
25520 # templates, and the second `#undef' templates.
25521 # And first: Protect against being on the right side of a sed subst in
25522 # config.status. Protect against being in an unquoted here document
25523 # in config.status.
25524 rm -f conftest.defines conftest.undefs
25525 # Using a here document instead of a string reduces the quoting nightmare.
25526 # Putting comments in sed scripts is not portable.
25528 # `end' is used to avoid that the second main sed command (meant for
25529 # 0-ary CPP macros) applies to n-ary macro definitions.
25530 # See the Autoconf documentation for `clear'.
25531 cat >confdef2sed.sed <<\_ACEOF
25536 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25538 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25541 # If some macros were called several times there might be several times
25542 # the same #defines, which is useless. Nevertheless, we may not want to
25543 # sort them, since we want the *last* AC-DEFINE to be honored.
25544 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25545 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25546 rm -f confdef2sed.sed
25548 # This sed command replaces #undef with comments. This is necessary, for
25549 # example, in the case of _POSIX_SOURCE, which is predefined and required
25550 # on some systems where configure will not decide to define it.
25551 cat >>conftest.undefs <<\_ACEOF
25552 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25555 # Break up conftest.defines because some shells have a limit on the size
25556 # of here documents, and old seds have small limits too (100 cmds).
25557 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25558 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25559 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25560 echo ' :' >>$CONFIG_STATUS
25561 rm -f conftest.tail
25562 while grep . conftest.defines >/dev/null
25564 # Write a limited-size here document to $tmp/defines.sed.
25565 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25566 # Speed up: don't consider the non `#define' lines.
25567 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25568 # Work around the forget-to-reset-the-flag bug.
25569 echo 't clr' >>$CONFIG_STATUS
25570 echo ': clr' >>$CONFIG_STATUS
25571 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25573 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25575 mv $tmp/out $tmp/in
25577 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25578 rm -f conftest.defines
25579 mv conftest.tail conftest.defines
25581 rm -f conftest.defines
25582 echo ' fi # grep' >>$CONFIG_STATUS
25583 echo >>$CONFIG_STATUS
25585 # Break up conftest.undefs because some shells have a limit on the size
25586 # of here documents, and old seds have small limits too (100 cmds).
25587 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25588 rm -f conftest.tail
25589 while grep . conftest.undefs >/dev/null
25591 # Write a limited-size here document to $tmp/undefs.sed.
25592 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25593 # Speed up: don't consider the non `#undef'
25594 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25595 # Work around the forget-to-reset-the-flag bug.
25596 echo 't clr' >>$CONFIG_STATUS
25597 echo ': clr' >>$CONFIG_STATUS
25598 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25600 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25602 mv $tmp/out $tmp/in
25604 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25605 rm -f conftest.undefs
25606 mv conftest.tail conftest.undefs
25608 rm -f conftest.undefs
25610 cat >>$CONFIG_STATUS <<\_ACEOF
25611 # Let's still pretend it is `configure' which instantiates (i.e., don't
25612 # use $as_me), people would be surprised to read:
25613 # /* config.h. Generated by config.status. */
25614 if test x"$ac_file" = x-; then
25615 echo "/* Generated by configure. */" >$tmp/config.h
25617 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25619 cat $tmp/in >>$tmp/config.h
25621 if test x"$ac_file" != x-; then
25622 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25623 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25624 echo "$as_me: $ac_file is unchanged" >&6;}
25626 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25627 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25628 X"$ac_file" : 'X\(//\)[^/]' \| \
25629 X"$ac_file" : 'X\(//\)$' \| \
25630 X"$ac_file" : 'X\(/\)' \| \
25631 . : '\(.\)' 2>/dev/null ||
25633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25634 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25635 /^X\(\/\/\)$/{ s//\1/; q; }
25636 /^X\(\/\).*/{ s//\1/; q; }
25638 { if $as_mkdir_p; then
25643 while test ! -d "$as_dir"; do
25644 as_dirs="$as_dir $as_dirs"
25645 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25646 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25647 X"$as_dir" : 'X\(//\)[^/]' \| \
25648 X"$as_dir" : 'X\(//\)$' \| \
25649 X"$as_dir" : 'X\(/\)' \| \
25650 . : '\(.\)' 2>/dev/null ||
25652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25653 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25654 /^X\(\/\/\)$/{ s//\1/; q; }
25655 /^X\(\/\).*/{ s//\1/; q; }
25658 test ! -n "$as_dirs" || mkdir $as_dirs
25659 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25660 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25661 { (exit 1); exit 1; }; }; }
25664 mv $tmp/config.h $ac_file
25668 rm -f $tmp/config.h
25672 cat >>$CONFIG_STATUS <<\_ACEOF
25675 # CONFIG_LINKS section.
25678 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25679 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25680 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25682 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25683 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25685 if test ! -r $srcdir/$ac_source; then
25686 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25687 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25688 { (exit 1); exit 1; }; }
25692 # Make relative symlinks.
25693 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25694 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25695 X"$ac_dest" : 'X\(//\)[^/]' \| \
25696 X"$ac_dest" : 'X\(//\)$' \| \
25697 X"$ac_dest" : 'X\(/\)' \| \
25698 . : '\(.\)' 2>/dev/null ||
25700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25701 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25702 /^X\(\/\/\)$/{ s//\1/; q; }
25703 /^X\(\/\).*/{ s//\1/; q; }
25705 { if $as_mkdir_p; then
25706 mkdir -p "$ac_dest_dir"
25708 as_dir="$ac_dest_dir"
25710 while test ! -d "$as_dir"; do
25711 as_dirs="$as_dir $as_dirs"
25712 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25713 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25714 X"$as_dir" : 'X\(//\)[^/]' \| \
25715 X"$as_dir" : 'X\(//\)$' \| \
25716 X"$as_dir" : 'X\(/\)' \| \
25717 . : '\(.\)' 2>/dev/null ||
25719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25721 /^X\(\/\/\)$/{ s//\1/; q; }
25722 /^X\(\/\).*/{ s//\1/; q; }
25725 test ! -n "$as_dirs" || mkdir $as_dirs
25726 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25727 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25728 { (exit 1); exit 1; }; }; }
25732 if test "$ac_dest_dir" != .; then
25733 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25734 # A "../" for each directory in $ac_dir_suffix.
25735 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25737 ac_dir_suffix= ac_top_builddir=
25741 .) # No --srcdir option. We are building in place.
25743 if test -z "$ac_top_builddir"; then
25746 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25748 [\\/]* | ?:[\\/]* ) # Absolute path.
25749 ac_srcdir=$srcdir$ac_dir_suffix;
25750 ac_top_srcdir=$srcdir ;;
25751 *) # Relative path.
25752 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25753 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25756 # Do not use `cd foo && pwd` to compute absolute paths, because
25757 # the directories may not exist.
25759 .) ac_abs_builddir="$ac_dest_dir";;
25761 case "$ac_dest_dir" in
25762 .) ac_abs_builddir=`pwd`;;
25763 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25764 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25767 case $ac_abs_builddir in
25768 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25770 case ${ac_top_builddir}. in
25771 .) ac_abs_top_builddir=$ac_abs_builddir;;
25772 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25773 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25776 case $ac_abs_builddir in
25777 .) ac_abs_srcdir=$ac_srcdir;;
25780 .) ac_abs_srcdir=$ac_abs_builddir;;
25781 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25782 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25785 case $ac_abs_builddir in
25786 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25788 case $ac_top_srcdir in
25789 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25790 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25791 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25797 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25798 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25801 # Try a symlink, then a hard link, then a copy.
25802 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25803 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25804 cp -p $srcdir/$ac_source $ac_dest ||
25805 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25806 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25807 { (exit 1); exit 1; }; }
25810 cat >>$CONFIG_STATUS <<\_ACEOF
25813 # CONFIG_COMMANDS section.
25815 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25816 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25817 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25818 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25819 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25820 X"$ac_dest" : 'X\(//\)[^/]' \| \
25821 X"$ac_dest" : 'X\(//\)$' \| \
25822 X"$ac_dest" : 'X\(/\)' \| \
25823 . : '\(.\)' 2>/dev/null ||
25825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25826 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25827 /^X\(\/\/\)$/{ s//\1/; q; }
25828 /^X\(\/\).*/{ s//\1/; q; }
25830 { if $as_mkdir_p; then
25835 while test ! -d "$as_dir"; do
25836 as_dirs="$as_dir $as_dirs"
25837 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25838 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25839 X"$as_dir" : 'X\(//\)[^/]' \| \
25840 X"$as_dir" : 'X\(//\)$' \| \
25841 X"$as_dir" : 'X\(/\)' \| \
25842 . : '\(.\)' 2>/dev/null ||
25844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25845 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25846 /^X\(\/\/\)$/{ s//\1/; q; }
25847 /^X\(\/\).*/{ s//\1/; q; }
25850 test ! -n "$as_dirs" || mkdir $as_dirs
25851 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25852 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25853 { (exit 1); exit 1; }; }; }
25857 if test "$ac_dir" != .; then
25858 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25859 # A "../" for each directory in $ac_dir_suffix.
25860 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25862 ac_dir_suffix= ac_top_builddir=
25866 .) # No --srcdir option. We are building in place.
25868 if test -z "$ac_top_builddir"; then
25871 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25873 [\\/]* | ?:[\\/]* ) # Absolute path.
25874 ac_srcdir=$srcdir$ac_dir_suffix;
25875 ac_top_srcdir=$srcdir ;;
25876 *) # Relative path.
25877 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25878 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25881 # Do not use `cd foo && pwd` to compute absolute paths, because
25882 # the directories may not exist.
25884 .) ac_abs_builddir="$ac_dir";;
25887 .) ac_abs_builddir=`pwd`;;
25888 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25889 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25892 case $ac_abs_builddir in
25893 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25895 case ${ac_top_builddir}. in
25896 .) ac_abs_top_builddir=$ac_abs_builddir;;
25897 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25898 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25901 case $ac_abs_builddir in
25902 .) ac_abs_srcdir=$ac_srcdir;;
25905 .) ac_abs_srcdir=$ac_abs_builddir;;
25906 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25907 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25910 case $ac_abs_builddir in
25911 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25913 case $ac_top_srcdir in
25914 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25915 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25916 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25921 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25922 echo "$as_me: executing $ac_dest commands" >&6;}
25924 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25925 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
25926 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
25927 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
25928 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
25929 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25930 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
25931 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25932 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
25933 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
25934 tools/Makefile.JIT ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile.JIT tools/Makefile.JIT ;;
25935 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
25936 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
25941 cat >>$CONFIG_STATUS <<\_ACEOF
25943 { (exit 0); exit 0; }
25945 chmod +x $CONFIG_STATUS
25946 ac_clean_files=$ac_clean_files_save
25949 # configure is writing to config.log, and then calls config.status.
25950 # config.status does its own redirection, appending to config.log.
25951 # Unfortunately, on DOS this fails, as config.log is still kept open
25952 # by configure, so config.status won't be able to write to it; its
25953 # output is simply discarded. So we exec the FD to /dev/null,
25954 # effectively closing config.log, so it can be properly (re)opened and
25955 # appended to by config.status. When coming back to configure, we
25956 # need to make the FD available again.
25957 if test "$no_create" != yes; then
25959 ac_config_status_args=
25960 test "$silent" = yes &&
25961 ac_config_status_args="$ac_config_status_args --quiet"
25963 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25965 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25966 # would make configure fail if this is the last instruction.
25967 $ac_cs_success || { (exit 1); exit 1; }
25971 # CONFIG_SUBDIRS section.
25973 if test "$no_recursion" != yes; then
25975 # Remove --cache-file and --srcdir arguments so they do not pile up.
25976 ac_sub_configure_args=
25978 for ac_arg in $ac_configure_args; do
25979 if test -n "$ac_prev"; then
25984 -cache-file | --cache-file | --cache-fil | --cache-fi \
25985 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25986 ac_prev=cache_file ;;
25987 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25988 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25991 --config-cache | -C)
25993 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25995 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25997 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25999 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26001 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
26005 # Always prepend --prefix to ensure using the same prefix
26006 # in subdir configurations.
26007 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
26010 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26012 # Do not complain, so a configure script can configure whichever
26013 # parts of a large source tree are present.
26014 test -d $srcdir/$ac_dir || continue
26016 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
26017 echo "$as_me: configuring in $ac_dir" >&6;}
26018 { if $as_mkdir_p; then
26023 while test ! -d "$as_dir"; do
26024 as_dirs="$as_dir $as_dirs"
26025 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26026 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26027 X"$as_dir" : 'X\(//\)[^/]' \| \
26028 X"$as_dir" : 'X\(//\)$' \| \
26029 X"$as_dir" : 'X\(/\)' \| \
26030 . : '\(.\)' 2>/dev/null ||
26032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26033 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26034 /^X\(\/\/\)$/{ s//\1/; q; }
26035 /^X\(\/\).*/{ s//\1/; q; }
26038 test ! -n "$as_dirs" || mkdir $as_dirs
26039 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26040 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26041 { (exit 1); exit 1; }; }; }
26045 if test "$ac_dir" != .; then
26046 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26047 # A "../" for each directory in $ac_dir_suffix.
26048 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26050 ac_dir_suffix= ac_top_builddir=
26054 .) # No --srcdir option. We are building in place.
26056 if test -z "$ac_top_builddir"; then
26059 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26061 [\\/]* | ?:[\\/]* ) # Absolute path.
26062 ac_srcdir=$srcdir$ac_dir_suffix;
26063 ac_top_srcdir=$srcdir ;;
26064 *) # Relative path.
26065 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26066 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26069 # Do not use `cd foo && pwd` to compute absolute paths, because
26070 # the directories may not exist.
26072 .) ac_abs_builddir="$ac_dir";;
26075 .) ac_abs_builddir=`pwd`;;
26076 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26077 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26080 case $ac_abs_builddir in
26081 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26083 case ${ac_top_builddir}. in
26084 .) ac_abs_top_builddir=$ac_abs_builddir;;
26085 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26086 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26089 case $ac_abs_builddir in
26090 .) ac_abs_srcdir=$ac_srcdir;;
26093 .) ac_abs_srcdir=$ac_abs_builddir;;
26094 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26095 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26098 case $ac_abs_builddir in
26099 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26101 case $ac_top_srcdir in
26102 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26103 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26104 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26111 # Check for guested configure; otherwise get Cygnus style configure.
26112 if test -f $ac_srcdir/configure.gnu; then
26113 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
26114 elif test -f $ac_srcdir/configure; then
26115 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
26116 elif test -f $ac_srcdir/configure.in; then
26117 ac_sub_configure=$ac_configure
26119 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26120 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26124 # The recursion is here.
26125 if test -n "$ac_sub_configure"; then
26126 # Make the cache file name correct relative to the subdirectory.
26127 case $cache_file in
26128 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26129 *) # Relative path.
26130 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
26133 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26134 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26135 # The eval makes quoting arguments work.
26136 eval $ac_sub_configure $ac_sub_configure_args \
26137 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
26138 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26139 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26140 { (exit 1); exit 1; }; }
26148 if test $bzip2_found -ne 1 ; then
26149 if test $zlib_found -ne 1 ; then
26150 { echo "$as_me:$LINENO: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&5
26151 echo "$as_me: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&2;}
26152 { echo "$as_me:$LINENO: WARNING: *** Bytecode archives will not support compression!" >&5
26153 echo "$as_me: WARNING: *** Bytecode archives will not support compression!" >&2;}
26154 { echo "$as_me:$LINENO: WARNING: *** To correct, install the libraries and and re-run configure." >&5
26155 echo "$as_me: WARNING: *** To correct, install the libraries and and re-run configure." >&2;}
26159 if test $llvmgccwarn = yes
26161 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
26162 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
26163 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
26164 echo "$as_me: WARNING: ***** appear to be working." >&2;}
26165 { echo "$as_me:$LINENO: WARNING: ***** " >&5
26166 echo "$as_me: WARNING: ***** " >&2;}
26167 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
26168 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
26169 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
26170 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
26171 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
26172 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}